Bản hướng dẫn thực thi (IG) dành cho các hệ thống thông tin Y tế tại Việt Nam
1.0.0 - CI Build
Bản hướng dẫn thực thi (IG) dành cho các hệ thống thông tin Y tế tại Việt Nam, published by Cục Công nghệ thông tin - Bộ Y tế. 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/hl7vn/vn-core-ig/ and changes regularly. See the Directory of published versions
Thông tin đánh giá liên quan đến quá trình sử dụng thuốc của người bệnh. Tham khảo thêm: https://www.hl7.org/fhir/medications-module.html
Đường dẫn URL chính thức của Profile này:
http://fhir.ehealth.gov.vn/core/StructureDefinition/vn-core-medication-statement
Profile này được dựa trên Resource MedicationStatementIPS
Summary
Mandatory: 1 element
Must-Support: 4 elements
Structures
This structure refers to these other structures:
Profile này được dựa trên Resource MedicationStatementIPS
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationStatementIPS | Record of medication being taken by a patient | |
![]() ![]() |
S | 0..* | Identifier | External identifier |
![]() ![]() |
1..* | Reference(MedicationRequest | CarePlan | ServiceRequest | MedicationRequest Profile - VN Core R4) | Fulfils plan, proposal or order | |
![]() ![]() |
S | 0..1 | VNCoreCodeableConcept | Type of medication usage |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | Reference(Medication Profile - VN Core R4) | What medication was taken | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | VNCoreCodeableConcept | Code for absent or unknown medication Binding: ValueSet dành cho Mã dược phẩm (extensible) | |
![]() ![]() |
1..1 | Reference(Patient Profile - VN Core R4) | Who is/was taking the medication | |
![]() ![]() |
0..1 | Reference(Encounter Profile - VN Core R4) | Encounter / Episode associated with MedicationStatement | |
![]() ![]() |
S | 0..* | Reference(Resource) | Additional supporting information |
![]() ![]() |
0..* | VNCoreCodeableConcept | Reason for why the medication is being/was taken | |
![]() ![]() |
S | 0..* | Annotation | Further information about the statement |
![]() ![]() |
0..* | VNCoreDosage | Details of how medication is/was taken or should be taken | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
S | 0..* | MedicationStatementIPS | Record of medication being taken by a patient | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 0..* | Identifier | External identifier | ||||
![]() ![]() |
Σ | 1..* | Reference(MedicationRequest | CarePlan | ServiceRequest | MedicationRequest Profile - VN Core R4) | Fulfils plan, proposal or order | ||||
![]() ![]() |
Σ | 0..* | Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation) | Part of referenced event | ||||
![]() ![]() |
?!SΣ | 1..1 | code | active | 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. | ||||
![]() ![]() |
0..* | CodeableConcept | Reason for current status Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement. | |||||
![]() ![]() |
SΣ | 0..1 | VNCoreCodeableConcept | Type of medication usage Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered. | ||||
![]() ![]() |
SΣ | 1..1 | What medication was taken Slice: Unordered, Closed by type:$this Binding: Medications (example) - IPS (example): The type of medication | |||||
![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
Reference(Medication) | |||||||
![]() ![]() ![]() |
SΣ | 0..1 | Reference(Medication Profile - VN Core R4) | What medication was taken | ||||
![]() ![]() ![]() |
S | 0..1 | VNCoreCodeableConcept | Code for absent or unknown medication Binding: ValueSet dành cho Mã dược phẩm (extensible) | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Patient Profile - VN Core R4) | Who is/was taking the medication | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Encounter Profile - VN Core R4) | Encounter / Episode associated with MedicationStatement | ||||
![]() ![]() |
SΣ | 1..1 | The date/time or interval when the medication is/was/will be taken | |||||
![]() ![]() ![]() |
Content/Rules for all Types | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | code | effective[x] absence reason URL: http://hl7.org/fhir/StructureDefinition/data-absent-reason Slice: Unordered, Open by value:url Binding: DataAbsentReason (required) | ||||
![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() |
Period | |||||||
![]() ![]() |
Σ | 0..1 | dateTime | When the statement was asserted? | ||||
![]() ![]() |
S | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | Person or organization that provided the information about the taking of this medication | ||||
![]() ![]() |
S | 0..* | Reference(Resource) | Additional supporting information | ||||
![]() ![]() |
0..* | VNCoreCodeableConcept | Reason for why the medication is being/was taken Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken. | |||||
![]() ![]() |
0..* | Reference(Condition | Observation | DiagnosticReport) | Condition or observation that supports why the medication is being/was taken | |||||
![]() ![]() |
S | 0..* | Annotation | Further information about the statement | ||||
![]() ![]() |
S | 0..* | VNCoreDosage | Details of how medication is/was taken or should be taken | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
Σ | 0..1 | integer | The order of the dosage instructions | ||||
![]() ![]() ![]() |
SΣ | 0..1 | string | Free text dosage instructions e.g. SIG | ||||
![]() ![]() ![]() |
Σ | 0..* | CodeableConcept | Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness" Binding: SNOMEDCTAdditionalDosageInstructions (example): A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery". | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Patient or consumer oriented instructions | ||||
![]() ![]() ![]() |
SΣ | 0..1 | Timing | When medication should be administered | ||||
![]() ![]() ![]() |
Σ | 0..1 | Take "as needed" (for x) Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc. | |||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Body site to administer to Binding: SNOMEDCTAnatomicalStructureForAdministrationSiteCodes (example): A coded concept describing the site location the medicine enters into or onto the body. | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Medicine Route of Administration - IPS (preferred): EDQM Standards Terms | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Technique for administering medication Binding: SNOMEDCTAdministrationMethodCodes (example): A coded concept describing the technique by which the medicine is administered. | ||||
![]() ![]() ![]() |
Σ | 0..* | Element | Amount of medication administered | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | The kind of dose or rate specified Binding: DoseAndRateType (example): The kind of dose or rate specified. | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Amount of medication per dose | |||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity(SimpleQuantity) | |||||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Amount of medication per unit of time | |||||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity(SimpleQuantity) | |||||||
![]() ![]() ![]() |
Σ | 0..1 | Ratio | Upper limit on medication per unit of time | ||||
![]() ![]() ![]() |
Σ | 0..1 | SimpleQuantity | Upper limit on medication per administration | ||||
![]() ![]() ![]() |
Σ | 0..1 | SimpleQuantity | Upper limit on medication per lifetime of the patient | ||||
Documentation for this format | ||||||||
Profile này được dựa trên Resource MedicationStatementIPS
Summary
Mandatory: 1 element
Must-Support: 4 elements
Structures
This structure refers to these other structures:
Differential View
Profile này được dựa trên Resource MedicationStatementIPS
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationStatementIPS | Record of medication being taken by a patient | |
![]() ![]() |
S | 0..* | Identifier | External identifier |
![]() ![]() |
1..* | Reference(MedicationRequest | CarePlan | ServiceRequest | MedicationRequest Profile - VN Core R4) | Fulfils plan, proposal or order | |
![]() ![]() |
S | 0..1 | VNCoreCodeableConcept | Type of medication usage |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | Reference(Medication Profile - VN Core R4) | What medication was taken | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | VNCoreCodeableConcept | Code for absent or unknown medication Binding: ValueSet dành cho Mã dược phẩm (extensible) | |
![]() ![]() |
1..1 | Reference(Patient Profile - VN Core R4) | Who is/was taking the medication | |
![]() ![]() |
0..1 | Reference(Encounter Profile - VN Core R4) | Encounter / Episode associated with MedicationStatement | |
![]() ![]() |
S | 0..* | Reference(Resource) | Additional supporting information |
![]() ![]() |
0..* | VNCoreCodeableConcept | Reason for why the medication is being/was taken | |
![]() ![]() |
S | 0..* | Annotation | Further information about the statement |
![]() ![]() |
0..* | VNCoreDosage | Details of how medication is/was taken or should be taken | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
S | 0..* | MedicationStatementIPS | Record of medication being taken by a patient | ||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 0..* | Identifier | External identifier | ||||
![]() ![]() |
Σ | 1..* | Reference(MedicationRequest | CarePlan | ServiceRequest | MedicationRequest Profile - VN Core R4) | Fulfils plan, proposal or order | ||||
![]() ![]() |
Σ | 0..* | Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation) | Part of referenced event | ||||
![]() ![]() |
?!SΣ | 1..1 | code | active | 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. | ||||
![]() ![]() |
0..* | CodeableConcept | Reason for current status Binding: SNOMEDCTDrugTherapyStatusCodes (example): A coded concept indicating the reason for the status of the statement. | |||||
![]() ![]() |
SΣ | 0..1 | VNCoreCodeableConcept | Type of medication usage Binding: Medication usage category codes (preferred): A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered. | ||||
![]() ![]() |
SΣ | 1..1 | What medication was taken Slice: Unordered, Closed by type:$this Binding: Medications (example) - IPS (example): The type of medication | |||||
![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
Reference(Medication) | |||||||
![]() ![]() ![]() |
SΣ | 0..1 | Reference(Medication Profile - VN Core R4) | What medication was taken | ||||
![]() ![]() ![]() |
S | 0..1 | VNCoreCodeableConcept | Code for absent or unknown medication Binding: ValueSet dành cho Mã dược phẩm (extensible) | ||||
![]() ![]() |
SΣ | 1..1 | Reference(Patient Profile - VN Core R4) | Who is/was taking the medication | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
SΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 0..1 | Reference(Encounter Profile - VN Core R4) | Encounter / Episode associated with MedicationStatement | ||||
![]() ![]() |
SΣ | 1..1 | The date/time or interval when the medication is/was/will be taken | |||||
![]() ![]() ![]() |
Content/Rules for all Types | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
S | 0..1 | code | effective[x] absence reason URL: http://hl7.org/fhir/StructureDefinition/data-absent-reason Slice: Unordered, Open by value:url Binding: DataAbsentReason (required) | ||||
![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() |
Period | |||||||
![]() ![]() |
Σ | 0..1 | dateTime | When the statement was asserted? | ||||
![]() ![]() |
S | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | Person or organization that provided the information about the taking of this medication | ||||
![]() ![]() |
S | 0..* | Reference(Resource) | Additional supporting information | ||||
![]() ![]() |
0..* | VNCoreCodeableConcept | Reason for why the medication is being/was taken Binding: Condition/Problem/DiagnosisCodes (example): A coded concept identifying why the medication is being taken. | |||||
![]() ![]() |
0..* | Reference(Condition | Observation | DiagnosticReport) | Condition or observation that supports why the medication is being/was taken | |||||
![]() ![]() |
S | 0..* | Annotation | Further information about the statement | ||||
![]() ![]() |
S | 0..* | VNCoreDosage | Details of how medication is/was taken or should be taken | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
Σ | 0..1 | integer | The order of the dosage instructions | ||||
![]() ![]() ![]() |
SΣ | 0..1 | string | Free text dosage instructions e.g. SIG | ||||
![]() ![]() ![]() |
Σ | 0..* | CodeableConcept | Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness" Binding: SNOMEDCTAdditionalDosageInstructions (example): A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery". | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Patient or consumer oriented instructions | ||||
![]() ![]() ![]() |
SΣ | 0..1 | Timing | When medication should be administered | ||||
![]() ![]() ![]() |
Σ | 0..1 | Take "as needed" (for x) Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc. | |||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Body site to administer to Binding: SNOMEDCTAnatomicalStructureForAdministrationSiteCodes (example): A coded concept describing the site location the medicine enters into or onto the body. | ||||
![]() ![]() ![]() |
S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Medicine Route of Administration - IPS (preferred): EDQM Standards Terms | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Technique for administering medication Binding: SNOMEDCTAdministrationMethodCodes (example): A coded concept describing the technique by which the medicine is administered. | ||||
![]() ![]() ![]() |
Σ | 0..* | Element | Amount of medication administered | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | The kind of dose or rate specified Binding: DoseAndRateType (example): The kind of dose or rate specified. | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Amount of medication per dose | |||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity(SimpleQuantity) | |||||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Amount of medication per unit of time | |||||
![]() ![]() ![]() ![]() ![]() |
Ratio | |||||||
![]() ![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity(SimpleQuantity) | |||||||
![]() ![]() ![]() |
Σ | 0..1 | Ratio | Upper limit on medication per unit of time | ||||
![]() ![]() ![]() |
Σ | 0..1 | SimpleQuantity | Upper limit on medication per administration | ||||
![]() ![]() ![]() |
Σ | 0..1 | SimpleQuantity | Upper limit on medication per lifetime of the patient | ||||
Documentation for this format | ||||||||
Hình thức mô tả khác: Schematron
| Path | Status | Usage | ValueSet | Version | Source |
| MedicationStatement.language | Base | preferred | Common Languages | 📦4.0.1 | FHIR Std. |
| MedicationStatement.status | Base | required | Medication status codes | 📍4.0.1 | FHIR Std. |
| MedicationStatement.statusReason | Base | example | SNOMED CT Drug Therapy Status codes | 📦4.0.1 | FHIR Std. |
| MedicationStatement.category | Base | preferred | Medication usage category codes | 📦4.0.1 | FHIR Std. |
| MedicationStatement.medication[x] | Base | example | Medications (example) - IPS | 📦1.0.0 | International Patient Summary Implementation Guide v1.0 |
| MedicationStatement.medication[x]:medicationCodeableConcept | Base | extensible | ValueSet dành cho Mã dược phẩm | 📦1.0.0 | This IG |
| MedicationStatement.subject.type | Base | extensible | ResourceType | 📦4.0.1 | FHIR Std. |
| MedicationStatement.reasonCode | Base | example | Condition/Problem/Diagnosis Codes | 📦4.0.1 | FHIR Std. |
| MedicationStatement.dosage.additionalInstruction | Base | example | SNOMED CT Additional Dosage Instructions | 📦4.0.1 | FHIR Std. |
| MedicationStatement.dosage.asNeeded[x] | Base | example | SNOMED CT Medication As Needed Reason Codes | 📦4.0.1 | FHIR Std. |
| MedicationStatement.dosage.site | Base | example | SNOMED CT Anatomical Structure for Administration Site Codes | 📦4.0.1 | FHIR Std. |
| MedicationStatement.dosage.route | Base | preferred | Medicine Route of Administration - IPS | 📦1.0.0 | International Patient Summary Implementation Guide v1.0 |
| MedicationStatement.dosage.method | Base | example | SNOMED CT Administration Method Codes | 📦4.0.1 | FHIR Std. |
| MedicationStatement.dosage.doseAndRate.type | Base | example | DoseAndRateType | 📦4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | MedicationStatement | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | MedicationStatement | 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 |
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-4 | error | MedicationStatement | If 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-5 | error | MedicationStatement | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | MedicationStatement | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|