{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-MIO-CHW-List-AllergyIntolerance",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_CHW_List_AllergyIntolerance",
  "version": "1.0.0",
  "name": "KBV_PR_MIO_CHW_List_AllergyIntolerance",
  "title": "KBV_PR_MIO_CHW_List_AllergyIntolerance",
  "status": "draft",
  "date": "2023-01-31",
  "publisher": "Kassen&#228;rztliche Bundesvereinigung (KBV)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://mio.kbv.de"
        }
      ]
    },
    {
      "name": "Forschungsgruppe Informatik im Gesundheitswesen",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.hs-osnabrueck.de/forschungsgruppe-informatik-im-gesundheitswesen/"
        }
      ]
    }
  ],
  "description": "Profil für die Liste von Allergien",
  "copyright": "Im folgenden Profil können Codes aus den Code-Systemen SNOMED CT®, LOINC, Ucum, ATC, ICD-10-GM, ICD-10-WHO, OPS, Alpha-ID/Alpha-ID-SE und ICF enthalten sein, die dem folgenden Urheberrecht unterliegen: This material includes SNOMED CT® Clinical Terms® (SNOMED CT® CT®) which is used by permission of SNOMED CT® International. All rights reserved. SNOMED CT® CT®, was originally created by The College of American Pathologists. SNOMED CT® and SNOMED CT® CT are registered trademarks of SNOMED CT® International. Implementers of these artefacts must have the appropriate SNOMED CT® 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. Dieses Material enthält Inhalte aus ATC. Die Erstellung erfolgte unter Verwendung der Datenträger der amtlichen Fassung der ATC-Klassifikation mit DDD des Bundesinstituts für Arzneimittel und Medizinprodukte (BfArM). Dieses Material enthält Inhalte aus ICD-10-GM, ICD-10-WHO, OPS Alpha-ID ans Alpha-ID-SE. Die Erstellung erfolgt unter Verwendung der maschinenlesbaren Fassung des Bundesinstituts für Arzneimittel und Medizinprodukte (BfArM). Dieses Material enthält Inhalte aus ICF. Die Erstellung erfolgt unter Verwendung der maschinenlesbaren Fassung des Deutschen Instituts für Medizinische Dokumentation und Information (DIMDI). ICF-Kodes, -Begriffe und -Texte © Weltgesundheitsorganisation, übersetzt und herausgegeben durch das Deutsche Institut für Medizinische Dokumentation und Information von der International classification of functioning, disability and health – ICF, herausgegeben durch die Weltgesundheitsorganisation.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List",
        "path": "List",
        "constraint": [
          {
            "key": "kbv-mio-chw-list-1",
            "severity": "error",
            "human": "The list must either have entries or must be declared as empty with a reason",
            "expression": "emptyReason.exists() or entry.exists()",
            "xpath": "exists(f:emptyReason) or exists(f:entry)"
          }
        ]
      },
      {
        "id": "List.meta",
        "path": "List.meta",
        "min": 1
      },
      {
        "id": "List.meta.versionId",
        "path": "List.meta.versionId",
        "max": "0"
      },
      {
        "id": "List.meta.lastUpdated",
        "path": "List.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "List.meta.source",
        "path": "List.meta.source",
        "max": "0"
      },
      {
        "id": "List.meta.profile",
        "path": "List.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "List.meta.profile:chw",
        "path": "List.meta.profile",
        "sliceName": "chw",
        "min": 1,
        "max": "1",
        "patternCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_CHW_List_AllergyIntolerance"
      },
      {
        "id": "List.meta.security",
        "path": "List.meta.security",
        "max": "0"
      },
      {
        "id": "List.meta.tag",
        "path": "List.meta.tag",
        "max": "0"
      },
      {
        "id": "List.implicitRules",
        "path": "List.implicitRules",
        "max": "0"
      },
      {
        "id": "List.language",
        "path": "List.language",
        "max": "0"
      },
      {
        "id": "List.text",
        "path": "List.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": "List.contained",
        "path": "List.contained",
        "max": "0"
      },
      {
        "id": "List.identifier",
        "path": "List.identifier",
        "max": "0"
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "definition": "Hier wird der Modus der Verarbeitung einer Liste von Allergie-Informationen abgebildet. Im Rahmen der Erstellung einer solchen Liste innerhalb des MIO CHW ist der Modus auf \"Snapshot/Momentaufnahme der Liste\" festgesetzt.",
        "patternCode": "snapshot"
      },
      {
        "id": "List.title",
        "path": "List.title",
        "max": "0"
      },
      {
        "id": "List.code",
        "path": "List.code",
        "short": "Angabe, dass es sich um eine Liste von Allergien handelt",
        "definition": "Hier wird ein Code für die Art der Liste angegeben. Die Art der Liste im MIO CHW ist auf \"allergies/Allergien\" festgesetzt.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.code.coding",
        "path": "List.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "List.code.coding:hl7",
        "path": "List.code.coding",
        "sliceName": "hl7",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://terminology.hl7.org/CodeSystem/list-example-use-codes",
          "version": "4.0.1",
          "code": "allergies",
          "display": "Allergies"
        },
        "mustSupport": true
      },
      {
        "id": "List.code.coding:hl7.system",
        "path": "List.code.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.code.coding:hl7.version",
        "path": "List.code.coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.code.coding:hl7.code",
        "path": "List.code.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.code.coding:hl7.display",
        "path": "List.code.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.code.text",
        "path": "List.code.text",
        "max": "0"
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "definition": "Der Patient, auf den sich die Ressourcen in der Liste beziehen.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_CHW_Patient|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.subject.reference",
        "path": "List.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.subject.type",
        "path": "List.subject.type",
        "max": "0"
      },
      {
        "id": "List.subject.identifier",
        "path": "List.subject.identifier",
        "max": "0"
      },
      {
        "id": "List.subject.display",
        "path": "List.subject.display",
        "max": "0"
      },
      {
        "id": "List.encounter",
        "path": "List.encounter",
        "max": "0"
      },
      {
        "id": "List.date",
        "path": "List.date",
        "definition": "Hier wird der Zeitpunkt der letzten Aktualisierung einer Allergie-Informationen-Liste abgebildet.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.source",
        "path": "List.source",
        "max": "0"
      },
      {
        "id": "List.orderedBy",
        "path": "List.orderedBy",
        "max": "0"
      },
      {
        "id": "List.note",
        "path": "List.note",
        "max": "0"
      },
      {
        "id": "List.entry",
        "path": "List.entry",
        "definition": "Hier wird ein Allergie-Informations-Eintrag referenziert.",
        "mustSupport": true
      },
      {
        "id": "List.entry.flag",
        "path": "List.entry.flag",
        "max": "0"
      },
      {
        "id": "List.entry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry.date",
        "path": "List.entry.date",
        "max": "0"
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_CHW_AllergyIntolerance|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.entry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.entry.item.type",
        "path": "List.entry.item.type",
        "max": "0"
      },
      {
        "id": "List.entry.item.identifier",
        "path": "List.entry.item.identifier",
        "max": "0"
      },
      {
        "id": "List.entry.item.display",
        "path": "List.entry.item.display",
        "max": "0"
      },
      {
        "id": "List.emptyReason",
        "path": "List.emptyReason",
        "definition": "Hier kann der Grund abgebildet werden, warum eine Allergie-Informationen-Liste keine Einträge enthält. Dieses Feld kann nur angegeben werden, wenn die Gruppe \"Allergie-Informationen-Eintrag\" keine Referenzen enthält.",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_MIO_CHW_Presence_Status|1.0.0"
        }
      },
      {
        "id": "List.emptyReason.coding",
        "path": "List.emptyReason.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "List.emptyReason.coding.system",
        "path": "List.emptyReason.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.emptyReason.coding.version",
        "path": "List.emptyReason.coding.version",
        "mustSupport": true
      },
      {
        "id": "List.emptyReason.coding.code",
        "path": "List.emptyReason.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.emptyReason.coding.display",
        "path": "List.emptyReason.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "List.emptyReason.coding.userSelected",
        "path": "List.emptyReason.coding.userSelected",
        "max": "0"
      },
      {
        "id": "List.emptyReason.text",
        "path": "List.emptyReason.text",
        "max": "0"
      }
    ]
  }
}