{
  "resourceType": "StructureDefinition",
  "url": "http://tx.gerontonet.org/fhir/StructureDefinition/wundgroessenpanel",
  "name": "Wundgroessenpanel",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Wundgrößenpanel"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "72287-6",
            "display": "Wundgrößen-Panel",
            "userSelected": true
          }
        ]
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "72287-6",
            "display": "Wound size panel"
          }
        ],
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "fixedCode": "72287-6"
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tx.gerontonet.org/fhir/StructureDefinition/Wunde"
            ]
          }
        ]
      },
      {
        "id": "Observation.focus.reference",
        "path": "Observation.focus.reference",
        "min": 1
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "description": "Komponenten des Wundgrößenpanels: Breite, Länge, Tiefe",
          "rules": "open"
        },
        "max": "3"
      },
      {
        "id": "Observation.component:breite",
        "path": "Observation.component",
        "sliceName": "breite",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "39125-0",
            "display": "Breite der Wunde"
          }
        ],
        "short": "Breite der Wunde",
        "max": "3"
      },
      {
        "id": "Observation.component:breite.code.coding",
        "path": "Observation.component.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:breite.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:breite.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "min": 1,
        "fixedCode": "39125-0"
      },
      {
        "id": "Observation.component:breite.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:breite.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "fixedString": "mm"
      },
      {
        "id": "Observation.component:breite.value[x].system",
        "path": "Observation.component.value[x].system",
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:breite.value[x].code",
        "path": "Observation.component.value[x].code",
        "fixedCode": "mm"
      },
      {
        "id": "Observation.component:laenge",
        "path": "Observation.component",
        "sliceName": "laenge",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "39126-8",
            "display": "Länge der Wunde"
          }
        ],
        "short": "Länge der Wunde",
        "max": "3"
      },
      {
        "id": "Observation.component:laenge.code.coding",
        "path": "Observation.component.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:laenge.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:laenge.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "min": 1,
        "fixedCode": "39126-8"
      },
      {
        "id": "Observation.component:laenge.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:laenge.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "fixedString": "mm"
      },
      {
        "id": "Observation.component:laenge.value[x].system",
        "path": "Observation.component.value[x].system",
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:laenge.value[x].code",
        "path": "Observation.component.value[x].code",
        "fixedCode": "mm"
      },
      {
        "id": "Observation.component:tiefe",
        "path": "Observation.component",
        "sliceName": "tiefe",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "39127-6",
            "display": "Tiefe der Wunde"
          }
        ],
        "short": "Tiefe der Wunde",
        "max": "3"
      },
      {
        "id": "Observation.component:tiefe.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:tiefe.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "min": 1,
        "fixedCode": "39127-6"
      },
      {
        "id": "Observation.component:tiefe.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:tiefe.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "fixedString": "mm"
      },
      {
        "id": "Observation.component:tiefe.value[x].system",
        "path": "Observation.component.value[x].system",
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:tiefe.value[x].code",
        "path": "Observation.component.value[x].code",
        "fixedCode": "mm"
      }
    ]
  }
}