STU 2 Ballot

This page is part of the Quality Improvement Core Framework (v1.6.0: STU 2 Ballot) based on FHIR (HL7® FHIR® Standard) v1.6.0. The current version which supersedes this version is 7.0.2. For a full list of available versions, see the Directory of published versions

D.4.1 StructureDefinition: qicore-medicationdispense

D.4.1.1 Formal Views of Profile Content

The official URL for this profile is:

http://hl7.org/fhir/qicore/StructureDefinition/qicore-medicationdispense

This profile was published on Fri Feb 27 00:00:00 AEDT 2015 as a draft by Health Level Seven International (Clinical Quality Information - QICore).

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from MedicationDispense

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationDispense 0..*
... status S0..1code
... medication[x] S1..1CodeableConcept, Reference(Medication)Binding: 7.org/fhir/daf/ValueSet/daf-medication-codes (preferred)
... patient S0..1Reference(Profile qicore-patient)
... dispenser 0..1Reference(Profile qicore-practitioner)
... authorizingPrescription 0..*Reference(Profile qicore-medicationorder)
... quantity S0..1SimpleQuantity
... daysSupply S0..1SimpleQuantity
... whenHandedOver S0..1dateTime
... destination 0..1Reference(Profile qicore-location)
... receiver 0..*Reference(Profile qicore-patient | Profile qicore-practitioner)
... dosageInstruction 0..*BackboneElement
.... timing S0..1Timing
.... site[x] 0..1CodeableConcept, Reference(BodySite)Binding: 7.org/fhir/daf/ValueSet/daf-bodysite (preferred)
.... route S0..1CodeableConcept
.... dose[x] S0..1Range, SimpleQuantity
.... pharmacy-core-doseType 0..1CodeableConceptThe type of dose, e.g., loading.
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType
Binding: SNOMED CT Dosages Codes (preferred)
.... pharmacy-core-infuseOver 0..1DurationThe length of the infusion
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver
.... pharmacy-core-rateIncrement 0..1RatioChange in dosing rate per interval
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement
.... pharmacy-core-rateIncrementInterval 0..1DurationThe period of time between rate increments
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval
.... pharmacy-core-rateGoal 0..1RatioThe target rate for the infusion
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal
.... pharmacy-core-minDosePerPeriod 0..1RatioThe minimum quantity of substance per period
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod
.... pharmacy-core-maxDeliveryRate 0..1RatioThe maximum rate of substance administration
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate
.... pharmacy-core-maxDeliveryVolume 0..1QuantityThe maximum amount of fluid to infuse
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume
... substitution 0..1BackboneElement
.... responsibleParty 0..*Reference(Profile qicore-practitioner)
... medicationdispense-validityPeriod 0..1PeriodTime interval for medication administration
URL: http://hl7.org/fhir/StructureDefinition/medicationdispense-validityPeriod
... pharmacy-core-refillsRemaining S0..1integerNumber of refills allowed
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-refillsRemaining

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationDispense I0..*Dispensing a medication to a named patient
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
mdd-1: whenHandedOver cannot be before whenPrepared
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... medicationdispense-validityPeriod I0..1PeriodExtension
URL: http://hl7.org/fhir/StructureDefinition/medicationdispense-validityPeriod
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... pharmacy-core-refillsRemaining SI0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-refillsRemaining
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..1IdentifierExternal identifier
... status ?!S0..1codein-progress | on-hold | completed | entered-in-error | stopped
Binding: MedicationDispenseStatus (required)
... medication[x] S1..1CodeableConcept, Reference(Medication)What medication was supplied
Binding: 7.org/fhir/daf/ValueSet/daf-medication-codes (preferred)
... patient S0..1Reference(Profile qicore-patient)Who the dispense is for
... dispenser 0..1Reference(Profile qicore-practitioner)Practitioner responsible for dispensing medication
... dispensingOrganization 0..1Reference(Organization)Organization responsible for the dispense of the medication
... authorizingPrescription 0..*Reference(Profile qicore-medicationorder)Medication order that authorizes the dispense
... type 0..1CodeableConceptTrial fill, partial fill, emergency fill, etc.
Binding: ActPharmacySupplyType (example)
... quantity S0..1SimpleQuantityAmount dispensed
... daysSupply S0..1SimpleQuantityAmount of medication expressed as a timing amount
... whenPrepared ∑0..1dateTimeWhen product was packaged and reviewed
... whenHandedOver S0..1dateTimeWhen product was given out
... destination 0..1Reference(Profile qicore-location)Details and position information for a physical place
... receiver 0..*Reference(Profile qicore-patient | Profile qicore-practitioner)Who collected the medication
... note 0..*AnnotationInformation about the dispense
... dosageInstruction 0..*BackboneElementMedicine administration instructions to the patient/caregiver
.... id 0..1stringxml:id (or equivalent in JSON)
.... pharmacy-core-doseType I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType
Binding: SNOMED CT Dosages Codes (preferred)
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-infuseOver I0..1DurationExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-rateIncrement I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-rateIncrementInterval I0..1DurationExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-rateGoal I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-minDosePerPeriod I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-maxDeliveryRate I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-maxDeliveryVolume I0..1QuantityExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... text 0..1stringFree text dosage instructions e.g. SIG
.... additionalInstructions 0..*CodeableConceptE.g. "Take with food"
Binding: SNOMED CT Additional Dosage Instructions (example)
.... timing S0..1TimingWhen medication should be administered
.... asNeeded[x] 0..1boolean, CodeableConceptTake "as needed" f(or x)
Binding: SNOMED CT Medication As Needed Reason Codes (example)
.... site[x] 0..1CodeableConcept, Reference(BodySite)Body site to administer to
Binding: 7.org/fhir/daf/ValueSet/daf-bodysite (preferred)
.... route S0..1CodeableConceptHow drug should enter body
Binding: SNOMED CT Route Codes (example)
.... method 0..1CodeableConceptTechnique for administering medication
Binding: SNOMED CT Administration Method Codes (example)
.... dose[x] S0..1Range, SimpleQuantityAmount of medication per dose
.... rate[x] 0..1Ratio, Range, SimpleQuantityAmount of medication per unit of time
.... maxDosePerPeriod 0..1RatioUpper limit on medication per unit of time
... substitution 0..1BackboneElementDeals with substitution of one medicine for another
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type 1..1CodeableConceptCode signifying whether a different drug was dispensed from what was prescribed
Binding: ActSubstanceAdminSubstitutionCode (example)
.... reason 0..*CodeableConceptWhy was substitution made
Binding: SubstanceAdminSubstitutionReason (example)
.... responsibleParty 0..*Reference(Profile qicore-practitioner)Who is responsible for the substitution
... eventHistory 0..*BackboneElementA list of events of interest in the lifecycle
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... status 1..1codein-progress | on-hold | completed | entered-in-error | stopped
Binding: MedicationDispenseStatus (required)
.... action 0..1CodeableConceptAction taken (e.g. verify)
Binding: (unbound) (example)
.... dateTime 1..1dateTimeThe date at which the event happened
.... actor 0..1Reference(Practitioner)Who took the action
.... reason 0..1CodeableConceptReason the action was taken
Binding: (unbound) (example)

