Spenser - a developer's companion
1.0.0 - STU1 International flag

Spenser - a developer's companion, published by Zeora. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/costateixeira/spenser/tree/master and changes regularly. See the Directory of published versions

Resource Profile: SpenserRequest

Official URL: http://costateixeira.github.io/spenser/StructureDefinition/SpenserRequest Version: 1.0.0
Active as of 2025-06-01 Computable Name: SpenserRequest

Usages:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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
... contained 0..* Resource Contained, inline Resources
... 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: MedicationRequestIntent (required): The kind of medication order.


ele-1: All FHIR elements must have a @value or children
Required Pattern: instance-order
... doNotPerform ?!Σ 0..1 boolean True if patient is to stop taking or not to start taking the medication
ele-1: All FHIR elements must have a @value or children
... medication Σ 1..1 CodeableReference(Medication) Medication to be taken
Binding: Spenser Medications - ValueSet (required)
ele-1: All FHIR elements must have a @value or children
... subject Σ 1..1 Reference(Patient | Group) Individual or group for whom the medication has been requested
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationRequest.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/medicationrequest-status|5.0.0
From the FHIR Standard
MedicationRequest.intentrequiredPattern Value: instance-order
http://hl7.org/fhir/ValueSet/medicationrequest-intent|5.0.0
From the FHIR Standard
MedicationRequest.medicationrequiredSpenserMedsVS(a valid code from Spenser Medications - Code System)
http://costateixeira.github.io/spenser/ValueSet/SpenserMedsVS
From this IG

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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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()

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationRequest 0..* MedicationRequest Ordering of medication for patient or group
... status 1..1 code active | on-hold | ended | stopped | completed | cancelled | entered-in-error | draft | unknown
Required Pattern: active
... intent 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: instance-order
... medication 1..1 CodeableReference(Medication) Medication to be taken
Binding: Spenser Medications - ValueSet (required)
.... concept
..... coding
...... code 1..1 code Symbol in syntax defined by the system
.... quantity
..... value 0..1 decimal Numerical value (with implicit precision)
Required Pattern: 1

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
MedicationRequest.medicationrequiredSpenserMedsVS(a valid code from Spenser Medications - Code System)
http://costateixeira.github.io/spenser/ValueSet/SpenserMedsVS
From this IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationRequest 0..* MedicationRequest Ordering of medication for patient or group
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: AllLanguages (required): IETF language tag for a human language

Additional BindingsPurpose
CommonLanguages Starter
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier 0..* Identifier External ids for this request
... basedOn Σ 0..* Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) A plan or request that is fulfilled in whole or in part by this medication request
... priorPrescription 0..1 Reference(MedicationRequest) Reference to an order/prescription that is being replaced by this MedicationRequest
... groupIdentifier Σ 0..1 Identifier Composite request this is part of
... status ?!Σ 1..1 code active | on-hold | ended | stopped | completed | cancelled | entered-in-error | draft | unknown
Binding: MedicationrequestStatus (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.


Required Pattern: active
... statusReason 0..1 CodeableConcept Reason for current status
Binding: MedicationRequestStatusReasonCodes (example): Identifies the reasons for a given status.

... statusChanged 0..1 dateTime When the status was changed
... intent ?!Σ 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: MedicationRequestIntent (required): The kind of medication order.


Required Pattern: instance-order
... category 0..* CodeableConcept Grouping or category of medication request
Binding: MedicationRequestAdministrationLocationCodes (example): A coded concept identifying where the medication is to be consumed or administered.


... priority Σ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.

... doNotPerform ?!Σ 0..1 boolean True if patient is to stop taking or not to start taking the medication
... medication Σ 1..1 CodeableReference(Medication) Medication to be taken
Binding: Spenser Medications - ValueSet (required)
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... concept Σ 0..1 CodeableConcept Reference to a concept (by class)
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ 0..* Coding Code defined by a terminology system
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 0..1 uri Identity of the terminology system
...... version Σ 0..1 string Version of the system - if relevant
...... code ΣC 1..1 code Symbol in syntax defined by the system
...... display ΣC 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... text Σ 0..1 string Plain text representation of the concept
.... reference Σ 0..1 Reference() Reference to a resource (by instance)
... subject Σ 1..1 Reference(Patient | Group) Individual or group for whom the medication has been requested
... informationSource 0..* Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) The person or organization who provided the information about this request, if the source is someone other than the requestor
... encounter 0..1 Reference(Encounter) Encounter created as part of encounter/admission/stay
... supportingInformation 0..* Reference(Resource) Information to support fulfilling of the medication
... authoredOn Σ 0..1 dateTime When request was initially authored
... requester Σ 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device) Who/What requested the Request
... reported Σ 0..1 boolean Reported rather than primary record
... performerType Σ 0..1 CodeableConcept Desired kind of performer of the medication administration
Binding: MedicationIntendedPerformerRole (extensible): Identifies the type of individual that is desired to administer the medication.

