{
  "resourceType": "StructureDefinition",
  "id": "epa-allergy-intolerance-amts",
  "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-allergy-intolerance-amts",
  "version": "1.1.1",
  "name": "EPAAllergyIntoleranceAMTS",
  "title": "EPA Allergy Intolerance AMTSrZI",
  "status": "active",
  "experimental": false,
  "date": "2024-08-14",
  "publisher": "mio42 GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "https://gematik.de/fhir/epa/StructureDefinition/epa-allergy-intolerance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance.meta.source",
        "path": "AllergyIntolerance.meta.source",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.security",
        "path": "AllergyIntolerance.meta.security",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.tag",
        "path": "AllergyIntolerance.meta.tag",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.implicitRules",
        "path": "AllergyIntolerance.implicitRules",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.language",
        "path": "AllergyIntolerance.language",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.text",
        "path": "AllergyIntolerance.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.contained",
        "path": "AllergyIntolerance.contained",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.extension",
        "path": "AllergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "ordered": false,
          "rules": "closed"
        },
        "max": "2"
      },
      {
        "id": "AllergyIntolerance.modifierExtension",
        "path": "AllergyIntolerance.modifierExtension",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier",
        "path": "AllergyIntolerance.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding.userSelected",
        "path": "AllergyIntolerance.clinicalStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.text",
        "path": "AllergyIntolerance.clinicalStatus.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.userSelected",
        "path": "AllergyIntolerance.verificationStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.text",
        "path": "AllergyIntolerance.verificationStatus.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding",
        "path": "AllergyIntolerance.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "max": "3"
      },
      {
        "id": "AllergyIntolerance.code.coding:snomed",
        "path": "AllergyIntolerance.code.coding",
        "sliceName": "snomed"
      },
      {
        "id": "AllergyIntolerance.code.coding:snomed.userSelected",
        "path": "AllergyIntolerance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding:ask",
        "path": "AllergyIntolerance.code.coding",
        "sliceName": "ask"
      },
      {
        "id": "AllergyIntolerance.code.coding:ask.version",
        "path": "AllergyIntolerance.code.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding:ask.userSelected",
        "path": "AllergyIntolerance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding:atc-de",
        "path": "AllergyIntolerance.code.coding",
        "sliceName": "atc-de"
      },
      {
        "id": "AllergyIntolerance.code.coding:atc-de.userSelected",
        "path": "AllergyIntolerance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.reference",
        "path": "AllergyIntolerance.patient.reference",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.type",
        "path": "AllergyIntolerance.patient.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.display",
        "path": "AllergyIntolerance.patient.display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.encounter",
        "path": "AllergyIntolerance.encounter",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recordedDate",
        "path": "AllergyIntolerance.recordedDate",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder.type",
        "path": "AllergyIntolerance.recorder.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter.type",
        "path": "AllergyIntolerance.asserter.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter.display",
        "path": "AllergyIntolerance.asserter.display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.lastOccurrence",
        "path": "AllergyIntolerance.lastOccurrence",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note.author[x]:authorReference",
        "path": "AllergyIntolerance.note.author[x]",
        "sliceName": "authorReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "AllergyIntolerance.note.author[x]:authorReference.type",
        "path": "AllergyIntolerance.note.author[x].type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note.author[x]:authorReference.display",
        "path": "AllergyIntolerance.note.author[x].display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "max": "3"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomed",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "sliceName": "snomed"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:snomed.userSelected",
        "path": "AllergyIntolerance.reaction.substance.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:ask",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "sliceName": "ask"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:ask.version",
        "path": "AllergyIntolerance.reaction.substance.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:ask.userSelected",
        "path": "AllergyIntolerance.reaction.substance.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:atc-de",
        "path": "AllergyIntolerance.reaction.substance.coding",
        "sliceName": "atc-de"
      },
      {
        "id": "AllergyIntolerance.reaction.substance.coding:atc-de.userSelected",
        "path": "AllergyIntolerance.reaction.substance.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomed",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "sliceName": "snomed"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:snomed.userSelected",
        "path": "AllergyIntolerance.reaction.manifestation.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "max": "2"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomed",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "sliceName": "snomed"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:snomed.userSelected",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:edqmCode",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "sliceName": "edqmCode"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:edqmCode.version",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.version",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:edqmCode.userSelected",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.note",
        "path": "AllergyIntolerance.reaction.note",
        "max": "0"
      }
    ]
  }
}