CH EMED EPR
1.0.0 - trial-use Switzerland flag

This page is part of the FHIR eMedication exchange formats for the implementation effort of CARA within its EPR community (v1.0.0: STU1) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Resource Profile: PML MedicationStatement

Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-medicationstatement-list Version: 1.0.0
Draft as of 2024-01-26 Computable Name: CHEMEDEPRMedicationStatementList

Copyright/Legal: CC0-1.0

Definition of the medication statement for the medication list document

Usage:

Formal Views of Profile Content

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

This structure is derived from CHEMEDMedicationStatementList

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement CHEMEDMedicationStatementList
... meta
.... extension D0..*Extension✕ This element is not supported
.... versionId D0..1id✕ This element is not supported
.... lastUpdated D0..1instant✕ This element is not supported
.... source D0..1uri✕ This element is not supported
.... security D0..*Coding✕ This element is not supported
.... tag D0..*Coding✕ This element is not supported
... implicitRules 0..0
... extension 1..*ExtensionExtension
.... id D0..1string✕ This element is not supported
.... value[x]:valueCodeableConcept 1..1CodeableConceptWhether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (required)
..... extension D0..*Extension✕ This element is not supported
..... coding 1..*CodingCode defined by a terminology system
... extension:parentDocument 1..1CHEMEDExtTreatmentPlanCH EMED Extension
... extension:authorDocument 0..1AuthorExtension
.... value[x]:valueReference 1..1Reference(CH EMED EPR PractitionerRole | CH EMED EPR Patient | CH EMED EPR RelatedPerson)Author of the content
... modifierExtension 0..0
... identifier
.... extension D0..*Extension✕ This element is not supported
.... type D0..1CodeableConcept✕ This element is not supported
.... period D0..1Period✕ This element is not supported
.... assigner D0..1Reference(CH EMED EPR Organization)✕ This element will be removed in PML(C) documents
... basedOn D0..*Reference(MedicationRequest | CarePlan | ServiceRequest)✕ This element will be removed in PML(C) documents
... status 1..1codeactive | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken
Required Pattern: active
... statusReason D0..*CodeableConcept✕ This element is not supported
... category D0..1CodeableConcept✕ This element is not supported
... medication[x] 1..1Reference(Medication)What medication was taken
... medication[x]:medicationReference 0..1Reference(CH EMED EPR Medication) {c}Reference to the contained medication
... subject 1..1Reference(CH EMED EPR Patient) {r, b}Patient
.... id D0..1string✕ This element is not supported
.... extension D0..*Extension✕ This element is not supported
... context D0..1Reference(Encounter | EpisodeOfCare)✕ This element will be removed in PML(C) documents
... effective[x] D0..1dateTime, Period✕ Do not use. The effective period is contained in the main dosage
... derivedFrom D0..*Reference(Resource)✕ This element will be removed in PML(C) documents
... reasonCode 0..1CodeableConceptThe treatment reason(s) as text, and optionally coded
.... extension D0..*Extension✕ This element is not supported
.... text 1..1stringPlain text representation of the treatment reason(s)
... reasonReference D0..*Reference(Condition | Observation | DiagnosticReport)✕ This element will be removed in PML(C) documents
... note
.... id D0..1string✕ This element is not supported
.... extension D0..*Extension✕ This element is not supported
.... author[x] D0..1Reference(Practitioner | Patient | RelatedPerson | Organization), string✕ The note author is ignored, as it cannot be different than the document and/or entry's author
.... time D0..1dateTime✕ This element is not supported
.... text 1..1markdownThe annotation text content (as raw text, no markdown allowed).
... dosage:baseEntry 1..1CHEMEDEPRDosageCH EMED Dosage (MedicationStatement / MedicationDispense)
... dosage:additionalEntry 0..*CHEMEDEPRDosageSplitCH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
MedicationStatement.extension:substitution.value[x]:valueCodeableConceptrequiredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*CHEMEDMedicationStatementListCH EMED MedicationStatement (LIST)
... contained 1..*ResourceContained, inline Resources
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... substitution 0..1CodeableConceptWhether the dispenser can substitute the prescribed medicine/package by another that is deemed equivalent, for medical or logistical reasons. By default, substitution is authorized.
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution
Binding: ActSubstanceAdminSubstitutionCode (preferred)
.... id 0..1string✕ This element is not supported
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution"
.... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueCodeableConcept 1..1CodeableConceptWhether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (required)
...... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
...... coding Σ1..*CodingCode defined by a terminology system
... authorDocument 0..1Reference(CH Core Patient | CH Core PractitionerRole | RelatedPerson)Extension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author"
.... Slices for value[x] 1..1Reference()Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 1..1Reference(CH EMED EPR PractitionerRole | CH EMED EPR Patient | CH EMED EPR RelatedPerson)Author of the content
...... time 0..1dateTimeTimestamp of the authorship/data input
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time
...... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
... identifier Σ1..1IdentifierMedicationStatement Identifier
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type Σ0..1CodeableConcept✕ This element is not supported
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value Σ1..1stringIdentifier value as UUID
Example General: 123456
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period Σ0..1Period✕ This element is not supported
.... assigner Σ0..1Reference(CH EMED EPR Organization)✕ This element will be removed in PML(C) documents
... basedOn Σ0..*Reference(MedicationRequest | CarePlan | ServiceRequest)✕ This element will be removed in PML(C) documents
... status ?!Σ1..1codeactive | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken
Binding: Medication Status Codes (required): A coded concept indicating the current status of a MedicationStatement.


