{
  "resourceType": "StructureDefinition",
  "id": "RE11",
  "url": "http://ReuseBetweenEHRsForChildrenWithAML.dk/fhir/StructureDefinition/RE11",
  "name": "Medication",
  "status": "draft",
  "description": "This profile contains the name of the given medication.",
  "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",
        "definition": "This profile contains the name of the given medication."
      },
      {
        "id": "Medication.identifier",
        "path": "Medication.identifier",
        "short": "Medication ID",
        "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 medicine ID database",
        "min": 1
      },
      {
        "id": "Medication.identifier.value",
        "path": "Medication.identifier.value",
        "short": "Entry for an unique value string for a substance ID",
        "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"
      },
      {
        "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]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ReuseBetweenEHRsForChildrenWithAML.dk/fhir/StructureDefinition/RE12"
            ],
            "aggregation": [
              "bundled"
            ],
            "versioning": "specific"
          }
        ]
      },
      {
        "id": "Medication.ingredient.item[x].reference",
        "path": "Medication.ingredient.item[x].reference",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x].type",
        "path": "Medication.ingredient.item[x].type",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x].identifier",
        "path": "Medication.ingredient.item[x].identifier",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x].display",
        "path": "Medication.ingredient.item[x].display",
        "max": "0"
      },
      {
        "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"
      }
    ]
  }
}