{ "description": null, "_filename": "List.StructureDefinition.json", "package_name": "synapxe.nehr", "date": null, "derivation": "constraint", "publisher": null, "fhirVersion": "5.0.0", "name": "PatientMedicationList", "abstract": false, "type": "List", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "1.0.0", "status": "draft", "id": "16c91adc-63ce-4a80-9108-24510750e49a", "kind": "resource", "url": "https://fhir.synapxe.sg/StructureDefinition/profile-patientmedicationlist", "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": "List.contained", "min": 1, "definition": "Risk of harmful or undesirable physiological response which is specific to an individual and associated with exposure to a substance.", "short": "Allergy or Intolerance (generally: Risk of adverse reaction to a substance)", "mapping": [ { "map": "Entity, Role, or Act", "identity": "rim" }, { "map": "Event", "identity": "workflow" }, { "map": "clinical.medication", "identity": "w5" }, { "map": "SubstanceAdministration", "identity": "rim" }, { "map": "clinical.general", "identity": "w5" }, { "map": "Observation[classCode=OBS, moodCode=EVN]", "identity": "rim" } ], "slicing": { "rules": "open", "discriminator": [ { "path": "$this", "type": "type" } ] }, "alias": [ "MedicationStatement", "Allergy", "Intolerance", "Adverse Reaction" ], "id": "List.contained", "comment": "Substances include, but are not limited to: a therapeutic substance administered correctly at an appropriate dosage for the individual; food; material derived from plants or animals; or venom from insect stings." }, { "id": "List.contained:MedicationStatement", "min": 1, "path": "List.contained", "type": [ { "code": "Resource", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement" ] } ], "short": "Contained, inline Resources", "sliceName": "MedicationStatement", "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": "List.contained:AllergyIntolerance", "path": "List.contained", "type": [ { "code": "Resource", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-allergyintolerance" ] } ], "short": "Contained, inline Resources", "sliceName": "AllergyIntolerance", "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": "List.contained:Flag", "path": "List.contained", "type": [ { "code": "Resource", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-flag" ] } ], "short": "Contained, inline Resources", "sliceName": "Flag", "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": "List.extension", "min": 1, "path": "List.extension" }, { "id": "List.extension:cMISAvailability", "max": "1", "min": 1, "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-cmisavailability" ] } ], "sliceName": "cMISAvailability" }, { "id": "List.extension:assessmentOfMedicationKnowledge", "max": "1", "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-assessmentofmedicationknowledge" ] } ], "sliceName": "assessmentOfMedicationKnowledge" }, { "id": "List.extension:interventions", "max": "1", "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-interventions" ] } ], "sliceName": "interventions" }, { "id": "List.extension:medicationManagementIssues", "max": "1", "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-medicationmanagementissues" ] } ], "sliceName": "medicationManagementIssues" }, { "id": "List.extension:monitoringPlan", "max": "1", "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-monitoringplan" ] } ], "sliceName": "monitoringPlan" }, { "id": "List.extension:reviewedUpon", "max": "1", "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-reviewedupon" ] } ], "sliceName": "reviewedUpon" }, { "id": "List.extension:sourceOfMedicationList", "max": "1", "path": "List.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-sourceofmedicationlist" ] } ], "sliceName": "sourceOfMedicationList" }, { "id": "List.identifier", "max": "1", "min": 1, "path": "List.identifier" }, { "id": "List.identifier.id", "max": "0", "path": "List.identifier.id" }, { "id": "List.identifier.extension", "max": "0", "path": "List.identifier.extension" }, { "id": "List.identifier.use", "max": "0", "path": "List.identifier.use" }, { "id": "List.identifier.type", "max": "0", "path": "List.identifier.type" }, { "id": "List.identifier.system", "min": 1, "path": "List.identifier.system" }, { "id": "List.identifier.value", "min": 1, "path": "List.identifier.value" }, { "id": "List.identifier.period", "max": "0", "path": "List.identifier.period" }, { "id": "List.identifier.assigner", "max": "0", "path": "List.identifier.assigner" }, { "id": "List.mode", "path": "List.mode", "fixedCode": "working" }, { "id": "List.title", "max": "0", "path": "List.title" }, { "id": "List.code", "min": 1, "path": "List.code" }, { "id": "List.code.id", "max": "0", "path": "List.code.id" }, { "id": "List.code.extension", "max": "0", "path": "List.code.extension" }, { "id": "List.code.coding", "max": "1", "min": 1, "path": "List.code.coding" }, { "id": "List.code.coding.id", "max": "0", "path": "List.code.coding.id" }, { "id": "List.code.coding.extension", "max": "0", "path": "List.code.coding.extension" }, { "id": "List.code.coding.system", "min": 1, "path": "List.code.coding.system" }, { "id": "List.code.coding.version", "max": "0", "path": "List.code.coding.version" }, { "id": "List.code.coding.code", "min": 1, "path": "List.code.coding.code" }, { "id": "List.code.coding.display", "min": 1, "path": "List.code.coding.display" }, { "id": "List.code.coding.userSelected", "max": "0", "path": "List.code.coding.userSelected" }, { "id": "List.code.text", "max": "0", "path": "List.code.text" }, { "id": "List.subject", "max": "1", "min": 1, "path": "List.subject", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-patient" ] } ] }, { "id": "List.subject.id", "max": "0", "path": "List.subject.id" }, { "id": "List.subject.extension", "max": "0", "path": "List.subject.extension" }, { "id": "List.subject.identifier.id", "max": "0", "path": "List.subject.identifier.id" }, { "id": "List.subject.identifier.extension", "max": "0", "path": "List.subject.identifier.extension" }, { "id": "List.subject.identifier.use", "max": "0", "path": "List.subject.identifier.use" }, { "id": "List.subject.identifier.type", "max": "0", "path": "List.subject.identifier.type" }, { "id": "List.subject.identifier.system", "min": 1, "path": "List.subject.identifier.system", "fixedUri": "https://fhir.synapxe.sg/NamingSystem/nric" }, { "id": "List.subject.identifier.value", "min": 1, "path": "List.subject.identifier.value" }, { "id": "List.subject.identifier.period", "max": "0", "path": "List.subject.identifier.period" }, { "id": "List.subject.identifier.assigner", "max": "0", "path": "List.subject.identifier.assigner" }, { "id": "List.subject.display", "max": "0", "path": "List.subject.display" }, { "id": "List.encounter", "min": 1, "path": "List.encounter", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-encounter" ] } ] }, { "id": "List.encounter.id", "max": "0", "path": "List.encounter.id" }, { "id": "List.encounter.extension", "max": "0", "path": "List.encounter.extension" }, { "id": "List.encounter.type", "max": "0", "path": "List.encounter.type" }, { "id": "List.encounter.identifier.id", "max": "0", "path": "List.encounter.identifier.id" }, { "id": "List.encounter.identifier.extension", "max": "0", "path": "List.encounter.identifier.extension" }, { "id": "List.encounter.identifier.use", "max": "0", "path": "List.encounter.identifier.use" }, { "id": "List.encounter.identifier.type", "max": "0", "path": "List.encounter.identifier.type" }, { "id": "List.encounter.identifier.system", "min": 1, "path": "List.encounter.identifier.system", "fixedUri": "https://fhir.synapxe.sg/NamingSystem/encounterID" }, { "id": "List.encounter.identifier.value", "min": 1, "path": "List.encounter.identifier.value" }, { "id": "List.encounter.identifier.period", "max": "0", "path": "List.encounter.identifier.period" }, { "id": "List.encounter.identifier.assigner", "max": "0", "path": "List.encounter.identifier.assigner" }, { "id": "List.encounter.display", "max": "0", "path": "List.encounter.display" }, { "id": "List.date", "min": 1, "path": "List.date" }, { "id": "List.source", "min": 1, "path": "List.source", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" ] } ] }, { "id": "List.source.id", "max": "0", "path": "List.source.id" }, { "id": "List.source.extension", "max": "0", "path": "List.source.extension" }, { "id": "List.source.identifier.id", "max": "0", "path": "List.source.identifier.id" }, { "id": "List.source.identifier.extension", "max": "0", "path": "List.source.identifier.extension" }, { "id": "List.source.identifier.use", "max": "0", "path": "List.source.identifier.use" }, { "id": "List.source.identifier.type", "max": "0", "path": "List.source.identifier.type" }, { "id": "List.source.identifier.system", "min": 1, "path": "List.source.identifier.system", "fixedUri": "https://fhir.synapxe.sg/NamingSystem/encounter" }, { "id": "List.source.identifier.value", "min": 1, "path": "List.source.identifier.value" }, { "id": "List.source.identifier.period", "max": "0", "path": "List.source.identifier.period" }, { "id": "List.source.identifier.assigner", "max": "0", "path": "List.source.identifier.assigner" }, { "id": "List.source.display", "max": "0", "path": "List.source.display" }, { "id": "List.orderedBy", "max": "0", "path": "List.orderedBy" }, { "id": "List.note", "min": 1, "path": "List.note" }, { "id": "List.note.id", "max": "0", "path": "List.note.id" }, { "id": "List.note.extension:noteType", "path": "List.note.extension", "type": [ { "code": "Extension", "profile": [ "https://fhir.synapxe.sg/StructureDefinition/ext-notetype" ] } ], "sliceName": "noteType", "isModifier": false }, { "id": "List.note.author[x]", "max": "0", "path": "List.note.author[x]" }, { "id": "List.note.time", "max": "0", "path": "List.note.time" }, { "id": "List.entry", "min": 1, "path": "List.entry", "slicing": { "rules": "open", "discriminator": [ { "path": "item.reference", "type": "type" } ] } }, { "id": "List.entry.id", "max": "0", "path": "List.entry.id" }, { "id": "List.entry.extension", "max": "0", "path": "List.entry.extension" }, { "id": "List.entry.modifierExtension", "max": "0", "path": "List.entry.modifierExtension" }, { "id": "List.entry.flag", "max": "0", "path": "List.entry.flag" }, { "id": "List.entry.deleted", "max": "0", "path": "List.entry.deleted" }, { "id": "List.entry.date", "min": 1, "path": "List.entry.date" }, { "id": "List.entry.item.id", "max": "0", "path": "List.entry.item.id" }, { "id": "List.entry.item.extension", "max": "0", "path": "List.entry.item.extension" }, { "id": "List.entry.item.reference", "min": 1, "path": "List.entry.item.reference" }, { "id": "List.entry.item.type", "max": "0", "path": "List.entry.item.type" }, { "id": "List.entry.item.identifier", "max": "0", "path": "List.entry.item.identifier" }, { "id": "List.entry.item.identifier.id", "max": "0", "path": "List.entry.item.identifier.id" }, { "id": "List.entry.item.identifier.extension", "max": "0", "path": "List.entry.item.identifier.extension" }, { "id": "List.entry.item.identifier.use", "max": "0", "path": "List.entry.item.identifier.use" }, { "id": "List.entry.item.identifier.type", "max": "0", "path": "List.entry.item.identifier.type" }, { "id": "List.entry.item.identifier.system", "min": 1, "path": "List.entry.item.identifier.system" }, { "id": "List.entry.item.identifier.value", "min": 1, "path": "List.entry.item.identifier.value" }, { "id": "List.entry.item.identifier.period", "max": "0", "path": "List.entry.item.identifier.period" }, { "id": "List.entry.item.identifier.assigner", "max": "0", "path": "List.entry.item.identifier.assigner" }, { "id": "List.entry.item.display", "max": "0", "path": "List.entry.item.display" }, { "id": "List.entry:medicationStatement", "min": 1, "path": "List.entry", "sliceName": "medicationStatement" }, { "id": "List.entry:medicationStatement.id", "max": "0", "path": "List.entry.id" }, { "id": "List.entry:medicationStatement.extension", "max": "0", "path": "List.entry.extension" }, { "id": "List.entry:medicationStatement.modifierExtension", "max": "0", "path": "List.entry.modifierExtension" }, { "id": "List.entry:medicationStatement.flag", "max": "0", "path": "List.entry.flag" }, { "id": "List.entry:medicationStatement.deleted", "max": "0", "path": "List.entry.deleted" }, { "id": "List.entry:medicationStatement.date", "min": 1, "path": "List.entry.date" }, { "id": "List.entry:medicationStatement.item", "path": "List.entry.item", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement" ] } ] }, { "id": "List.entry:medicationStatement.item.id", "max": "0", "path": "List.entry.item.id" }, { "id": "List.entry:medicationStatement.item.extension", "max": "0", "path": "List.entry.item.extension" }, { "id": "List.entry:medicationStatement.item.reference", "min": 1, "path": "List.entry.item.reference" }, { "id": "List.entry:medicationStatement.item.type", "max": "0", "path": "List.entry.item.type" }, { "id": "List.entry:medicationStatement.item.identifier", "max": "0", "path": "List.entry.item.identifier" }, { "id": "List.entry:medicationStatement.item.display", "max": "0", "path": "List.entry.item.display" }, { "id": "List.entry:drugAllergy", "path": "List.entry", "sliceName": "drugAllergy" }, { "id": "List.entry:drugAllergy.id", "max": "0", "path": "List.entry.id" }, { "id": "List.entry:drugAllergy.extension", "max": "0", "path": "List.entry.extension" }, { "id": "List.entry:drugAllergy.modifierExtension", "max": "0", "path": "List.entry.modifierExtension" }, { "id": "List.entry:drugAllergy.flag", "max": "0", "path": "List.entry.flag" }, { "id": "List.entry:drugAllergy.deleted", "max": "0", "path": "List.entry.deleted" }, { "id": "List.entry:drugAllergy.date", "min": 1, "path": "List.entry.date" }, { "id": "List.entry:drugAllergy.item", "path": "List.entry.item", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-allergyintolerance" ] } ] }, { "id": "List.entry:drugAllergy.item.id", "max": "0", "path": "List.entry.item.id" }, { "id": "List.entry:drugAllergy.item.extension", "max": "0", "path": "List.entry.item.extension" }, { "id": "List.entry:drugAllergy.item.reference", "min": 1, "path": "List.entry.item.reference" }, { "id": "List.entry:drugAllergy.item.type", "max": "0", "path": "List.entry.item.type" }, { "id": "List.entry:drugAllergy.item.identifier", "max": "0", "path": "List.entry.item.identifier" }, { "id": "List.entry:drugAllergy.item.display", "max": "0", "path": "List.entry.item.display" }, { "id": "List.entry:medicalAlert", "path": "List.entry", "sliceName": "medicalAlert" }, { "id": "List.entry:medicalAlert.id", "max": "0", "path": "List.entry.id" }, { "id": "List.entry:medicalAlert.extension", "max": "0", "path": "List.entry.extension" }, { "id": "List.entry:medicalAlert.modifierExtension", "max": "0", "path": "List.entry.modifierExtension" }, { "id": "List.entry:medicalAlert.flag", "max": "0", "path": "List.entry.flag" }, { "id": "List.entry:medicalAlert.deleted", "max": "0", "path": "List.entry.deleted" }, { "id": "List.entry:medicalAlert.date", "min": 1, "path": "List.entry.date" }, { "id": "List.entry:medicalAlert.item", "path": "List.entry.item", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.synapxe.sg/StructureDefinition/profile-flag" ] } ] }, { "id": "List.entry:medicalAlert.item.id", "max": "0", "path": "List.entry.item.id" }, { "id": "List.entry:medicalAlert.item.extension", "max": "0", "path": "List.entry.item.extension" }, { "id": "List.entry:medicalAlert.item.reference", "min": 1, "path": "List.entry.item.reference" }, { "id": "List.entry:medicalAlert.item.type", "max": "0", "path": "List.entry.item.type" }, { "id": "List.entry:medicalAlert.item.identifier", "max": "0", "path": "List.entry.item.identifier" }, { "id": "List.entry:medicalAlert.item.display", "max": "0", "path": "List.entry.item.display" }, { "id": "List.emptyReason", "max": "0", "path": "List.emptyReason" } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List" }