{
  "resourceType": "StructureDefinition",
  "id": "profile-ed-medicationadministration",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-ed-medicationadministration",
  "title": "Emergency Department Medication Administration Profile",
  "description": "Medication administration profile for recording medications administered to patients during emergency department visits.",
  "name": "MedicationAdministration",
  "publisher": "Synapxe",
  "status": "active",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationAdministration",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationAdministration",
        "path": "MedicationAdministration",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/AdministerLog`: Administration information for the medication item.\n- `content/InfusionOrders/InfuseLog`: Information about performed infusions."
      },
      {
        "id": "MedicationAdministration.contained",
        "path": "MedicationAdministration.contained",
        "max": "1"
      },
      {
        "id": "MedicationAdministration.modifierExtension",
        "path": "MedicationAdministration.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.identifier",
        "path": "MedicationAdministration.identifier",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.identifier.system",
        "path": "MedicationAdministration.identifier.system",
        "patternUri": "https://fhir.synapxe.sg/NamingSystem/sequence-no"
      },
      {
        "id": "MedicationAdministration.basedOn",
        "path": "MedicationAdministration.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.partOf",
        "path": "MedicationAdministration.partOf",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.status",
        "path": "MedicationAdministration.status",
        "patternCode": "completed"
      },
      {
        "id": "MedicationAdministration.statusReason",
        "path": "MedicationAdministration.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.category",
        "path": "MedicationAdministration.category",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/medicationadministration-type"
        }
      },
      {
        "id": "MedicationAdministration.category.coding.system",
        "path": "MedicationAdministration.category.coding.system"
      },
      {
        "id": "MedicationAdministration.medication",
        "path": "MedicationAdministration.medication",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medication"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.medication.id",
        "path": "MedicationAdministration.medication.id",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.medication.extension",
        "path": "MedicationAdministration.medication.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.medication.concept",
        "path": "MedicationAdministration.medication.concept",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/med-code"
        }
      },
      {
        "id": "MedicationAdministration.medication.concept.extension",
        "path": "MedicationAdministration.medication.concept.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.medication.concept.coding.system",
        "path": "MedicationAdministration.medication.concept.coding.system"
      },
      {
        "id": "MedicationAdministration.medication.concept.coding.code",
        "path": "MedicationAdministration.medication.concept.coding.code",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/MedicationId`: Unique identifier of the medication item.\n- `content/InfusionOrders/FluidId`: Unique identifier of the infusion item."
      },
      {
        "id": "MedicationAdministration.medication.concept.coding.display",
        "path": "MedicationAdministration.medication.concept.coding.display",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/MedicationName`: Name of the medication item.\n- `content/InfusionOrders/FluidName`: Name of the infusion item."
      },
      {
        "id": "MedicationAdministration.medication.concept.text",
        "path": "MedicationAdministration.medication.concept.text",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/MedicationName`: Name of the medication item.\n- `content/InfusionOrders/FluidName`: Name of the infusion item."
      },
      {
        "id": "MedicationAdministration.medication.reference",
        "path": "MedicationAdministration.medication.reference",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medication"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.subject",
        "path": "MedicationAdministration.subject",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.subject.display",
        "path": "MedicationAdministration.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.encounter",
        "path": "MedicationAdministration.encounter",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.supportingInformation",
        "path": "MedicationAdministration.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.occurence[x]",
        "path": "MedicationAdministration.occurence[x]",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/AdministerLog/AdministerDateTime`: Date and time when the medication item was administered.\n- `content/InfusionOrders/InfuseLog/PerformDateTime`: Date and time the infusion activity was performed.\n- `content/InfusionOrders/InfuseLog/StartDateTime`: Date and time the infusion was started.",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "MedicationAdministration.recorded",
        "path": "MedicationAdministration.recorded",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.isSubPotent",
        "path": "MedicationAdministration.isSubPotent",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.subPotentReason",
        "path": "MedicationAdministration.subPotentReason",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer",
        "path": "MedicationAdministration.performer",
        "min": 0
      },
      {
        "id": "MedicationAdministration.performer.id",
        "path": "MedicationAdministration.performer.id",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.extension",
        "path": "MedicationAdministration.performer.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.modifierExtension",
        "path": "MedicationAdministration.performer.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.function",
        "path": "MedicationAdministration.performer.function",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/med-admin-perform-function"
        }
      },
      {
        "id": "MedicationAdministration.performer.function.extension",
        "path": "MedicationAdministration.performer.function.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.function.coding.system",
        "path": "MedicationAdministration.performer.function.coding.system"
      },
      {
        "id": "MedicationAdministration.performer.actor",
        "path": "MedicationAdministration.performer.actor",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.performer.actor.concept",
        "path": "MedicationAdministration.performer.actor.concept",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.actor.reference",
        "path": "MedicationAdministration.performer.actor.reference",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/AdministerLog/AdministerBy`: Information of the healthcare professional who administered the medication.\n- `content/MedicationOrders/AdministerLog/CheckBy`: Information of the healthcare professional who checked the medication.\n- `content/InfusionOrders/InfuseLog/PerformBy`: Healthcare professional who performed the infusion activity.\n- `content/InfusionOrders/InfuseLog/StartBy`: Healthcare professional who started the infusion.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.performer.actor.reference.identifier",
        "path": "MedicationAdministration.performer.actor.reference.identifier",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/MedicationOrders/AdministerLog/AdministerBy/Mcr`: Medical Council Registration number.\n- `content/MedicationOrders/AdministerLog/CheckBy/Mcr`: Medical Council Registration number.\n- `content/InfusionOrders/InfuseLog/PerformBy/Mcr`: Medical Council Registration number of the healthcare professional.\n- `content/InfusionOrders/InfuseLog/StartBy/Mcr`: Medical Council Registration number of the healthcare professional."
      },
      {
        "id": "MedicationAdministration.performer.actor.reference.display",
        "path": "MedicationAdministration.performer.actor.reference.display",
        "definition": "Name of the healthcare professional."
      },
      {
        "id": "MedicationAdministration.reason",
        "path": "MedicationAdministration.reason",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.request",
        "path": "MedicationAdministration.request",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-ed-medicationrequest"
            ],
            "aggregation": [
              "contained",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.request.id",
        "path": "MedicationAdministration.request.id",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.request.extension",
        "path": "MedicationAdministration.request.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.request.reference",
        "path": "MedicationAdministration.request.reference",
        "min": 1
      },
      {
        "id": "MedicationAdministration.request.type",
        "path": "MedicationAdministration.request.type",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.request.identifier",
        "path": "MedicationAdministration.request.identifier",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.request.display",
        "path": "MedicationAdministration.request.display",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.device",
        "path": "MedicationAdministration.device",
        "max": "0",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-device"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.device.id",
        "path": "MedicationAdministration.device.id",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.device.extension",
        "path": "MedicationAdministration.device.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.device.concept",
        "path": "MedicationAdministration.device.concept",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.device.reference",
        "path": "MedicationAdministration.device.reference",
        "min": 1
      },
      {
        "id": "MedicationAdministration.note",
        "path": "MedicationAdministration.note",
        "max": "1",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.note.author[x]",
        "path": "MedicationAdministration.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.note.text",
        "path": "MedicationAdministration.note.text",
        "definition": "Remarks for the medication administration."
      },
      {
        "id": "MedicationAdministration.dosage",
        "path": "MedicationAdministration.dosage",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.id",
        "path": "MedicationAdministration.dosage.id",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.extension",
        "path": "MedicationAdministration.dosage.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.modifierExtension",
        "path": "MedicationAdministration.dosage.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.site",
        "path": "MedicationAdministration.dosage.site",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.route",
        "path": "MedicationAdministration.dosage.route",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.dosage.method",
        "path": "MedicationAdministration.dosage.method",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.dose",
        "path": "MedicationAdministration.dosage.dose",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.dose.id",
        "path": "MedicationAdministration.dosage.dose.id",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.dose.extension",
        "path": "MedicationAdministration.dosage.dose.extension",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.dose.value",
        "path": "MedicationAdministration.dosage.dose.value",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.dose.unit",
        "path": "MedicationAdministration.dosage.dose.unit",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.dose.system",
        "path": "MedicationAdministration.dosage.dose.system",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.dose.code",
        "path": "MedicationAdministration.dosage.dose.code",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.rate[x]",
        "path": "MedicationAdministration.dosage.rate[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationAdministration.eventHistory",
        "path": "MedicationAdministration.eventHistory",
        "max": "0"
      }
    ]
  }
}