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