... performer 0..* Reference(Practitioner | PractitionerRole | Organization | Patient | DeviceDefinition | RelatedPerson | CareTeam | HealthcareService) Intended performer of administration
... device 0..* CodeableReference(DeviceDefinition) Intended type of device for the administration
... recorder 0..1 Reference(Practitioner | PractitionerRole) Person who entered the request
... reason 0..* CodeableReference(Condition | Observation) Reason or indication for ordering or not ordering the medication
Binding: ConditionProblemDiagnosisCodes (example): A coded concept indicating why the medication was ordered.


... courseOfTherapyType 0..1 CodeableConcept Overall pattern of medication administration
Binding: MedicationRequestCourseOfTherapyCodes (extensible): Identifies the overall pattern of medication administratio.

... insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
... note 0..* Annotation Information about the prescription
... renderedDosageInstruction 0..1 markdown Full representation of the dosage instructions
... effectiveDosePeriod 0..1 Period Period over which the medication is to be taken
... dosageInstruction 0..* Dosage Specific instructions for how the medication should be taken
... dispenseRequest 0..1 BackboneElement Medication supply authorization
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... initialFill 0..1 BackboneElement First fill details
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... quantity 0..1 SimpleQuantity First fill quantity
..... duration 0..1 Duration First fill duration
.... dispenseInterval 0..1 Duration Minimum period of time between dispenses
.... validityPeriod 0..1 Period Time period supply is authorized for
.... numberOfRepeatsAllowed 0..1 unsignedInt Number of refills authorized
.... quantity 0..1 SimpleQuantity Amount of medication to supply per dispense
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... value Σ 0..1 decimal Numerical value (with implicit precision)
Required Pattern: 1
..... unit Σ 0..1 string Unit representation
..... system ΣC 0..1 uri System that defines coded unit form
..... code ΣC 0..1 code Coded form of the unit
.... expectedSupplyDuration 0..1 Duration Number of days supply per dispense
.... dispenser 0..1 Reference(Organization) Intended performer of dispense
.... dispenserInstruction 0..* Annotation Additional information for the dispenser
.... doseAdministrationAid 0..1 CodeableConcept Type of adherence packaging to use for the dispense
Binding: MedicationDoseAids (example)
... substitution 0..1 BackboneElement Any restrictions on medication substitution
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... allowed[x] 1..1 Whether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (preferred): Identifies the type of substitution allowed.

..... allowedBoolean boolean
..... allowedCodeableConcept CodeableConcept
.... reason 0..1 CodeableConcept Why should (not) substitution be made
Binding: SubstanceAdminSubstitutionReason (example): SubstanceAdminSubstitutionReason

... eventHistory 0..* Reference(Provenance) A list of events of interest in the lifecycle

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationRequest.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
MedicationRequest.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/medicationrequest-status|5.0.0
From the FHIR Standard
MedicationRequest.statusReasonexampleMedicationRequestStatusReasonCodes
http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
From the FHIR Standard
MedicationRequest.intentrequiredPattern Value: instance-order
http://hl7.org/fhir/ValueSet/medicationrequest-intent|5.0.0
From the FHIR Standard
MedicationRequest.categoryexampleMedicationRequestAdministrationLocationCodes
http://hl7.org/fhir/ValueSet/medicationrequest-admin-location
From the FHIR Standard
MedicationRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|5.0.0
From the FHIR Standard
MedicationRequest.medicationrequiredSpenserMedsVS(a valid code from Spenser Medications - Code System)
http://costateixeira.github.io/spenser/ValueSet/SpenserMedsVS
From this IG
MedicationRequest.performerTypeextensibleMedicationIntendedPerformerRole
http://hl7.org/fhir/ValueSet/medication-intended-performer-role
From the FHIR Standard
MedicationRequest.reasonexampleConditionProblemDiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
From the FHIR Standard
MedicationRequest.courseOfTherapyTypeextensibleMedicationRequestCourseOfTherapyCodes
http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
From the FHIR Standard
MedicationRequest.dispenseRequest.doseAdministrationAidexampleMedicationDoseAids
http://hl7.org/fhir/ValueSet/medication-dose-aid
From the FHIR Standard
MedicationRequest.substitution.allowed[x]preferredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationRequest.substitution.reasonexampleSubstanceAdminSubstitutionReason
http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason

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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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()

