{ "description": null, "_filename": "MedicationAdministration.StructureDefinition.json", "package_name": "synapxe.nde", "date": null, "derivation": "constraint", "publisher": null, "fhirVersion": "5.0.0", "name": "MedicationAdministration", "abstract": false, "type": "MedicationAdministration", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "1.0.0", "status": "draft", "id": "a9f3ee7f-d866-4e0c-8f36-3f487c765d9a", "kind": "resource", "url": "https://fhir.synapxe.sg/StructureDefinition/profile-medicationadministration", "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()" } ], "path": "MedicationAdministration.contained", "min": 1, "definition": "This resource is primarily used for the identification and definition of a medication, including ingredients, for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use.", "short": "Definition of a Medication", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "N/A", "identity": "rim" }, { "map": "Entity, Role, or Act", "identity": "rim" }, { "map": "NewRx/MedicationPrescribed\r-or-\rRxFill/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationPrescribed", "identity": "script10.6" }, { "map": "clinical.medication", "identity": "w5" }, { "map": "ManufacturedProduct[classCode=ADMM]", "identity": "rim" } ], "slicing": { "rules": "open", "discriminator": [ { "path": "type", "type": "value" } ] }, "type": [ { "code": "Resource", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medication" ] } ], "id": "MedicationAdministration.contained" }, { "id": "MedicationAdministration.contained:Medication", "max": "1", "min": 1, "path": "MedicationAdministration.contained", "type": [ { "code": "Resource", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medication" ] } ], "short": "Contained, inline Resources", "sliceName": "Medication", "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": "MedicationAdministration.contained:Device", "max": "1", "path": "MedicationAdministration.contained", "type": [ { "code": "Resource", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-device" ] } ], "short": "Contained, inline Resources", "sliceName": "Device", "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": "MedicationAdministration.extension", "max": "0", "path": "MedicationAdministration.extension" }, { "id": "MedicationAdministration.modifierExtension", "max": "0", "path": "MedicationAdministration.modifierExtension" }, { "id": "MedicationAdministration.identifier", "max": "1", "min": 1, "path": "MedicationAdministration.identifier" }, { "id": "MedicationAdministration.identifier.id", "max": "0", "path": "MedicationAdministration.identifier.id" }, { "id": "MedicationAdministration.identifier.extension", "max": "0", "path": "MedicationAdministration.identifier.extension" }, { "id": "MedicationAdministration.identifier.use", "max": "0", "path": "MedicationAdministration.identifier.use" }, { "id": "MedicationAdministration.identifier.type", "max": "0", "path": "MedicationAdministration.identifier.type" }, { "id": "MedicationAdministration.identifier.system", "min": 1, "path": "MedicationAdministration.identifier.system" }, { "id": "MedicationAdministration.identifier.value", "min": 1, "path": "MedicationAdministration.identifier.value" }, { "id": "MedicationAdministration.identifier.period", "max": "0", "path": "MedicationAdministration.identifier.period" }, { "id": "MedicationAdministration.identifier.assigner", "max": "0", "path": "MedicationAdministration.identifier.assigner" }, { "id": "MedicationAdministration.basedOn", "max": "0", "path": "MedicationAdministration.basedOn" }, { "id": "MedicationAdministration.partOf", "max": "0", "path": "MedicationAdministration.partOf" }, { "id": "MedicationAdministration.statusReason", "max": "0", "path": "MedicationAdministration.statusReason" }, { "id": "MedicationAdministration.category", "max": "0", "path": "MedicationAdministration.category" }, { "id": "MedicationAdministration.medication", "path": "MedicationAdministration.medication", "type": [ { "code": "CodeableReference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medication" ] } ] }, { "id": "MedicationAdministration.medication.id", "max": "0", "path": "MedicationAdministration.medication.id" }, { "id": "MedicationAdministration.medication.extension", "max": "0", "path": "MedicationAdministration.medication.extension" }, { "id": "MedicationAdministration.medication.concept", "max": "0", "path": "MedicationAdministration.medication.concept" }, { "id": "MedicationAdministration.medication.reference", "min": 1, "path": "MedicationAdministration.medication.reference", "type": [ { "code": "Reference", "aggregation": [ "contained" ], "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medication" ] } ] }, { "id": "MedicationAdministration.subject", "path": "MedicationAdministration.subject", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-patient" ] } ] }, { "id": "MedicationAdministration.encounter", "max": "0", "path": "MedicationAdministration.encounter" }, { "id": "MedicationAdministration.supportingInformation", "max": "0", "path": "MedicationAdministration.supportingInformation" }, { "id": "MedicationAdministration.occurence[x]", "path": "MedicationAdministration.occurence[x]", "type": [ { "code": "dateTime" } ] }, { "id": "MedicationAdministration.recorded", "max": "0", "path": "MedicationAdministration.recorded" }, { "id": "MedicationAdministration.isSubPotent", "max": "0", "path": "MedicationAdministration.isSubPotent" }, { "id": "MedicationAdministration.subPotentReason", "max": "0", "path": "MedicationAdministration.subPotentReason" }, { "id": "MedicationAdministration.performer", "min": 1, "path": "MedicationAdministration.performer" }, { "id": "MedicationAdministration.performer.actor", "path": "MedicationAdministration.performer.actor", "type": [ { "code": "CodeableReference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" ] } ] }, { "id": "MedicationAdministration.reason", "max": "0", "path": "MedicationAdministration.reason" }, { "id": "MedicationAdministration.request", "max": "0", "path": "MedicationAdministration.request" }, { "id": "MedicationAdministration.device", "max": "1", "path": "MedicationAdministration.device", "type": [ { "code": "CodeableReference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-device" ] } ] }, { "id": "MedicationAdministration.device.id", "max": "0", "path": "MedicationAdministration.device.id" }, { "id": "MedicationAdministration.device.extension", "max": "0", "path": "MedicationAdministration.device.extension" }, { "id": "MedicationAdministration.device.concept", "max": "0", "path": "MedicationAdministration.device.concept" }, { "id": "MedicationAdministration.device.reference", "min": 1, "path": "MedicationAdministration.device.reference" }, { "id": "MedicationAdministration.note.author[x]", "path": "MedicationAdministration.note.author[x]", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" ] }, { "code": "string" } ] }, { "id": "MedicationAdministration.dosage", "min": 1, "path": "MedicationAdministration.dosage" }, { "id": "MedicationAdministration.dosage.id", "max": "0", "path": "MedicationAdministration.dosage.id" }, { "id": "MedicationAdministration.dosage.extension", "max": "0", "path": "MedicationAdministration.dosage.extension" }, { "id": "MedicationAdministration.dosage.modifierExtension", "max": "0", "path": "MedicationAdministration.dosage.modifierExtension" }, { "id": "MedicationAdministration.dosage.site", "max": "0", "path": "MedicationAdministration.dosage.site" }, { "id": "MedicationAdministration.dosage.method", "max": "0", "path": "MedicationAdministration.dosage.method" }, { "id": "MedicationAdministration.dosage.dose", "min": 1, "path": "MedicationAdministration.dosage.dose" }, { "id": "MedicationAdministration.dosage.dose.id", "max": "0", "path": "MedicationAdministration.dosage.dose.id" }, { "id": "MedicationAdministration.dosage.dose.extension", "max": "0", "path": "MedicationAdministration.dosage.dose.extension" }, { "id": "MedicationAdministration.dosage.dose.value", "min": 1, "path": "MedicationAdministration.dosage.dose.value" }, { "id": "MedicationAdministration.dosage.dose.unit", "min": 1, "path": "MedicationAdministration.dosage.dose.unit" }, { "id": "MedicationAdministration.dosage.dose.system", "min": 1, "path": "MedicationAdministration.dosage.dose.system" }, { "id": "MedicationAdministration.dosage.dose.code", "min": 1, "path": "MedicationAdministration.dosage.dose.code" }, { "id": "MedicationAdministration.dosage.rate[x]", "path": "MedicationAdministration.dosage.rate[x]", "type": [ { "code": "Quantity" } ] }, { "id": "MedicationAdministration.eventHistory", "max": "0", "path": "MedicationAdministration.eventHistory" } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration" }