<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cholesterol" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">to do</div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/cholesterol" />
  <name value="Example Lipid Profile" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2012-05-12" />
  <publisher value="Grahame Grieve" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="grahame@healthintersections.com.au" />
    </telecom>
  </contact>
  <description value="Describes how the lab report is used for a standard Lipid Profile - Cholesterol, Triglyceride and Cholesterol fractions. Uses LOINC codes" />
  <fhirVersion value="3.0.1" />
  <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/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="Cholesterol" />
      <definition value="Cholesterol." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="35200-5" />
          <display value="Cholesterol" />
        </coding>
      </fixedCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueQuantity">
      <path value="Observation.valueQuantity" />
      <short value="Cholesterol value" />
      <definition value="Cholesterol value. If a result is not available, use the comments field." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueQuantity.value">
      <path value="Observation.valueQuantity.value" />
      <short value="Actual numerical value" />
      <definition value="Actual numerical value." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueQuantity.comparator">
      <path value="Observation.valueQuantity.comparator" />
      <comment value="No need for this on cholesterol." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="Observation.valueQuantity.unit">
      <path value="Observation.valueQuantity.unit" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <fixedString value="mmol/L" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueQuantity.system">
      <path value="Observation.valueQuantity.system" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://unitsofmeasure.org" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.valueQuantity.code">
      <path value="Observation.valueQuantity.code" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <fixedCode value="mmol/L" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <short value="+ | ++ | +++ | - | -- | ---" />
      <definition value="+ | ++ | +++ | - | -- | ---." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.comment">
      <path value="Observation.comment" />
      <short value="Comments about result" />
      <definition value="May include statements about significant, unexpected or unreliable. values, or information about the source of the value where this may be relevant to the interpretation of the result." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.low">
      <path value="Observation.referenceRange.low" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.high">
      <path value="Observation.referenceRange.high" />
      <definition value="&lt;4.5 mmol/L." />
      <comment value="Per Australian NHF Recommendations." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <fixedQuantity>
        <value value="4.5" />
      </fixedQuantity>
    </element>
    <element id="Observation.referenceRange.type">
      <path value="Observation.referenceRange.type" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.referenceRange.appliesTo">
      <path value="Observation.referenceRange.appliesTo" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.referenceRange.age">
      <path value="Observation.referenceRange.age" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Range" />
      </type>
    </element>
    <element id="Observation.related">
      <path value="Observation.related" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>