{
  "resourceType": "StructureDefinition",
  "url": "https://posithera.de/fhir/StructureDefinition/CDSWoundBase",
  "name": "CDSWoundBase",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "fixedUri": "http://hl7.org/fhir/ValueSet/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "fixedCode": "exam"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:loinc",
        "path": "Observation.code.coding",
        "sliceName": "loinc"
      },
      {
        "id": "Observation.code.coding:loinc.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:loinc.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "72371-8"
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "https://posithera.de/fhir/StructureDefinition/Wound",
              "https://posithera.de/fhir/StructureDefinition/BodyStructure"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:visibleTissue",
        "path": "Observation.component",
        "sliceName": "visibleTissue"
      },
      {
        "id": "Observation.component:visibleTissue.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "https://posithera.de/fhir/codeSystem/CDS_Posithera"
      },
      {
        "id": "Observation.component:visibleTissue.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "P040307"
      },
      {
        "id": "Observation.component:visibleTissue.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "https://posithera.de/fhir/valueSet/Wundgrund"
        }
      },
      {
        "id": "Observation.component:appearance",
        "path": "Observation.component",
        "sliceName": "appearance"
      },
      {
        "id": "Observation.component:appearance.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "https://posithera.de/fhir/codeSystem/CDS_Posithera"
      },
      {
        "id": "Observation.component:appearance.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "P040306"
      },
      {
        "id": "Observation.component:appearance.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "https://posithera.de/fhir/valueSet/CDS_Wundgrund_Erscheinung"
        }
      }
    ]
  }
}