{
  "resourceType": "StructureDefinition",
  "id": "RE12",
  "meta": {
    "lastUpdated": "2021-05-03T13:00:45.87+00:00"
  },
  "url": "http://ReuseBetweenEHRsForChildrenWithAML.dk/fhir/StructureDefinition/RE12",
  "name": "ActiveIngredient",
  "status": "draft",
  "description": "This profile contains information about the active ingredient of the given medication.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "orim",
      "uri": "http://hl7.org/orim",
      "name": "Ontological RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Substance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Substance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Substance",
        "path": "Substance",
        "definition": "This profile contains information about the active ingredient of the given medication."
      },
      {
        "id": "Substance.identifier",
        "path": "Substance.identifier",
        "short": "Substance ID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Substance.identifier.use",
        "path": "Substance.identifier.use",
        "max": "0"
      },
      {
        "id": "Substance.identifier.type",
        "path": "Substance.identifier.type",
        "max": "0"
      },
      {
        "id": "Substance.identifier.system",
        "path": "Substance.identifier.system",
        "short": "Entry to substance ID database",
        "min": 1
      },
      {
        "id": "Substance.identifier.value",
        "path": "Substance.identifier.value",
        "short": "Entry for an unique value string for a substance ID",
        "min": 1
      },
      {
        "id": "Substance.identifier.period",
        "path": "Substance.identifier.period",
        "max": "0"
      },
      {
        "id": "Substance.identifier.assigner",
        "path": "Substance.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Substance.status",
        "path": "Substance.status",
        "max": "0"
      },
      {
        "id": "Substance.category",
        "path": "Substance.category",
        "max": "0"
      },
      {
        "id": "Substance.code",
        "path": "Substance.code",
        "slicing": {
          "discriminator": [
            {
              "type": "exists",
              "path": "coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Substance.code.coding",
        "path": "Substance.code.coding",
        "max": "0"
      },
      {
        "id": "Substance.code.text",
        "path": "Substance.code.text",
        "max": "0"
      },
      {
        "id": "Substance.code:doxycyclin",
        "path": "Substance.code",
        "sliceName": "doxycyclin"
      },
      {
        "id": "Substance.code:doxycyclin.coding",
        "path": "Substance.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Substance.code:doxycyclin.coding.system",
        "path": "Substance.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Substance.code:doxycyclin.coding.version",
        "path": "Substance.code.coding.version",
        "min": 1,
        "fixedString": "2021-03-31"
      },
      {
        "id": "Substance.code:doxycyclin.coding.code",
        "path": "Substance.code.coding.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2021-03-31",
            "code": "372478003",
            "display": "Doxycyclin"
          }
        ],
        "min": 1
      },
      {
        "id": "Substance.code:doxycyclin.coding.display",
        "path": "Substance.code.coding.display",
        "min": 1,
        "fixedString": "Doxycyclin"
      },
      {
        "id": "Substance.code:doxycyclin.coding.userSelected",
        "path": "Substance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Substance.code:doxycyclin.text",
        "path": "Substance.code.text",
        "min": 1
      },
      {
        "id": "Substance.code:protamin",
        "path": "Substance.code",
        "sliceName": "protamin"
      },
      {
        "id": "Substance.code:protamin.coding",
        "path": "Substance.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Substance.code:protamin.coding.system",
        "path": "Substance.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Substance.code:protamin.coding.version",
        "path": "Substance.code.coding.version",
        "min": 1,
        "fixedString": "2021-03-21"
      },
      {
        "id": "Substance.code:protamin.coding.code",
        "path": "Substance.code.coding.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2021-03-31",
            "code": "372630008",
            "display": "Protamin"
          }
        ],
        "min": 1
      },
      {
        "id": "Substance.code:protamin.coding.display",
        "path": "Substance.code.coding.display",
        "min": 1,
        "fixedString": "Protamin"
      },
      {
        "id": "Substance.code:protamin.coding.userSelected",
        "path": "Substance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Substance.code:protamin.text",
        "path": "Substance.code.text",
        "min": 1,
        "fixedString": "Protamin"
      },
      {
        "id": "Substance.code:morphin",
        "path": "Substance.code",
        "sliceName": "morphin"
      },
      {
        "id": "Substance.code:morphin.coding",
        "path": "Substance.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Substance.code:morphin.coding.system",
        "path": "Substance.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Substance.code:morphin.coding.version",
        "path": "Substance.code.coding.version",
        "min": 1,
        "fixedString": "2021-03-31"
      },
      {
        "id": "Substance.code:morphin.coding.code",
        "path": "Substance.code.coding.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "version": "2021-03-31",
            "code": "373529000",
            "display": "Morphin"
          }
        ],
        "min": 1
      },
      {
        "id": "Substance.code:morphin.coding.display",
        "path": "Substance.code.coding.display",
        "min": 1,
        "fixedString": "Morphin"
      },
      {
        "id": "Substance.code:morphin.coding.userSelected",
        "path": "Substance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Substance.code:morphin.text",
        "path": "Substance.code.text",
        "min": 1,
        "fixedString": "Morphin"
      },
      {
        "id": "Substance.description",
        "path": "Substance.description",
        "max": "0"
      },
      {
        "id": "Substance.instance",
        "path": "Substance.instance",
        "max": "0"
      },
      {
        "id": "Substance.ingredient",
        "path": "Substance.ingredient",
        "max": "0"
      }
    ]
  }
}