<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="9de0a159-f64e-4a20-8f98-96d1ef353015" />
  <meta>
    <lastUpdated value="2022-02-18T19:41:38.913+00:00" />
  </meta>
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No human-readable text provided in this case.</div>
  </text>
  <url value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-consumer-profile-Medication" />
  <version value="1.0.0" />
  <name value="Medication" />
  <status value="active" />
  <date value="2022-02-18" />
  <description value="This resource is used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication">
      <path value="Medication" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.id">
      <path value="Medication.id" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.extension">
      <path value="Medication.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Medication.extension:MedicationStrength">
      <path value="Medication.extension" />
      <sliceName value="MedicationStrength" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-medication-strength" />
      </type>
    </element>
    <element id="Medication.extension:compoundIndicator">
      <path value="Medication.extension" />
      <sliceName value="compoundIndicator" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-compound-indicator" />
      </type>
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding">
      <path value="Medication.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="8" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugIdentifier">
      <path value="Medication.code.coding" />
      <sliceName value="drugIdentifier" />
      <definition value="A reference to a code defined by a terminology system.&#xD;&#xA;&#xD;&#xA;DHDR: Drug Identification Number (DIN). Number issued by Health Canada for drugs that can be legally marketed in Canada.&#xD;&#xA;In absence of DINs, Product Identification Numbers (PINs) may be provided instead.&#xD;&#xA;Note: A future release would also support CCDD Manufactured Product codes" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugIdentifier.system">
      <path value="Medication.code.coding.system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code.&#xD;&#xA;&#xD;&#xA;DHDR: The identification of the code system that defines the meaning of the symbol in the code.&#xD;&#xA;URI of Health Canada DIN or Ontario Provincial PIN or Local Insurance PIN&#xD;&#xA;&#xD;&#xA;In a future release, also URI of CCDD Manufactured Product&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;http://hl7.org/fhir/NamingSystem/ca-hc-din &#xD;&#xA;&quot;http://ehealthontario.ca/fhir/NamingSystem/ca-on-provincial-pin&quot; &#xD;&#xA;&quot;http://ehealthontario.ca/fhir/NamingSystem/ca-on-local-pin&quot;" />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/NamingSystem/ca-hc-din" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugIdentifier.code">
      <path value="Medication.code.coding.code" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;&#xD;&#xA;DHDR: DIN/PIN of the dispensed drug or pharmacy service. Symbol in syntax defined by the system&#xD;&#xA;&#xD;&#xA;In a future release, also Manufactured Product code from CCDD." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugIdentifier.display">
      <path value="Medication.code.coding.display" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;DHDR: Brand name. Brand/display name of the dispensed drug or pharmacy service." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugGeneric">
      <path value="Medication.code.coding" />
      <sliceName value="drugGeneric" />
      <definition value="A reference to a code defined by a terminology system.&#xD;&#xA;&#xD;&#xA;DHDR: Drug Name (Generic). Non-proprietary name or generic name of the drug dispensed." />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugGeneric.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://ehealthontario.ca/fhir/NamingSystem/ca-drug-gen-name" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugGeneric.display">
      <path value="Medication.code.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugClass">
      <path value="Medication.code.coding" />
      <sliceName value="drugClass" />
      <definition value="A reference to a code defined by a terminology system.&#xD;&#xA;&#xD;&#xA;DHDR: Therapeutic Classification Name. Pharmacologic-therapeutic classification of the dispensed drug or pharmacy service, used to group interchangeable drug products.&#xD;&#xA;Based on American Hospital Formulary Service (AHFS)" />
      <max value="3" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugClass.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-class-ahfs" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugClass.code">
      <path value="Medication.code.coding.code" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;&#xD;&#xA;Subset Defining URL : https://tgateway.infoway-inforoute.ca/vs/drugclassification" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/drugclassification" />
      </binding>
    </element>
    <element id="Medication.code.coding:drugClass.display">
      <path value="Medication.code.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugSubclass">
      <path value="Medication.code.coding" />
      <sliceName value="drugSubclass" />
      <definition value="A reference to a code defined by a terminology system.&#xD;&#xA;&#xD;&#xA;DHDR: Therapeutic Sub-Classification Name. Pharmacologic-therapeutic sub-classification of the dispensed drug or pharmacy service&#xD;&#xA;&#xD;&#xA;Based on American Hospital Formulary Service (AHFS)" />
      <max value="3" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugSubclass.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://ehealthontario.ca/fhir/NamingSystem/ca-on-drug-subclass-ahfs" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugSubclass.code">
      <path value="Medication.code.coding.code" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).&#xD;&#xA;&#xD;&#xA;Subset Defining URL : https://tgateway.infoway-inforoute.ca/vs/drugsubclassification" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/drugsubclassification" />
      </binding>
    </element>
    <element id="Medication.code.coding:drugSubclass.display">
      <path value="Medication.code.coding.display" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.form">
      <path value="Medication.form" />
      <comment value="When Medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When Medication is referenced within MedicationAdministration, this is administered form.&#xD;&#xA;&#xD;&#xA;DHDR: Drug Dosage Form.  Form of the drug dispensed (e.g. tablet, capsule, injection). Dosage information is presented as a text rather than a code/system pair." />
      <mustSupport value="true" />
    </element>
    <element id="Medication.form.coding">
      <path value="Medication.form.coding" />
      <definition value="A reference to a code defined by a terminology system.&#xD;&#xA;&#xD;&#xA;Subset Defining URL: https://tgateway.infoway-inforoute.ca/vs/prescriptiondrugform" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondrugform" />
      </binding>
    </element>
    <element id="Medication.form.coding.system">
      <path value="Medication.form.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.form.coding.code">
      <path value="Medication.form.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.form.coding.display">
      <path value="Medication.form.coding.display" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.form.text">
      <path value="Medication.form.text" />
      <requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.&#xD;&#xA;&#xD;&#xA;DHDR: Plain text representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user, e.g. “Inj Sol”&#xD;&#xA;E.g., a combination of abbreviations: https://tgateway.infoway-inforoute.ca/vs/drugdosageformabbreviations" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>