This structure is derived from MedicationRequest

Summary

Mandatory: 0 element(1 nested mandatory element)

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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
... contained 0..* Resource Contained, inline Resources
... 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: MedicationRequestIntent (required): The kind of medication order.


ele-1: All FHIR elements must have a @value or children
Required Pattern: instance-order
... doNotPerform ?!Σ 0..1 boolean True if patient is to stop taking or not to start taking the medication
ele-1: All FHIR elements must have a @value or children
... medication Σ 1..1 CodeableReference(Medication) Medication to be taken
Binding: Spenser Medications - ValueSet (required)
ele-1: All FHIR elements must have a @value or children
... subject Σ 1..1 Reference(Patient | Group) Individual or group for whom the medication has been requested
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationRequest.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/medicationrequest-status|5.0.0
From the FHIR Standard
MedicationRequest.intentrequiredPattern Value: instance-order
http://hl7.org/fhir/ValueSet/medicationrequest-intent|5.0.0
From the FHIR Standard
MedicationRequest.medicationrequiredSpenserMedsVS(a valid code from Spenser Medications - Code System)
http://costateixeira.github.io/spenser/ValueSet/SpenserMedsVS
From this IG

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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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()

Differential View

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationRequest 0..* MedicationRequest Ordering of medication for patient or group
... status 1..1 code active | on-hold | ended | stopped | completed | cancelled | entered-in-error | draft | unknown
Required Pattern: active
... intent 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: instance-order
... medication 1..1 CodeableReference(Medication) Medication to be taken
Binding: Spenser Medications - ValueSet (required)
.... concept
..... coding
...... code 1..1 code Symbol in syntax defined by the system
.... quantity
..... value 0..1 decimal Numerical value (with implicit precision)
Required Pattern: 1

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
MedicationRequest.medicationrequiredSpenserMedsVS(a valid code from Spenser Medications - Code System)
http://costateixeira.github.io/spenser/ValueSet/SpenserMedsVS
From this IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. MedicationRequest 0..* MedicationRequest Ordering of medication for patient or group
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: AllLanguages (required): IETF language tag for a human language

Additional BindingsPurpose
CommonLanguages Starter
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier 0..* Identifier External ids for this request
... basedOn Σ 0..* Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) A plan or request that is fulfilled in whole or in part by this medication request
... priorPrescription 0..1 Reference(MedicationRequest) Reference to an order/prescription that is being replaced by this MedicationRequest
... groupIdentifier Σ 0..1 Identifier Composite request this is part of
... status ?!Σ 1..1 code active | on-hold | ended | stopped | completed | cancelled | entered-in-error | draft | unknown
Binding: MedicationrequestStatus (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.


Required Pattern: active
... statusReason 0..1 CodeableConcept Reason for current status
Binding: MedicationRequestStatusReasonCodes (example): Identifies the reasons for a given status.

... statusChanged 0..1 dateTime When the status was changed
... intent ?!Σ 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: MedicationRequestIntent (required): The kind of medication order.


Required Pattern: instance-order
... category 0..* CodeableConcept Grouping or category of medication request
Binding: MedicationRequestAdministrationLocationCodes (example): A coded concept identifying where the medication is to be consumed or administered.


... priority Σ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.

... doNotPerform ?!Σ 0..1 boolean True if patient is to stop taking or not to start taking the medication
... medication Σ 1..1 CodeableReference(Medication) Medication to be taken
Binding: Spenser Medications - ValueSet (required)
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... concept Σ 0..1 CodeableConcept Reference to a concept (by class)
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ 0..* Coding Code defined by a terminology system
...... id 0..1 id Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 0..1 uri Identity of the terminology system
...... version Σ 0..1 string Version of the system - if relevant
...... code ΣC 1..1 code Symbol in syntax defined by the system
...... display ΣC 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... text Σ 0..1 string Plain text representation of the concept
.... reference Σ 0..1 Reference() Reference to a resource (by instance)
... subject Σ 1..1 Reference(Patient | Group) Individual or group for whom the medication has been requested
... informationSource 0..* Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) The person or organization who provided the information about this request, if the source is someone other than the requestor
... encounter 0..1 Reference(Encounter) Encounter created as part of encounter/admission/stay
... supportingInformation 0..* Reference(Resource) Information to support fulfilling of the medication
... authoredOn Σ 0..1 dateTime When request was initially authored
... requester Σ 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device) Who/What requested the Request
... reported Σ 0..1 boolean Reported rather than primary record
... performerType Σ 0..1 CodeableConcept Desired kind of performer of the medication administration
Binding: MedicationIntendedPerformerRole (extensible): Identifies the type of individual that is desired to administer the medication.

