{
  "resourceType": "StructureDefinition",
  "id": "au-medicationrequest",
  "url": "http://hl7.org.au/fhir/StructureDefinition/au-medicationrequest",
  "version": "1.1.0",
  "name": "AUBaseMedicationRequest",
  "title": "AU Base Medication Request",
  "status": "draft",
  "date": "2017-05-10T23:51:36.6519188+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 request structure including core localisation concepts for use as a prescription in an Australian context.",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest",
        "path": "MedicationRequest",
        "short": "A prescription for a medication for a patient in an Australian healthcare context",
        "definition": "Prescription of medication"
      },
      {
        "id": "MedicationRequest.extension",
        "path": "MedicationRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.extension:groundsForConcurrentSupply",
        "path": "MedicationRequest.extension",
        "sliceName": "groundsForConcurrentSupply",
        "short": "Grounds for Concurrent Supply of Medication",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/grounds-for-concurrent-supply"
          }
        ]
      },
      {
        "id": "MedicationRequest.extension:minimumIntervalBetweenRepeats",
        "path": "MedicationRequest.extension",
        "sliceName": "minimumIntervalBetweenRepeats",
        "short": "Minimum Interval Between Repeats",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/minimum-interval-between-repeats"
          }
        ]
      },
      {
        "id": "MedicationRequest.extension:brandName",
        "path": "MedicationRequest.extension",
        "sliceName": "brandName",
        "short": "Medication Brand Name",
        "definition": "The brand medication text name for an associated medication, this may be supplied if a coded brand name is not available for medicationCodeableConcept but the brand name is needed.",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/medication-brand-name"
          }
        ]
      },
      {
        "id": "MedicationRequest.extension:genericName",
        "path": "MedicationRequest.extension",
        "sliceName": "genericName",
        "short": "Medication Generic Drug Name",
        "definition": "The generic medication text name for an associated medication, this may not be the same as the medicationCodeableConcept medication (prescribed, dispensed or stated) but may be used to provide an additional or equivalent drug name that is a generic medication concept.",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/medication-generic-name"
          }
        ]
      },
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            },
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier",
        "path": "MedicationRequest.identifier",
        "sliceName": "etpVendorIdentifier",
        "short": "Electronic Transfer of Prescription Supplier Identifier",
        "definition": "Identifier assigned by ETP vendor e.g. ERx, Medisecure etc. This is the assgigned numeric value typically represented as a barcode on a prescription instance."
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.type",
        "path": "MedicationRequest.identifier.type",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Local Identifier Type",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"
          }
        }
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.type.coding",
        "path": "MedicationRequest.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.type.coding.system",
        "path": "MedicationRequest.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org.au/fhir/v2/0203"
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.type.coding.code",
        "path": "MedicationRequest.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "ETP"
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.identifier.type.text",
        "min": 1,
        "fixedString": "ETP Identifier"
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.system",
        "path": "MedicationRequest.identifier.system",
        "short": "ETP vendor identifier system URL",
        "definition": "URL assigned by the ETP (electronic transfer of prescription) vendor allocating the identifier.",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.value",
        "path": "MedicationRequest.identifier.value",
        "short": "ETP vendor identifier",
        "definition": "ETP Vendor allocated identifier for the request this dispense record is fulfilling.",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.assigner",
        "path": "MedicationRequest.identifier.assigner",
        "short": "ETP vendor",
        "definition": "ETP Vendor assigning this identifier",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:etpVendorIdentifier.assigner.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.identifier.assigner.display",
        "short": "ETP vendor name",
        "definition": "Name of the ETP vendor assigning this identifier.",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber",
        "path": "MedicationRequest.identifier",
        "sliceName": "localScriptNumber",
        "short": "Local Prescription Number",
        "definition": "Identifier assigined by the prescribing system allows linking of a prescription record to local system identifier."
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.type",
        "path": "MedicationRequest.identifier.type",
        "short": "Coded identifier type for local prescription number",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Local Identifier Type",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"
          }
        }
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.type.coding",
        "path": "MedicationRequest.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.type.coding.system",
        "path": "MedicationRequest.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org.au/fhir/v2/0203"
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.type.coding.code",
        "path": "MedicationRequest.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "LPN"
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.identifier.type.text",
        "min": 1,
        "fixedString": "Local Prescription Number"
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.system",
        "path": "MedicationRequest.identifier.system",
        "short": "Namespace for local prescription number",
        "definition": "URL namespace assigned by the local prescription system.",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.value",
        "path": "MedicationRequest.identifier.value",
        "short": "Prescription number",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.assigner",
        "path": "MedicationRequest.identifier.assigner",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier:localScriptNumber.assigner.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.identifier.assigner.display",
        "min": 1
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept",
        "path": "MedicationRequest.medication[x]",
        "sliceName": "medicationCodeableConcept",
        "short": "Coded Prescribed Medication",
        "min": 0,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding",
        "path": "MedicationRequest.medication[x].coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:pbs",
        "path": "MedicationRequest.medication[x].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": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:pbs.system",
        "path": "MedicationRequest.medication[x].coding.system",
        "min": 1,
        "fixedUri": "http://pbs.gov.au/code/item"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:gtin",
        "path": "MedicationRequest.medication[x].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": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:gtin.system",
        "path": "MedicationRequest.medication[x].coding.system",
        "min": 1,
        "fixedUri": "http://www.gs1.org/gtin"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:amt",
        "path": "MedicationRequest.medication[x].coding",
        "sliceName": "amt",
        "short": "AMT Medicines",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1"
        }
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:amt.extension",
        "path": "MedicationRequest.medication[x].coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:amt.extension:medicationClass",
        "path": "MedicationRequest.medication[x].coding.extension",
        "sliceName": "medicationClass",
        "short": "Class of Medication Coding",
        "definition": "General category of coding to allow usage of codes to be distinguished from the same CodeSystem",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/medication-type"
          }
        ]
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:amt.system",
        "path": "MedicationRequest.medication[x].coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:mimsPackage",
        "path": "MedicationRequest.medication[x].coding",
        "sliceName": "mimsPackage",
        "short": "MIMS Package",
        "max": "1",
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/mims"
          }
        }
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding:mimsPackage.system",
        "path": "MedicationRequest.medication[x].coding.system",
        "min": 1,
        "fixedUri": "http://www.mims.com.au/codes"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.medication[x].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": "MedicationRequest.medication[x]:medicationReference",
        "path": "MedicationRequest.medication[x]",
        "sliceName": "medicationReference",
        "short": "Prescribed Medication",
        "min": 0,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-medication"
          }
        ]
      },
      {
        "id": "MedicationRequest.supportingInformation",
        "path": "MedicationRequest.supportingInformation",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.supportingInformation:bodyHeight",
        "path": "MedicationRequest.supportingInformation",
        "sliceName": "bodyHeight",
        "short": "Observation of Body Height",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-bodyheight"
          }
        ]
      },
      {
        "id": "MedicationRequest.supportingInformation:bodyWeight",
        "path": "MedicationRequest.supportingInformation",
        "sliceName": "bodyWeight",
        "short": "Observation of Body Weight",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-bodyweight"
          }
        ]
      },
      {
        "id": "MedicationRequest.authoredOn",
        "path": "MedicationRequest.authoredOn",
        "short": "Created date"
      },
      {
        "id": "MedicationRequest.reasonCode",
        "path": "MedicationRequest.reasonCode",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1"
        }
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "type": [
          {
            "code": "Dosage",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/au-dosage"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest",
        "path": "MedicationRequest.dispenseRequest",
        "short": "Requested dispensing"
      },
      {
        "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "short": "Maximum repeats authorised"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "short": "Brand substitution details"
      },
      {
        "id": "MedicationRequest.substitution.allowed",
        "path": "MedicationRequest.substitution.allowed",
        "short": "Brand substitution flag"
      },
      {
        "id": "MedicationRequest.substitution.reason",
        "path": "MedicationRequest.substitution.reason",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/medicine-substitution-reason-1"
        }
      }
    ]
  }
}