CH EMED EPR
2.0.1-ci-build - ci-build Switzerland flag

CH EMED EPR, published by CARA. This guide is not an authorized publication; it is the continuous build for version 2.0.1-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/CARA-ch/ch-emed-epr/ and changes regularly. See the Directory of published versions

Resource Profile: PRE MedicationRequest

Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-medicationrequest Version: 2.0.1-ci-build
Draft as of 2025-01-23 Computable Name: CHEMEDEPRMedicationRequest

Copyright/Legal: CC0-1.0

Definition of the medication request for the medication prescription document

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationRequest C 0..* CHEMEDMedicationRequest CH EMED MedicationRequest (PRE)
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
ch-dosage-medreq: If one dosage element is present, it should not have a sequence number. If more than one dosage element is present, the base entry has the sequence number 1.
split-dosage-instruction-unit-must-match-base-dosage-instruction: The unit for doseAndRate of different dosages (split dosage) belonging to the same statement/request/dispense must match.
... contained 1..* Resource Contained, inline Resources
... 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
.... treatmentplan 1..1 (Complex) A reference to the MedicationStatement that introduced this medication
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... identifier 1..1 Identifier MedicationRequest Identifier
ele-1: All FHIR elements must have a @value or children
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .


ele-1: All FHIR elements must have a @value or children
.... system Σ 1..1 uri The namespace for the identifier value
ele-1: All FHIR elements must have a @value or children
Fixed Value: urn:ietf:rfc:3986
.... value Σ 1..1 string Identifier value as UUID
ele-1: All FHIR elements must have a @value or children
Example General: 123456
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
... status ?!Σ 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
Binding: medicationrequest Status (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.


ele-1: All FHIR elements must have a @value or children
Required Pattern: active
... statusReason D 0..1 CodeableConcept ✕ This element is not supported
Binding: medicationRequest Status Reason Codes (example): Identifies the reasons for a given status.


ele-1: All FHIR elements must have a @value or children
... 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
Required Pattern: order
... category D 0..* CodeableConcept ✕ This element is not supported
Binding: medicationRequest Category Codes (example): A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.


ele-1: All FHIR elements must have a @value or children
... priority ΣD 0..1 code ✕ This element is not supported
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.


ele-1: All FHIR elements must have a @value or children
... reported[x] ΣD 0..1 ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
.... reportedBoolean boolean
.... reportedReference Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)
... Slices for medication[x] Σ 1..1 Reference(CH Core Medication(6.0.0-ballot-ci-build)) Medication to be taken
Slice: Unordered, Closed by type:$this
ele-1: All FHIR elements must have a @value or children
.... medication[x]:medicationReference Σ 0..1 Reference(CH EMED EPR Medication) {c} Reference to the contained medication
ele-1: All FHIR elements must have a @value or children
... subject Σ 1..1 Reference(CH EMED EPR Patient) {r, b} Patient
ele-1: All FHIR elements must have a @value or children
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
ele-1: All FHIR elements must have a @value or children
... encounter D 0..1 Reference(Encounter) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... authoredOn Σ 1..1 dateTime When request was initially authored
ele-1: All FHIR elements must have a @value or children
... requester Σ 1..1 Reference(CH EMED EPR PractitionerRole) The author of the medical decision, see also 'Guidance - Authorship'
ele-1: All FHIR elements must have a @value or children
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
ele-1: All FHIR elements must have a @value or children
... performer D 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... performerType ΣD 0..1 CodeableConcept ✕ This element is not supported
Binding: ProcedurePerformerRoleCodes (example): Identifies the type of individual that is desired to administer the medication.


ele-1: All FHIR elements must have a @value or children
... reasonCode 0..* CodeableConcept The treatment reason(s) as text, and optionally coded
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept indicating why the medication was ordered.


ele-1: All FHIR elements must have a @value or children
.... extension D 0..* Extension ✕ This element is not supported
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
.... text Σ 1..1 string Plain text representation of the treatment reason(s)
ele-1: All FHIR elements must have a @value or children
... reasonReference D 0..* Reference(Condition | Observation) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... instantiatesCanonical ΣD 0..* canonical() ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... instantiatesUri ΣD 0..* uri ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... basedOn ΣD 0..* Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... groupIdentifier ΣD 0..1 Identifier ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... courseOfTherapyType D 0..1 CodeableConcept ✕ This element is not supported
Binding: medicationRequest Course of Therapy Codes (example): Identifies the overall pattern of medication administratio.


