<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="76755af4-a89a-4c24-a438-665941456ce8" />
  <meta>
    <lastUpdated value="2023-08-03T15:54:54.0849026+00:00" />
  </meta>
  <url value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Specimen" />
  <version value="2.0.0" />
  <name value="Specimen" />
  <status value="active" />
  <date value="2023-08-03T16:01:09.0724597+00:00" />
  <description value="A sample to be used for analysis." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="OLIS-HL7-v2" />
    <name value="OLIS HL7 v2" />
  </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">
      <path value="Specimen" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.id">
      <path value="Specimen.id" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.meta">
      <path value="Specimen.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.meta.profile">
      <path value="Specimen.meta.profile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Specimen|2.0.0" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.type">
      <path value="Specimen.type" />
      <definition value="Specimen source codes supported by eHealth Ontario. These are found on the Source tab of the downloadable Excel spreadsheet. Note: REFER TO THE LATEST OLIS NOMENCLATURE FILE https://www.ehealthontario.on.ca/en/olis-nomenclature" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Specimen source codes supported by OLIS. These are found on the Source tab of the downloadable Excel spreadsheet. Note: REFER TO THE LATEST OLIS NOMENCLATURE FILE https://www.ehealthontario.on.ca/en/olis-nomenclature" />
        <valueSet value="http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-specimen-source" />
      </binding>
    </element>
    <element id="Specimen.type.coding">
      <path value="Specimen.type.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.type.coding.system">
      <path value="Specimen.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://ehealthontario.ca/fhir/CodeSystem/ca-on-lab-specimen-codes" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.15.1.3" />
      </mapping>
    </element>
    <element id="Specimen.type.coding.code">
      <path value="Specimen.type.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.15.1.1" />
      </mapping>
    </element>
    <element id="Specimen.type.coding.display">
      <path value="Specimen.type.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.15.1.2" />
      </mapping>
    </element>
    <element id="Specimen.type.text">
      <path value="Specimen.type.text" />
      <mustSupport value="false" />
    </element>
    <element id="Specimen.subject">
      <path value="Specimen.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Patient" />
        <aggregation value="contained" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Specimen.subject.reference">
      <path value="Specimen.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.receivedTime">
      <path value="Specimen.receivedTime" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.14" />
      </mapping>
    </element>
    <element id="Specimen.request">
      <path value="Specimen.request" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-ServiceRequest" />
        <aggregation value="contained" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Specimen.request.reference">
      <path value="Specimen.request.reference" />
      <comment value="SHALL contain the resource id of the associated ServiceRequest in the payload" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection">
      <path value="Specimen.collection" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.collector">
      <path value="Specimen.collection.collector" />
      <comment value="This could be a Practitioner or PractitionerRole reference." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Practitioner" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-PractitionerRole" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="ZBR.3" />
      </mapping>
    </element>
    <element id="Specimen.collection.collector.reference">
      <path value="Specimen.collection.collector.reference" />
      <short value="Resource id of the reference to the specimen collector" />
      <definition value="This is a reference to a practitioner if specimen collector is a practitioner. If collector is an organization (e.g. lab), it will be in the PractitionerRole reference" />
      <comment value="Use PractitionerRole.organization for the specimen collector lab" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.collected[x]">
      <path value="Specimen.collection.collected[x]" />
      <comment value="See mapping tab for details" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.7, OBR.8" />
        <comment value="collectedDateTime will be used if only OBR.7 is present. If both OBR.7 and OBR.8 are present, collectedPeriod will be used" />
      </mapping>
    </element>
    <element id="Specimen.collection.quantity">
      <path value="Specimen.collection.quantity" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.quantity.value">
      <path value="Specimen.collection.quantity.value" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.9.1" />
      </mapping>
    </element>
    <element id="Specimen.collection.quantity.unit">
      <path value="Specimen.collection.quantity.unit" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.9.2.1" />
      </mapping>
    </element>
    <element id="Specimen.collection.bodySite">
      <path value="Specimen.collection.bodySite" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
      </binding>
    </element>
    <element id="Specimen.collection.bodySite.coding">
      <path value="Specimen.collection.bodySite.coding" />
      <binding>
        <strength value="required" />
        <description value="Specimen Source" />
      </binding>
    </element>
    <element id="Specimen.collection.bodySite.coding.system">
      <path value="Specimen.collection.bodySite.coding.system" />
      <fixedUri value="http://ehealthontario.ca/fhir/NamingSystem/lab/specimen-source" />
    </element>
    <element id="Specimen.collection.bodySite.text">
      <path value="Specimen.collection.bodySite.text" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.15.5.2" />
      </mapping>
    </element>
    <element id="Specimen.container">
      <path value="Specimen.container" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.extension">
      <path value="Specimen.container.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Specimen.container.extension:NumberOfContainers">
      <path value="Specimen.container.extension" />
      <sliceName value="NumberOfContainers" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num" />
      </type>
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.37" />
      </mapping>
    </element>
    <element id="Specimen.container.extension:NumberOfContainers.url">
      <path value="Specimen.container.extension.url" />
      <fixedUri value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num" />
    </element>
    <element id="Specimen.container.identifier">
      <path value="Specimen.container.identifier" />
      <definition value="OLIS supports &quot;Referring Lab User-readable Specimen Identifier&quot;, &quot;Referring Lab Specimen Bar Code Number&quot;, &quot;Performing Lab User-readable Specimen Identifier&quot;" />
      <comment value="Up to 3 ocurrences to support &quot;Referring Lab User-readable Specimen Identifier&quot;, &quot;Referring Lab Specimen Bar Code Number&quot;, &quot;Performing Lab User-readable Specimen Identifier&quot;" />
      <max value="3" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.18, OBR.19, OBR.20" />
      </mapping>
    </element>
    <element id="Specimen.container.identifier.type">
      <path value="Specimen.container.identifier.type" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.identifier.type.coding">
      <path value="Specimen.container.identifier.type.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.identifier.type.coding.system">
      <path value="Specimen.container.identifier.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v2-0203" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.identifier.type.coding.code">
      <path value="Specimen.container.identifier.type.coding.code" />
      <min value="1" />
      <fixedCode value="SID" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.identifier.type.coding.display">
      <path value="Specimen.container.identifier.type.coding.display" />
      <min value="1" />
      <fixedString value="Specimen ID" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.identifier.system">
      <path value="Specimen.container.identifier.system" />
      <definition value="See example below for possible values. Specimen identifier system URI SHOULD be provided if lab provides the info. If OLIS does not have the info, system will not be provided." />
      <example>
        <label value="Referring Lab User-readable Specimen Identifier" />
        <valueUri value="http://ehealthontario.ca/fhir/NamingSystem/lab/specimen-id-referring-[type]-id-[number]" />
      </example>
      <example>
        <label value="Referring Lab Specimen Bar Code Number" />
        <valueUri value="http://ehealthontario.ca/fhir/NamingSystem/lab/specimen-id-referring-[type]-id-[number]" />
      </example>
      <example>
        <label value="Performing Lab User-readable Specimen Identifier" />
        <valueUri value="http://ehealthontario.ca/fhir/NamingSystem/lab/specimen-id-performing-[type]-id-[number]" />
      </example>
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="ORC.21, ZBR.6" />
        <comment value="For &quot;Referring Lab User-readable Specimen Identifier&quot; and &quot;Referring Lab Specimen Bar Code Number&quot;, system will be mapped to ORC.21. If ORC.21 is blank, skip this field. For &quot;Performing Lab User-readable Specimen Identifier&quot;, map it to ZBR.6. If ZBR.6 is blank, or it contains only &quot;the_ordering_practitioner&quot; or it only has the name part (no OID), skip this field." />
      </mapping>
    </element>
    <element id="Specimen.container.identifier.value">
      <path value="Specimen.container.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.identifier.assigner">
      <path value="Specimen.container.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Organization" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="ORC.21" />
        <comment value="If OBR.16 has a valid practitioner or organization, ORC.21 will be mapped to assigner for OBR.18" />
      </mapping>
    </element>
    <element id="Specimen.container.identifier.assigner.reference">
      <path value="Specimen.container.identifier.assigner.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.note">
      <path value="Specimen.note" />
      <short value="any additional comments related to the specimen" />
      <definition value="To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen). &#xD;&#xA;OLIS supports only one comment for Specimen." />
      <max value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="OLIS-HL7-v2" />
        <map value="OBR.39" />
      </mapping>
    </element>
    <element id="Specimen.note.text">
      <path value="Specimen.note.text" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>