Required Pattern: active
... statusReason 0..*CodeableConcept✕ This element is not supported
Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement.


... category Σ0..1CodeableConcept✕ This element is not supported
Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.

... Slices for medication[x] Σ1..1Reference(Medication)What medication was taken
Slice: Unordered, Closed by type:$this
.... medication[x]:medicationReference Σ0..1Reference(CH EMED EPR Medication) {c}Reference to the contained medication
... subject Σ1..1Reference(CH EMED EPR Patient) {r, b}Patient
.... id 0..1string✕ This element is not supported
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
... context Σ0..1Reference(Encounter | EpisodeOfCare)✕ This element will be removed in PML(C) documents
... effective[x] Σ0..1✕ Do not use. The effective period is contained in the main dosage
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... dateAsserted Σ1..1dateTimeWhen the statement was asserted?
... informationSource 1..1Reference(CH EMED PractitionerRole | CH Core Patient EPR | RelatedPerson)The author of the medical decision, see also 'Guidance - Authorship'
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
... derivedFrom 0..*Reference(Resource)✕ This element will be removed in PML(C) documents
... reasonCode 0..1CodeableConceptThe treatment reason(s) as text, and optionally coded
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken.


.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... text Σ1..1stringPlain text representation of the treatment reason(s)
... reasonReference 0..*Reference(Condition | Observation | DiagnosticReport)✕ This element will be removed in PML(C) documents
... Slices for dosage 1..*DosageHow the medication should be taken
Slice: Unordered, Closed by profile:$this
.... dosage:baseEntry C1..1CHEMEDEPRDosageCH EMED Dosage (MedicationStatement / MedicationDispense)
.... dosage:additionalEntry 0..*CHEMEDEPRDosageSplitCH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationStatement.extension:substitution.value[x]:valueCodeableConceptrequiredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationStatement.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
from the FHIR Standard
MedicationStatement.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
MedicationStatement.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1
from the FHIR Standard
MedicationStatement.statusReasonexampleSNOMEDCTDrugTherapyStatusCodes
http://hl7.org/fhir/ValueSet/reason-medication-status-codes
from the FHIR Standard
MedicationStatement.categorypreferredMedication usage category codes
http://hl7.org/fhir/ValueSet/medication-statement-category
from the FHIR Standard
MedicationStatement.reasonCodeexampleCondition/Problem/DiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-dosage-4errorMedicationStatement.dosage:baseEntryFor split dosage timing event and dose/rate are required
: sequence.exists() implies (timing.repeat.when.exists() and doseAndRate.dose.exists())
dom-2errorMedicationStatementIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationStatementIf 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-4errorMedicationStatementIf 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-5errorMedicationStatementIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationStatementA 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()
NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*CHEMEDMedicationStatementListCH EMED MedicationStatement (LIST)
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... versionId Σ0..1id✕ This element is not supported
.... lastUpdated Σ0..1instant✕ This element is not supported
.... source Σ0..1uri✕ This element is not supported
.... profile Σ0..*canonical(StructureDefinition)Profiles this resource claims to conform to
.... security Σ0..*Coding✕ This element is not supported
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ0..*Coding✕ This element is not supported
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... contained 1..*ResourceContained, inline Resources
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... substitution 0..1CodeableConceptWhether the dispenser can substitute the prescribed medicine/package by another that is deemed equivalent, for medical or logistical reasons. By default, substitution is authorized.
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution
Binding: ActSubstanceAdminSubstitutionCode (preferred)
.... id 0..1string✕ This element is not supported
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution"
.... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueCodeableConcept 1..1CodeableConceptWhether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (required)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
...... coding Σ1..*CodingCode defined by a terminology system
...... text Σ0..1stringPlain text representation of the concept
... parentDocument 1..1(Complex)CH EMED Extension
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
... authorDocument 0..1Reference(CH Core Patient | CH Core PractitionerRole | RelatedPerson)Extension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author"
.... Slices for value[x] 1..1Reference()Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 1..1Reference(CH EMED EPR PractitionerRole | CH EMED EPR Patient | CH EMED EPR RelatedPerson)Author of the content
...... id 0..1stringUnique id for inter-element referencing
...... Slices for extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... time 0..1dateTimeTimestamp of the authorship/data input
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time
...... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
...... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

...... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
...... display Σ0..1stringText alternative for the resource
... identifier Σ1..1IdentifierMedicationStatement Identifier
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type Σ0..1CodeableConcept✕ This element is not supported
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value Σ1..1stringIdentifier value as UUID
Example General: 123456
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period Σ0..1Period✕ This element is not supported
.... assigner Σ0..1Reference(CH EMED EPR Organization)✕ This element will be removed in PML(C) documents
... basedOn Σ0..*Reference(MedicationRequest | CarePlan | ServiceRequest)✕ This element will be removed in PML(C) documents
... partOf Σ0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation)Part of referenced event
... status ?!Σ1..1codeactive | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken
Binding: Medication Status Codes (required): A coded concept indicating the current status of a MedicationStatement.


Required Pattern: active
... statusReason 0..*CodeableConcept✕ This element is not supported
Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement.


... category Σ0..1CodeableConcept✕ This element is not supported
Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.

... Slices for medication[x] Σ1..1Reference(Medication)What medication was taken
Slice: Unordered, Closed by type:$this
.... medication[x]:medicationReference Σ0..1Reference(CH EMED EPR Medication) {c}Reference to the contained medication
... subject Σ1..1Reference(CH EMED EPR Patient) {r, b}Patient
.... id 0..1string✕ This element is not supported
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
.... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
.... display Σ0..1stringText alternative for the resource
... context Σ0..1Reference(Encounter | EpisodeOfCare)✕ This element will be removed in PML(C) documents
... effective[x] Σ0..1✕ Do not use. The effective period is contained in the main dosage
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... dateAsserted Σ1..1dateTimeWhen the statement was asserted?
... informationSource 1..1Reference(CH EMED PractitionerRole | CH Core Patient EPR | RelatedPerson)The author of the medical decision, see also 'Guidance - Authorship'
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
.... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
.... display Σ0..1stringText alternative for the resource
... derivedFrom 0..*Reference(Resource)✕ This element will be removed in PML(C) documents
... reasonCode 0..1CodeableConceptThe treatment reason(s) as text, and optionally coded
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken.


