IHE Pharmacy Medication Record
0.1.0 - ci-build International flag

IHE Pharmacy Medication Record, published by Integrating the Healthcare Enterprise (IHE). This is not an authorized publication; it is the continuous build for version 0.1.0). This version is based on the current content of https://github.com/IHE/pharm-medo/ and changes regularly. See the Directory of published versions

Resource Profile: [Profile] - Treatment Line

Official URL: http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/MedRecordTreatmentLine Version: 0.1.0
Active as of 2023-03-27 Computable Name: MedRecordTreatmentLine

Copyright/Legal: IHE http://www.ihe.net/Governance/#Intellectual_Property

The profile for Medication Treatment Line - a single recorded item/line of a medication treatment

Usage:

Formal Views of Profile Content

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

This structure is derived from MedicationStatement

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*MedicationStatementRecord of medication being taken by a patient
... meta
.... profile 1..*canonical(StructureDefinition)Profiles this resource claims to conform to
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... treatmentPlan S0..1Reference(CarePlan)Extension
URL: http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn
.... valueReference 0..1Reference()Value of extension
... status S1..1coderecorded | entered-in-error | draft
... category S0..*CodeableConceptType of medication statement
... medication S1..1CodeableReference(Medication)What medication was taken
... subject S1..1Reference(Patient | Group)Who is/was taking the medication
... effectiveDateTime S0..1dateTimeThe date/time or interval when the medication is/was/will be taken
... effectivePeriod S0..1PeriodThe date/time or interval when the medication is/was/will be taken
... dateAsserted S0..1dateTimeWhen the usage was asserted?
... informationSource S0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Person or organization that provided the information about the taking of this medication
... note S0..*AnnotationFurther information about the usage
... dosage S0..*DosageDetails of how medication is/was taken or should be taken

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*MedicationStatementRecord of medication being taken by a patient
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... extension 0..0
.... url 1..1uri"http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn"
.... Slices for value[x] 0..1Reference(CarePlan)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 0..1Reference()Value of extension
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier SΣ0..*IdentifierExternal identifier
... status ?!SΣ1..1coderecorded | entered-in-error | draft
Binding: MedicationStatementStatusCodes (required): A coded concept indicating the current status of a MedicationStatement.

... category SΣ0..*CodeableConceptType of medication statement
Binding: MedicationRequestAdministrationLocationCodes (example): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.


... medication SΣ1..1CodeableReference(Medication)What medication was taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying the substance or product being taken.

... subject SΣ1..1Reference(Patient | Group)Who is/was taking the medication
... Slices for effective[x] Σ0..1The date/time or interval when the medication is/was/will be taken
Slice: Unordered, Open by type:$this
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
.... effectiveTimingTiming
.... effective[x]:effectiveDateTime SΣ0..1dateTimeThe date/time or interval when the medication is/was/will be taken
.... effective[x]:effectivePeriod SΣ0..1PeriodThe date/time or interval when the medication is/was/will be taken
... dateAsserted SΣ0..1dateTimeWhen the usage was asserted?
... informationSource S0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Person or organization that provided the information about the taking of this medication
... note S0..*AnnotationFurther information about the usage
... dosage S0..*DosageDetails of how medication is/was taken or should be taken

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
MedicationStatement.statusrequiredMedicationStatementStatusCodes
MedicationStatement.categoryexampleMedicationRequestAdministrationLocationCodes
MedicationStatement.medicationexampleSNOMEDCTMedicationCodes

Constraints

IdGradePath(s)DetailsRequirements
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().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-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..*MedicationStatementRecord of medication being taken by a patient
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
.... id 0..1idUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ0..1idVersion specific identifier
.... lastUpdated Σ0..1instantWhen the resource version last changed
.... source Σ0..1uriIdentifies where the resource comes from
.... profile Σ1..*canonical(StructureDefinition)Profiles this resource claims to conform to
.... security Σ0..*CodingSecurity Labels applied to this resource
Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ0..*CodingTags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... treatmentPlan S0..1Reference(CarePlan)Extension
URL: http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn
.... id 0..1idUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn"
.... Slices for value[x] 0..1Reference(CarePlan)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 0..1Reference()Value of extension
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier SΣ0..*IdentifierExternal identifier
... partOf 0..*Reference(Procedure | MedicationStatement)Part of referenced event
... status ?!SΣ1..1coderecorded | entered-in-error | draft
Binding: MedicationStatementStatusCodes (required): A coded concept indicating the current status of a MedicationStatement.

... category SΣ0..*CodeableConceptType of medication statement
Binding: MedicationRequestAdministrationLocationCodes (example): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.


