<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="hspc-height" />
  <url value="http://fhir.org/guides/hspc/StructureDefinition/hspc-height" />
  <version value="2.0.0" />
  <name value="HSPC Height Profile" />
  <status value="draft" />
  <date value="2017-04-27" />
  <publisher value="HSPC" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://healthcaresoa.org" />
    </telecom>
  </contact>
  <fhirVersion value="3.0.0" />
  <mapping>
    <identity value="argonaut-dq-dstu2" />
    <uri value="http://unknown.org/Argonaut DQ DSTU2" />
    <name value="Argonaut DQ DSTU2" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.info/sct" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation:hspcheight">
      <path value="Observation" />
      <sliceName value="hspcheight" />
      <short value="HSPC Height" />
      <definition value="Used specifically to capture an individual's height or body length." />
      <comment value="The HSPC Height profile is based on the US Core Result Observation profile." />
      <alias value="HSPC Body Length" />
      <constraint>
        <key value="us-core-2" />
        <severity value="error" />
        <human value="If there is no component or related element then either a value[x] or a data absent reason must be present" />
        <expression value="(component.empty() and related.empty()) implies (dataAbsentReason or value)" />
        <xpath value="exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" />
      </constraint>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="argonaut-dq-dstu2" />
        <map value="Observation" />
      </mapping>
    </element>
    <element id="Observation:hspcheight.extension:deltaflag$Extension">
      <path value="Observation.extension" />
      <sliceName value="DeltaFlag" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that describe the manner in which a value has changed from a previous value" />
        <valueSetReference>
          <reference value="ValueSet/deltaFlag-numericNom" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:hspcheight.extension:dataoriginationmode$Extension">
      <path value="Observation.extension" />
      <sliceName value="DataOriginationMode" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <strength value="preferred" />
        <description value="The description of how the data came into being" />
        <valueSetReference>
          <reference value="ValueSet/observation-dataOriginationMode" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:hspcheight.extension:associatedprecondition$Extension">
      <path value="Observation.extension" />
      <sliceName value="AssociatedPrecondition" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <strength value="preferred" />
        <description value="The conditions during which an individual's height was measured" />
        <valueSetReference>
          <reference value="ValueSet/observation-heightPrecond" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:hspcheight.code">
      <path value="Observation.code" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="8302-2" />
          <display value="Body height" />
        </coding>
      </fixedCodeableConcept>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.issued">
      <path value="Observation.issued" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.performer">
      <path value="Observation.performer" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-provpract" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-patient" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.valueQuantity">
      <path value="Observation.valueQuantity" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Quantity" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.valueQuantity.system">
      <path value="Observation.valueQuantity.system" />
      <type>
        <code value="uri" />
        <profile value="http://hl7.org/fhir/StructureDefinition/uri" />
      </type>
      <fixedUri value="http://unitsofmeasure.org" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.valueQuantity.code">
      <path value="Observation.valueQuantity.code" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
      <fixedCode value="cm" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.bodySite">
      <path value="Observation.bodySite" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.method">
      <path value="Observation.method" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <strength value="preferred" />
        <description value="A set of codes that describe the method or device used to measure an individual's height" />
        <valueSetReference>
          <reference value="ValueSet/observation-heightMeasMethodDevice" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:hspcheight.specimen">
      <path value="Observation.specimen" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.related">
      <path value="Observation.related" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcheight.component">
      <path value="Observation.component" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
  </differential>
</StructureDefinition>