{
  "resourceType": "StructureDefinition",
  "id": "zib-VitalSigns",
  "url": "http://nictiz.nl/fhir/StructureDefinition/zib-VitalSigns",
  "version": "2.1.4",
  "name": "Vital Signs Profile NL",
  "title": "VitalSigns Profile NL",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Copied FHIR Vital Signs Profile to remove .component.value Quantity type constraint. More information can be found in GForge ticket #13796 or in the FHIR zulip chat https://chat.fhir.org/#narrow/stream/implementers/subject/Vital.20signs.20supporting.20observations.",
  "copyright": "CC0",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://fhir.nl/fhir/StructureDefinition/nl-core-observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "FHIR Vital Signs Profile",
        "definition": "The FHIR Vitals Signs profile sets a minimum expectations for the Observation Resource to record, search and fetch the vital signs associated with a patient.",
        "alias": [
          "FHIR Vital Signs profiel"
        ],
        "constraint": [
          {
            "key": "vs-2",
            "severity": "error",
            "human": "If there is no component or related element then either a value[x] or a data absent reason must be present",
            "expression": "(component.empty() and related.empty()) implies (dataAbsentReason or value)",
            "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:dataAbsentReason)"
          }
        ]
      },
      {
        "id": "Observation.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "mustSupport": true
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "condition": [
          "vs-4"
        ],
        "constraint": [
          {
            "key": "vs-4",
            "severity": "error",
            "human": "Must have a category of 'vital-signs' and a code system 'http://hl7.org/fhir/observation-category'",
            "expression": "where(coding.system='http://hl7.org/fhir/observation-category' and coding.code='vital-signs').exists()",
            "xpath": "exists(f:coding/code[@value='vital-signs']) and exists(f:coding/system[@value='http://hl7.org/fhir/observation-category'])"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Coded Responses from Vital Signs Results",
        "definition": "Coded Responses from C-CDA Vital Sign Results.",
        "requirements": "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
        "alias": [
          "Gecodeerde antwoorden uit Vital Signs resultaten"
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VitalSigns"
            }
          ],
          "strength": "extensible",
          "description": "This identifies the vital sign result type.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult",
            "display": "Vital Signs"
          }
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "short": "Often just a dateTime for Vital Signs",
        "definition": "Often just a dateTime for Vital Signs.",
        "alias": [
          "Meestal slechts een datum/tijd voor Vital Signs"
        ],
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "Vital Sign Value recorded with UCUM",
        "definition": "Vital Sign Value recorded with UCUM.",
        "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
        "alias": [
          "Vital Sign waarde, vastgelegd op basis van UCUM-eenheid"
        ],
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "condition": [
          "vs-2"
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VitalSignsUnits"
            }
          ],
          "strength": "required",
          "description": "Common UCUM units for recording Vital Signs",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common",
            "display": "Vital Signs Units"
          }
        }
      },
      {
        "id": "Observation.value[x]:valueQuantity.value",
        "path": "Observation.valueQuantity.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.valueQuantity.unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueQuantity.system",
        "path": "Observation.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]:valueQuantity.code",
        "path": "Observation.valueQuantity.code",
        "short": "Coded responses from the common UCUM units for vital signs value set.",
        "definition": "Coded responses from the common UCUM units for vital signs value set.",
        "alias": [
          "Gecodeerde antwoorden van de algemene UCUM-eenheden voor vital signs waardelijst."
        ],
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "condition": [
          "vs-2"
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
          }
        ]
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "short": "Used when reporting vital signs panel components",
        "definition": "Used when reporting vital signs panel components.",
        "alias": [
          "Gebruikt bij het rapporteren van vital signs panelcomponenten."
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.related.type",
        "path": "Observation.related.type",
        "min": 1,
        "fixedCode": "has-member",
        "mustSupport": true
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-VitalSigns"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "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": "exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:dataAbsentReason)"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VitalSigns"
            }
          ],
          "strength": "extensible",
          "description": "This identifies the vital sign result type.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult",
            "display": "Vital Signs"
          }
        }
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "short": "Vital Sign Value recorded with UCUM",
        "definition": "Vital Sign Value recorded with UCUM.",
        "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
        "alias": [
          "Vital Sign waarde vastgelegd op basis van UCUM-eenheid"
        ],
        "condition": [
          "vs-3"
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "condition": [
          "vs-3"
        ],
        "mustSupport": true
      }
    ]
  }
}