.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... coding Σ0..*CodingCode defined by a terminology system
.... text Σ1..1stringPlain text representation of the treatment reason(s)
... reasonReference 0..*Reference(Condition | Observation | DiagnosticReport)✕ This element will be removed in PML(C) documents
... note 0..*AnnotationFurther information about the statement
.... id 0..1string✕ This element is not supported
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... author[x] Σ0..1✕ The note author is ignored, as it cannot be different than the document and/or entry's author
..... authorReferenceReference(Practitioner | Patient | RelatedPerson | Organization)
..... authorStringstring
.... time Σ0..1dateTime✕ This element is not supported
.... text Σ1..1markdownThe annotation text content (as raw text, no markdown allowed).
... Slices for dosage 1..*DosageHow the medication should be taken
Slice: Unordered, Closed by profile:$this
.... dosage:baseEntry C1..1CHEMEDEPRDosageCH EMED Dosage (MedicationStatement / MedicationDispense)
.... dosage:additionalEntry 0..*CHEMEDEPRDosageSplitCH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationStatement.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
MedicationStatement.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
MedicationStatement.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
MedicationStatement.extension:substitution.value[x]:valueCodeableConceptrequiredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationStatement.extension:authorDocument.value[x]:valueReference.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
MedicationStatement.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
from the FHIR Standard
MedicationStatement.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
MedicationStatement.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1
from the FHIR Standard
MedicationStatement.statusReasonexampleSNOMEDCTDrugTherapyStatusCodes
http://hl7.org/fhir/ValueSet/reason-medication-status-codes
from the FHIR Standard
MedicationStatement.categorypreferredMedication usage category codes
http://hl7.org/fhir/ValueSet/medication-statement-category
from the FHIR Standard
MedicationStatement.subject.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
MedicationStatement.informationSource.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
MedicationStatement.reasonCodeexampleCondition/Problem/DiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-dosage-4errorMedicationStatement.dosage:baseEntryFor split dosage timing event and dose/rate are required
: sequence.exists() implies (timing.repeat.when.exists() and doseAndRate.dose.exists())
dom-2errorMedicationStatementIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationStatementIf 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-4errorMedicationStatementIf 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-5errorMedicationStatementIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationStatementA 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 CHEMEDMedicationStatementList

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement CHEMEDMedicationStatementList
... meta
.... extension D0..*Extension✕ This element is not supported
.... versionId D0..1id✕ This element is not supported
.... lastUpdated D0..1instant✕ This element is not supported
.... source D0..1uri✕ This element is not supported
.... security D0..*Coding✕ This element is not supported
.... tag D0..*Coding✕ This element is not supported
... implicitRules 0..0
... extension 1..*ExtensionExtension
.... id D0..1string✕ This element is not supported
.... value[x]:valueCodeableConcept 1..1CodeableConceptWhether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (required)
..... extension D0..*Extension✕ This element is not supported
..... coding 1..*CodingCode defined by a terminology system
... extension:parentDocument 1..1CHEMEDExtTreatmentPlanCH EMED Extension
... extension:authorDocument 0..1AuthorExtension
.... value[x]:valueReference 1..1Reference(CH EMED EPR PractitionerRole | CH EMED EPR Patient | CH EMED EPR RelatedPerson)Author of the content
... modifierExtension 0..0
... identifier
.... extension D0..*Extension✕ This element is not supported
.... type D0..1CodeableConcept✕ This element is not supported
.... period D0..1Period✕ This element is not supported
.... assigner D0..1Reference(CH EMED EPR Organization)✕ This element will be removed in PML(C) documents
... basedOn D0..*Reference(MedicationRequest | CarePlan | ServiceRequest)✕ This element will be removed in PML(C) documents
... status 1..1codeactive | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken
Required Pattern: active
... statusReason D0..*CodeableConcept✕ This element is not supported
... category D0..1CodeableConcept✕ This element is not supported
... medication[x] 1..1Reference(Medication)What medication was taken
... medication[x]:medicationReference 0..1Reference(CH EMED EPR Medication) {c}Reference to the contained medication
... subject 1..1Reference(CH EMED EPR Patient) {r, b}Patient
.... id D0..1string✕ This element is not supported
.... extension D0..*Extension✕ This element is not supported
... context D0..1Reference(Encounter | EpisodeOfCare)✕ This element will be removed in PML(C) documents
... effective[x] D0..1dateTime, Period✕ Do not use. The effective period is contained in the main dosage
... derivedFrom D0..*Reference(Resource)✕ This element will be removed in PML(C) documents
... reasonCode 0..1CodeableConceptThe treatment reason(s) as text, and optionally coded
.... extension D0..*Extension✕ This element is not supported
.... text 1..1stringPlain text representation of the treatment reason(s)
... reasonReference D0..*Reference(Condition | Observation | DiagnosticReport)✕ This element will be removed in PML(C) documents
... note
.... id D0..1string✕ This element is not supported
.... extension D0..*Extension✕ This element is not supported
.... author[x] D0..1Reference(Practitioner | Patient | RelatedPerson | Organization), string✕ The note author is ignored, as it cannot be different than the document and/or entry's author
.... time D0..1dateTime✕ This element is not supported
.... text 1..1markdownThe annotation text content (as raw text, no markdown allowed).
... dosage:baseEntry 1..1CHEMEDEPRDosageCH EMED Dosage (MedicationStatement / MedicationDispense)
... dosage:additionalEntry 0..*CHEMEDEPRDosageSplitCH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
MedicationStatement.extension:substitution.value[x]:valueCodeableConceptrequiredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*CHEMEDMedicationStatementListCH EMED MedicationStatement (LIST)
... contained 1..*ResourceContained, inline Resources
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... substitution 0..1CodeableConceptWhether the dispenser can substitute the prescribed medicine/package by another that is deemed equivalent, for medical or logistical reasons. By default, substitution is authorized.
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution
Binding: ActSubstanceAdminSubstitutionCode (preferred)
.... id 0..1string✕ This element is not supported
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution"
.... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueCodeableConcept 1..1CodeableConceptWhether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (required)
...... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
...... coding Σ1..*CodingCode defined by a terminology system
... authorDocument 0..1Reference(CH Core Patient | CH Core PractitionerRole | RelatedPerson)Extension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author"
.... Slices for value[x] 1..1Reference()Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 1..1Reference(CH EMED EPR PractitionerRole | CH EMED EPR Patient | CH EMED EPR RelatedPerson)Author of the content
...... time 0..1dateTimeTimestamp of the authorship/data input
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time
...... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
... identifier Σ1..1IdentifierMedicationStatement Identifier
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type Σ0..1CodeableConcept✕ This element is not supported
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value Σ1..1stringIdentifier value as UUID
Example General: 123456
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period Σ0..1Period✕ This element is not supported
.... assigner Σ0..1Reference(CH EMED EPR Organization)✕ This element will be removed in PML(C) documents
... basedOn Σ0..*Reference(MedicationRequest | CarePlan | ServiceRequest)✕ This element will be removed in PML(C) documents
... status ?!Σ1..1codeactive | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken
Binding: Medication Status Codes (required): A coded concept indicating the current status of a MedicationStatement.


