{
  "resourceType": "StructureDefinition",
  "id": "1892749",
  "meta": {
    "lastUpdated": "2019-05-03T10:57:40.4414907+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/MyObservation",
  "name": "WoundSizePosiThera",
  "status": "draft",
  "date": "2019-05-03T10:57:40.4105188+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "definition": "Measurements and simple assertions made about a patient, device or other subject.\r\n---\r\nA draft on observation WoundSize\r\n\r\nIt supports two elements of WoundSize. First length of wound and second width of wound.\r\n\r\nLOINC codes are used to encode data.\r\n\r\n---\r\n\r\nTimestamp has to be available for measure."
      },
      {
        "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": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:woundSizeLOINC",
        "path": "Observation.code.coding",
        "sliceName": "woundSizeLOINC",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding:woundSizeLOINC.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:woundSizeLOINC.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "72287-6"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "definition": "A timestamp of the examination date when wound size was assessed.",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "max": "0",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:WoundLength",
        "path": "Observation.component",
        "sliceName": "WoundLength",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:WoundLength.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:WoundLength.code.coding:woundLengthLOINC",
        "path": "Observation.component.code.coding",
        "sliceName": "woundLengthLOINC",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:WoundLength.code.coding:woundLengthLOINC.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:WoundLength.code.coding:woundLengthLOINC.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "39125-0"
      },
      {
        "id": "Observation.component:WoundLength.code.coding:woundLengthSNOMED",
        "path": "Observation.component.code.coding",
        "sliceName": "woundLengthSNOMED"
      },
      {
        "id": "Observation.component:WoundLength.code.coding:woundLengthSNOMED.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:WoundLength.code.coding:woundLengthSNOMED.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "401238003"
      },
      {
        "id": "Observation.component:WoundLength.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:WoundLength.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1
      },
      {
        "id": "Observation.component:WoundLength.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "min": 1,
        "fixedString": "cm"
      },
      {
        "id": "Observation.component:WoundLength.value[x]:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:WoundLength.value[x]:valueQuantity.code",
        "path": "Observation.component.valueQuantity.code",
        "min": 1,
        "fixedCode": "cm"
      },
      {
        "id": "Observation.component:WoundWidth",
        "path": "Observation.component",
        "sliceName": "WoundWidth",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:WoundWidth.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:WoundWidth.code.coding:woundWidthLOINC",
        "path": "Observation.component.code.coding",
        "sliceName": "woundWidthLOINC",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:WoundWidth.code.coding:woundWidthLOINC.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:WoundWidth.code.coding:woundWidthLOINC.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "39126-8"
      },
      {
        "id": "Observation.component:WoundWidth.code.coding:woundWidthSNOMED",
        "path": "Observation.component.code.coding",
        "sliceName": "woundWidthSNOMED"
      },
      {
        "id": "Observation.component:WoundWidth.code.coding:woundWidthSNOMED.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:WoundWidth.code.coding:woundWidthSNOMED.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "401239006"
      },
      {
        "id": "Observation.component:WoundWidth.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:WoundWidth.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1
      },
      {
        "id": "Observation.component:WoundWidth.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "min": 1,
        "fixedString": "cm"
      },
      {
        "id": "Observation.component:WoundWidth.value[x]:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:WoundWidth.value[x]:valueQuantity.code",
        "path": "Observation.component.valueQuantity.code",
        "fixedCode": "cm"
      },
      {
        "id": "Observation.component:WoundDepth",
        "path": "Observation.component",
        "sliceName": "WoundDepth",
        "max": "1"
      },
      {
        "id": "Observation.component:WoundDepth.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:WoundDepth.code.coding:woundDepthLOINC",
        "path": "Observation.component.code.coding",
        "sliceName": "woundDepthLOINC"
      },
      {
        "id": "Observation.component:WoundDepth.code.coding:woundDepthLOINC.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:WoundDepth.code.coding:woundDepthLOINC.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "39114-4"
      },
      {
        "id": "Observation.component:WoundDepth.code.coding:woundDepthSNOMED",
        "path": "Observation.component.code.coding",
        "sliceName": "woundDepthSNOMED"
      },
      {
        "id": "Observation.component:WoundDepth.code.coding:woundDepthSNOMED.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.component:WoundDepth.code.coding:woundDepthSNOMED.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "425094009"
      },
      {
        "id": "Observation.component:WoundArea",
        "path": "Observation.component",
        "sliceName": "WoundArea",
        "max": "1"
      },
      {
        "id": "Observation.component:WoundArea.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:WoundArea.code.coding:woundAreaLOINC",
        "path": "Observation.component.code.coding",
        "sliceName": "woundAreaLOINC"
      },
      {
        "id": "Observation.component:WoundArea.code.coding:woundAreaLOINC.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component:WoundArea.code.coding:woundAreaLOINC.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "89260-4"
      },
      {
        "id": "Observation.component:WoundArea.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:WoundArea.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "definition": "Soll in Quadradzentimetern gemessen werden, habe ich jedoch nicht unter unitsofmeasure.org gefunden.\r\n\r\nShould be given in square centimeters, however, I did not find the correct unit. Maybe it is possible to create an extention to define area of wound as length x width"
      },
      {
        "id": "Observation.component:WoundArea.value[x]:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "fixedUri": "http://unitsofmeasure.org"
      }
    ]
  }
}