... medication SΣ1..1CodeableReference(Medication)What medication was taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying the substance or product being taken.

... subject SΣ1..1Reference(Patient | Group)Who is/was taking the medication
... encounter Σ0..1Reference(Encounter)Encounter associated with MedicationStatement
... Slices for effective[x] Σ0..1The date/time or interval when the medication is/was/will be taken
Slice: Unordered, Open by type:$this
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
.... effectiveTimingTiming
.... effective[x]:effectiveDateTime SΣ0..1dateTimeThe date/time or interval when the medication is/was/will be taken
.... effective[x]:effectivePeriod SΣ0..1PeriodThe date/time or interval when the medication is/was/will be taken
... dateAsserted SΣ0..1dateTimeWhen the usage was asserted?
... informationSource S0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Person or organization that provided the information about the taking of this medication
... derivedFrom 0..*Reference(Resource)Link to information used to derive the MedicationStatement
... reason 0..*CodeableReference(Condition | Observation | DiagnosticReport)Reason for why the medication is being/was taken
Binding: ConditionProblemDiagnosisCodes (example): A coded concept identifying why the medication is being taken.


... note S0..*AnnotationFurther information about the usage
... relatedClinicalInformation 0..*Reference(Observation | Condition)Link to information relevant to the usage of a medication
... renderedDosageInstruction 0..1markdownFull representation of the dosage instructions
... dosage S0..*DosageDetails of how medication is/was taken or should be taken
... adherence Σ0..1BackboneElementIndicates whether the medication is or is not being consumed or administered
.... 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
.... code Σ1..1CodeableConceptType of adherence
Binding: MedicationStatementAdherenceCodes (example)
.... reason 0..1CodeableConceptDetails of the reason for the current use of the medication
Binding: SNOMEDCTDrugTherapyStatusCodes (example)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
MedicationStatement.meta.securityextensibleAllSecurityLabels
MedicationStatement.meta.tagexampleCommonTags
MedicationStatement.languagerequiredAllLanguages
MedicationStatement.statusrequiredMedicationStatementStatusCodes
MedicationStatement.categoryexampleMedicationRequestAdministrationLocationCodes
MedicationStatement.medicationexampleSNOMEDCTMedicationCodes
MedicationStatement.reasonexampleConditionProblemDiagnosisCodes
MedicationStatement.adherence.codeexampleMedicationStatementAdherenceCodes
MedicationStatement.adherence.reasonexampleSNOMEDCTDrugTherapyStatusCodes

Constraints

IdGradePath(s)DetailsRequirements
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 MedicationStatement

Summary

Mandatory: 0 element (1 nested mandatory element)
Must-Support: 12 elements

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from MedicationStatement

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*MedicationStatementRecord of medication being taken by a patient
... meta
.... profile 1..*canonical(StructureDefinition)Profiles this resource claims to conform to
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... treatmentPlan S0..1Reference(CarePlan)Extension
URL: http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn
.... valueReference 0..1Reference()Value of extension
... status S1..1coderecorded | entered-in-error | draft
... category S0..*CodeableConceptType of medication statement
... medication S1..1CodeableReference(Medication)What medication was taken
... subject S1..1Reference(Patient | Group)Who is/was taking the medication
... effectiveDateTime S0..1dateTimeThe date/time or interval when the medication is/was/will be taken
... effectivePeriod S0..1PeriodThe date/time or interval when the medication is/was/will be taken
... dateAsserted S0..1dateTimeWhen the usage was asserted?
... informationSource S0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Person or organization that provided the information about the taking of this medication
... note S0..*AnnotationFurther information about the usage
... dosage S0..*DosageDetails of how medication is/was taken or should be taken

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationStatement 0..*MedicationStatementRecord of medication being taken by a patient
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... extension 0..0
.... url 1..1uri"http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn"
.... Slices for value[x] 0..1Reference(CarePlan)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 0..1Reference()Value of extension
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier SΣ0..*IdentifierExternal identifier
... status ?!SΣ1..1coderecorded | entered-in-error | draft
Binding: MedicationStatementStatusCodes (required): A coded concept indicating the current status of a MedicationStatement.

... category SΣ0..*CodeableConceptType of medication statement
Binding: MedicationRequestAdministrationLocationCodes (example): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.


... medication SΣ1..1CodeableReference(Medication)What medication was taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying the substance or product being taken.