Required Pattern: active
... statusReason 0..*CodeableConcept✕ This element is not supported
Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement.


... category Σ0..1CodeableConcept✕ This element is not supported
Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.

... Slices for medication[x] Σ1..1Reference(Medication)What medication was taken
Slice: Unordered, Closed by type:$this
.... medication[x]:medicationReference Σ0..1Reference(CH EMED EPR Medication) {c}Reference to the contained medication
... subject Σ1..1Reference(CH EMED EPR Patient) {r, b}Patient
.... id 0..1string✕ This element is not supported
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
... context Σ0..1Reference(Encounter | EpisodeOfCare)✕ This element will be removed in PML(C) documents
... effective[x] Σ0..1✕ Do not use. The effective period is contained in the main dosage
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... dateAsserted Σ1..1dateTimeWhen the statement was asserted?
... informationSource 1..1Reference(CH EMED PractitionerRole | CH Core Patient EPR | RelatedPerson)The author of the medical decision, see also 'Guidance - Authorship'
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
... derivedFrom 0..*Reference(Resource)✕ This element will be removed in PML(C) documents
... reasonCode 0..1CodeableConceptThe treatment reason(s) as text, and optionally coded
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken.


.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... text Σ1..1stringPlain text representation of the treatment reason(s)
... reasonReference 0..*Reference(Condition | Observation | DiagnosticReport)✕ This element will be removed in PML(C) documents
... Slices for dosage 1..*DosageHow the medication should be taken
Slice: Unordered, Closed by profile:$this
.... dosage:baseEntry C1..1CHEMEDEPRDosageCH EMED Dosage (MedicationStatement / MedicationDispense)
.... dosage:additionalEntry 0..*CHEMEDEPRDosageSplitCH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationStatement.extension:substitution.value[x]:valueCodeableConceptrequiredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationStatement.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
from the FHIR Standard
MedicationStatement.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
MedicationStatement.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1
from the FHIR Standard
MedicationStatement.statusReasonexampleSNOMEDCTDrugTherapyStatusCodes
http://hl7.org/fhir/ValueSet/reason-medication-status-codes
from the FHIR Standard
MedicationStatement.categorypreferredMedication usage category codes
http://hl7.org/fhir/ValueSet/medication-statement-category
from the FHIR Standard
MedicationStatement.reasonCodeexampleCondition/Problem/DiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-dosage-4errorMedicationStatement.dosage:baseEntryFor split dosage timing event and dose/rate are required
: sequence.exists() implies (timing.repeat.when.exists() and doseAndRate.dose.exists())
dom-2errorMedicationStatementIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationStatementIf 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-4errorMedicationStatementIf 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-5errorMedicationStatementIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationStatementA 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()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*CHEMEDMedicationStatementListCH EMED MedicationStatement (LIST)
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... versionId Σ0..1id✕ This element is not supported
.... lastUpdated Σ0..1instant✕ This element is not supported
.... source Σ0..1uri✕ This element is not supported
.... profile Σ0..*canonical(StructureDefinition)Profiles this resource claims to conform to
.... security Σ0..*Coding✕ This element is not supported
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ0..*Coding✕ This element is not supported
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... contained 1..*ResourceContained, inline Resources
... Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
... substitution 0..1CodeableConceptWhether the dispenser can substitute the prescribed medicine/package by another that is deemed equivalent, for medical or logistical reasons. By default, substitution is authorized.
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution
Binding: ActSubstanceAdminSubstitutionCode (preferred)
.... id 0..1string✕ This element is not supported
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution"
.... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueCodeableConcept 1..1CodeableConceptWhether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (required)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
...... coding Σ1..*CodingCode defined by a terminology system
...... text Σ0..1stringPlain text representation of the concept
... parentDocument 1..1(Complex)CH EMED Extension
URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
... authorDocument 0..1Reference(CH Core Patient | CH Core PractitionerRole | RelatedPerson)Extension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-author"
.... Slices for value[x] 1..1Reference()Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 1..1Reference(CH EMED EPR PractitionerRole | CH EMED EPR Patient | CH EMED EPR RelatedPerson)Author of the content
...... id 0..1stringUnique id for inter-element referencing
...... Slices for extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... time 0..1dateTimeTimestamp of the authorship/data input
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time
...... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
...... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

...... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
...... display Σ0..1stringText alternative for the resource
... identifier Σ1..1IdentifierMedicationStatement Identifier
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type Σ0..1CodeableConcept✕ This element is not supported
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:ietf:rfc:3986
.... value Σ1..1stringIdentifier value as UUID
Example General: 123456
Example CH EMED: urn:uuid:daa8cd41-34a1-4a9c-9a6d-cd3f850142e9
.... period Σ0..1Period✕ This element is not supported
.... assigner Σ0..1Reference(CH EMED EPR Organization)✕ This element will be removed in PML(C) documents
... basedOn Σ0..*Reference(MedicationRequest | CarePlan | ServiceRequest)✕ This element will be removed in PML(C) documents
... partOf Σ0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation)Part of referenced event
... status ?!Σ1..1codeactive | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken
Binding: Medication Status Codes (required): A coded concept indicating the current status of a MedicationStatement.


Required Pattern: active
... statusReason 0..*CodeableConcept✕ This element is not supported
Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement.


... category Σ0..1CodeableConcept✕ This element is not supported
Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.

... Slices for medication[x] Σ1..1Reference(Medication)What medication was taken
Slice: Unordered, Closed by type:$this
.... medication[x]:medicationReference Σ0..1Reference(CH EMED EPR Medication) {c}Reference to the contained medication
... subject Σ1..1Reference(CH EMED EPR Patient) {r, b}Patient
.... id 0..1string✕ This element is not supported
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
.... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
.... display Σ0..1stringText alternative for the resource
... context Σ0..1Reference(Encounter | EpisodeOfCare)✕ This element will be removed in PML(C) documents
... effective[x] Σ0..1✕ Do not use. The effective period is contained in the main dosage
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... dateAsserted Σ1..1dateTimeWhen the statement was asserted?
... informationSource 1..1Reference(CH EMED PractitionerRole | CH Core Patient EPR | RelatedPerson)The author of the medical decision, see also 'Guidance - Authorship'
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringLiteral reference, Relative, internal or absolute URL
.... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
.... display Σ0..1stringText alternative for the resource
... derivedFrom 0..*Reference(Resource)✕ This element will be removed in PML(C) documents
... reasonCode 0..1CodeableConceptThe treatment reason(s) as text, and optionally coded
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken.


