eMediplan CHMED16AF Implementation Guide:

StructureDefinition: chmed16af-rx-medicationrequest

Formal Views of Profile Content

The official URL for this profile is:

http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-rx-medicationrequest

Profile on MedicationRequest for Prescription

This profile builds on MedicationRequest.

This profile was published on Tue Jun 11 11:36:31 CEST 2019 as a draft by IG eMediplan.

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

This structure is derived from MedicationRequest

Summary

Mandatory: 3 elements (1 nested mandatory element)
Prohibited: 19 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationRequest 0..*Ordering of medication for patient or group
... extension 0..*ExtensionSlice: Unordered, Open by value:url
... chmed16af-privatefield 0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... identifier 0..0
... status 0..0
... intent ?!1..1codeproposal | plan | order | instance-order
Binding: medicationRequest Intent (required)
... category 0..0
... priority 0..0
... medication[x] 1..1Reference(Medication)Medication to be taken
Binding: SNOMEDCTMedicationCodes (example)
... subject 1..1Reference(Patient)Who or group medication request is for
... supportingInformation 0..0
... authoredOn 0..0
... requester 0..0
... recorder 0..0
... reasonCode 0..0
... reasonReference 0..0
... basedOn 0..0
... groupIdentifier 0..0
... note 0..1AnnotationApplication Instructions
... dosageInstruction 0..*DosageChmed16afHow the medication should be taken
... dispenseRequest 0..1BackboneElementMedication supply authorization
.... validityPeriod 0..0
.... numberOfRepeatsAllowed 0..1unsignedIntNumber of refills authorized
.... quantity 0..1SimpleQuantityAmount of medication to supply per dispense
.... expectedSupplyDuration 0..0
.... performer 0..0
... substitution 0..1BackboneElementAny restrictions on medication substitution
.... allowed[x] 1..1booleanWhether substitution is allowed or not
Binding: V3 Value SetActSubstanceAdminSubstitutionCode (example)
.... reason 0..0
... priorPrescription 0..0
... detectedIssue 0..0
... eventHistory 0..0

doco Documentation for this format

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationRequest I0..*Ordering of medication for patient or group
... 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: CommonLanguages (preferred)
Max Binding: AllLanguages
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... chmed16af-privatefield I0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... statusReason 0..1CodeableConceptReason for current status
Binding: medicationRequest Status Reason Codes (example)
... intent ?!Σ1..1codeproposal | plan | order | instance-order
Binding: medicationRequest Intent (required)
... doNotPerform ?!Σ0..1booleanTrue if request is prohibiting action
... reported[x] Σ0..1boolean, Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Reported rather than primary record
... medicationReference Σ1..1Reference(Medication)Medication to be taken
... subject Σ1..1Reference(Patient)Who or group medication request is for
... encounter 0..1Reference(Encounter)Encounter created as part of encounter/admission/stay
... performer 0..1Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam)Intended performer of administration
... performerType Σ0..1CodeableConceptDesired kind of performer of the medication administration
Binding: ProcedurePerformerRoleCodes (example)
... instantiatesCanonical Σ0..*canonical()Instantiates FHIR protocol or definition
... instantiatesUri Σ0..*uriInstantiates external protocol or definition
... courseOfTherapyType 0..1CodeableConceptOverall pattern of medication administration
Binding: medicationRequest Course of Therapy Codes (example)
... insurance 0..*Reference(Coverage | ClaimResponse)Associated insurance coverage
... note 0..1AnnotationApplication Instructions
... dosageInstruction 0..*DosageChmed16afHow the medication should be taken
... dispenseRequest I0..1BackboneElementMedication supply authorization
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... initialFill I0..1BackboneElementFirst fill details
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... quantity 0..1SimpleQuantityFirst fill quantity
..... duration 0..1DurationFirst fill duration
.... dispenseInterval 0..1DurationMinimum period of time between dispenses
.... numberOfRepeatsAllowed 0..1unsignedIntNumber of refills authorized
.... quantity I0..1SimpleQuantityAmount of medication to supply per dispense
... substitution I0..1BackboneElementAny restrictions on medication substitution
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... allowedBoolean 1..1booleanWhether substitution is allowed or not

doco Documentation for this format

This structure is derived from MedicationRequest

Summary