... subject SΣ1..1Reference(Patient | Group)Who is/was taking the medication
... Slices for effective[x] Σ0..1The date/time or interval when the medication is/was/will be taken
Slice: Unordered, Open by type:$this
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
.... effectiveTimingTiming
.... effective[x]:effectiveDateTime SΣ0..1dateTimeThe date/time or interval when the medication is/was/will be taken
.... effective[x]:effectivePeriod SΣ0..1PeriodThe date/time or interval when the medication is/was/will be taken
... dateAsserted SΣ0..1dateTimeWhen the usage was asserted?
... informationSource S0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Person or organization that provided the information about the taking of this medication
... note S0..*AnnotationFurther information about the usage
... dosage S0..*DosageDetails of how medication is/was taken or should be taken

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
MedicationStatement.statusrequiredMedicationStatementStatusCodes
MedicationStatement.categoryexampleMedicationRequestAdministrationLocationCodes
MedicationStatement.medicationexampleSNOMEDCTMedicationCodes

Constraints

IdGradePath(s)DetailsRequirements
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().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-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..*MedicationStatementRecord of medication being taken by a patient
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
.... id 0..1idUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ0..1idVersion specific identifier
.... lastUpdated Σ0..1instantWhen the resource version last changed
.... source Σ0..1uriIdentifies where the resource comes from
.... profile Σ1..*canonical(StructureDefinition)Profiles this resource claims to conform to
.... security Σ0..*CodingSecurity Labels applied to this resource
Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ0..*CodingTags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... treatmentPlan S0..1Reference(CarePlan)Extension
URL: http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn
.... id 0..1idUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://profiles.ihe.net/PHARM/ihe.pharm.medicationrecord/StructureDefinition/basedOn"
.... Slices for value[x] 0..1Reference(CarePlan)Value of extension
Slice: Unordered, Closed by type:$this
..... value[x]:valueReference 0..1Reference()Value of extension
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier SΣ0..*IdentifierExternal identifier
... partOf 0..*Reference(Procedure | MedicationStatement)Part of referenced event
... status ?!SΣ1..1coderecorded | entered-in-error | draft
Binding: MedicationStatementStatusCodes (required): A coded concept indicating the current status of a MedicationStatement.

... category SΣ0..*CodeableConceptType of medication statement
Binding: MedicationRequestAdministrationLocationCodes (example): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.


... medication SΣ1..1CodeableReference(Medication)What medication was taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying the substance or product being taken.

... subject SΣ1..1Reference(Patient | Group)Who is/was taking the medication
... encounter Σ0..1Reference(Encounter)Encounter associated with MedicationStatement
... Slices for effective[x] Σ0..1The date/time or interval when the medication is/was/will be taken
Slice: Unordered, Open by type:$this
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
.... effectiveTimingTiming
.... effective[x]:effectiveDateTime SΣ0..1dateTimeThe date/time or interval when the medication is/was/will be taken
.... effective[x]:effectivePeriod SΣ0..1PeriodThe date/time or interval when the medication is/was/will be taken
... dateAsserted SΣ0..1dateTimeWhen the usage was asserted?
... informationSource S0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)Person or organization that provided the information about the taking of this medication
... derivedFrom 0..*Reference(Resource)Link to information used to derive the MedicationStatement
... reason 0..*CodeableReference(Condition | Observation | DiagnosticReport)Reason for why the medication is being/was taken
Binding: ConditionProblemDiagnosisCodes (example): A coded concept identifying why the medication is being taken.


... note S0..*AnnotationFurther information about the usage
... relatedClinicalInformation 0..*Reference(Observation | Condition)Link to information relevant to the usage of a medication
... renderedDosageInstruction 0..1markdownFull representation of the dosage instructions
... dosage S0..*DosageDetails of how medication is/was taken or should be taken
... adherence Σ0..1BackboneElementIndicates whether the medication is or is not being consumed or administered
.... 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
.... code Σ1..1CodeableConceptType of adherence
Binding: MedicationStatementAdherenceCodes (example)
.... reason 0..1CodeableConceptDetails of the reason for the current use of the medication
Binding: SNOMEDCTDrugTherapyStatusCodes (example)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
MedicationStatement.meta.securityextensibleAllSecurityLabels
MedicationStatement.meta.tagexampleCommonTags
MedicationStatement.languagerequiredAllLanguages
MedicationStatement.statusrequiredMedicationStatementStatusCodes
MedicationStatement.categoryexampleMedicationRequestAdministrationLocationCodes
MedicationStatement.medicationexampleSNOMEDCTMedicationCodes
MedicationStatement.reasonexampleConditionProblemDiagnosisCodes
MedicationStatement.adherence.codeexampleMedicationStatementAdherenceCodes
MedicationStatement.adherence.reasonexampleSNOMEDCTDrugTherapyStatusCodes

Constraints

IdGradePath(s)DetailsRequirements
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 MedicationStatement

Summary

Mandatory: 0 element (1 nested mandatory element)
Must-Support: 12 elements

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron