<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NICE-BodyHeight" />
  <meta>
    <lastUpdated value="2023-10-04T15:03:29.1617497+00:00" />
  </meta>
  <url value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-BodyHeight-2022Q1" />
  <name value="NICE-BodyHeight" />
  <title value="NICE-BodyHeight" />
  <status value="active" />
  <date value="2023-10-04T15:33:14.3221484+00:00" />
  <publisher value="NICE" />
  <contact>
    <name value="NICE" />
    <telecom>
      <system value="email" />
      <value value="vragen@stichting-nice.nl" />
    </telecom>
  </contact>
  <description value="The NICE submission requires the height of the patient at ICU admission in centimeters. If the height is unknown, please make an estimate." />
  <purpose value="A profile derived from the HL7 Vital Signs profile for body height in order to add mappings from the Dutch Health and Care Information models (HCIM; Dutch: Zorginformatiebouwsteen - ZIB) BodyHeight version 3.1, release 2017." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="NICE-Datadictionary-MDS" />
    <uri value="https://www.stichting-nice.nl/dd/#528" />
    <name value="NICE-Datadictionary-MDS" />
    <comment value="The Minimal Data Set (MDS)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://nictiz.nl/fhir/StructureDefinition/zib-BodyHeight" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <mapping>
        <identity value="NICE-Datadictionary-MDS" />
        <map value="https://www.stichting-nice.nl/dd/#167" />
        <comment value="Height" />
      </mapping>
    </element>
    <element id="Observation.extension">
      <path value="Observation.extension" />
      <min value="1" />
    </element>
    <element id="Observation.extension:Verified">
      <path value="Observation.extension" />
      <sliceName value="Verified" />
      <short value="Is the instance validated by a medical professional?" />
      <definition value="Extension that is used to indicate whether the entire instance has been validated.&#xD;&#xA;&#xD;&#xA;Every instance shall be validated by a hospital member / datamanager. However, this is not always feasible in case of automated submission of NICE data elements. This extensions shall be used to indicate the validation status of the instance." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-Verified-2022Q1" />
      </type>
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="Value has to be validated (final)" />
      <fixedCode value="final" />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/observation-category" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <fixedCode value="vital-signs" />
    </element>
    <element id="Observation.code.coding:BodyHeightCodeEstimated">
      <path value="Observation.code.coding" />
      <sliceName value="BodyHeightCodeEstimated" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:BodyHeightCodeEstimated.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.code.coding:BodyHeightCodeEstimated.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="8301-4" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-Patient-2022Q1" />
      </type>
    </element>
    <element id="Observation.context">
      <path value="Observation.context" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-Encounter-2022Q1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]:effectiveDateTime">
      <path value="Observation.effectiveDateTime" />
      <sliceName value="effectiveDateTime" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.valueQuantity:valueQuantity">
      <path value="Observation.valueQuantity" />
      <sliceName value="valueQuantity" />
      <minValueQuantity>
        <value value="40.0" />
        <comparator value="&gt;=" />
        <unit value="cm" />
      </minValueQuantity>
      <maxValueQuantity>
        <value value="230.0" />
        <comparator value="&lt;=" />
        <unit value="cm" />
      </maxValueQuantity>
    </element>
    <element id="Observation.valueQuantity:valueQuantity.value">
      <path value="Observation.valueQuantity.value" />
      <minValueDecimal value="40.0" />
      <maxValueDecimal value="230.0" />
      <constraint>
        <key value="valueExtremes" />
        <severity value="error" />
        <human value="Defines the lower bounds and upper bounds of the allowed values for Bodyheight" />
        <expression value="Observation.valueQuantity.value &gt;= 40 and Observation.valueQuantity.value &lt;= 230" />
      </constraint>
    </element>
    <element id="Observation.valueQuantity:valueQuantity.unit">
      <path value="Observation.valueQuantity.unit" />
      <constraint>
        <key value="unit-1" />
        <severity value="error" />
        <human value="Unit type has to be either cm (centimeters) or m (meters)" />
        <expression value="hasValue() | &quot;cm&quot; xor &quot;m&quot;" />
      </constraint>
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <short value="Was the height estimated?" />
      <definition value="Indicates wether the bodyheight was estimated or measured" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.method.coding">
      <path value="Observation.method.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.method.coding.system">
      <path value="Observation.method.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Yes/No HL7 table 0136" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/v2/0136" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation.method.coding.code">
      <path value="Observation.method.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Yes/No indicator" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v2-0136" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>