ele-1: All FHIR elements must have a @value or children
... insurance D 0..* Reference(Coverage | ClaimResponse) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... Slices for dosageInstruction 1..* CHCoreDosage(6.0.0-ballot-ci-build) How the medication should be taken
Slice: Unordered, Closed by profile:$this
ele-1: All FHIR elements must have a @value or children
.... dosageInstruction:baseEntry C 1..1 CHEMEDEPRDosageMedicationRequest Base entry of the dosage instruction
ele-1: All FHIR elements must have a @value or children
ch-dosage-4: For split dosage timing event and dose/rate are required
ch-dosage-3: Patient instruction/free text dosage instruction, or timing and dose/rate has to be specified
.... dosageInstruction:additionalEntry 0..* CHEMEDEPRDosageSplit Additional entry of the dosage instruction
ele-1: All FHIR elements must have a @value or children
... substitution 0..1 BackboneElement If absent, substitution is assumed allowed. If present, the value is fixed to none (not allowed).
ele-1: All FHIR elements must have a @value or children
.... Slices for allowed[x] 1..1 CodeableConcept Whether substitution is allowed or not
Slice: Unordered, Closed by type:$this
Binding: ActSubstanceAdminSubstitutionCode (example): Identifies the type of substitution allowed.


ele-1: All FHIR elements must have a @value or children
..... allowed[x]:allowedCodeableConcept 0..1 CodeableConcept Whether substitution is allowed or not
Binding: Substance Administration Substitution Codes (required)
ele-1: All FHIR elements must have a @value or children
...... coding Σ 0..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: N
....... display 1..1 string Representation defined by the system
Fixed Value: none
.... reason D 0..1 CodeableConcept ✕ This element is not supported
Binding: SubstanceAdminSubstitutionReason (example): A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.


ele-1: All FHIR elements must have a @value or children
... priorPrescription D 0..1 Reference(MedicationRequest) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... detectedIssue D 0..* Reference(DetectedIssue) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children
... eventHistory D 0..* Reference(Provenance) ✕ This element is not supported
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationRequest.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
from the FHIR Standard
MedicationRequest.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1
from the FHIR Standard
MedicationRequest.statusReasonexamplemedicationRequest Status Reason Codes
http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
from the FHIR Standard
MedicationRequest.intentrequiredPattern: order
http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1
from the FHIR Standard
MedicationRequest.categoryexamplemedicationRequest Category Codes
http://hl7.org/fhir/ValueSet/medicationrequest-category
from the FHIR Standard
MedicationRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|4.0.1
from the FHIR Standard
MedicationRequest.performerTypeexampleProcedurePerformerRoleCodes
http://hl7.org/fhir/ValueSet/performer-role
from the FHIR Standard
MedicationRequest.reasonCodeexampleCondition/Problem/DiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
from the FHIR Standard
MedicationRequest.courseOfTherapyTypeexamplemedicationRequest Course of Therapy Codes
http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
from the FHIR Standard
MedicationRequest.substitution.allowed[x]exampleActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationRequest.substitution.allowed[x]:allowedCodeableConceptrequiredCHEMEDEprActSubstanceAdminSubstitutionCode
http://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-substance-admin-substitution-code
from this IG
MedicationRequest.substitution.reasonexampleSubstanceAdminSubstitutionReason
http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason

Constraints

IdGradePath(s)DetailsRequirements
ch-dosage-3errorMedicationRequest.dosageInstruction:baseEntryPatient instruction/free text dosage instruction, or timing and dose/rate has to be specified
: patientInstruction.exists() or (timing.exists() and doseAndRate.exists())
ch-dosage-4errorMedicationRequest.dosageInstruction:baseEntryFor split dosage timing event and dose/rate are required
: sequence.exists() implies (timing.repeat.when.exists() and doseAndRate.dose.exists())
ch-dosage-medreqerrorMedicationRequestIf one dosage element is present, it should not have a sequence number. If more than one dosage element is present, the base entry has the sequence number 1.
: (dosageInstruction.count() > 1 implies dosageInstruction.where($this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-medicationrequest') and sequence = 1).exists()) and (dosageInstruction.count() = 1 implies dosageInstruction.single().sequence.exists().not())
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()
split-dosage-instruction-unit-must-match-base-dosage-instructionerrorMedicationRequestThe unit for doseAndRate of different dosages (split dosage) belonging to the same statement/request/dispense must match.
: (dosageInstruction.count() > 1) implies dosageInstruction.doseAndRate.dose.ofType(Quantity).code.union(dosageInstruction.doseAndRate.dose.ofType(Range).low.code).union(dosageInstruction.doseAndRate.dose.ofType(Range).high.code).union(dosageInstruction.doseAndRate.rate.numerator.code).count() = 1

 

Other representations of profile: CSV, Excel, Schematron