| Official URL: https://gematik.de/fhir/erp-t-prescription/StructureDefinition/erp-tprescription-medication-dispense | Version: 1.1.0 | |||
| Active as of 2025-12-19 | Computable Name: ERP_TPrescription_MedicationDispense | |||
Abgabeinformationen einer Apotheke, die es im Rahmen der Belieferung eines T-Rezeptes an den E-Rezept-Fachdienst übermittelt hat.
Folgende Tabelle gibt eine grobe Darstellung des Mappings für dieses Profil:
Titel: E-T-Rezept Structure Map for MedicationDispense
Beschreibung: Mapping-Anweisungen zur Transformation von gematik ERP MedicationDispense zu BfArM T-Prescription MedicationDispense
| Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung |
|---|---|---|
gematikMedicationDispense.extension [GeneratedDosageInstructionsMeta] |
bfarmMedicationDispense.extension |
Kopiert Dosage Metadata Extension → übernimmt Wert aus Quellvariable |
gematikMedicationDispense.extension [extension-MedicationDispense.renderedDosageInstruction] |
bfarmMedicationDispense.extension |
Kopiert RenderedDosageText → übernimmt Wert aus Quellvariable |
gematikMedicationDispense.dosageInstruction |
bfarmMedicationDispense.dosageInstruction |
Übernimmt die Dosierungsanweisungen aus der ursprünglichen Abgabe für den digitalen Durchschlag → übernimmt Wert aus Quellvariable |
gematikMedicationDispense.whenHandedOver |
bfarmMedicationDispense.whenHandedOver |
Kopiert das Abgabedatum zur Dokumentation des Zeitpunkts der Medikamentenausgabe → übernimmt Wert aus Quellvariable |
gematikMedicationDispense.medication |
bfarmMedicationDispense.medication |
Kopiert die Medikamentenreferenz - das referenzierte Medication wird separat gemappt → übernimmt Wert aus Quellvariable |
gematikMedicationDispense.status |
bfarmMedicationDispense.status |
Setzt den Status auf ‘completed’ da die Abgabe bereits erfolgt ist (digitaler Durchschlag) → setzt Wert ‘completed’ |
gematikMedicationDispense.quantity |
bfarmMedicationDispense.quantity |
Übernimmt die abgegebene Menge zur Dokumentation der tatsächlich ausgehändigten Medikamentenmenge → übernimmt Wert aus Quellvariable |
gematikMedicationDispense.performer |
bfarmMedicationDispense.performer |
Transformiert Apotheken-Identifier zu Organization-Referenz für eindeutige Zuordnung der abgebenden Apotheke |
gematikMedicationDispense.performer.actor |
bfarmMedicationDispense.performer.actor |
Verarbeitet den Actor (abgebende Apotheke) des Performers |
gematikMedicationDispense.performer.actor.identifier |
(wird bestimmt durch Kontext) | Extrahiert den Identifier der abgebenden Apotheke |
gematikMedicationDispense.performer.actor.identifier.value |
reference |
Wandelt Apotheken-Identifier in Organization-Referenz um (Organization/ |
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | MedicationDispense | Dispensing a medication to a named patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1 |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
![]() ![]() |
?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event. Fixed Value: completed |
![]() ![]() |
SΣ | 1..1 | Reference(Medication) | What medication was supplied |
![]() ![]() |
S | 0..* | BackboneElement | Who performed event |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
C | 1..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was performing Constraints: ref-1 |
![]() ![]() |
SC | 0..1 | SimpleQuantity(4.0.1) | Amount dispensed Constraints: qty-3, sqty-1 |
![]() ![]() |
S | 0..1 | dateTime | When product was given out |
![]() ![]() |
S | 0..* | Dosage | How the medication is to be used by the patient or administered by the caregiver |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| MedicationDispense.status | Base | required | Medication dispense status codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared |
whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
|
| qty-3 | error | MedicationDispense.quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
| ref-1 | error | MedicationDispense.performer.actor | SHALL have a contained resource if a local reference is provided |
reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
|
| sqty-1 | error | MedicationDispense.quantity | The comparator is not used on a SimpleQuantity |
comparator.empty()
|
This structure is derived from MedicationDispense
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
MedicationDispense | |||
![]() ![]() |
0..0 | External identifier | ||
![]() ![]() |
0..0 | Event that dispense is part of | ||
![]() ![]() |
1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Fixed Value: completed | |
![]() ![]() |
0..0 | Why a dispense was not performed | ||
![]() ![]() |
0..0 | Type of medication dispense | ||
![]() ![]() |
S | 1..1 | Reference(Medication) | What medication was supplied |
![]() ![]() |
0..0 | Who the dispense is for | ||
![]() ![]() |
0..0 | Encounter / Episode associated with event | ||
![]() ![]() |
0..0 | Information that supports the dispensing of the medication | ||
![]() ![]() |
S | 0..* | BackboneElement | Who performed event |
![]() ![]() |
0..0 | Where the dispense occurred | ||
![]() ![]() |
0..0 | Medication order that authorizes the dispense | ||
![]() ![]() |
0..0 | Trial fill, partial fill, emergency fill, etc. | ||
![]() ![]() |
S | 0..1 | SimpleQuantity(4.0.1) | Amount dispensed |
![]() ![]() |
0..0 | Amount of medication expressed as a timing amount | ||
![]() ![]() |
0..0 | When product was packaged and reviewed | ||
![]() ![]() |
S | 0..1 | dateTime | When product was given out |
![]() ![]() |
0..0 | Where the medication was sent | ||
![]() ![]() |
0..0 | Who collected the medication | ||
![]() ![]() |
0..0 | Information about the dispense | ||
![]() ![]() |
S | 0..* | Dosage | How the medication is to be used by the patient or administered by the caregiver |
![]() ![]() |
0..0 | Whether a substitution was performed on the dispense | ||
![]() ![]() |
0..0 | Clinical issue with action | ||
![]() ![]() |
0..0 | A list of relevant lifecycle events | ||
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | MedicationDispense | Dispensing a medication to a named patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1 | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
![]() ![]() |
?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event. Fixed Value: completed | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Medication) | What medication was supplied | ||||
![]() ![]() |
S | 0..* | BackboneElement | Who performed event | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Who performed the dispense and what they did Binding: MedicationDispense Performer Function Codes (example): A code describing the role an individual played in dispensing a medication. | |||||
![]() ![]() ![]() |
C | 1..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was performing Constraints: ref-1 | ||||
![]() ![]() |
SC | 0..1 | SimpleQuantity(4.0.1) | Amount dispensed Constraints: qty-3, sqty-1 | ||||
![]() ![]() |
S | 0..1 | dateTime | When product was given out | ||||
![]() ![]() |
S | 0..* | Dosage | How the medication is to be used by the patient or administered by the caregiver | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| MedicationDispense.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| MedicationDispense.status | Base | required | Medication dispense status codes | 📍4.0.1 | FHIR Std. |
| MedicationDispense.performer.function | Base | example | Medication dispense performer function codes | 📍4.0.1 | FHIR Std. |
| MedicationDispense.substitution.type | Base | example | ActSubstanceAdminSubstitutionCode | 📦3.0.0 | THO v7.0 |
| MedicationDispense.substitution.reason | Base | example | SubstanceAdminSubstitutionReason | 📦3.0.0 | THO v7.0 |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared |
whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
|
| qty-3 | error | MedicationDispense.quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
| ref-1 | error | MedicationDispense.performer.actor, MedicationDispense.substitution.responsibleParty | SHALL have a contained resource if a local reference is provided |
reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
|
| sqty-1 | error | MedicationDispense.quantity | The comparator is not used on a SimpleQuantity |
comparator.empty()
|
This structure is derived from MedicationDispense
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | MedicationDispense | Dispensing a medication to a named patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1 |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
![]() ![]() |
?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event. Fixed Value: completed |
![]() ![]() |
SΣ | 1..1 | Reference(Medication) | What medication was supplied |
![]() ![]() |
S | 0..* | BackboneElement | Who performed event |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
C | 1..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was performing Constraints: ref-1 |
![]() ![]() |
SC | 0..1 | SimpleQuantity(4.0.1) | Amount dispensed Constraints: qty-3, sqty-1 |
![]() ![]() |
S | 0..1 | dateTime | When product was given out |
![]() ![]() |
S | 0..* | Dosage | How the medication is to be used by the patient or administered by the caregiver |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| MedicationDispense.status | Base | required | Medication dispense status codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared |
whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
|
| qty-3 | error | MedicationDispense.quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
| ref-1 | error | MedicationDispense.performer.actor | SHALL have a contained resource if a local reference is provided |
reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
|
| sqty-1 | error | MedicationDispense.quantity | The comparator is not used on a SimpleQuantity |
comparator.empty()
|
Differential View
This structure is derived from MedicationDispense
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
MedicationDispense | |||
![]() ![]() |
0..0 | External identifier | ||
![]() ![]() |
0..0 | Event that dispense is part of | ||
![]() ![]() |
1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Fixed Value: completed | |
![]() ![]() |
0..0 | Why a dispense was not performed | ||
![]() ![]() |
0..0 | Type of medication dispense | ||
![]() ![]() |
S | 1..1 | Reference(Medication) | What medication was supplied |
![]() ![]() |
0..0 | Who the dispense is for | ||
![]() ![]() |
0..0 | Encounter / Episode associated with event | ||
![]() ![]() |
0..0 | Information that supports the dispensing of the medication | ||
![]() ![]() |
S | 0..* | BackboneElement | Who performed event |
![]() ![]() |
0..0 | Where the dispense occurred | ||
![]() ![]() |
0..0 | Medication order that authorizes the dispense | ||
![]() ![]() |
0..0 | Trial fill, partial fill, emergency fill, etc. | ||
![]() ![]() |
S | 0..1 | SimpleQuantity(4.0.1) | Amount dispensed |
![]() ![]() |
0..0 | Amount of medication expressed as a timing amount | ||
![]() ![]() |
0..0 | When product was packaged and reviewed | ||
![]() ![]() |
S | 0..1 | dateTime | When product was given out |
![]() ![]() |
0..0 | Where the medication was sent | ||
![]() ![]() |
0..0 | Who collected the medication | ||
![]() ![]() |
0..0 | Information about the dispense | ||
![]() ![]() |
S | 0..* | Dosage | How the medication is to be used by the patient or administered by the caregiver |
![]() ![]() |
0..0 | Whether a substitution was performed on the dispense | ||
![]() ![]() |
0..0 | Clinical issue with action | ||
![]() ![]() |
0..0 | A list of relevant lifecycle events | ||
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | MedicationDispense | Dispensing a medication to a named patient Constraints: dom-2, dom-3, dom-4, dom-5, dom-6, mdd-1 | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
![]() ![]() |
?!Σ | 1..1 | code | preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Binding: MedicationDispense Status Codes (required): A coded concept specifying the state of the dispense event. Fixed Value: completed | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Medication) | What medication was supplied | ||||
![]() ![]() |
S | 0..* | BackboneElement | Who performed event | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
0..1 | CodeableConcept | Who performed the dispense and what they did Binding: MedicationDispense Performer Function Codes (example): A code describing the role an individual played in dispensing a medication. | |||||
![]() ![]() ![]() |
C | 1..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) | Individual who was performing Constraints: ref-1 | ||||
![]() ![]() |
SC | 0..1 | SimpleQuantity(4.0.1) | Amount dispensed Constraints: qty-3, sqty-1 | ||||
![]() ![]() |
S | 0..1 | dateTime | When product was given out | ||||
![]() ![]() |
S | 0..* | Dosage | How the medication is to be used by the patient or administered by the caregiver | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| MedicationDispense.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| MedicationDispense.status | Base | required | Medication dispense status codes | 📍4.0.1 | FHIR Std. |
| MedicationDispense.performer.function | Base | example | Medication dispense performer function codes | 📍4.0.1 | FHIR Std. |
| MedicationDispense.substitution.type | Base | example | ActSubstanceAdminSubstitutionCode | 📦3.0.0 | THO v7.0 |
| MedicationDispense.substitution.reason | Base | example | SubstanceAdminSubstitutionReason | 📦3.0.0 | THO v7.0 |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | MedicationDispense | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | MedicationDispense | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | MedicationDispense | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | MedicationDispense | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| mdd-1 | error | MedicationDispense | whenHandedOver cannot be before whenPrepared |
whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
|
| qty-3 | error | MedicationDispense.quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
| ref-1 | error | MedicationDispense.performer.actor, MedicationDispense.substitution.responsibleParty | SHALL have a contained resource if a local reference is provided |
reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
|
| sqty-1 | error | MedicationDispense.quantity | The comparator is not used on a SimpleQuantity |
comparator.empty()
|
This structure is derived from MedicationDispense
Other representations of profile: CSV, Excel, Schematron