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

  <!-- 
 An example of a herd used in the subject screening observation for Mycoplasmal Pneumonia in Pigs
(Enzootic pneumonia).  Many thanks to Veterinary Diagnostic Laboratory Iowa State University for the data. -->
<Group xmlns="http://hl7.org/fhir">
  <id value="herd1"/>
  <!--  added this extension to reference the owner (client) of the herd  -->
  <extension url="http://example.org/fhir/StructureDefinition/owner">
    <valueReference>
      <reference value="RelatedPerson/peter"/>
      <display value="Peter Chalmers"/>
    </valueReference>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/>
  </extension>
  <!--  diagnostic lab's identifier  -->
  <identifier>
    <system value="https://vetmed.iastate.edu/vdl"/>
    <value value="20171120-1234"/>
  </identifier>
  <name value="Breeding herd"/>
  <status value="active"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <type value="animal"/>
  <membership value="enumerated"/>
  <!--  describes a bunch of female breeding sows  added a translation from US APHIS codes to SNOMED CT -->
  <code>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="388393002"/>
      <display value="Genus Sus (organism)"/>
    </coding>
    <coding>
      <system value="https://www.aphis.usda.gov"/>
      <code value="POR"/>
      <display value="porcine"/>
    </coding>
    <text value="Porcine"/>
  </code>
  <quantity value="2500"/>
  <!--  the share the common charasteristic of being sows  -->
  <characteristic>
    <code>
      <text value="gender"/>
    </code>
    <valueCodeableConcept>
      <text value="female"/>
    </valueCodeableConcept>
    <!--  required element - false means they are all sows  -->
    <exclude value="false"/>
  </characteristic>
</Group>