<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="lipidprofile" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">to do</div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-summary">
    <valueMarkdown value="This is a test summary [lipids](observation.html)" />
  </extension>
  <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>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/lipidprofile" />
  <version value="4.0.0" />
  <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="Lipid Lab Report" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </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/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport">
      <path value="DiagnosticReport" />
      <short value="Lipid Lab Report" />
      <definition value="The findings and interpretation of a general lipid lab profile." />
      <comment value="In this profile, mustSupport means that authoring systems must include the ability to report these elements, and processing systems must cater for them by either displaying them to the user or considering them appropriately in decision support systems." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <short value="LOINC Code for Lipid Panel with LDL" />
      <definition value="LOINC Code for Lipid Panel with LDL." />
      <comment value="LOINC code includes &quot;direct&quot; LDL - does this mean LDL derived by measuring VLDL by ultracentrifugation? This panel includes both measured and calculated LDL." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="57698-3" />
          <display value="Lipid panel with direct LDL - Serum or Plasma" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="resolve().code" />
        </discriminator>
        <ordered value="true" />
        <rules value="closed" />
      </slicing>
      <min value="3" />
      <max value="4" />
    </element>
    <element id="DiagnosticReport.result:Cholesterol">
      <path value="DiagnosticReport.result" />
      <sliceName value="Cholesterol" />
      <short value="Cholesterol Result" />
      <definition value="Reference to Cholesterol Result." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/cholesterol" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:Triglyceride">
      <path value="DiagnosticReport.result" />
      <sliceName value="Triglyceride" />
      <short value="Triglyceride Result" />
      <definition value="Group of elements for Triglyceride result." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/triglyceride" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:HDLCholesterol">
      <path value="DiagnosticReport.result" />
      <sliceName value="HDLCholesterol" />
      <short value="HDL Cholesterol Result" />
      <definition value="Group of elements for HDL Cholesterol result." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/hdlcholesterol" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result:LDLCholesterol">
      <path value="DiagnosticReport.result" />
      <sliceName value="LDLCholesterol" />
      <short value="LDL Cholesterol result, if reported" />
      <definition value="LDL Cholesterol result, if reported." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ldlcholesterol" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <short value="Clinical Interpretation of Lipid Panel" />
      <definition value="May include diagnosis or suggestions for follow up testing." />
      <comment value="It's not unusual for the lab to make some kind of interpretative comment on the set of results." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <short value="No codes for a lipid panel" />
      <definition value="No codes for a lipid panel." />
      <comment value="Not used in this context." />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
  </differential>
</StructureDefinition>