Medicines Data Repository Implementation Guide
0.2.0 - draft

Medicines Data Repository Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Medication Dispense resource for use in NZ e-Prescription Service MDR

Official URL: http://hl7.org.nz/fhir/StructureDefinition/NzepsMedicationDispense Version: 0.2.0
Draft as of 2025-01-30 Computable Name: NzepsMedicationDispense

Medication Dispense resource for use in NZ e-Prescription Service Medicines Data Repository

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationDispense C 0..* MedicationDispense Dispensing a medication to a named patient
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
mdd-1: whenHandedOver cannot be before whenPrepared
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-endorsement 0..* (Complex) NZePS Endorsement
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-endorsement
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-pharmacy-approval-original 0..1 string NZePS Original Pharmacy Approval Number
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-pharmacy-approval-original
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-funding-category 0..1 string NZePS Funding Category
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-funding-category
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-scriptno-local 0..1 string NZePS Local Script Number
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-scriptno-local
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-medication-copayment-paid 1..1 boolean NZePS Medication Co-Payment Payment Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-medication-copayment-paid
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... medication[x] Σ 1..1 CodeableConcept What medication was supplied
Binding: http://nzmt.org.nz/vs (preferred)
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
MedicationDispense.statusrequiredMedicationDispense Status Codes
http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1
from the FHIR Standard
MedicationDispense.medication[x]preferredhttp://nzmt.org.nz/vs
http://nzmt.org.nz/vs

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationDispenseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationDispenseIf 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-4errorMedicationDispenseIf 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-5errorMedicationDispenseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationDispenseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
mdd-1errorMedicationDispensewhenHandedOver cannot be before whenPrepared
: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared

 

Other representations of profile: CSV, Excel, Schematron