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 Request resource for use in the NZ e-Prescription Service MDR

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

Medication Request resource for use in NZ e-Prescription Service Medications 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
.. MedicationRequest 0..* MedicationRequest Ordering of medication for patient or group
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
... 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 10..* 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-long-term-medication 1..1 boolean NZePS Long Term Medication Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-long-term-medication
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-supply-period-reason 0..1 string NZePS Supply Period Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-supply-period-reason
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-unusual-dose-quantity 1..1 boolean NZePS Unusual Dose Quantity Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-unusual-dose-quantity
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-status-type 1..1 code NZePS Status Type
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-status-type
Binding: http://hl7.org.nz/fhir/ValueSet/nzeps-status-type (required): Status Type for NZePS Prescriptions


ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-medication-action 1..1 code NZePS Medication Action Type
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-medication-action
Binding: http://hl7.org.nz/fhir/ValueSet/nzeps-medication-action (required): Medication Action Type for NZePS Prescriptions


ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-instructions-modified 1..1 boolean NZePS Patient Instructions Modification Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-instructions-modified
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-medication-modified 1..1 boolean NZePS Patient Medication Modification Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-medication-modified
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-unsigned-rejection-reason 0..1 string NZePS Unsigned Rejection Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-unsigned-rejection-reason
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-trial-period-reason 0..1 string NZePS Trial Period Reason
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-trial-period-reason
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-medication-claimable 1..1 boolean NZePS Medication Claimable Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-medication-claimable
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-private-item 1..1 boolean NZePS Private Item Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-private-item
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-force-notification 1..1 boolean NZePS Force Notification Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-force-notification
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... nzeps-notify 1..1 boolean NZePS Active Notification Indicator
URL: http://hl7.org.nz/fhir/StructureDefinition/nzeps-notify
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
... intent ?!Σ 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: medicationRequest Intent (required): The kind of medication order.


ele-1: All FHIR elements must have a @value or children
... doNotPerform ?!Σ 0..1 boolean True if request is prohibiting action
ele-1: All FHIR elements must have a @value or children
... medication[x] Σ 1..1 CodeableConcept Medication to be taken
Binding: http://nzmt.org.nz/vs (preferred)
ele-1: All FHIR elements must have a @value or children
... subject Σ 1..1 Reference(Patient | Group) Who or group medication request is for
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
MedicationRequest.statusrequiredmedicationrequest Status
http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1
from the FHIR Standard
MedicationRequest.intentrequiredmedicationRequest Intent
http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1
from the FHIR Standard
MedicationRequest.medication[x]preferredhttp://nzmt.org.nz/vs
http://nzmt.org.nz/vs

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationRequestIf 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-4errorMedicationRequestIf 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-5errorMedicationRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationRequestA 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()

 

Other representations of profile: CSV, Excel, Schematron