<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="d55eaded-3836-45fc-8860-da8c534b4e5f" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2022-05-05T20:02:34.6494345+00:00" />
  </meta>
  <url value="https://ehealthontario.ca/API/FHIR/StructureDefinition/ca-on-medications-profile-Medication" />
  <name value="Medication" />
  <status value="draft" />
  <date value="2019-05-08T19:51:14.232659Z" />
  <fhirVersion value="3.0.2" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <differential>
    <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:ExtensionDrugStrength">
      <path value="Medication.extension" />
      <sliceName value="ExtensionDrugStrength" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://ehealthontario.ca/API/FHIR/StructureDefinition/ca-on-medications-ext-MedicationStrength" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <short value="Codes that identify the medication/professional services" />
      <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>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="4" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugIdentifier">
      <path value="Medication.code.coding" />
      <sliceName value="drugIdentifier" />
      <short value="Drug Identification Number (DIN)" />
      <definition value="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." />
      <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. http://www.hc-sc.gc.ca/dhp-mps/prodpharma/databasdon/index_e.html" />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/NamingSystem/ca-hc-din" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="The identification of the code system that defines the meaning of the symbol in the code. URI of Health Canada DIN or Ontario Provincial PIN or Local Insurance PIN" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/NamingSystem/ca-hc-din" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication.code.coding:drugIdentifier.version">
      <path value="Medication.code.coding.version" />
      <mustSupport value="false" />
    </element>
    <element id="Medication.code.coding:drugIdentifier.code">
      <path value="Medication.code.coding.code" />
      <comment value="The value will be the dispensed medication’s /professional services' DIN/PIN. Note that FHIR strings may not exceed 1MB in size." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugIdentifier.display">
      <path value="Medication.code.coding.display" />
      <label value="Brand name" />
      <short value="Brand name" />
      <definition value="Brand name of the prescription drug dispensed." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugGeneric">
      <path value="Medication.code.coding" />
      <sliceName value="drugGeneric" />
      <short value="Drug Name (Generic)" />
      <definition value="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/API/FHIR/NamingSystem/ca-drug-gen-name" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugGeneric.display">
      <path value="Medication.code.coding.display" />
      <definition value="This value was the generic name submitted to the ODB when the medication/professional services were dispensed." />
      <comment value="This value was the generic name submitted to the ODB when the medication/professional services were dispensed. Note that FHIR strings may not exceed 1MB in size" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugClass">
      <path value="Medication.code.coding" />
      <sliceName value="drugClass" />
      <short value="Therapeutic Classification Name" />
      <definition value="Pharmacologic-therapeutic classification of the prescription drug dispensed, used to group interchangeable drug products." />
      <comment value="Based on American Hospital Formulary Service (AHFS)" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugClass.system">
      <path value="Medication.code.coding.system" />
      <comment value="See Terminology Worksheet for list of codes" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Codes supported by eHealth Ontario identifying the classification of a drug" />
        <valueSetUri value="https://ehealthontario.ca/fhir/ValueSet/dhdr-ca-on-drug-class-ahfs" />
      </binding>
    </element>
    <element id="Medication.code.coding:drugClass.code">
      <path value="Medication.code.coding.code" />
      <definition value="Symbol in syntax defined by the system: https://tgateway.infoway-inforoute.ca/vs/drugclassification" />
      <comment value="See Terminology Worksheet for list of display values. Note that FHIR strings may not exceed 1MB in size" />
      <min value="1" />
      <mustSupport value="true" />
    </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" />
      <short value="Therapeutic Sub-Classification Name" />
      <definition value="Pharmacologic-therapeutic sub-classification of the prescription drug dispensed" />
      <comment value="Based on American Hospital Formulary Service (AHFS)" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:drugSubclass.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Drug Sub-Classifications" />
        <valueSetUri value="https://ehealthontario.ca/fhir/ValueSet/dhdr-ca-on-drug-subclass-ahfs" />
      </binding>
    </element>
    <element id="Medication.code.coding:drugSubclass.code">
      <path value="Medication.code.coding.code" />
      <definition value="Symbol in syntax defined by the system: https://tgateway.infoway-inforoute.ca/vs/drugsubclassification" />
      <comment value="See Terminology Worksheet for list of codes" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="example" />
        <valueSetUri value="https://tgateway.infoway-inforoute.ca/vs/drugsubclassification" />
      </binding>
    </element>
    <element id="Medication.code.coding:drugSubclass.display">
      <path value="Medication.code.coding.display" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.isBrand">
      <path value="Medication.isBrand" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.form">
      <path value="Medication.form" />
      <short value="Drug Dosage Form" />
      <definition value="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" />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="https://tgateway.infoway-inforoute.ca/vs/prescriptiondrugform" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication.form.text">
      <path value="Medication.form.text" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>