<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="medication-type" />
  <url value="http://hl7.org.au/fhir/StructureDefinition/medication-type" />
  <version value="1.1.0" />
  <name value="MedicationType" />
  <title value="Medication Type" />
  <status value="draft" />
  <date value="2018-10-03" />
  <publisher value="Health Level Seven Australia (Medications WG)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org.au" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This extension applies to the Coding datatype and provides a value to indicate a classification of the type of medication the parent coding. This is useful     when there are multiple codings from the same CodingSystem at different levels/classifications." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="Medication.code.coding" />
  <context value="MedicationRequest.medicationCodeableConcept.coding" />
  <context value="MedicationDispense.medicationCodeableConcept.coding" />
  <context value="MedicationStatement.medicationCodeableConcept.coding" />
  <context value="MedicationAdministration.medicationCodeableConcept.coding" />
  <context value="ValueSet.expansion.contains" />
  <context value="ValueSet.expansion.contains.contains" />
  <context value="CodeSystem.concept" />
  <context value="CodeSystem.concept.concept" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Medication Type" />
      <definition value="A classifying type code to assist identifying a coding usage" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.org.au/fhir/StructureDefinition/medication-type" />
    </element>
    <element id="Extension.value[x]:valueCoding">
      <path value="Extension.valueCoding" />
      <sliceName value="valueCoding" />
      <min value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="required" />
        <description value="Medication Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/medication-type" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>