.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... coding Σ0..*CodingCode defined by a terminology system
.... text Σ1..1stringPlain text representation of the treatment reason(s)
... reasonReference 0..*Reference(Condition | Observation | DiagnosticReport)✕ This element will be removed in PML(C) documents
... note 0..*AnnotationFurther information about the statement
.... id 0..1string✕ This element is not supported
.... extension 0..*Extension✕ This element is not supported
Slice: Unordered, Open by value:url
.... author[x] Σ0..1✕ The note author is ignored, as it cannot be different than the document and/or entry's author
..... authorReferenceReference(Practitioner | Patient | RelatedPerson | Organization)
..... authorStringstring
.... time Σ0..1dateTime✕ This element is not supported
.... text Σ1..1markdownThe annotation text content (as raw text, no markdown allowed).
... Slices for dosage 1..*DosageHow the medication should be taken
Slice: Unordered, Closed by profile:$this
.... dosage:baseEntry C1..1CHEMEDEPRDosageCH EMED Dosage (MedicationStatement / MedicationDispense)
.... dosage:additionalEntry 0..*CHEMEDEPRDosageSplitCH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
MedicationStatement.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
MedicationStatement.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
MedicationStatement.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
MedicationStatement.extension:substitution.value[x]:valueCodeableConceptrequiredActSubstanceAdminSubstitutionCode
http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
MedicationStatement.extension:authorDocument.value[x]:valueReference.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
MedicationStatement.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
from the FHIR Standard
MedicationStatement.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
MedicationStatement.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1
from the FHIR Standard
MedicationStatement.statusReasonexampleSNOMEDCTDrugTherapyStatusCodes
http://hl7.org/fhir/ValueSet/reason-medication-status-codes
from the FHIR Standard
MedicationStatement.categorypreferredMedication usage category codes
http://hl7.org/fhir/ValueSet/medication-statement-category
from the FHIR Standard
MedicationStatement.subject.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
MedicationStatement.informationSource.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
MedicationStatement.reasonCodeexampleCondition/Problem/DiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-dosage-4errorMedicationStatement.dosage:baseEntryFor split dosage timing event and dose/rate are required
: sequence.exists() implies (timing.repeat.when.exists() and doseAndRate.dose.exists())
dom-2errorMedicationStatementIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationStatementIf 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-4errorMedicationStatementIf 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-5errorMedicationStatementIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationStatementA 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