... performer 0..* Reference(Practitioner | PractitionerRole | Organization | Patient | DeviceDefinition | RelatedPerson | CareTeam | HealthcareService) Intended performer of administration
... device 0..* CodeableReference(DeviceDefinition) Intended type of device for the administration
... recorder 0..1 Reference(Practitioner | PractitionerRole) Person who entered the request
... reason 0..* CodeableReference(Condition | Observation) Reason or indication for ordering or not ordering the medication
Binding: ConditionProblemDiagnosisCodes (example): A coded concept indicating why the medication was ordered.


... courseOfTherapyType 0..1 CodeableConcept Overall pattern of medication administration
Binding: MedicationRequestCourseOfTherapyCodes (extensible): Identifies the overall pattern of medication administratio.

... insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
... note 0..* Annotation Information about the prescription
... renderedDosageInstruction 0..1 markdown Full representation of the dosage instructions
... effectiveDosePeriod 0..1 Period Period over which the medication is to be taken
... dosageInstruction 0..* Dosage Specific instructions for how the medication should be taken
... dispenseRequest 0..1 BackboneElement Medication supply authorization
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... initialFill 0..1 BackboneElement First fill details
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... quantity 0..1 SimpleQuantity First fill quantity
..... duration 0..1 Duration First fill duration
.... dispenseInterval 0..1 Duration Minimum period of time between dispenses
.... validityPeriod 0..1 Period Time period supply is authorized for
.... numberOfRepeatsAllowed 0..1 unsignedInt Number of refills authorized
.... quantity 0..1 SimpleQuantity Amount of medication to supply per dispense
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... value Σ 0..1 decimal Numerical value (with implicit precision)
Required Pattern: 1
..... unit Σ 0..1 string Unit representation
..... system ΣC 0..1 uri System that defines coded unit form
..... code ΣC 0..1 code Coded form of the unit
.... expectedSupplyDuration 0..1 Duration Number of days supply per dispense
.... dispenser 0..1 Reference(Organization) Intended performer of dispense
.... dispenserInstruction 0..* Annotation Additional information for the dispenser
.... doseAdministrationAid 0..1 CodeableConcept Type of adherence packaging to use for the dispense
Binding: MedicationDoseAids (example)
... substitution 0..1 BackboneElement Any restrictions on medication substitution
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... allowed[x] 1..1 Whether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (preferred): Identifies the type of substitution allowed.

..... allowedBoolean boolean
..... allowedCodeableConcept CodeableConcept
.... reason 0..1 CodeableConcept Why should (not) substitution be made
Binding: SubstanceAdminSubstitutionReason (example): SubstanceAdminSubstitutionReason

... eventHistory 0..* Reference(Provenance) A list of events of interest in the lifecycle

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationRequest.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
MedicationRequest.statusrequiredPattern Value: active
http://hl7.org/fhir/ValueSet/medicationrequest-status|5.0.0
From the FHIR Standard
MedicationRequest.statusReasonexampleMedicationRequestStatusReasonCodes
http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
From the FHIR Standard
MedicationRequest.intentrequiredPattern Value: instance-order
http://hl7.org/fhir/ValueSet/medicationrequest-intent|5.0.0
From the FHIR Standard
MedicationRequest.categoryexampleMedicationRequestAdministrationLocationCodes
http://hl7.org/fhir/ValueSet/medicationrequest-admin-location
From the FHIR Standard
MedicationRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|5.0.0
From the FHIR Standard
MedicationRequest.medicationrequiredSpenserMedsVS(a valid code from Spenser Medications - Code System)
http://costateixeira.github.io/spenser/ValueSet/SpenserMedsVS
From this IG
MedicationRequest.performerTypeextensibleMedicationIntendedPerformerRole
http://hl7.org/fhir/ValueSet/medication-intended-performer-role
From the FHIR Standard
MedicationRequest.reasonexampleConditionProblemDiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
From the FHIR Standard
MedicationRequest.courseOfTherapyTypeextensibleMedicationRequestCourseOfTherapyCodes
http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
From the FHIR Standard
MedicationRequest.dispenseRequest.doseAdministrationAidexampleMedicationDoseAids
http://hl7.org/fhir/ValueSet/medication-dose-aid
From the FHIR Standard
MedicationRequest.substitution.allowed[x]preferredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationRequest.substitution.reasonexampleSubstanceAdminSubstitutionReason
http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason

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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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()

This structure is derived from MedicationRequest

Summary

Mandatory: 0 element(1 nested mandatory element)

 

Other representations of profile: CSV, Excel, Schematron