doco Documentation for this format

yet to be done: Xml template

yet to be done: Json template

Differential View

This structure is derived from StructureDefinition.

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationDispense 0..*
... status S0..1code
... medication[x] S1..1CodeableConcept, Reference(Medication)Binding: 7.org/fhir/daf/ValueSet/daf-medication-codes (preferred)
... patient S0..1Reference(Profile qicore-patient)
... dispenser 0..1Reference(Profile qicore-practitioner)
... authorizingPrescription 0..*Reference(Profile qicore-medicationorder)
... quantity S0..1SimpleQuantity
... daysSupply S0..1SimpleQuantity
... whenHandedOver S0..1dateTime
... destination 0..1Reference(Profile qicore-location)
... receiver 0..*Reference(Profile qicore-patient | Profile qicore-practitioner)
... dosageInstruction 0..*BackboneElement
.... timing S0..1Timing
.... site[x] 0..1CodeableConcept, Reference(BodySite)Binding: 7.org/fhir/daf/ValueSet/daf-bodysite (preferred)
.... route S0..1CodeableConcept
.... dose[x] S0..1Range, SimpleQuantity
.... pharmacy-core-doseType 0..1CodeableConceptThe type of dose, e.g., loading.
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType
Binding: SNOMED CT Dosages Codes (preferred)
.... pharmacy-core-infuseOver 0..1DurationThe length of the infusion
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver
.... pharmacy-core-rateIncrement 0..1RatioChange in dosing rate per interval
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement
.... pharmacy-core-rateIncrementInterval 0..1DurationThe period of time between rate increments
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval
.... pharmacy-core-rateGoal 0..1RatioThe target rate for the infusion
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal
.... pharmacy-core-minDosePerPeriod 0..1RatioThe minimum quantity of substance per period
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod
.... pharmacy-core-maxDeliveryRate 0..1RatioThe maximum rate of substance administration
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate
.... pharmacy-core-maxDeliveryVolume 0..1QuantityThe maximum amount of fluid to infuse
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume
... substitution 0..1BackboneElement
.... responsibleParty 0..*Reference(Profile qicore-practitioner)
... medicationdispense-validityPeriod 0..1PeriodTime interval for medication administration
URL: http://hl7.org/fhir/StructureDefinition/medicationdispense-validityPeriod
... pharmacy-core-refillsRemaining S0..1integerNumber of refills allowed
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-refillsRemaining

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationDispense I0..*Dispensing a medication to a named patient
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
mdd-1: whenHandedOver cannot be before whenPrepared
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... medicationdispense-validityPeriod I0..1PeriodExtension
URL: http://hl7.org/fhir/StructureDefinition/medicationdispense-validityPeriod
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... pharmacy-core-refillsRemaining SI0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-refillsRemaining
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..1IdentifierExternal identifier
... status ?!S0..1codein-progress | on-hold | completed | entered-in-error | stopped
Binding: MedicationDispenseStatus (required)
... medication[x] S1..1CodeableConcept, Reference(Medication)What medication was supplied
Binding: 7.org/fhir/daf/ValueSet/daf-medication-codes (preferred)
... patient S0..1Reference(Profile qicore-patient)Who the dispense is for
... dispenser 0..1Reference(Profile qicore-practitioner)Practitioner responsible for dispensing medication
... dispensingOrganization 0..1Reference(Organization)Organization responsible for the dispense of the medication
... authorizingPrescription 0..*Reference(Profile qicore-medicationorder)Medication order that authorizes the dispense
... type 0..1CodeableConceptTrial fill, partial fill, emergency fill, etc.
Binding: ActPharmacySupplyType (example)
... quantity S0..1SimpleQuantityAmount dispensed
... daysSupply S0..1SimpleQuantityAmount of medication expressed as a timing amount
... whenPrepared ∑0..1dateTimeWhen product was packaged and reviewed
... whenHandedOver S0..1dateTimeWhen product was given out
... destination 0..1Reference(Profile qicore-location)Details and position information for a physical place
... receiver 0..*Reference(Profile qicore-patient | Profile qicore-practitioner)Who collected the medication
... note 0..*AnnotationInformation about the dispense
... dosageInstruction 0..*BackboneElementMedicine administration instructions to the patient/caregiver
.... id 0..1stringxml:id (or equivalent in JSON)
.... pharmacy-core-doseType I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType
Binding: SNOMED CT Dosages Codes (preferred)
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-infuseOver I0..1DurationExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-rateIncrement I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-rateIncrementInterval I0..1DurationExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-rateGoal I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-minDosePerPeriod I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-maxDeliveryRate I0..1RatioExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... pharmacy-core-maxDeliveryVolume I0..1QuantityExtension
URL: http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... text 0..1stringFree text dosage instructions e.g. SIG
.... additionalInstructions 0..*CodeableConceptE.g. "Take with food"
Binding: SNOMED CT Additional Dosage Instructions (example)
.... timing S0..1TimingWhen medication should be administered
.... asNeeded[x] 0..1boolean, CodeableConceptTake "as needed" f(or x)
Binding: SNOMED CT Medication As Needed Reason Codes (example)
.... site[x] 0..1CodeableConcept, Reference(BodySite)Body site to administer to
Binding: 7.org/fhir/daf/ValueSet/daf-bodysite (preferred)
.... route S0..1CodeableConceptHow drug should enter body
Binding: SNOMED CT Route Codes (example)
.... method 0..1CodeableConceptTechnique for administering medication
Binding: SNOMED CT Administration Method Codes (example)
.... dose[x] S0..1Range, SimpleQuantityAmount of medication per dose
.... rate[x] 0..1Ratio, Range, SimpleQuantityAmount of medication per unit of time
.... maxDosePerPeriod 0..1RatioUpper limit on medication per unit of time
... substitution 0..1BackboneElementDeals with substitution of one medicine for another
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type 1..1CodeableConceptCode signifying whether a different drug was dispensed from what was prescribed
Binding: ActSubstanceAdminSubstitutionCode (example)
.... reason 0..*CodeableConceptWhy was substitution made
Binding: SubstanceAdminSubstitutionReason (example)
.... responsibleParty 0..*Reference(Profile qicore-practitioner)Who is responsible for the substitution
... eventHistory 0..*BackboneElementA list of events of interest in the lifecycle
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... status 1..1codein-progress | on-hold | completed | entered-in-error | stopped
Binding: MedicationDispenseStatus (required)
.... action 0..1CodeableConceptAction taken (e.g. verify)
Binding: (unbound) (example)
.... dateTime 1..1dateTimeThe date at which the event happened
.... actor 0..1Reference(Practitioner)Who took the action
.... reason 0..1CodeableConceptReason the action was taken
Binding: (unbound) (example)

