{
  "resourceType": "StructureDefinition",
  "url": "https://posithera.de/fhir/StructureDefinition/WoundExudateNKDUC",
  "name": "PosiTheraWoundExudate",
  "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.category.coding.display",
        "path": "Observation.category.coding.display",
        "fixedString": "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": "89259-6"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "https://posithera.de/fhir/StructureDefinition/BodyStructure",
              "https://posithera.de/fhir/StructureDefinition/Wound"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:amountOfExudate",
        "path": "Observation.component",
        "sliceName": "amountOfExudate"
      },
      {
        "id": "Observation.component:amountOfExudate.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "https://posithera.de/fhir/CodeSystem/NKDUC"
      },
      {
        "id": "Observation.component:amountOfExudate.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "C0406"
      },
      {
        "id": "Observation.component:amountOfExudate.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "fixedString": "Amount of Exudate / Exsudatmenge"
      },
      {
        "id": "Observation.component:amountOfExudate.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.component:amountOfExudate.value[x]:valueCodeableConcept",
        "path": "Observation.component.value[x]",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://posithera.de/ValueSet/Exsudatmenge"
        }
      },
      {
        "id": "Observation.component:amountOfExudate.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:amountOfExudate.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:qualityOfExudate",
        "path": "Observation.component",
        "sliceName": "qualityOfExudate"
      },
      {
        "id": "Observation.component:qualityOfExudate.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "https://posithera.de/CodeSystem/NKDUC"
      },
      {
        "id": "Observation.component:qualityOfExudate.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "C0407"
      },
      {
        "id": "Observation.component:qualityOfExudate.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "fixedString": "Quality of exudate / Exsudatbeschaffenheit"
      },
      {
        "id": "Observation.component:qualityOfExudate.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.component:qualityOfExudate.value[x]:valueCodeableConcept",
        "path": "Observation.component.value[x]",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://posithera.de/ValueSet/Exsudatbeschaffenheit"
        }
      },
      {
        "id": "Observation.component:qualityOfExudate.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:qualityOfExudate.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      }
    ]
  }
}