<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-02-16T18:38:24.701+01:00" />
  </meta>
  <url value="http://hl7.org/fhir/ips/StructureDefinition/observation-member-pathology-uv-ips" />
  <version value="0.2" />
  <name value="Observation-member-pathology-uv-ips" />
  <title value="Observation (member pathology)" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2018-03-21" />
  <publisher value="HL7 International" />
  <contact>
    <name value="François Macary - Phast" />
  </contact>
  <description value="This profile constrains the Observation resource to represent a sub-observation, member of an &quot;organizer&quot; observation, in the &quot;pathology results entry of a patient summary" />
  <purpose value="This profile constrains the Observation resource to represent a sub-observation member of a grouping observation (for instance a panel). It can be either a the result of a laboratory observation or a vital sign observation, which helps to interpret the set of results of the grouping observation" />
  <fhirVersion value="3.0.1" />
  <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" />
      <short value="pathology simple observation" />
      <definition value="Either a  simple observation member of a pathology study containing multiple observations,  or a clinical observation associated with this study, in order to enable the interpretation of this set of observations" />
      <comment value="This observation is a member of a multiple observations pathology study." />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <max value="0" />
    </element>
    <element id="Observation.status">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
        <valueString value="default: final" />
      </extension>
      <path value="Observation.status" />
      <definition value="The status of the result value.  Only final results feed patient summaries." />
      <fixedCode value="final" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <definition value="A code that classifies the general type of observation being made, between two categories: &#xD;&#xA;a) laboratory observation: &quot;laboratory&quot;&#xD;&#xA;b) clinical observation: &quot;vital-signs&quot;" />
      <comment value="In this profile designed for the IPS, this element distinguishes between observations performed by a laboratory and observations obtained from the ordering party, which are just included in the summary to support the interpretation of the lab observations." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ObservationCategory" />
        </extension>
        <strength value="required" />
        <description value="Codes for sub-observation categories" />
        <valueSetUri value="http://hl7.org/fhir/ips/ValueSet/sub-observation-category-uv-ips" />
      </binding>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ObservationCode" />
        </extension>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ips/ValueSet/pathology-and-vital-signs-observations" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject.identifier">
      <path value="Observation.subject.identifier" />
      <max value="0" />
    </element>
    <element id="Observation.effectiveDateTime:effectiveDateTime">
      <path value="Observation.effectiveDateTime" />
      <sliceName value="effectiveDateTime" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ips/StructureDefinition/organization-laboratory-uv-ips" />
      </type>
    </element>
    <element id="Observation.performer.identifier">
      <path value="Observation.performer.identifier" />
      <max value="0" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <min value="1" />
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/ips/StructureDefinition/Quantity-uv-ips" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ips/ValueSet/pathology-result-coded-value-uv-ips" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <comment value="The specimen is often implied by the observation code. &#xD;&#xA;In the context of this Observation-member-laboratory-uv-ips profile, specimen should be provided only when it is not implied by the Observation.code, and when further information about the specimen needs to be captured (such as specimen source body site)." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ips/StructureDefinition/specimen-uv-ips" />
      </type>
    </element>
    <element id="Observation.specimen.identifier">
      <path value="Observation.specimen.identifier" />
      <max value="0" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.type">
      <path value="Observation.referenceRange.type" />
      <min value="1" />
    </element>
    <element id="Observation.referenceRange.appliesTo">
      <path value="Observation.referenceRange.appliesTo" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.age">
      <path value="Observation.referenceRange.age" />
      <max value="0" />
    </element>
    <element id="Observation.related">
      <path value="Observation.related" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>