<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="medication-statement-status"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem medication-statement-status</b></p><a name="medication-statement-status"> </a><a name="hcmedication-statement-status"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/CodeSystem/medication-statement-status</code> defines the following codes:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style="white-space:nowrap">active<a name="medication-statement-status-active"> </a></td><td>Active</td><td>The medication is still being taken.</td></tr><tr><td style="white-space:nowrap">completed<a name="medication-statement-status-completed"> </a></td><td>Completed</td><td>The medication is no longer being taken.</td></tr><tr><td style="white-space:nowrap">entered-in-error<a name="medication-statement-status-entered-in-error"> </a></td><td>Entered in Error</td><td>Some of the actions that are implied by the medication statement may have occurred.  For example, the patient may have taken some of the medication.  Clinical decision support systems should take this status into account.</td></tr><tr><td style="white-space:nowrap">intended<a name="medication-statement-status-intended"> </a></td><td>Intended</td><td>The medication may be taken at some time in the future.</td></tr><tr><td style="white-space:nowrap">stopped<a name="medication-statement-status-stopped"> </a></td><td>Stopped</td><td>Actions implied by the statement have been permanently halted, before all of them occurred. This should not be used if the statement was entered in error.</td></tr><tr><td style="white-space:nowrap">on-hold<a name="medication-statement-status-on-hold"> </a></td><td>On Hold</td><td>Actions implied by the statement have been temporarily halted, but are expected to continue later. May also be called 'suspended'.</td></tr><tr><td style="white-space:nowrap">unknown<a name="medication-statement-status-unknown"> </a></td><td>Unknown</td><td>The state of the medication use is not currently known.</td></tr><tr><td style="white-space:nowrap">not-taken<a name="medication-statement-status-not-taken"> </a></td><td>Not Taken</td><td>The medication was not consumed by the patient</td></tr></table></div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="3"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/package-source">
    <extension url="packageId">
      <valueId value="hl7.fhir.uv.xver-r4.r3"/>
    </extension>
    <extension url="version">
      <valueString value="0.1.0"/>
    </extension>
    <extension url="uri">
      <valueUri value="http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3"/>
    </extension>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="phx"/>
  </extension>
  <url value="http://hl7.org/fhir/CodeSystem/medication-statement-status"/>
  <version value="4.0.1"/>
  <name value="Medication Status Codes"/>
  <title value="Medication  status  codes"/>
  <status value="draft"/>
  <experimental value="false"/>
  <date value="2026-03-20T13:05:16+11:00"/>
  <publisher value="Pharmacy"/>
  <contact>
    <name value="Pharmacy"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/medication"/>
    </telecom>
  </contact>
  <description value="Medication Status Codes"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <caseSensitive value="true"/>
  <valueSet value="http://hl7.org/fhir/ValueSet/medication-statement-status|3.0.2"/>
  <content value="complete"/>
  <concept>
    <code value="active"/>
    <display value="Active"/>
    <definition value="The medication is still being taken."/>
  </concept>
  <concept>
    <code value="completed"/>
    <display value="Completed"/>
    <definition value="The medication is no longer being taken."/>
  </concept>
  <concept>
    <code value="entered-in-error"/>
    <display value="Entered in Error"/>
    <definition value="Some of the actions that are implied by the medication statement may have occurred.  For example, the patient may have taken some of the medication.  Clinical decision support systems should take this status into account."/>
  </concept>
  <concept>
    <code value="intended"/>
    <display value="Intended"/>
    <definition value="The medication may be taken at some time in the future."/>
  </concept>
  <concept>
    <code value="stopped"/>
    <display value="Stopped"/>
    <definition value="Actions implied by the statement have been permanently halted, before all of them occurred. This should not be used if the statement was entered in error."/>
  </concept>
  <concept>
    <code value="on-hold"/>
    <display value="On Hold"/>
    <definition value="Actions implied by the statement have been temporarily halted, but are expected to continue later. May also be called 'suspended'."/>
  </concept>
  <concept>
    <code value="unknown"/>
    <display value="Unknown"/>
    <definition value="The state of the medication use is not currently known."/>
  </concept>
  <concept>
    <code value="not-taken"/>
    <display value="Not Taken"/>
    <definition value="The medication was not consumed by the patient"/>
  </concept>
</CodeSystem>