PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.au.base@1.1.1
    http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense
description: This profile defines a medication dispense structure including core localisation concepts for use as a dispense record in an Australian context.
package_name: rs/hl7.fhir.au.base
derivation: constraint
name: AUBaseMedicationDispense
type: MedicationDispense
elements:
  substitution:
    index: 39
    elements:
      reason: {index: 40}
  medication[x]:
    elements:
      coding:
        index: 21
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            pbs:
              match: {system: 'http://pbs.gov.au/code/item'}
              schema:
                short: PBS Item Code
                index: 22
                elements:
                  system:
                    pattern: {type: uri, value: 'http://pbs.gov.au/code/item'}
                    type: uri
                    index: 23
                required: [system]
            gtin:
              match: {system: 'http://www.gs1.org/gtin'}
              schema:
                short: Medication Package Global Trade Item Number (GTIN)
                index: 24
                elements:
                  system:
                    pattern: {type: uri, value: 'http://www.gs1.org/gtin'}
                    type: uri
                    index: 25
                required: [system]
            amt:
              match: {system: 'http://snomed.info/sct'}
              schema:
                short: AMT Medicines
                index: 26
                extensions:
                  medicationClass: {url: h, max: 1, type: Extension, short: Class of Medication Coding, index: 28}
                elements:
                  extension:
                    index: 27
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationClass:
                          match: {url: null}
                          schema: {type: Extension, short: Class of Medication Coding, url: h, index: 28}
                          max: 1
                  system:
                    pattern: {type: uri, value: 'http://snomed.info/sct'}
                    type: uri
                    index: 29
                required: [system]
            mimsPackage:
              match: {system: 'http://www.mims.com.au/codes'}
              schema:
                short: MIMS Package
                index: 30
                elements:
                  system:
                    pattern: {type: uri, value: 'http://www.mims.com.au/codes'}
                    type: uri
                    index: 31
                required: [system]
      text: {short: Medication primary text, index: 32}
  medicationCodeableConcept:
    type: CodeableConcept
    short: Coded Dispensed Medication
    choiceOf: medication
    index: 20
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, short: Coded Dispensed Medication, choiceOf: medication, index: 20}
          min: 0
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        groundsForConcurrentSupply:
          match: {url: null}
          schema: {type: Extension, short: Grounds for Concurrent Supply of Medication, url: h, index: 1}
          max: 1
        dispenseNumber:
          match: {url: null}
          schema: {type: Extension, short: Number of this Dispense, url: h, index: 2}
        brandName:
          match: {url: null}
          schema: {type: Extension, short: Medication Brand Name, url: h, index: 3}
        genericName:
          match: {url: null}
          schema: {type: Extension, short: Medication Generic Drug Name, url: h, index: 4}
  dosageInstruction:
    type: Dosage
    index: 37
    elements:
      method:
        elements:
          coding: {index: 38}
  identifier:
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      - {path: type, type: value}
      min: null
      slices:
        localDispenseIdentifier:
          match: {system: null, type: null}
          schema:
            short: Local Dispense Identifier
            index: 6
            elements:
              type:
                short: Coded identifier type for local dispense identifier
                index: 7
                elements:
                  coding:
                    index: 8
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://hl7.org.au/fhir/v2/0203'}
                        type: uri
                        index: 9
                      code:
                        pattern: {type: code, value: LDI}
                        type: code
                        index: 10
                    required: [code, system]
                  text:
                    pattern: {type: string, value: Local Dispense Identifier}
                    type: string
                    index: 11
                required: [coding, text]
              system: {short: Namespace for local dispense record identifier, index: 12}
              value: {short: Dispense record identifier, index: 13}
              assigner:
                index: 14
                elements:
                  display: {index: 15}
                required: [display]
            required: [assigner, system, type, value]
  medicationReference:
    type: Reference
    short: Dispensed Medication
    choiceOf: medication
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
    index: 35
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            short: Dispensed Medication
            choiceOf: medication
            refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
            index: 35
          min: 0
  authorizingPrescription:
    type: Reference
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medicationrequest']
    index: 36
  medication:
    short: Dispensed Medication
    choices: [medicationReference]
    index: 34
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: Dispensed Medication
            choices: [medicationReference]
            index: 34
          min: 0
package_version: 1.1.1
extensions:
  groundsForConcurrentSupply: {url: h, max: 1, type: Extension, short: Grounds for Concurrent Supply of Medication, index: 1}
  dispenseNumber: {url: h, type: Extension, short: Number of this Dispense, index: 2}
  brandName: {url: h, type: Extension, short: Medication Brand Name, index: 3}
  genericName: {url: h, type: Extension, short: Medication Generic Drug Name, index: 4}
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.1.1