{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_AllergyIntolerance",
  "version": "1.0.0",
  "name": "KBV_PR_MIO_ULB_AllergyIntolerance",
  "title": "KBV_PR_MIO_ULB_AllergyIntolerance",
  "status": "active",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Dieses Profil bildet Allergien und Unverträglichkeiten 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",
  "mapping": [
    {
      "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": "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 Allergien und Unverträglichkeiten ab."
      },
      {
        "id": "AllergyIntolerance.meta",
        "path": "AllergyIntolerance.meta",
        "min": 1
      },
      {
        "id": "AllergyIntolerance.meta.versionId",
        "path": "AllergyIntolerance.meta.versionId",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.lastUpdated",
        "path": "AllergyIntolerance.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.source",
        "path": "AllergyIntolerance.meta.source",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.meta.profile",
        "path": "AllergyIntolerance.meta.profile",
        "min": 1,
        "max": "1",
        "patternCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_AllergyIntolerance|1.0.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"
      },
      {
        "id": "AllergyIntolerance.text.status",
        "path": "AllergyIntolerance.text.status",
        "patternCode": "extensions"
      },
      {
        "id": "AllergyIntolerance.contained",
        "path": "AllergyIntolerance.contained",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.extension",
        "path": "AllergyIntolerance.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "AllergyIntolerance.extension:abatement",
        "path": "AllergyIntolerance.extension",
        "sliceName": "abatement",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement.value[x]",
        "path": "AllergyIntolerance.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement.value[x]:valueDateTime",
        "path": "AllergyIntolerance.extension.value[x]",
        "sliceName": "valueDateTime",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis",
        "path": "AllergyIntolerance.extension",
        "sliceName": "abatement-lebensphase-bis",
        "min": 0,
        "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.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding",
        "path": "AllergyIntolerance.extension.value[x].coding",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.extension:abatement-lebensphase-bis.value[x]:valueCodeableConcept.coding.userSelected",
        "path": "AllergyIntolerance.extension.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.identifier",
        "path": "AllergyIntolerance.identifier",
        "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.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",
        "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_ULB_Patient|1.0.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.onset[x]",
        "sliceName": "onsetDateTime",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge",
        "path": "AllergyIntolerance.onset[x]",
        "sliceName": "onsetAge"
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension",
        "path": "AllergyIntolerance.onset[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von",
        "path": "AllergyIntolerance.onset[x].extension",
        "sliceName": "lebensphase-von",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von.value[x]",
        "path": "AllergyIntolerance.onset[x].extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von.value[x]:valueCodeableConcept",
        "path": "AllergyIntolerance.onset[x].extension.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von.value[x]:valueCodeableConcept.coding",
        "path": "AllergyIntolerance.onset[x].extension.value[x].coding",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.onset[x]:onsetAge.extension:lebensphase-von.value[x]:valueCodeableConcept.coding.userSelected",
        "path": "AllergyIntolerance.onset[x].extension.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recordedDate",
        "path": "AllergyIntolerance.recordedDate",
        "max": "0"
      },
      {
        "id": "AllergyIntolerance.recorder",
        "path": "AllergyIntolerance.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_Patient|1.0.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_PractitionerRole|1.0.0"
            ]
          }
        ]
      },
      {
        "id": "AllergyIntolerance.recorder.reference",
        "path": "AllergyIntolerance.recorder.reference",
        "min": 1
      },
      {
        "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",
        "max": "0"
      },
      {
        "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",
        "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",
        "max": "1",
        "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",
        "mustSupport": true
      },
      {
        "id": "AllergyIntolerance.reaction.exposureRoute.coding:codeSnomed",
        "path": "AllergyIntolerance.reaction.exposureRoute.coding",
        "sliceName": "codeSnomed",
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "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"
      }
    ]
  }
}