{
  "resourceType": "StructureDefinition",
  "id": "mii-pr-kardio-observation-rauchen-acribisalpha",
  "url": "https://www.medizininformatik-initiative.de/fhir/ext/modul-kardio/StructureDefinition/mii-pr-kardio-observation-rauchen-acribisalpha",
  "version": "2026.0.0-alpha.3",
  "name": "MII_PR_Kardio_Observation_Rauchen_AcribisAlpha",
  "title": "MII PR Kardio Observation Rauchen AcribisAlpha",
  "status": "active",
  "publisher": "Medizininformatik Initiative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://www.medizininformatik-initiative.de"
        }
      ]
    }
  ],
  "description": "Profil zur Erfassung des Rauchverhaltens einer Person im Kontext des Projekts ACRIBiS.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://gematik.de/fhir/isik/StructureDefinition/ISiKLebensZustand",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "social-history",
              "system": "http://terminology.hl7.org/CodeSystem/observation-category"
            }
          ]
        },
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
        }
      },
      {
        "id": "Observation.code.coding:loinc",
        "path": "Observation.code.coding",
        "sliceName": "loinc",
        "patternCoding": {
          "code": "72166-2",
          "system": "http://loinc.org"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "short": "Current Smoking Status als Loinc-Answer Code, Angabe 'Smoker' via SNOMED CT-Code.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.value[x]",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "https://www.medizininformatik-initiative.de/fhir/ext/modul-kardio/ValueSet/mii-vs-kardio-rauchen-acribisalpha"
        }
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
            ]
          }
        ]
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DocumentReference",
              "http://hl7.org/fhir/StructureDefinition/Media",
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
              "http://hl7.org/fhir/StructureDefinition/Observation"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open",
          "ordered": false,
          "description": "Zusätzliche Angaben zum Rauchverhalten."
        },
        "short": "Zusätzliche Angaben zum Rauchverhalten."
      },
      {
        "id": "Observation.component:packungsjahre",
        "path": "Observation.component",
        "sliceName": "packungsjahre",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Observation.component:packungsjahre.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "401201003",
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/900000000000207008/version/20250701"
            }
          ]
        }
      },
      {
        "id": "Observation.component:packungsjahre.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:packungsjahre.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:packungsjahre.value[x].comparator",
        "path": "Observation.component.value[x].comparator",
        "mustSupport": true
      },
      {
        "id": "Observation.component:packungsjahre.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "patternString": "{pack-years}"
      },
      {
        "id": "Observation.component:packungsjahre.value[x].system",
        "path": "Observation.component.value[x].system",
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:packungsjahre.value[x].code",
        "path": "Observation.component.value[x].code",
        "patternCode": "{pack-years}"
      },
      {
        "id": "Observation.component:packungenProTag",
        "path": "Observation.component",
        "sliceName": "packungenProTag",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Observation.component:packungenProTag.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "230056004",
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/900000000000207008/version/20250701"
            }
          ]
        }
      },
      {
        "id": "Observation.component:packungenProTag.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:packungenProTag.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:packungenProTag.value[x].comparator",
        "path": "Observation.component.value[x].comparator",
        "mustSupport": true
      },
      {
        "id": "Observation.component:packungenProTag.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "patternString": "{packs-per-day}"
      },
      {
        "id": "Observation.component:packungenProTag.value[x].system",
        "path": "Observation.component.value[x].system",
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:packungenProTag.value[x].code",
        "path": "Observation.component.value[x].code",
        "patternCode": "{packs-per-day}"
      },
      {
        "id": "Observation.component:rauchbeginn",
        "path": "Observation.component",
        "sliceName": "rauchbeginn",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.component:rauchbeginn.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "228488005",
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/900000000000207008/version/20250701"
            }
          ]
        }
      },
      {
        "id": "Observation.component:rauchbeginn.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:rauchbeginn.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:rauchbeginn.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "patternString": "year"
      },
      {
        "id": "Observation.component:rauchbeginn.value[x].system",
        "path": "Observation.component.value[x].system",
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:rauchbeginn.value[x].code",
        "path": "Observation.component.value[x].code",
        "patternCode": "a"
      },
      {
        "id": "Observation.component:rauchdauer",
        "path": "Observation.component",
        "sliceName": "rauchdauer",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Observation.component:rauchdauer.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "228487000",
              "system": "http://snomed.info/sct",
              "version": "http://snomed.info/sct/900000000000207008/version/20250701"
            }
          ]
        }
      },
      {
        "id": "Observation.component:rauchdauer.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:rauchdauer.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:rauchdauer.value[x].comparator",
        "path": "Observation.component.value[x].comparator",
        "mustSupport": true
      },
      {
        "id": "Observation.component:rauchdauer.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "patternString": "year"
      },
      {
        "id": "Observation.component:rauchdauer.value[x].system",
        "path": "Observation.component.value[x].system",
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:rauchdauer.value[x].code",
        "path": "Observation.component.value[x].code",
        "patternCode": "a"
      }
    ]
  }
}