<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-entity-Specimen" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Specimen Profile</b>
      </p>
      <p>Sample for analysis</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.entity.Specimen maps to Specimen:
  AccessionIdentifier maps to accessionIdentifier
  Status maps to status
  Type maps to type
  Subject maps to subject
  SourceSpecimen maps to parent
  ReceivedTime maps to receivedTime
  SpecimenCollectionPerformed.AmountOrSize maps to collection.quantity
  SpecimenCollectionPerformed.BodySite maps to collection.bodySite
  SpecimenCollectionPerformed.PerformedContext.OccurrenceTimeOrPeriod maps to collection.collected[x]
  SpecimenCollectionPerformed.PerformedContext.Participant maps to collection.collector
  SpecimenCollectionPerformed.PerformedContext.Method maps to collection.method
  SpecimenCollectionPerformed.PerformedContext.RelatedRequest maps to request
  SpecimenContainer.Identifier maps to container.identifier
  SpecimenContainer.Details maps to container.description
  SpecimenContainer.Type maps to container.type
  SpecimenContainer.Capacity maps to container.capacity
  SpecimenContainer.SpecimenQuantity maps to container.specimenQuantity
  SpecimenContainer.Additive maps to container.additive[x]
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Specimen" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.entity.Specimen" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Specimen Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="Sample for analysis" />
  <fhirVersion value="3.0.1" />
  <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="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Specimen" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Specimen" />
  <derivation value="constraint" />
  <differential>
    <element id="Specimen:shr-entity-Specimen">
      <path value="Specimen" />
      <short value="SHR Specimen Profile" />
      <definition value="Sample for analysis" />
    </element>
    <element id="Specimen:shr-entity-Specimen.extension:relatedencounter">
      <path value="Specimen.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.extension:author">
      <path value="Specimen.extension" />
      <sliceName value="author" />
      <definition value="The person or organization who created the entry and is responsible for (and may certify) the content." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.extension:informant">
      <path value="Specimen.extension" />
      <sliceName value="informant" />
      <definition value="The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.extension:specimentreatment">
      <path value="Specimen.extension" />
      <sliceName value="specimentreatment" />
      <definition value="Treatment performed on the specimen." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-SpecimenTreatment-extension" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.extension:handlingrisk">
      <path value="Specimen.extension" />
      <sliceName value="handlingrisk" />
      <definition value="Cautions on the handling of this specimen." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-HandlingRisk-extension" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.extension:specialhandling">
      <path value="Specimen.extension" />
      <sliceName value="specialhandling" />
      <definition value="Information about the proper handling of the specimen." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-SpecialHandling-extension" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.accessionIdentifier">
      <path value="Specimen.accessionIdentifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Identifier" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.type">
      <path value="Specimen.type" />
      <min value="1" />
      <max value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenType" />
        </extension>
        <strength value="required" />
        <description value="The type of the specimen." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v2-0487" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Specimen:shr-entity-Specimen.subject">
      <path value="Specimen.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Group" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-device-Device" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.parent">
      <path value="Specimen.parent" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Specimen" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.collection">
      <path value="Specimen.collection" />
    </element>
    <element id="Specimen:shr-entity-Specimen.collection.quantity">
      <path value="Specimen.collection.quantity" />
      <type>
        <code value="Quantity" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-SimpleQuantity" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.collection.bodySite">
      <path value="Specimen.collection.bodySite" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/core/vs/BodySiteVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Specimen:shr-entity-Specimen.container">
      <path value="Specimen.container" />
    </element>
    <element id="Specimen:shr-entity-Specimen.container.identifier">
      <path value="Specimen.container.identifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Identifier" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.container.capacity">
      <path value="Specimen.container.capacity" />
      <type>
        <code value="Quantity" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-SimpleQuantity" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.container.specimenQuantity">
      <path value="Specimen.container.specimenQuantity" />
      <type>
        <code value="Quantity" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Quantity" />
      </type>
    </element>
    <element id="Specimen:shr-entity-Specimen.container.additive[x]">
      <path value="Specimen.container.additive[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Substance" />
      </type>
    </element>
  </differential>
</StructureDefinition>