{
  "resourceType": "StructureDefinition",
  "url": "https://posithera.de/fhir/StructureDefinition/CDS_WoundPain",
  "name": "CDSWoundPain",
  "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://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "fixedCode": "exam"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "https://posithera.de/fhir/CodeSystem/CDS_Posithera"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "fixedCode": "P0415"
      },
      {
        "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:intensity",
        "path": "Observation.component",
        "sliceName": "intensity"
      },
      {
        "id": "Observation.component:intensity.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "https://posithera.de/fhir/CodeSystem/CDS_Posithera"
      },
      {
        "id": "Observation.component:intensity.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "P041501"
      },
      {
        "id": "Observation.component:intensity.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "integer"
          }
        ],
        "minValueInteger": 0,
        "maxValueInteger": 10
      },
      {
        "id": "Observation.component:setting",
        "path": "Observation.component",
        "sliceName": "setting"
      },
      {
        "id": "Observation.component:setting.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "https://posithera.de/fhir/CodeSystem/CDS_Posithera"
      },
      {
        "id": "Observation.component:setting.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "P041502"
      },
      {
        "id": "Observation.component:settingt.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://posithera.de/fhir/ValueSet/CDS_Schmerzsetting"
        }
      }
    ]
  }
}