{
  "resourceType": "StructureDefinition",
  "id": "blood-pressure",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Diagnostics"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/blood-pressure",
  "version": "1.0.6",
  "name": "BloodPressure",
  "title": "Blood Pressure",
  "status": "active",
  "experimental": false,
  "date": "2021-05-17",
  "publisher": "Berlin Institute of Health at Charité (BIH)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://www.bihealth.org/en/research/core-facilities/interoperability/"
        }
      ]
    }
  ],
  "description": "The blood pressure of a patient.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/vital-signs-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.code.coding:loinc",
        "path": "Observation.code.coding",
        "sliceName": "loinc",
        "min": 1,
        "max": "*",
        "patternCoding": {
          "code": "85354-9",
          "system": "http://loinc.org"
        }
      },
      {
        "id": "Observation.code.coding:loinc.system",
        "path": "Observation.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.code.coding:loinc.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.code.coding:snomed",
        "path": "Observation.code.coding",
        "sliceName": "snomed",
        "min": 0,
        "max": "*",
        "patternCoding": {
          "code": "75367002",
          "system": "http://snomed.info/sct"
        }
      },
      {
        "id": "Observation.code.coding:snomed.system",
        "path": "Observation.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.code.coding:snomed.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "short": "Used when reporting systolic and diastolic blood pressure.",
        "definition": "Used when reporting systolic and diastolic blood pressure.",
        "min": 2,
        "constraint": [
          {
            "key": "vs-3",
            "severity": "error",
            "human": "If there is no a value a data absent reason must be present",
            "expression": "value.exists() or dataAbsentReason.exists()",
            "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
            "source": "https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/blood-pressure"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicBloodPressure",
        "path": "Observation.component",
        "sliceName": "systolicBloodPressure",
        "short": "Systolic blood pressure",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicBloodPressure.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "8480-6",
              "system": "http://loinc.org"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding:loinc",
        "path": "Observation.component.code.coding",
        "sliceName": "loinc",
        "min": 1,
        "max": "*",
        "patternCoding": {
          "code": "8480-6",
          "system": "http://loinc.org"
        }
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding:loinc.system",
        "path": "Observation.component.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding:loinc.code",
        "path": "Observation.component.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding:snomed",
        "path": "Observation.component.code.coding",
        "sliceName": "snomed",
        "min": 0,
        "max": "*",
        "patternCoding": {
          "code": "271649006",
          "system": "http://snomed.info/sct"
        }
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding:snomed.system",
        "path": "Observation.component.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.code.coding:snomed.code",
        "path": "Observation.component.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "Systolic blood pressure value",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicBloodPressure.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1
      },
      {
        "id": "Observation.component:systolicBloodPressure.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:systolicBloodPressure.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "patternCode": "mm[Hg]"
      },
      {
        "id": "Observation.component:diastolicBloodPressure",
        "path": "Observation.component",
        "sliceName": "diastolicBloodPressure",
        "short": "Diastolic blood pressure",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "8462-4",
              "system": "http://loinc.org"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding:loinc",
        "path": "Observation.component.code.coding",
        "sliceName": "loinc",
        "min": 1,
        "max": "*",
        "patternCoding": {
          "code": "8462-4",
          "system": "http://loinc.org"
        }
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding:loinc.system",
        "path": "Observation.component.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding:loinc.code",
        "path": "Observation.component.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding:snomed",
        "path": "Observation.component.code.coding",
        "sliceName": "snomed",
        "min": 0,
        "max": "*",
        "patternCoding": {
          "code": "271650006",
          "system": "http://snomed.info/sct"
        }
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding:snomed.system",
        "path": "Observation.component.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code.coding:snomed.code",
        "path": "Observation.component.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "Diastolic blood pressure value",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicBloodPressure.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1
      },
      {
        "id": "Observation.component:diastolicBloodPressure.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:diastolicBloodPressure.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "patternCode": "mm[Hg]"
      }
    ]
  }
}