PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.core@0.2.0-preview
    http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationdispense
description: This profile sets minimum expectations for a MedicationDispense resource to record, search, and fetch medication dispense history associated with a patient. It is based on the [AU Base Medication Dispense](http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-medicationdispense.html) profile and identifies the *additional* mandatory core elements, extensions, vocabularies and value sets that **SHALL** be present in the MedicationDispense when conforming to this profile. It provides the floor for standards development for specific uses cases in an Australian context.
package_name: hl7.fhir.au.core
derivation: constraint
name: AUCoreMedicationDispense
type: MedicationDispense
elements:
  category: {mustSupport: true, index: 6}
  whenHandedOver: {mustSupport: true, index: 27}
  substitution:
    mustSupport: true
    index: 30
    elements:
      wasSubstituted: {mustSupport: true, index: 31}
  medication[x]:
    elements:
      coding:
        index: 12
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            pbs:
              match: {system: null}
              schema: {mustSupport: true, index: 13}
            amt:
              match: {system: null}
              schema: {mustSupport: true, index: 14}
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 11
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 11}
  statusReason:
    mustSupport: true
    choices: []
    index: 5
  note: {mustSupport: true, index: 28}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        dispenseNumber:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org.au/fhir/StructureDefinition/dispense-number', index: 1}
          max: 1
  status: {mustSupport: true, index: 3}
  dosageInstruction: {mustSupport: true, index: 29}
  daysSupply: {mustSupport: true, index: 26}
  identifier: {mustSupport: true, index: 2}
  context:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter']
    index: 19
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-medication']
    index: 17
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-medication']
            index: 17
  quantity: {mustSupport: true, index: 25}
  location:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-location']
    index: 23
  authorizingPrescription:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationrequest']
    index: 24
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient']
    index: 18
  performer:
    mustSupport: true
    index: 20
    elements:
      function: {mustSupport: true, index: 21}
      actor:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson']
        index: 22
  medication:
    choices: [medicationReference]
    index: 16
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            choices: [medicationReference]
            index: 16
package_version: 0.2.0-preview
extensions:
  dispenseNumber: {url: 'http://hl7.org.au/fhir/StructureDefinition/dispense-number', max: 1, type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationdispense
base: http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense
version: 0.2.0-preview
required: [whenHandedOver, subject]