{
  "resourceType": "StructureDefinition",
  "id": "RE04",
  "url": "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE04",
  "name": "PrehospitalDataInEHRMedicationprofile",
  "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.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "script10.6",
      "uri": "http://ncpdp.org/SCRIPT10_6",
      "name": "Mapping to NCPDP SCRIPT 10.6"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication",
        "path": "Medication",
        "short": "Definition of a medication",
        "definition": "This profile originates from the page Medicine in the pre-hospital patient journal (PPJ). The registration contains the medication including the specific substance."
      },
      {
        "id": "Medication.identifier",
        "path": "Medication.identifier",
        "short": "Danish social security number (CPR)",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Medication.identifier.use",
        "path": "Medication.identifier.use",
        "max": "0"
      },
      {
        "id": "Medication.identifier.type",
        "path": "Medication.identifier.type",
        "max": "0"
      },
      {
        "id": "Medication.identifier.system",
        "path": "Medication.identifier.system",
        "short": "Entry to Danish social security number database",
        "min": 1
      },
      {
        "id": "Medication.identifier.value",
        "path": "Medication.identifier.value",
        "short": "Unique identifier of 10 digits",
        "min": 1
      },
      {
        "id": "Medication.identifier.period",
        "path": "Medication.identifier.period",
        "max": "0"
      },
      {
        "id": "Medication.identifier.assigner",
        "path": "Medication.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "max": "0"
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "max": "0",
        "fixedCode": "active"
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "max": "0"
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "max": "0"
      },
      {
        "id": "Medication.amount",
        "path": "Medication.amount",
        "max": "0"
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "short": "The actual ingredient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE11"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient.isActive",
        "path": "Medication.ingredient.isActive",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength",
        "path": "Medication.ingredient.strength",
        "max": "0"
      },
      {
        "id": "Medication.batch",
        "path": "Medication.batch",
        "max": "0"
      }
    ]
  }
}