{
  "resourceType": "StructureDefinition",
  "id": "RE03",
  "language": "Danish",
  "url": "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE03",
  "name": "PrehospitalDataInEHRMedicationAdministrationGivenMedicineprofile",
  "status": "draft",
  "description": "This profile originates from the page Medicine in the pre-hospital patient journal (PPJ). The registration contains the medication including the specific substance given to the patient.",
  "purpose": "This profile has the purpose to register the medication given to the patient.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "w3c.prov",
      "uri": "http://www.w3.org/ns/prov",
      "name": "W3C PROV"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationAdministration",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationAdministration",
        "path": "MedicationAdministration",
        "definition": "This profile originates from the page Medicine in the pre-hospital patient journal (PPJ). The registration contains the medication including the specific substance given to the patient."
      },
      {
        "id": "MedicationAdministration.identifier",
        "path": "MedicationAdministration.identifier",
        "short": "Danish social security number (CPR)",
        "comment": "This is a business identifier, not a resource identifier. The identifier is an ID from the prehospital patient journal.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationAdministration.identifier.use",
        "path": "MedicationAdministration.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.identifier.type",
        "path": "MedicationAdministration.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.identifier.type.coding",
        "path": "MedicationAdministration.identifier.type.coding",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.identifier.system",
        "path": "MedicationAdministration.identifier.system",
        "short": "Entry to Danish social security number database",
        "min": 1
      },
      {
        "id": "MedicationAdministration.identifier.value",
        "path": "MedicationAdministration.identifier.value",
        "short": "Unique identifier of 10 digits",
        "min": 1
      },
      {
        "id": "MedicationAdministration.identifier.period",
        "path": "MedicationAdministration.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.identifier.assigner",
        "path": "MedicationAdministration.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.instantiates",
        "path": "MedicationAdministration.instantiates",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.partOf",
        "path": "MedicationAdministration.partOf",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.status",
        "path": "MedicationAdministration.status",
        "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. Due to status being mandatory, the status has the fixed value \"completed\".",
        "fixedCode": "completed"
      },
      {
        "id": "MedicationAdministration.statusReason",
        "path": "MedicationAdministration.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.category",
        "path": "MedicationAdministration.category",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.medication[x]",
        "path": "MedicationAdministration.medication[x]",
        "short": "The medication that was administered",
        "comment": "The element refers to a Medication-profile, that contains information regarding the medication, including the specific substances.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE04"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.subject",
        "path": "MedicationAdministration.subject",
        "short": "The patient who received medication",
        "definition": "The patient receiving the medication.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE09"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.subject.reference",
        "path": "MedicationAdministration.subject.reference",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.subject.type",
        "path": "MedicationAdministration.subject.type",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.subject.identifier",
        "path": "MedicationAdministration.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.subject.display",
        "path": "MedicationAdministration.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.context",
        "path": "MedicationAdministration.context",
        "short": "Encounter the medication was administered as part of",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE02"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.context.reference",
        "path": "MedicationAdministration.context.reference",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.context.type",
        "path": "MedicationAdministration.context.type",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.context.identifier",
        "path": "MedicationAdministration.context.identifier",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.context.display",
        "path": "MedicationAdministration.context.display",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.supportingInformation",
        "path": "MedicationAdministration.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.effective[x]",
        "path": "MedicationAdministration.effective[x]",
        "comment": "Timestamp for administration of the given medication.",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationAdministration.performer",
        "path": "MedicationAdministration.performer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationAdministration.performer.function",
        "path": "MedicationAdministration.performer.function",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.actor",
        "path": "MedicationAdministration.performer.actor",
        "definition": "Indicates the practitioner who performed the medication administration.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE12"
            ]
          }
        ]
      },
      {
        "id": "MedicationAdministration.performer.actor.reference",
        "path": "MedicationAdministration.performer.actor.reference",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.actor.type",
        "path": "MedicationAdministration.performer.actor.type",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.actor.identifier",
        "path": "MedicationAdministration.performer.actor.identifier",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.performer.actor.display",
        "path": "MedicationAdministration.performer.actor.display",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.reasonCode",
        "path": "MedicationAdministration.reasonCode",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.reasonReference",
        "path": "MedicationAdministration.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.request",
        "path": "MedicationAdministration.request",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.device",
        "path": "MedicationAdministration.device",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.note",
        "path": "MedicationAdministration.note",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage",
        "path": "MedicationAdministration.dosage",
        "comment": "Dosis of the given medicament",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.text",
        "path": "MedicationAdministration.dosage.text",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.site",
        "path": "MedicationAdministration.dosage.site",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.route",
        "path": "MedicationAdministration.dosage.route",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.route.coding",
        "path": "MedicationAdministration.dosage.route.coding",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.route.text",
        "path": "MedicationAdministration.dosage.route.text",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.method",
        "path": "MedicationAdministration.dosage.method",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.dose",
        "path": "MedicationAdministration.dosage.dose",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.dose.value",
        "path": "MedicationAdministration.dosage.dose.value",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.dose.unit",
        "path": "MedicationAdministration.dosage.dose.unit",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Value set for units",
          "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
        }
      },
      {
        "id": "MedicationAdministration.dosage.dose.system",
        "path": "MedicationAdministration.dosage.dose.system",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.dose.code",
        "path": "MedicationAdministration.dosage.dose.code",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.dosage.rate[x]",
        "path": "MedicationAdministration.dosage.rate[x]",
        "max": "0"
      },
      {
        "id": "MedicationAdministration.eventHistory",
        "path": "MedicationAdministration.eventHistory",
        "max": "0"
      }
    ]
  }
}