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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="specimenRole"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><ul><li>Include all codes defined in <a href="CodeSystem-specimenRole.html"><code>http://terminology.hl7.org/v2plusvocab/CodeSystem/specimenRole</code></a></li></ul></div>
  </text>
  <extension url="http://terminology.hl7.org/v2plusvocab/StructureDefinition/codesystem-v2versionCreated">
    <valueString value="2.9.1"/>
  </extension>
  <extension url="http://terminology.hl7.org/v2plusvocab/StructureDefinition/codesystem-versionHistory">
    <valueString value="generate correct history somehow"/>
  </extension>
  <extension url="http://terminology.hl7.org/v2plusvocab/StructureDefinition/codesystem-tableNo">
    <valueString value="0369"/>
  </extension>
  <url value="http://terminology.hl7.org/v2plusvocab/CodeSystem/specimenRole"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.18.227"/>
  </identifier>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="http://terminology.hl7.org/v2plusvocab/CodeSystem/v2-0369"/>
  </identifier>
  <version value="1.2.0"/>
  <name value="SpecimenRole"/>
  <title value="Specimen Role (2.9.1 - 1.2.0)"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2026-03-13T11:04:57+00:00"/>
  <publisher value="HL7/FO"/>
  <contact>
    <name value="HL7/FO"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org"/>
    </telecom>
  </contact>
  <description value="HL7-defined code system of concepts that identify the role of a sample.  Used in HL7 Version 2.x messaging in the Specimen (SPM) and Observation Request (OBR) segments."/>
  <copyright value="HL7 Inc., 2026"/>
  <caseSensitive value="true"/>
  <compositional value="false"/>
  <content value="complete"/>
  <property>
    <code value="versionIntroduced"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#versionIntroduced"/>
    <description value="version when was this code introduced"/>
    <type value="string"/>
  </property>
  <property>
    <code value="versionDeprecated"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#versionDeprecated"/>
    <description value="version when was this code deprecated"/>
    <type value="string"/>
  </property>
  <property>
    <code value="status"/>
    <uri value="http://hl7.org/fhir/concept-properties#status"/>
    <description value="A code that indicates the status of the concept. Typical values are active, experimental, deprecated, and retired"/>
    <type value="code"/>
  </property>
  <property>
    <code value="comment"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#comment"/>
    <description value="A string that provides additional detail pertinent to the use or understanding of the concept"/>
    <type value="string"/>
  </property>
  <property>
    <code value="usage"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#usage"/>
    <description value="usage notes for this code"/>
    <type value="string"/>
  </property>
  <property>
    <code value="modified"/>
    <uri value="http://terminology.hl7.org/v2plusvocab/CodeSystem/Property#modified"/>
    <description value="date of last modification"/>
    <type value="dateTime"/>
  </property>
  <concept id="3714">
    <code value="B"/>
    <display value="Blind Sample"/>
    <definition value="Used to test the validity of the measurement process, where the composition of the sample is unknown except to the person submitting it."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.4"/>
    </property>
  </concept>
  <concept id="3715">
    <code value="C"/>
    <display value="Calibrator"/>
    <definition value="Used for initial setting of calibration of the instrument."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.4"/>
    </property>
  </concept>
  <concept id="3716">
    <code value="E"/>
    <display value="Electronic QC"/>
    <definition value="Used with manufactured reference providing signals that simulate QC results"/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
  <concept id="3717">
    <code value="F"/>
    <display value="Filler Organization Proficiency"/>
    <definition value="Specimen used for testing proficiency of the organization performing the testing (Filler)."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2015-07-13"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
  <concept id="3718">
    <code value="G"/>
    <display value="Group"/>
    <definition value="Used when solid specimens consist of multiple individual elements that are not individually identified but can be separated again into the original specimens.  The identifiers of the original specimens may be tracked."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
  <concept id="3719">
    <code value="H"/>
    <display value="Historical Specimen"/>
    <definition value="This identifies a parent specimen to the specimen that is submitted for testing"/>
    <property>
      <code value="comment"/>
      <valueString value="The order of specimen processing can be derived from the SPM-3 value in all SPM segments in the message.  More than one historical SPM can be submitted, each SPM describes one step in the derivation process of the specimen submitted for testing."/>
    </property>
    <property>
      <code value="modified"/>
      <valueDateTime value="2022-08-25"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.9"/>
    </property>
  </concept>
  <concept id="3720">
    <code value="L"/>
    <display value="Pool"/>
    <definition value="Used when aliquots of liquid individual specimens are combined to form a single specimen representing all of the components that are not individually identified.  The identifiers of the original specimens may be tracked."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
  <concept id="3721">
    <code value="O"/>
    <display value="Operator Proficiency"/>
    <definition value="Specimen used for testing Operator Proficiency."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
  <concept id="3722">
    <code value="P"/>
    <display value="Patient"/>
    <definition value="Used for any patient sample."/>
    <property>
      <code value="comment"/>
      <valueString value="If the component is not valued (blank) this represents the default meaning."/>
    </property>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.4"/>
    </property>
  </concept>
  <concept id="3723">
    <code value="Q"/>
    <display value="Control specimen"/>
    <definition value="Used when specimen is the control specimen (either positive or negative)."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.4"/>
    </property>
  </concept>
  <concept id="3724">
    <code value="R"/>
    <display value="Replicate"/>
    <definition value="Used when a patient sample is re-run as a control for a repeat test."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2015-07-13"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.4"/>
    </property>
  </concept>
  <concept id="3725">
    <code value="V"/>
    <display value="Verifying Calibrator"/>
    <definition value="Used for periodic calibration checks."/>
    <property>
      <code value="modified"/>
      <valueDateTime value="2019-07-23"/>
    </property>
    <property>
      <code value="versionIntroduced"/>
      <valueString value="2.5"/>
    </property>
  </concept>
</CodeSystem>