<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MedicationPSABAllDif" />
  <url value="https://www.alberta.ca/fhir/psab/StructureDefinition/MedicationPSABAllDif" />
  <name value="MedicationPSABAllDif" />
  <title value="Medication (All Differential Example)" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/medication-ca-ps" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication.id">
      <path value="Medication.id" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.implicitRules">
      <path value="Medication.implicitRules" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.language">
      <path value="Medication.language" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.text">
      <path value="Medication.text" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.contained">
      <path value="Medication.contained" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.extension">
      <path value="Medication.extension" />
      <comment value="Implementers may be asked to provide an example with the following extension as part of testing" />
    </element>
    <element id="Medication.extension:strength">
      <path value="Medication.extension" />
      <sliceName value="strength" />
      <short value="Extension for representing overall medication strength." />
      <definition value="The overall medication strength, rather than the strength of a specific ingredient." />
      <comment value="Implementers may be asked to provide an example with the following extension as part of testing" />
      <type>
        <code value="Extension" />
        <profile value="http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description" />
      </type>
    </element>
    <element id="Medication.identifier">
      <path value="Medication.identifier" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.code.extension">
      <path value="Medication.code.extension" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.code.coding">
      <path value="Medication.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.code.coding:CCDD">
      <path value="Medication.code.coding" />
      <sliceName value="CCDD" />
      <comment value="Optional - submit if available [Note: Not always recorded in patient chart; and not always applicable - compound medications do not have a DIN number for example.] Reference: Health Canada Drug ID Number" />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Medication.code.coding:CCDD.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/hc-CCDD" />
    </element>
    <element id="Medication.code.text">
      <path value="Medication.code.text" />
      <comment value="Mandatory if any prescribed medication data is present; otherwise must be blank/null. String: Max Character length (200)" />
      <min value="1" />
    </element>
    <element id="Medication.form">
      <path value="Medication.form" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
    <element id="Medication.form.coding">
      <path value="Medication.form.coding" />
      <comment value="No terminology has been defined in AB for this element. Future releases may include defined terminology. This element is not expected to be populated as part of testing" />
    </element>
    <element id="Medication.form.text">
      <path value="Medication.form.text" />
      <comment value="Implementers may be asked to provide an example with the following element populated as part of testing" />
    </element>
  </differential>
</StructureDefinition>