{
  "resourceType": "StructureDefinition",
  "id": "onconnect-pr-tb-oncological-history",
  "url": "https://fhir.ccc-onconnect.de/StructureDefinition/onconnect-pr-tb-oncological-history",
  "name": "ONCOnnect_PR_TB_OncologicalHistory",
  "title": "Oncological History (Profile)",
  "status": "draft",
  "description": "Captures the patient's oncological history, including conditions and events that are relevant\nto their health status. The resources that should be used to represent the different events\nare listed below.\n\n| Event                   | Profile                                            |\n| ----------------------- | -------------------------------------------------- |\n| CT-Staging + Staging    | ONCOnnect PR TB TNMStaging                         |\n| Surgery                 | MII PR Onkologie Operation                         |\n| Tumorboard              | MII PR Onkologie Tumorkonferenz                    |\n| Radiotherapy            | MII PR Onkologie Strahlentherapie                  |\n| Chemotherapy            | MII PR Medikation MedicationStatement              |\n| Initial diagnosis       | Condition (might be part of the primary diagnosis) |\n| Guideline (\"Leitlinie\") | CarePlan/Observation                               |\n| (Other)                 | Observation / ..                                   |\n\nIn case it is not possible or requires significant effort to track the patient history in\na structured way, you should still use one base resource per event, but only use the `note`\nproperty to capture the information. This is why this profile only defines the Reference\ntype to link to FHIR base resources and not the specific MII profiles. E.g. the MII Onkologie\nOperation profile would require a structured OPS code.\nPlease include a date (YYYY-MM-DD, YYYY-MM, YYYY, DD.MM.YYYY or DD.MM) in the `note` to indicate when the event occurred.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List.status",
        "path": "List.status",
        "patternCode": "current"
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "patternCode": "snapshot"
      },
      {
        "id": "List.code",
        "path": "List.code",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "35090-0",
              "system": "http://loinc.org",
              "display": "Patient history"
            }
          ]
        }
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.ccc-onconnect.de/StructureDefinition/onconnect-pr-tb-patient"
            ]
          }
        ]
      },
      {
        "id": "List.entry",
        "path": "List.entry",
        "short": "A list of all relevant patient history items, such as previous surgeries, treatments, or\nprevious tumor boards. Examplary events and there profiles are listed above."
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
              "http://hl7.org/fhir/StructureDefinition/Procedure",
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "http://hl7.org/fhir/StructureDefinition/Condition"
            ]
          }
        ]
      },
      {
        "id": "List.emptyReason",
        "path": "List.emptyReason",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason|4.0.1"
        }
      }
    ]
  }
}