{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-MIO-DIGA-AllergyIntolerance",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_AllergyIntolerance",
  "version": "1.1.0",
  "name": "KBV_PR_MIO_DIGA_AllergyIntolerance",
  "title": "KBV_PR_MIO_DIGA_AllergyIntolerance",
  "status": "active",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Dieses Profil bildet eine Allergie oder Intoleranz ab.",
  "copyright": "Im folgenden Profil können Codes aus den Codesystemen Snomed, Loinc oder Ucum enthalten sein, die dem folgenden Urheberrecht unterliegen: This material includes SNOMED Clinical Terms® SNOMED CT® which is used by permission of SNOMED International. All rights reserved. SNOMED CT®, was originally created by The College of American Pathologists. SNOMED and SNOMED CT are registered trademarks of SNOMED International. Implementers of these artefacts must have the appropriate SNOMED CT Affiliate license. This material contains content from Loinc http://loinc.org. Loinc is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes Loinc Committee and is available at no cost under the license at http://loinc.org/license. Loinc® is a registered United States trademark of Regenstrief Institute, Inc. This product includes all or a portion of the UCUM table, UCUM codes, and UCUM definitions or is derived from it, subject to a license from Regenstrief Institute, Inc. and The UCUM Organization. Your use of the UCUM table, UCUM codes, UCUM definitions also is subject to this license, a copy of which is available at ​http://unitsofmeasure.org. The current complete UCUM table, UCUM Specification are available for download at ​http://unitsofmeasure.org. The UCUM table and UCUM codes are copyright © 1995-2009, Regenstrief Institute, Inc. and the Unified Codes for Units of Measures UCUM Organization. All rights reserved. THE UCUM TABLE IN ALL FORMATS, UCUM DEFINITIONS, AND SPECIFICATION ARE PROVIDED \"AS IS.\" ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "AllergyIntolerance",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Allergy_Intolerance|1.3.0",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "AllergyIntolerance",
        "path": "AllergyIntolerance",
        "definition": "Dieses Profil bildet eine Allergie oder Intoleranz ab."
      },
      {
        "id": "AllergyIntolerance.meta",
        "path": "AllergyIntolerance.meta",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.versionId",
        "path": "AllergyIntolerance.meta.versionId",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.lastUpdated",
        "path": "AllergyIntolerance.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.source",
        "path": "AllergyIntolerance.meta.source",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.profile",
        "path": "AllergyIntolerance.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.profile:mioProfile",
        "path": "AllergyIntolerance.meta.profile",
        "sliceName": "mioProfile",
        "min": 1,
        "max": "1",
        "patternCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_AllergyIntolerance|1.1.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",
        "definition": "In diesem Element können die, in der Instanz, enthaltenen Informationen in einer menschenlesbaren Form zusammengefasst werden. Dabei ist zu beachten, dass keine Informationen aufgenommen werden dürfen, die nicht in strukturierter Form an anderer Stelle in der Instanz enthalten sind."
      },
      {
        "id": "AllergyIntolerance.text.status",
        "path": "AllergyIntolerance.text.status",
        "fixedCode": "extensions"
      },
      {
        "id": "AllergyIntolerance.contained",
        "path": "AllergyIntolerance.contained",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.extension",
        "path": "AllergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement",
        "path": "AllergyIntolerance.extension",
        "sliceName": "abatement",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement.value[x]",
        "path": "AllergyIntolerance.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement.value[x]:valueDateTime",
        "path": "AllergyIntolerance.extension.valueDateTime",
        "sliceName": "valueDateTime",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis",
        "path": "AllergyIntolerance.extension",
        "sliceName": "abatement-lebensphase-bis",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]",
        "path": "AllergyIntolerance.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept",
        "path": "AllergyIntolerance.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding",
        "path": "AllergyIntolerance.extension.valueCodeableConcept.coding",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding.system",
        "path": "AllergyIntolerance.extension.valueCodeableConcept.coding.system",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding.version",
        "path": "AllergyIntolerance.extension.valueCodeableConcept.coding.version",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding.code",
        "path": "AllergyIntolerance.extension.valueCodeableConcept.coding.code",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding.display",
        "path": "AllergyIntolerance.extension.valueCodeableConcept.coding.display",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding.userSelected",
        "path": "AllergyIntolerance.extension.valueCodeableConcept.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier",
        "path": "AllergyIntolerance.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.identifier.use",
        "path": "AllergyIntolerance.identifier.use",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.type",
        "path": "AllergyIntolerance.identifier.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "version": "2.9",
              "code": "RI",
              "display": "Resource identifier"
            }
          ]
        }
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding",
        "path": "AllergyIntolerance.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.system",
        "path": "AllergyIntolerance.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.version",
        "path": "AllergyIntolerance.identifier.type.coding.version",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.code",
        "path": "AllergyIntolerance.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.display",
        "path": "AllergyIntolerance.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.identifier.type.coding.userSelected",
        "path": "AllergyIntolerance.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.type.text",
        "path": "AllergyIntolerance.identifier.type.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.system",
        "path": "AllergyIntolerance.identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.identifier.value",
        "path": "AllergyIntolerance.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.identifier.period",
        "path": "AllergyIntolerance.identifier.period",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier.assigner",
        "path": "AllergyIntolerance.identifier.assigner",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.clinicalStatus",
        "path": "AllergyIntolerance.clinicalStatus",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.clinicalStatus.coding",
        "path": "AllergyIntolerance.clinicalStatus.coding",
        "mustSupport": true
      },
      {
        "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",
        "path": "AllergyIntolerance.verificationStatus",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding",
        "path": "AllergyIntolerance.verificationStatus.coding",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.display",
        "path": "AllergyIntolerance.verificationStatus.coding.display",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.verificationStatus.coding.userSelected",
        "path": "AllergyIntolerance.verificationStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.verificationStatus.text",
        "path": "AllergyIntolerance.verificationStatus.text",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.type",
        "path": "AllergyIntolerance.type",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.category",
        "path": "AllergyIntolerance.category",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.criticality",
        "path": "AllergyIntolerance.criticality",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code",
        "path": "AllergyIntolerance.code",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code.coding",
        "path": "AllergyIntolerance.code.coding",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code.coding:codeSnomed",
        "path": "AllergyIntolerance.code.coding",
        "sliceName": "codeSnomed",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code.coding:codeSnomed.version",
        "path": "AllergyIntolerance.code.coding.version",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding:codeSnomed.display",
        "path": "AllergyIntolerance.code.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding:codeSnomed.userSelected",
        "path": "AllergyIntolerance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.coding:codeASK",
        "path": "AllergyIntolerance.code.coding",
        "sliceName": "codeASK",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.code.coding:codeASK.version",
        "path": "AllergyIntolerance.code.coding.version",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding:codeASK.display",
        "path": "AllergyIntolerance.code.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.code.coding:codeASK.userSelected",
        "path": "AllergyIntolerance.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.code.text",
        "path": "AllergyIntolerance.code.text",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.patient",
        "path": "AllergyIntolerance.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Patient|1.1.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.patient.reference",
        "path": "AllergyIntolerance.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.patient.type",
        "path": "AllergyIntolerance.patient.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.identifier",
        "path": "AllergyIntolerance.patient.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.patient.display",
        "path": "AllergyIntolerance.patient.display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.encounter",
        "path": "AllergyIntolerance.encounter",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onset[x]",
        "path": "AllergyIntolerance.onset[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Age"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetDateTime",
        "path": "AllergyIntolerance.onsetDateTime",
        "sliceName": "onsetDateTime",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge",
        "path": "AllergyIntolerance.onsetAge",
        "sliceName": "onsetAge",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension",
        "path": "AllergyIntolerance.onsetAge.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von",
        "path": "AllergyIntolerance.onsetAge.extension",
        "sliceName": "lebensphase-von",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.value",
        "path": "AllergyIntolerance.onsetAge.value",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.comparator",
        "path": "AllergyIntolerance.onsetAge.comparator",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.unit",
        "path": "AllergyIntolerance.onsetAge.unit",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.system",
        "path": "AllergyIntolerance.onsetAge.system",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.code",
        "path": "AllergyIntolerance.onsetAge.code",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recordedDate",
        "path": "AllergyIntolerance.recordedDate",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder",
        "path": "AllergyIntolerance.recorder",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Patient|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_Practitioner|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_RelatedPerson|1.1.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_DIGA_PractitionerRole|1.1.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.recorder.reference",
        "path": "AllergyIntolerance.recorder.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.recorder.type",
        "path": "AllergyIntolerance.recorder.type",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder.identifier",
        "path": "AllergyIntolerance.recorder.identifier",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder.display",
        "path": "AllergyIntolerance.recorder.display",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.asserter",
        "path": "AllergyIntolerance.asserter",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.lastOccurrence",
        "path": "AllergyIntolerance.lastOccurrence",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note",
        "path": "AllergyIntolerance.note",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.note.author[x]",
        "path": "AllergyIntolerance.note.author[x]",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note.time",
        "path": "AllergyIntolerance.note.time",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.note.text",
        "path": "AllergyIntolerance.note.text",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction",
        "path": "AllergyIntolerance.reaction",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.substance",
        "path": "AllergyIntolerance.reaction.substance",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation",
        "path": "AllergyIntolerance.reaction.manifestation",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:codeSnomed",
        "path": "AllergyIntolerance.reaction.manifestation.coding",
        "sliceName": "codeSnomed",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:codeSnomed.version",
        "path": "AllergyIntolerance.reaction.manifestation.coding.version",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:codeSnomed.display",
        "path": "AllergyIntolerance.reaction.manifestation.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.coding:codeSnomed.userSelected",
        "path": "AllergyIntolerance.reaction.manifestation.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.manifestation.text",
        "path": "AllergyIntolerance.reaction.manifestation.text",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.description",
        "path": "AllergyIntolerance.reaction.description",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.onset",
        "path": "AllergyIntolerance.reaction.onset",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.severity",
        "path": "AllergyIntolerance.reaction.severity",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute",
        "path": "AllergyIntolerance.reaction.exposureRoute",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:codeSnomed",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "sliceName": "codeSnomed",
        "patternCoding": {
          "system": "http://snomed.info/sct"
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_Base_Route_of_Administration_SNOMED_CT|1.3.0"
        }
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:codeSnomed.version",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.version",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:codeSnomed.display",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.display",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:codeSnomed.userSelected",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.text",
        "path": "AllergyIntolerance.reaction.exposureRoute.text",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.note",
        "path": "AllergyIntolerance.reaction.note",
        "max": "0"
      }
    ]
  }
}