Mandatory: 3 elements (1 nested mandatory element)
Prohibited: 19 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationRequest 0..*Ordering of medication for patient or group
... extension 0..*ExtensionSlice: Unordered, Open by value:url
... chmed16af-privatefield 0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... identifier 0..0
... status 0..0
... intent ?!1..1codeproposal | plan | order | instance-order
Binding: medicationRequest Intent (required)
... category 0..0
... priority 0..0
... medication[x] 1..1Reference(Medication)Medication to be taken
Binding: SNOMEDCTMedicationCodes (example)
... subject 1..1Reference(Patient)Who or group medication request is for
... supportingInformation 0..0
... authoredOn 0..0
... requester 0..0
... recorder 0..0
... reasonCode 0..0
... reasonReference 0..0
... basedOn 0..0
... groupIdentifier 0..0
... note 0..1AnnotationApplication Instructions
... dosageInstruction 0..*DosageChmed16afHow the medication should be taken
... dispenseRequest 0..1BackboneElementMedication supply authorization
.... validityPeriod 0..0
.... numberOfRepeatsAllowed 0..1unsignedIntNumber of refills authorized
.... quantity 0..1SimpleQuantityAmount of medication to supply per dispense
.... expectedSupplyDuration 0..0
.... performer 0..0
... substitution 0..1BackboneElementAny restrictions on medication substitution
.... allowed[x] 1..1booleanWhether substitution is allowed or not
Binding: V3 Value SetActSubstanceAdminSubstitutionCode (example)
.... reason 0..0
... priorPrescription 0..0
... detectedIssue 0..0
... eventHistory 0..0

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationRequest I0..*Ordering of medication for patient or group
... 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: CommonLanguages (preferred)
Max Binding: AllLanguages
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... chmed16af-privatefield I0..*(Complex)Private fields for patient
URL: http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... statusReason 0..1CodeableConceptReason for current status
Binding: medicationRequest Status Reason Codes (example)
... intent ?!Σ1..1codeproposal | plan | order | instance-order
Binding: medicationRequest Intent (required)
... doNotPerform ?!Σ0..1booleanTrue if request is prohibiting action
... reported[x] Σ0..1boolean, Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Reported rather than primary record
... medicationReference Σ1..1Reference(Medication)Medication to be taken
... subject Σ1..1Reference(Patient)Who or group medication request is for
... encounter 0..1Reference(Encounter)Encounter created as part of encounter/admission/stay
... performer 0..1Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam)Intended performer of administration
... performerType Σ0..1CodeableConceptDesired kind of performer of the medication administration
Binding: ProcedurePerformerRoleCodes (example)
... instantiatesCanonical Σ0..*canonical()Instantiates FHIR protocol or definition
... instantiatesUri Σ0..*uriInstantiates external protocol or definition
... courseOfTherapyType 0..1CodeableConceptOverall pattern of medication administration
Binding: medicationRequest Course of Therapy Codes (example)
... insurance 0..*Reference(Coverage | ClaimResponse)Associated insurance coverage
... note 0..1AnnotationApplication Instructions
... dosageInstruction 0..*DosageChmed16afHow the medication should be taken
... dispenseRequest I0..1BackboneElementMedication supply authorization
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... initialFill I0..1BackboneElementFirst fill details
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... quantity 0..1SimpleQuantityFirst fill quantity
..... duration 0..1DurationFirst fill duration
.... dispenseInterval 0..1DurationMinimum period of time between dispenses
.... numberOfRepeatsAllowed 0..1unsignedIntNumber of refills authorized
.... quantity I0..1SimpleQuantityAmount of medication to supply per dispense
... substitution I0..1BackboneElementAny restrictions on medication substitution
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... allowedBoolean 1..1booleanWhether substitution is allowed or not

doco Documentation for this format

 

Constraints

IdPathDetailsRequirements
dom-2MedicationRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-4MedicationRequestIf 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-3MedicationRequestIf 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-6MedicationRequestA resource should have narrative for robust management
: text.div.exists()
dom-5MedicationRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
ele-1MedicationRequest.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1MedicationRequest.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1MedicationRequest.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1MedicationRequest.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1MedicationRequest.dispenseRequestAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1MedicationRequest.dispenseRequest.initialFillAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1MedicationRequest.dispenseRequest.quantityAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
qty-3MedicationRequest.dispenseRequest.quantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1MedicationRequest.dispenseRequest.quantityThe comparator is not used on a SimpleQuantity
: comparator.empty()
ele-1MedicationRequest.substitutionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
.