{
  "resourceType": "StructureDefinition",
  "id": "medication-type",
  "url": "http://hl7.org.au/fhir/StructureDefinition/medication-type",
  "version": "1.1.0",
  "name": "MedicationType",
  "title": "Medication Type",
  "status": "draft",
  "date": "2018-10-03",
  "publisher": "Health Level Seven Australia (Medications WG)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org.au",
          "use": "work"
        }
      ]
    }
  ],
  "description": "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": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Medication.code.coding",
    "MedicationRequest.medicationCodeableConcept.coding",
    "MedicationDispense.medicationCodeableConcept.coding",
    "MedicationStatement.medicationCodeableConcept.coding",
    "MedicationAdministration.medicationCodeableConcept.coding",
    "ValueSet.expansion.contains",
    "ValueSet.expansion.contains.contains",
    "CodeSystem.concept",
    "CodeSystem.concept.concept"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Medication Type",
        "definition": "A classifying type code to assist identifying a coding usage"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org.au/fhir/StructureDefinition/medication-type"
      },
      {
        "id": "Extension.value[x]:valueCoding",
        "path": "Extension.valueCoding",
        "sliceName": "valueCoding",
        "min": 1,
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Medication Type",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/medication-type"
          }
        }
      }
    ]
  }
}