<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-sd-bmi" />
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-bmi" />
  <name value="CYEHRSDBMI" />
  <title value="Cyprus EHR Body Mass Index profile" />
  <status value="draft" />
  <publisher value="eHealth4U" />
  <contact>
    <name value="eHealth Lab (University of Cyprus)" />
    <telecom>
      <system value="email" />
      <value value="ehealthl@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-vitalsigns" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.meta">
      <path value="Observation.meta" />
    </element>
    <element id="Observation.meta.profile">
      <path value="Observation.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.meta.profile:CyprusEHRProfile">
      <path value="Observation.meta.profile" />
      <sliceName value="CyprusEHRProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-bmi" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="Body Mass Index (BMI)" />
      <definition value="Body Mass Index (BMI)." />
      <comment value="additional codes that translate or map to this code are allowed.  For example a more granular LOINC code or code that is used locally in a system.&#xD;&#xA;&#xD;&#xA;CyprusEHR: display: &quot;Body mass index (BMI)&quot;" />
      <alias value="Test" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="39156-5" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Body mass index (BMI) [Ratio]" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <patternQuantity>
        <unit value="kg/m2" />
        <system value="http://unitsofmeasure.org" />
        <code value="kg/m2" />
      </patternQuantity>
    </element>
  </differential>
</StructureDefinition>