## Profile Comparison between http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense vs http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense

Left: | AU Base Medication Dispense (http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense)
Right: | AU Base Medication Dispense (http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense)

### Messages

Error | MedicationDispense.identifier | Type Mismatch: Identifier([CanonicalType[http://hl7.org/fhir/StructureDefinition/Identifier], CanonicalType[http://hl7.org.au/fhir/StructureDefinition/au-localdispenseidentifier]]) vs Identifier([CanonicalType[http://hl7.org/fhir/StructureDefinition/Identifier], CanonicalType[http://hl7.org.au/fhir/StructureDefinition/au-localdispenseidentifier]])

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/StructureDefinition/MedicationDispense |
copyright | HL7 Australia© 2018+; Licensed Under Creative Commons No Rights Reserved. |
description | This profile defines a medication dispense structure that localises core concepts, including identifiers and terminology, for use in an Australian context. The purpose of this profile is to provide national level agreement on core localised concepts. This profile does not force conformance to core localised concepts. It enables implementers and modellers to make their own rules, i.e. [profiling](http://hl7.org/fhir/profiling.html), about how to support these concepts for specific implementation needs. |
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#AU |
kind | resource |
name | AUBaseMedicationDispense |
publisher | HL7 Australia |
purpose |  |
status | active |
title | AU Base Medication Dispense |
type | MedicationDispense |
url | http://hl7.org.au/fhir/StructureDefinition/au-medicationdispense |

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
MedicationDispense | C | 0..* | MedicationDispense | A dispense record for a medication for a patient in an Australian healthcare context mdd-1: whenHandedOver cannot be before whenPrepared | C | 0..* | MedicationDispense | A dispense record for a medication for a patient in an Australian healthcare context mdd-1: whenHandedOver cannot be before whenPrepared |
id | Σ | 0..1 | id | Logical id of this artifact | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language |  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
|  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation |  | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained |  | 0..* | Resource | Contained, inline Resources |  | 0..* | Resource | Contained, inline Resources |
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier |  | 0..* | ??, ?? | External identifier |  | 0..* | ??, ?? | External identifier | Type Mismatch: Identifier([CanonicalType[http://hl7.org/fhir/StructureDefinition/Identifier], CanonicalType[http://hl7.org.au/fhir/StructureDefinition/au-localdispenseidentifier]]) vs Identifier([CanonicalType[http://hl7.org/fhir/StructureDefinition/Identifier], CanonicalType[http://hl7.org.au/fhir/StructureDefinition/au-localdispenseidentifier]])
partOf |  | 0..* | Reference(Procedure) | Event that dispense is part of |  | 0..* | Reference(Procedure) | Event that dispense is part of |
status | ?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: ?? (required): A coded concept specifying the state of the dispense event. | ?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: ?? (required): A coded concept specifying the state of the dispense event. |
statusReason[x] |  | 0..1 | CodeableConcept, Reference(DetectedIssue) | Why a dispense was not performed Binding: ?? (example): A code describing why a dispense was not performed. |  | 0..1 | CodeableConcept, Reference(DetectedIssue) | Why a dispense was not performed Binding: ?? (example): A code describing why a dispense was not performed. |
category |  | 0..1 | CodeableConcept | Type of medication dispense Binding: ?? (preferred): A code describing where the dispensed medication is expected to be consumed or administered. |  | 0..1 | CodeableConcept | Type of medication dispense Binding: ?? (preferred): A code describing where the dispensed medication is expected to be consumed or administered. |
Slices for medication[x] | Σ | 1..1 | CodeableConcept, Reference(Medication) | What medication was supplied Slice: Unordered, Closed by type:$this Binding: ?? (example): A coded concept identifying which substance or product can be dispensed. | Σ | 1..1 | CodeableConcept, Reference(Medication) | What medication was supplied Slice: Unordered, Closed by type:$this Binding: ?? (example): A coded concept identifying which substance or product can be dispensed. |
subject | Σ | 0..1 | Reference(Patient | Group) | Who the dispense is for | Σ | 0..1 | Reference(Patient | Group) | Who the dispense is for |
context |  | 0..1 | Reference(Encounter | EpisodeOfCare) | Encounter / Episode associated with event |  | 0..1 | Reference(Encounter | EpisodeOfCare) | Encounter / Episode associated with event |
supportingInformation |  | 0..* | Reference(Resource) | Information that supports the dispensing of the medication |  | 0..* | Reference(Resource) | Information that supports the dispensing of the medication |
performer |  | 0..* | BackboneElement | Who performed event |  | 0..* | BackboneElement | Who performed event |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
function |  | 0..1 | CodeableConcept | Who performed the dispense and what they did Binding: ?? (example): A code describing the role an individual played in dispensing a medication. |  | 0..1 | CodeableConcept | Who performed the dispense and what they did Binding: ?? (example): A code describing the role an individual played in dispensing a medication. |
actor |  | 1..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was performing |  | 1..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was performing |
location |  | 0..1 | Reference(Location) | Where the dispense occurred |  | 0..1 | Reference(Location) | Where the dispense occurred |
authorizingPrescription |  | 0..* | Reference(MedicationRequest) | Medication order that authorizes the dispense |  | 0..* | Reference(MedicationRequest) | Medication order that authorizes the dispense |
type |  | 0..1 | CodeableConcept | Trial fill, partial fill, emergency fill, etc. Binding: ?? (example): Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. |  | 0..1 | CodeableConcept | Trial fill, partial fill, emergency fill, etc. Binding: ?? (example): Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. |
quantity |  | 0..1 | ?? | Amount dispensed |  | 0..1 | ?? | Amount dispensed |
daysSupply |  | 0..1 | ?? | Amount of medication expressed as a timing amount |  | 0..1 | ?? | Amount of medication expressed as a timing amount |
whenPrepared | Σ | 0..1 | dateTime | When product was packaged and reviewed | Σ | 0..1 | dateTime | When product was packaged and reviewed |
whenHandedOver |  | 0..1 | dateTime | When product was given out |  | 0..1 | dateTime | When product was given out |
destination |  | 0..1 | Reference(Location) | Where the medication was sent |  | 0..1 | Reference(Location) | Where the medication was sent |
receiver |  | 0..* | Reference(Patient | Practitioner) | Who collected the medication |  | 0..* | Reference(Patient | Practitioner) | Who collected the medication |
note |  | 0..* | Annotation | Information about the dispense |  | 0..* | Annotation | Information about the dispense |
dosageInstruction |  | 0..* | ?? | How the medication is to be used by the patient or administered by the caregiver |  | 0..* | ?? | How the medication is to be used by the patient or administered by the caregiver |
substitution |  | 0..1 | BackboneElement | Whether a substitution was performed on the dispense |  | 0..1 | BackboneElement | Whether a substitution was performed on the dispense |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
wasSubstituted |  | 1..1 | boolean | Whether a substitution was or was not performed on the dispense |  | 1..1 | boolean | Whether a substitution was or was not performed on the dispense |
type |  | 0..1 | CodeableConcept | Code signifying whether a different drug was dispensed from what was prescribed Binding: ?? (example): A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription. |  | 0..1 | CodeableConcept | Code signifying whether a different drug was dispensed from what was prescribed Binding: ?? (example): A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription. |
reason |  | 0..1 | CodeableConcept | Why was substitution made Binding: ?? (preferred) |  | 0..1 | CodeableConcept | Why was substitution made Binding: ?? (preferred) |
responsibleParty |  | 0..* | Reference(Practitioner | PractitionerRole) | Who is responsible for the substitution |  | 0..* | Reference(Practitioner | PractitionerRole) | Who is responsible for the substitution |
detectedIssue |  | 0..* | Reference(DetectedIssue) | Clinical issue with action |  | 0..* | Reference(DetectedIssue) | Clinical issue with action |
eventHistory |  | 0..* | Reference(Provenance) | A list of relevant lifecycle events |  | 0..* | Reference(Provenance) | A list of relevant lifecycle events |
Documentation for this format