<?xml version="1.0" encoding="UTF-8"?>

  <!--   This is an example of Observations made about something other than a patient - namely a location  -->
<Observation xmlns="http://hl7.org/fhir">
  <id value="vp-oyster"/>
  <contained>
    <Specimen>
      <id value="bed1"/>
      <note>
        <text value="Live Oysters Acc#20171014-1234 from Bed 1"/>
      </note>
    </Specimen>
  </contained>
  <contained>
    <Specimen>
      <id value="bed2"/>
      <note>
        <text value="Live Oysters Acc#20171014-1234 from Bed 2"/>
      </note>
    </Specimen>
  </contained>
  <contained>
    <Group>
      <id value="group1"/>
      <type value="animal"/>
      <membership value="enumerated"/>
      <member>
        <entity>
          <reference value="#bed1"/>
        </entity>
      </member>
      <member>
        <entity>
          <reference value="#bed2"/>
        </entity>
      </member>
    </Group>
  </contained>
  <identifier>
    <use value="official"/>
    <system value="http://sonomacounty.ca.gov/Health/Public-Health/Laboratory"/>
    <value value="20171014-1234"/>
  </identifier>
  <status value="preliminary"/>
  <!-- 
    Observations are often coded in multiple code systems.
      - LOINC
		- or SNOMED
      -and/or the source system may provides its own "local" code, which may be less or more granular than LOINC.
	In this example there is only local codes
    -->
  <code>
    <!--  Should use a  proper LOINC code   -->
    <coding>
      <system value="http://loinc.org"/>
      <code value="41857-4"/>
      <display value="Vibrio parahaemolyticus DNA [Presence] in Specimen by NAA with probe detection"/>
    </coding>
    <!--  here is the local code  -->
    <coding>
      <system value="http://sonomacounty.ca.gov/Health/Public-Health/Laboratory/test-codes"/>
      <code value="VP MULTI PCR"/>
      <display value="VP MULTI PCR"/>
    </coding>
    <text value="OYSTER TESTING"/>
  </code>
  <subject>
    <!--  reference value="Location/oyster-farm"/  -->
    <display value="Sonoma oyster farm"/>
  </subject>
  <effectiveDateTime value="2017-10-12"/>
  <issued value="2017-10-14T23:11:24Z"/>
  <performer>
    <reference value="Practitioner/f005"/>
    <display value="A. Langeveld"/>
  </performer>
  <!--  results of this Qualtiattive PCR is a choice of Positive/Negative and Inconclusive  -->
  <valueCodeableConcept>
    <!--  SNOMED CT codes  -->
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="10828004"/>
      <display value="Positive (qualifier value)"/>
    </coding>
    <!--  local code translation  -->
    <coding>
      <system value="http://sonomacounty.ca.gov/Health/Public-Health/Laboratory/result-codes"/>
      <code value="POSITIVE"/>
      <display value="POSITIVE"/>
    </coding>
    <text value="POSITIVE"/>
  </valueCodeableConcept>
  <interpretation>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"/>
      <code value="A"/>
      <display value="Abnormal"/>
    </coding>
  </interpretation>
  <specimen>
    <reference value="#group1"/>
  </specimen>
  <referenceRange>
    <text value="NEGATIVE"/>
  </referenceRange>
</Observation>