{
  "resourceType": "StructureDefinition",
  "id": "au-medication",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "phx"
    }
  ],
  "url": "http://hl7.org.au/fhir/StructureDefinition/au-medication",
  "version": "1.1.0",
  "name": "AUBaseMedication",
  "title": "AU Base Medication",
  "status": "active",
  "date": "2017-05-11T00:06:07.8160426+00:00",
  "publisher": "Health Level Seven Australia (Medications WG)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org.au/fhir",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile defines a medication structure including core localisation concepts for use in an Australian context.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Medication",
        "path": "Medication",
        "short": "A medication in an Australian healthcare context",
        "definition": "Medication content use in an Australian context.  Includes concepts that are specific to Australian usage."
      },
      {
        "id": "Medication.extension",
        "path": "Medication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Medication.extension:brandName",
        "path": "Medication.extension",
        "sliceName": "brandName",
        "short": "Medication Brand Name",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/medication-brand-name"
          }
        ]
      },
      {
        "id": "Medication.extension:genericName",
        "path": "Medication.extension",
        "sliceName": "genericName",
        "short": "Medication Generic Drug Name",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/medication-generic-name"
          }
        ]
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "short": "Coding for the medicine",
        "definition": "Australian coding slices are typical medicine/product concept codes.\r\n\r\nA 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."
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Medication.code.coding:pbs",
        "path": "Medication.code.coding",
        "sliceName": "pbs",
        "short": "PBS Item Code",
        "definition": "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": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/pbs-item"
          }
        }
      },
      {
        "id": "Medication.code.coding:pbs.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "http://pbs.gov.au/code/item"
      },
      {
        "id": "Medication.code.coding:gtin",
        "path": "Medication.code.coding",
        "sliceName": "gtin",
        "short": "Medication Package Global Trade Item Number (GTIN)",
        "definition": "GTIN value from http://www.gs1.org/gtin.",
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/gtin"
          }
        }
      },
      {
        "id": "Medication.code.coding:gtin.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "http://www.gs1.org/gtin"
      },
      {
        "id": "Medication.code.coding:amt",
        "path": "Medication.code.coding",
        "sliceName": "amt",
        "short": "AMT Medicines",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1"
        }
      },
      {
        "id": "Medication.code.coding:amt.extension",
        "path": "Medication.code.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Medication.code.coding:amt.extension:medicationClass",
        "path": "Medication.code.coding.extension",
        "sliceName": "medicationClass",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/medication-type"
          }
        ]
      },
      {
        "id": "Medication.code.coding:amt.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Medication.code.coding:mimsPackage",
        "path": "Medication.code.coding",
        "sliceName": "mimsPackage",
        "short": "MIMS Package",
        "max": "1",
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/mims"
          }
        }
      },
      {
        "id": "Medication.code.coding:mimsPackage.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "http://www.mims.com.au/codes"
      },
      {
        "id": "Medication.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Medication.code.text",
        "short": "Medication primary text",
        "definition": "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.\r\n\r\nThis may be a brand or generic name as suitable for the intent of the entry."
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "short": "Physical product manufacturer organisation",
        "definition": "Manufacturer of the actual physical medicine product"
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "short": "powder | tablets | capsule +",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/medication-form-1"
        }
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "definition": "Identifies a particular constituent of interest in the product. Can be coded with AMT."
      },
      {
        "id": "Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "short": "Medication ingredient"
      },
      {
        "id": "Medication.ingredient.item[x]:itemCodeableConcept",
        "path": "Medication.ingredient.item[x]",
        "sliceName": "itemCodeableConcept",
        "short": "Coded Ingredient Product",
        "definition": "Coding for a substance or medicinal product  that is an ingredient of the medication.",
        "min": 0,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/amt-mp-codes"
          }
        }
      },
      {
        "id": "Medication.ingredient.item[x]:itemReference",
        "path": "Medication.ingredient.item[x]",
        "sliceName": "itemReference",
        "short": "Item Reference",
        "min": 0,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-medication"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-substance"
          }
        ]
      },
      {
        "id": "Medication.ingredient.amount",
        "path": "Medication.ingredient.amount",
        "short": "Strength of ingredient"
      },
      {
        "id": "Medication.package",
        "path": "Medication.package",
        "definition": "Information that only applies to packages (not products). Includes R4 pre-adopts for batch cardinality."
      },
      {
        "id": "Medication.package.batch",
        "path": "Medication.package.batch",
        "definition": "Information about a group of medication produced or packaged from one production run. Pre-adopt R4 cardinality.",
        "max": "1"
      }
    ]
  }
}