<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="au-medication" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="phx" />
  </extension>
  <url value="http://hl7.org.au/fhir/StructureDefinition/au-medication" />
  <version value="1.1.0" />
  <name value="AUBaseMedication" />
  <title value="AU Base Medication" />
  <status value="active" />
  <date value="2017-05-11T10:06:07.8160426+10:00" />
  <publisher value="Health Level Seven Australia (Medications WG)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org.au/fhir" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This profile defines a medication structure including core localisation concepts for use in an Australian context." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Medication">
      <path value="Medication" />
      <short value="A medication in an Australian healthcare context" />
      <definition value="Medication content use in an Australian context.  Includes concepts that are specific to Australian usage." />
    </element>
    <element id="Medication.extension">
      <path value="Medication.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Medication.extension:brandName">
      <path value="Medication.extension" />
      <sliceName value="brandName" />
      <short value="Medication Brand Name" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/medication-brand-name" />
      </type>
    </element>
    <element id="Medication.extension:genericName">
      <path value="Medication.extension" />
      <sliceName value="genericName" />
      <short value="Medication Generic Drug Name" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/medication-generic-name" />
      </type>
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <short value="Coding for the medicine" />
      <definition value="Australian coding slices are typical medicine/product concept codes.&#xD;&#xA;&#xD;&#xA;A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems." />
    </element>
    <element id="Medication.code.coding">
      <path value="Medication.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Medication.code.coding:pbs">
      <path value="Medication.code.coding" />
      <sliceName value="pbs" />
      <short value="PBS Item Code" />
      <definition value="PBS code from http://pbs.gov.au/code/item. Use of PBS as a code to refer to a type of medication, this excludes implication of context based on the PBS code. Where context is to be implied or stated PBS code needs to be associated with recording a prescription (MedicationRequest) or dispense record(MedicationDispense)" />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/pbs-item" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication.code.coding:pbs.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://pbs.gov.au/code/item" />
    </element>
    <element id="Medication.code.coding:gtin">
      <path value="Medication.code.coding" />
      <sliceName value="gtin" />
      <short value="Medication Package Global Trade Item Number (GTIN)" />
      <definition value="GTIN value from http://www.gs1.org/gtin." />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/gtin" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication.code.coding:gtin.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://www.gs1.org/gtin" />
    </element>
    <element id="Medication.code.coding:amt">
      <path value="Medication.code.coding" />
      <sliceName value="amt" />
      <short value="AMT Medicines" />
      <binding>
        <strength value="preferred" />
        <valueSetUri value="https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1" />
      </binding>
    </element>
    <element id="Medication.code.coding:amt.extension">
      <path value="Medication.code.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Medication.code.coding:amt.extension:medicationClass">
      <path value="Medication.code.coding.extension" />
      <sliceName value="medicationClass" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/medication-type" />
      </type>
    </element>
    <element id="Medication.code.coding:amt.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Medication.code.coding:mimsPackage">
      <path value="Medication.code.coding" />
      <sliceName value="mimsPackage" />
      <short value="MIMS Package" />
      <max value="1" />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/mims" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication.code.coding:mimsPackage.system">
      <path value="Medication.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://www.mims.com.au/codes" />
    </element>
    <element id="Medication.code.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Medication.code.text" />
      <short value="Medication primary text" />
      <definition value="A human language 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.&#xD;&#xA;&#xD;&#xA;This may be a brand or generic name as suitable for the intent of the entry." />
    </element>
    <element id="Medication.manufacturer">
      <path value="Medication.manufacturer" />
      <short value="Physical product manufacturer organisation" />
      <definition value="Manufacturer of the actual physical medicine product" />
    </element>
    <element id="Medication.form">
      <path value="Medication.form" />
      <short value="powder | tablets | capsule +" />
      <binding>
        <strength value="preferred" />
        <valueSetUri value="https://healthterminologies.gov.au/fhir/ValueSet/medication-form-1" />
      </binding>
    </element>
    <element id="Medication.ingredient">
      <path value="Medication.ingredient" />
      <definition value="Identifies a particular constituent of interest in the product. Can be coded with AMT." />
    </element>
    <element id="Medication.ingredient.item[x]">
      <path value="Medication.ingredient.item[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <short value="Medication ingredient" />
    </element>
    <element id="Medication.ingredient.item[x]:itemCodeableConcept">
      <path value="Medication.ingredient.item[x]" />
      <sliceName value="itemCodeableConcept" />
      <short value="Coded Ingredient Product" />
      <definition value="Coding for a substance or medicinal product  that is an ingredient of the medication." />
      <min value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/amt-mp-codes" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication.ingredient.item[x]:itemReference">
      <path value="Medication.ingredient.item[x]" />
      <sliceName value="itemReference" />
      <short value="Item Reference" />
      <min value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.au/fhir/StructureDefinition/au-medication" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.au/fhir/StructureDefinition/au-substance" />
      </type>
    </element>
    <element id="Medication.ingredient.amount">
      <path value="Medication.ingredient.amount" />
      <short value="Strength of ingredient" />
    </element>
    <element id="Medication.package">
      <path value="Medication.package" />
      <definition value="Information that only applies to packages (not products). Includes R4 pre-adopts for batch cardinality." />
    </element>
    <element id="Medication.package.batch">
      <path value="Medication.package.batch" />
      <definition value="Information about a group of medication produced or packaged from one production run. Pre-adopt R4 cardinality." />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>