{
  "resourceType": "StructureDefinition",
  "url": "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-CarePlan-Therapieempfehlung",
  "version": "1.0.0",
  "name": "Therapieempfehlung",
  "status": "active",
  "description": "Therapieempfehlung der Tumorkonferenz.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "CarePlan",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CarePlan",
        "path": "CarePlan",
        "short": "Therapieempfehlung"
      },
      {
        "id": "CarePlan.identifier",
        "path": "CarePlan.identifier",
        "mustSupport": true
      },
      {
        "id": "CarePlan.identifier.value",
        "path": "CarePlan.identifier.value",
        "short": "Ein Wert, der eindeutig ist wie die Tumorkonferenz_ID",
        "definition": "Ein Wert, der eindeutig ist wie die Tumorkonferenz_ID",
        "min": 1
      },
      {
        "id": "CarePlan.subject",
        "path": "CarePlan.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Patient-Patient",
              "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Patient-Pseudonym"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CarePlan.created",
        "path": "CarePlan.created",
        "short": "Tumorkonferenz Therapieplanung Datum",
        "definition": "Datum der Durchführung der Tumorkonferenz bzw. der sonstigen Therapieplanung.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "ADT",
            "map": "Tumorkonferenz:Datum",
            "comment": "Tumorkonferenz:Datum"
          },
          {
            "identity": "ISO-11179",
            "map": "urn:adt:dataelement:00:00"
          }
        ]
      },
      {
        "id": "CarePlan.addresses",
        "path": "CarePlan.addresses",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Condition-Primaerdiagnose"
            ],
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CarePlan.addresses.code.coding",
        "path": "CarePlan.addresses.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "CarePlan.addresses.bodySite.coding",
        "path": "CarePlan.addresses.bodySite.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "CarePlan.activity",
        "path": "CarePlan.activity",
        "mustSupport": true
      },
      {
        "id": "CarePlan.activity.detail",
        "path": "CarePlan.activity.detail",
        "mustSupport": true
      },
      {
        "id": "CarePlan.activity.detail.code",
        "path": "CarePlan.activity.detail.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CarePlan.activity.detail.code.coding",
        "path": "CarePlan.activity.detail.code.coding",
        "binding": {
          "strength": "extensible",
          "description": "Code defined by oBDS",
          "valueSet": "http://dktk.dkfz.de/fhir/onco/core/ValueSet/TherapieempfehlungVS"
        }
      },
      {
        "id": "CarePlan.activity.detail.code.coding.system",
        "path": "CarePlan.activity.detail.code.coding.system",
        "min": 1,
        "fixedUri": "http://dktk.dkfz.de/fhir/onco/core/ValueSet/TherapieempfehlungCS",
        "mustSupport": true
      },
      {
        "id": "CarePlan.activity.detail.code.coding.code",
        "path": "CarePlan.activity.detail.code.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "ADT",
            "map": "Therapieempfehlung:Typ_Therapieempfehlung",
            "comment": "Therapieempfehlung:Typ_Therapieempfehlung"
          },
          {
            "identity": "ISO-11179",
            "map": "urn:adt:dataelement:00:00"
          }
        ]
      },
      {
        "id": "CarePlan.activity.detail.status",
        "path": "CarePlan.activity.detail.status",
        "mustSupport": true
      },
      {
        "id": "CarePlan.activity.detail.statusReason",
        "path": "CarePlan.activity.detail.statusReason",
        "short": "Tumorkonferenz/Therapieempfehlung Therapieabweichung auf Wunsch des Patienten",
        "definition": "Tumorkonferenz/Therapieempfehlung Therapieabweichung auf Wunsch des Patienten",
        "mustSupport": true
      },
      {
        "id": "CarePlan.activity.detail.statusReason.coding",
        "path": "CarePlan.activity.detail.statusReason.coding",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://dktk.dkfz.de/fhir/onco/core/ValueSet/JNUVS"
        }
      },
      {
        "id": "CarePlan.activity.detail.statusReason.coding.system",
        "path": "CarePlan.activity.detail.statusReason.coding.system",
        "fixedUri": "http://dktk.dkfz.de/fhir/onco/core/CodeSystem/JNUCS"
      },
      {
        "id": "CarePlan.activity.detail.statusReason.coding.code",
        "path": "CarePlan.activity.detail.statusReason.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "oBDS",
            "map": "19.2",
            "comment": "Tumorkonferenz/Therapieempfehlung Therapieabweichung auf Wunsch des Patienten"
          },
          {
            "identity": "ISO-11179",
            "map": "urn:adt:dataelement:00:00"
          }
        ]
      }
    ]
  }
}