doco Documentation for this format

XML Template

yet to be done: Xml template

JSON Template

yet to be done: Json template

 

D.4.1.2 Terminology Bindings

Terminology Bindings

PathNameConformanceValueSet
MedicationDispense.languageCommon LanguagesextensibleCommon Languages
MedicationDispense.statusMedicationDispenseStatusrequiredMedicationDispenseStatus
MedicationDispense.medication[x]?extpreferredhttp://hl7.org/fhir/daf/ValueSet/daf-medication-codes
MedicationDispense.typeActPharmacySupplyTypeexampleActPharmacySupplyType
MedicationDispense.dosageInstruction.extension
http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType
SNOMED CT Dosages CodespreferredSNOMED CT Dosages Codes
MedicationDispense.dosageInstruction.additionalInstructionsSNOMED CT Additional Dosage InstructionsexampleSNOMED CT Additional Dosage Instructions
MedicationDispense.dosageInstruction.asNeeded[x]SNOMED CT Medication As Needed Reason CodesexampleSNOMED CT Medication As Needed Reason Codes
MedicationDispense.dosageInstruction.site[x]?extpreferredhttp://hl7.org/fhir/daf/ValueSet/daf-bodysite
MedicationDispense.dosageInstruction.routeSNOMED CT Route CodesexampleSNOMED CT Route Codes
MedicationDispense.dosageInstruction.methodSNOMED CT Administration Method CodesexampleSNOMED CT Administration Method Codes
MedicationDispense.substitution.typeActSubstanceAdminSubstitutionCodeexampleActSubstanceAdminSubstitutionCode
MedicationDispense.substitution.reasonSubstanceAdminSubstitutionReasonexampleSubstanceAdminSubstitutionReason
MedicationDispense.eventHistory.statusMedicationDispenseStatusrequiredMedicationDispenseStatus
MedicationDispense.eventHistory.action?extexample
MedicationDispense.eventHistory.reason?extexample

D.4.1.3 Constraints

Constraints

IdPathDetailsRequirements
dom-2MedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
XPath: not(parent::f:contained and f:contained)
dom-1MedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain any narrative
XPath: not(parent::f:contained and f:text)
dom-4MedicationDispenseIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
dom-3MedicationDispenseIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
mdd-1MedicationDispensewhenHandedOver cannot be before whenPrepared
XPath: not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)
ele-1MedicationDispense.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1MedicationDispense.dosageInstruction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1MedicationDispense.dosageInstruction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
.