{
  "resourceType": "StructureDefinition",
  "id": "mii-pr-onko-verlauf",
  "url": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-verlauf",
  "version": "2024.0.0-ballot",
  "name": "MII_PR_Onko_Verlauf",
  "title": "MII PR Onkologie Verlauf",
  "status": "draft",
  "publisher": "Medizininformatik Initiative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://www.medizininformatik-initiative.de"
        }
      ]
    }
  ],
  "description": "Dieses Profil beschreibt die Verlaufskontrolle und verweist ggfs. auf andere verlaufsrelevante diagnostische Maßnahmen",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    },
    {
      "identity": "oBDS",
      "name": "Mapping FHIR zu oBDS"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "mapping": [
          {
            "identity": "oBDS",
            "map": "17.2",
            "comment": "Gesamtbeurteilung des Tumorstatus"
          }
        ]
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-diagnose"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effective[x]",
        "sliceName": "effectiveDateTime",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "oBDS",
            "map": "17.1",
            "comment": "Datum, an dem die letzte Untersuchung durchgeführt wurde, die zur Einschätzung des Tumorstatus geführt hat."
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/ValueSet/mii-vs-onko-verlauf-gesamtbeurteilung"
        }
      },
      {
        "id": "Observation.value[x].coding.system",
        "path": "Observation.value[x].coding.system",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.code",
        "path": "Observation.value[x].coding.code",
        "mustSupport": true
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open",
          "description": "Slice based on the component.code pattern"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:Tumor_Verlauf",
        "path": "Observation.component",
        "sliceName": "Tumor_Verlauf",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Tumor_Verlauf.code.coding",
        "path": "Observation.component.code.coding",
        "patternCoding": {
          "code": "277062004",
          "system": "http://snomed.info/sct",
          "display": "Status des Residualtumors"
        }
      },
      {
        "id": "Observation.component:Tumor_Verlauf.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "mapping": [
          {
            "identity": "oBDS",
            "map": "17.3",
            "comment": "Tumorstatus Primärtumor"
          }
        ]
      },
      {
        "id": "Observation.component:Tumor_Verlauf.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/ValueSet/mii-vs-onko-verlauf-primaertumor"
        }
      },
      {
        "id": "Observation.component:Tumor_Verlauf.value[x].coding.system",
        "path": "Observation.component.value[x].coding.system",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Tumor_Verlauf.value[x].coding.code",
        "path": "Observation.component.value[x].coding.code",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Lymphknoten_Verlauf",
        "path": "Observation.component",
        "sliceName": "Lymphknoten_Verlauf",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Lymphknoten_Verlauf.code.coding",
        "path": "Observation.component.code.coding",
        "patternCoding": {
          "code": "277060007",
          "system": "http://snomed.info/sct",
          "display": "Status der lymphatischen Tumorinvasion"
        }
      },
      {
        "id": "Observation.component:Lymphknoten_Verlauf.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "mapping": [
          {
            "identity": "oBDS",
            "map": "17.4",
            "comment": "Tumorstatus Lymphknoten"
          }
        ]
      },
      {
        "id": "Observation.component:Lymphknoten_Verlauf.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/ValueSet/mii-vs-onko-verlauf-lymphknoten"
        }
      },
      {
        "id": "Observation.component:Lymphknoten_Verlauf.value[x].coding.system",
        "path": "Observation.component.value[x].coding.system",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Lymphknoten_Verlauf.value[x].coding.code",
        "path": "Observation.component.value[x].coding.code",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Fernmetastasen_Verlauf",
        "path": "Observation.component",
        "sliceName": "Fernmetastasen_Verlauf",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Fernmetastasen_Verlauf.code.coding",
        "path": "Observation.component.code.coding",
        "patternCoding": {
          "code": "260874000",
          "system": "http://snomed.info/sct",
          "display": "Status der Metastasen"
        }
      },
      {
        "id": "Observation.component:Fernmetastasen_Verlauf.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "mapping": [
          {
            "identity": "oBDS",
            "map": "17.5",
            "comment": "Tumorstatus Fernmetastasen"
          }
        ]
      },
      {
        "id": "Observation.component:Fernmetastasen_Verlauf.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/ValueSet/mii-vs-onko-verlauf-fernmetastasen"
        }
      },
      {
        "id": "Observation.component:Fernmetastasen_Verlauf.value[x].coding.system",
        "path": "Observation.component.value[x].coding.system",
        "mustSupport": true
      },
      {
        "id": "Observation.component:Fernmetastasen_Verlauf.value[x].coding.code",
        "path": "Observation.component.value[x].coding.code",
        "mustSupport": true
      }
    ]
  }
}
