{
"description": null,
"_filename": "profile-medicationstatement.StructureDefinition.json",
"package_name": "synapxe.sgcdi",
"date": null,
"derivation": "constraint",
"publisher": null,
"fhirVersion": "5.0.0",
"name": "MedicationStatement",
"abstract": false,
"type": "MedicationStatement",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "1.0.8",
"status": "active",
"id": "cc426f8b-a5ca-49b7-a92f-3031970999c4",
"kind": "resource",
"url": "https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement",
"version": null,
"differential": {
"element": [ {
"constraint": [ {
"key": "dom-2",
"human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
"severity": "error",
"expression": "contained.contained.empty()"
}, {
"key": "dom-4",
"human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
"severity": "error",
"expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
}, {
"key": "dom-3",
"human": "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",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
"severity": "error",
"expression": "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()"
}, {
"key": "dom-6",
"human": "A resource should have narrative for robust management",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
"severity": "warning",
"expression": "text.`div`.exists()"
}, {
"key": "dom-5",
"human": "If a resource is contained in another resource, it SHALL NOT have a security label",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
"severity": "error",
"expression": "contained.meta.security.empty()"
}, {
"key": "mdd-1",
"human": "whenHandedOver cannot be before whenPrepared",
"source": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
"severity": "error",
"expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared"
} ],
"path": "MedicationStatement.contained",
"min": 1,
"definition": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.",
"short": "Ordering of medication for patient or group",
"mapping": [ {
"map": "Request",
"identity": "workflow"
}, {
"map": "clinical.medication",
"identity": "w5"
}, {
"map": "Message/Body/NewRx",
"identity": "script10.6"
} ],
"slicing": {
"rules": "open",
"discriminator": [ {
"path": "$this",
"type": "type"
} ]
},
"alias": [ "Prescription", "Order" ],
"id": "MedicationStatement.contained"
}, {
"id": "MedicationStatement.contained:MedicationRequest",
"max": "1",
"min": 1,
"path": "MedicationStatement.contained",
"type": [ {
"code": "Resource",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest" ]
} ],
"short": "Contained, inline Resources",
"sliceName": "MedicationRequest",
"definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."
}, {
"id": "MedicationStatement.contained:MedicationDispense",
"max": "1",
"min": 1,
"path": "MedicationStatement.contained",
"type": [ {
"code": "Resource",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense" ]
} ],
"short": "Contained, inline Resources",
"sliceName": "MedicationDispense",
"definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."
}, {
"id": "MedicationStatement.contained:Medication",
"max": "1",
"min": 1,
"path": "MedicationStatement.contained",
"type": [ {
"code": "Resource",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medication" ]
} ],
"sliceName": "Medication"
}, {
"id": "MedicationStatement.extension",
"min": 3,
"path": "MedicationStatement.extension"
}, {
"id": "MedicationStatement.extension:sequenceNo",
"max": "1",
"min": 1,
"path": "MedicationStatement.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno" ]
} ],
"sliceName": "sequenceNo"
}, {
"id": "MedicationStatement.extension:groupNo",
"max": "1",
"min": 1,
"path": "MedicationStatement.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-groupNo" ]
} ],
"sliceName": "groupNo"
}, {
"id": "MedicationStatement.extension:groupSequenceNo",
"max": "1",
"min": 1,
"path": "MedicationStatement.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-groupSequenceNo" ]
} ],
"sliceName": "groupSequenceNo"
}, {
"id": "MedicationStatement.extension:changesMade",
"max": "1",
"path": "MedicationStatement.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-changesMade" ]
} ],
"sliceName": "changesMade"
}, {
"id": "MedicationStatement.extension:reasonForChange",
"max": "1",
"path": "MedicationStatement.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-reasonForChange" ]
} ],
"sliceName": "reasonForChange"
}, {
"id": "MedicationStatement.modifierExtension",
"max": "0",
"path": "MedicationStatement.modifierExtension"
}, {
"id": "MedicationStatement.identifier",
"max": "1",
"min": 1,
"path": "MedicationStatement.identifier",
"type": [ {
"code": "Identifier",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-identifier" ]
} ]
}, {
"id": "MedicationStatement.partOf",
"max": "0",
"path": "MedicationStatement.partOf"
}, {
"id": "MedicationStatement.category",
"max": "0",
"path": "MedicationStatement.category"
}, {
"id": "MedicationStatement.medication.id",
"max": "0",
"path": "MedicationStatement.medication.id"
}, {
"id": "MedicationStatement.medication.extension",
"max": "0",
"path": "MedicationStatement.medication.extension"
}, {
"id": "MedicationStatement.medication.concept",
"max": "0",
"path": "MedicationStatement.medication.concept"
}, {
"id": "MedicationStatement.medication.reference",
"min": 1,
"path": "MedicationStatement.medication.reference"
}, {
"id": "MedicationStatement.medication.reference.id",
"max": "0",
"path": "MedicationStatement.medication.reference.id"
}, {
"id": "MedicationStatement.medication.reference.extension",
"max": "0",
"path": "MedicationStatement.medication.reference.extension"
}, {
"id": "MedicationStatement.medication.reference.reference",
"min": 1,
"path": "MedicationStatement.medication.reference.reference"
}, {
"id": "MedicationStatement.medication.reference.type",
"max": "0",
"path": "MedicationStatement.medication.reference.type"
}, {
"id": "MedicationStatement.medication.reference.identifier",
"max": "0",
"path": "MedicationStatement.medication.reference.identifier"
}, {
"id": "MedicationStatement.medication.reference.display",
"max": "0",
"path": "MedicationStatement.medication.reference.display"
}, {
"id": "MedicationStatement.subject",
"path": "MedicationStatement.subject",
"type": [ {
"code": "Reference",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient" ],
"targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-patient" ]
} ]
}, {
"id": "MedicationStatement.encounter",
"max": "0",
"path": "MedicationStatement.encounter"
}, {
"id": "MedicationStatement.effective[x]",
"max": "0",
"path": "MedicationStatement.effective[x]"
}, {
"id": "MedicationStatement.dateAsserted",
"min": 1,
"path": "MedicationStatement.dateAsserted"
}, {
"id": "MedicationStatement.informationSource",
"max": "1",
"path": "MedicationStatement.informationSource"
}, {
"id": "MedicationStatement.derivedFrom",
"min": 1,
"path": "MedicationStatement.derivedFrom",
"slicing": {
"rules": "open",
"discriminator": [ {
"path": "reference",
"type": "type"
} ]
}
}, {
"id": "MedicationStatement.derivedFrom.id",
"max": "0",
"path": "MedicationStatement.derivedFrom.id"
}, {
"id": "MedicationStatement.derivedFrom.extension",
"max": "0",
"path": "MedicationStatement.derivedFrom.extension"
}, {
"id": "MedicationStatement.derivedFrom.reference",
"min": 1,
"path": "MedicationStatement.derivedFrom.reference"
}, {
"id": "MedicationStatement.derivedFrom.type",
"max": "0",
"path": "MedicationStatement.derivedFrom.type"
}, {
"id": "MedicationStatement.derivedFrom.identifier",
"max": "0",
"path": "MedicationStatement.derivedFrom.identifier"
}, {
"id": "MedicationStatement.derivedFrom.display",
"max": "0",
"path": "MedicationStatement.derivedFrom.display"
}, {
"id": "MedicationStatement.derivedFrom:MedicationRequest",
"max": "1",
"min": 1,
"path": "MedicationStatement.derivedFrom",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest" ]
} ],
"sliceName": "MedicationRequest"
}, {
"id": "MedicationStatement.derivedFrom:MedicationRequest.id",
"max": "0",
"path": "MedicationStatement.derivedFrom.id"
}, {
"id": "MedicationStatement.derivedFrom:MedicationRequest.extension",
"max": "0",
"path": "MedicationStatement.derivedFrom.extension"
}, {
"id": "MedicationStatement.derivedFrom:MedicationDispense",
"max": "1",
"min": 1,
"path": "MedicationStatement.derivedFrom",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense" ]
} ],
"sliceName": "MedicationDispense"
}, {
"id": "MedicationStatement.derivedFrom:MedicationDispense.id",
"max": "0",
"path": "MedicationStatement.derivedFrom.id"
}, {
"id": "MedicationStatement.derivedFrom:MedicationDispense.extension",
"max": "0",
"path": "MedicationStatement.derivedFrom.extension"
}, {
"id": "MedicationStatement.reason",
"max": "1",
"min": 1,
"path": "MedicationStatement.reason"
}, {
"id": "MedicationStatement.reason.id",
"max": "0",
"path": "MedicationStatement.reason.id"
}, {
"id": "MedicationStatement.reason.extension",
"max": "0",
"path": "MedicationStatement.reason.extension"
}, {
"id": "MedicationStatement.reason.concept",
"min": 1,
"path": "MedicationStatement.reason.concept",
"type": [ {
"code": "CodeableConcept",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" ]
} ]
}, {
"id": "MedicationStatement.reason.concept.extension",
"max": "0",
"path": "MedicationStatement.reason.concept.extension"
}, {
"id": "MedicationStatement.reason.concept.coding.version",
"max": "0",
"path": "MedicationStatement.reason.concept.coding.version"
}, {
"id": "MedicationStatement.note",
"max": "1",
"min": 1,
"path": "MedicationStatement.note",
"type": [ {
"code": "Annotation",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-annotation" ]
} ]
}, {
"id": "MedicationStatement.relatedClinicalInformation",
"max": "0",
"path": "MedicationStatement.relatedClinicalInformation"
}, {
"id": "MedicationStatement.renderedDosageInstruction",
"max": "0",
"path": "MedicationStatement.renderedDosageInstruction"
}, {
"id": "MedicationStatement.dosage",
"max": "1",
"min": 1,
"path": "MedicationStatement.dosage"
}, {
"id": "MedicationStatement.dosage.id",
"max": "0",
"path": "MedicationStatement.dosage.id"
}, {
"id": "MedicationStatement.dosage.extension",
"max": "0",
"path": "MedicationStatement.dosage.extension"
}, {
"id": "MedicationStatement.dosage.modifierExtension",
"max": "0",
"path": "MedicationStatement.dosage.modifierExtension"
}, {
"id": "MedicationStatement.dosage.sequence",
"max": "0",
"path": "MedicationStatement.dosage.sequence"
}, {
"id": "MedicationStatement.dosage.text",
"min": 1,
"path": "MedicationStatement.dosage.text"
}, {
"id": "MedicationStatement.dosage.additionalInstruction",
"max": "0",
"path": "MedicationStatement.dosage.additionalInstruction"
}, {
"id": "MedicationStatement.dosage.patientInstruction",
"max": "0",
"path": "MedicationStatement.dosage.patientInstruction"
}, {
"id": "MedicationStatement.dosage.timing",
"max": "0",
"path": "MedicationStatement.dosage.timing"
}, {
"id": "MedicationStatement.dosage.asNeeded",
"max": "0",
"path": "MedicationStatement.dosage.asNeeded"
}, {
"id": "MedicationStatement.dosage.asNeededFor",
"max": "1",
"min": 1,
"path": "MedicationStatement.dosage.asNeededFor",
"type": [ {
"code": "CodeableConcept",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" ]
} ]
}, {
"id": "MedicationStatement.dosage.asNeededFor.extension",
"max": "0",
"path": "MedicationStatement.dosage.asNeededFor.extension"
}, {
"id": "MedicationStatement.dosage.asNeededFor.coding.version",
"max": "0",
"path": "MedicationStatement.dosage.asNeededFor.coding.version"
}, {
"id": "MedicationStatement.dosage.site",
"max": "0",
"path": "MedicationStatement.dosage.site"
}, {
"id": "MedicationStatement.dosage.route",
"min": 1,
"path": "MedicationStatement.dosage.route",
"type": [ {
"code": "CodeableConcept",
"profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" ]
} ]
}, {
"id": "MedicationStatement.dosage.route.extension",
"max": "0",
"path": "MedicationStatement.dosage.route.extension"
}, {
"id": "MedicationStatement.dosage.route.coding.version",
"max": "0",
"path": "MedicationStatement.dosage.route.coding.version"
}, {
"id": "MedicationStatement.dosage.method",
"max": "0",
"path": "MedicationStatement.dosage.method"
}, {
"id": "MedicationStatement.dosage.doseAndRate",
"max": "1",
"min": 1,
"path": "MedicationStatement.dosage.doseAndRate"
}, {
"id": "MedicationStatement.dosage.doseAndRate.id",
"max": "0",
"path": "MedicationStatement.dosage.doseAndRate.id"
}, {
"id": "MedicationStatement.dosage.doseAndRate.extension",
"max": "0",
"path": "MedicationStatement.dosage.doseAndRate.extension"
}, {
"id": "MedicationStatement.dosage.doseAndRate.type",
"max": "0",
"path": "MedicationStatement.dosage.doseAndRate.type"
}, {
"id": "MedicationStatement.dosage.doseAndRate.dose[x]",
"min": 1,
"path": "MedicationStatement.dosage.doseAndRate.dose[x]",
"type": [ {
"code": "Range"
} ]
}, {
"id": "MedicationStatement.dosage.doseAndRate.rate[x]",
"max": "0",
"path": "MedicationStatement.dosage.doseAndRate.rate[x]"
}, {
"id": "MedicationStatement.dosage.maxDosePerPeriod",
"max": "0",
"path": "MedicationStatement.dosage.maxDosePerPeriod"
}, {
"id": "MedicationStatement.dosage.maxDosePerAdministration",
"max": "0",
"path": "MedicationStatement.dosage.maxDosePerAdministration"
}, {
"id": "MedicationStatement.dosage.maxDosePerLifetime",
"max": "0",
"path": "MedicationStatement.dosage.maxDosePerLifetime"
}, {
"id": "MedicationStatement.adherence",
"max": "0",
"path": "MedicationStatement.adherence"
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
}