<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Specimen" />
  <meta>
    <lastUpdated value="2019-11-01T09:29:23.356+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Diagnostics" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo" />
  </extension>
  <url value="https://fhir.kemkes.go.id/r4/StructureDefinition/Specimen" />
  <version value="4.0.1" />
  <name value="Specimen" />
  <status value="draft" />
  <date value="2022-07-08T15:10:50.6856647+00:00" />
  <publisher value="Health Level Seven International (Orders and Observations)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/orders/index.cfm" />
    </telecom>
  </contact>
  <description value="A sample to be used for analysis." />
  <fhirVersion value="4.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/fivews" />
    <name value="FiveWs Pattern 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/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="Specimen">
      <path value="Specimen" />
      <short value="Sample for analysis" />
      <definition value="A sample to be used for analysis." />
      <mapping>
        <identity value="rim" />
        <map value="Role[classCode=SPEC]" />
      </mapping>
    </element>
    <element id="Specimen.identifier">
      <path value="Specimen.identifier" />
      <short value="External Identifier" />
      <definition value="Id for specimen." />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SPM-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
    </element>
    <element id="Specimen.accessionIdentifier">
      <path value="Specimen.accessionIdentifier" />
      <short value="Identifier assigned by the lab" />
      <definition value="The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures." />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SPM-30 (v2.7+)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id" />
      </mapping>
    </element>
    <element id="Specimen.status">
      <path value="Specimen.status" />
      <short value="available | unavailable | unsatisfactory | entered-in-error" />
      <definition value="The availability of the specimen." />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenStatus" />
        </extension>
        <strength value="required" />
        <description value="Codes providing the status/availability of a specimen." />
        <valueSet value="http://hl7.org/fhir/ValueSet/specimen-status|4.0.1" />
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SPM-20" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="status" />
      </mapping>
    </element>
    <element id="Specimen.type">
      <path value="Specimen.type" />
      <short value="Kind of material that forms the specimen" />
      <definition value="The kind of material that forms the specimen." />
      <comment value="The type can change the way that a specimen is handled and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenType" />
        </extension>
        <strength value="example" />
        <description value="The type of the specimen." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0487" />
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.what[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SPM-4 and possibly SPM-5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Specimen.subject">
      <path value="Specimen.subject" />
      <short value="Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device" />
      <definition value="Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device." />
      <requirements value="Must know the subject context." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".scoper  or  .scoper.playsRole" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="Specimen.receivedTime">
      <path value="Specimen.receivedTime" />
      <short value="The time when specimen was received for processing" />
      <definition value="Time when specimen was received for processing or testing." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.done[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SPM-18" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime" />
      </mapping>
    </element>
    <element id="Specimen.parent">
      <path value="Specimen.parent" />
      <short value="Specimen from which this specimen originated" />
      <definition value="Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen." />
      <comment value="The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)" />
      </mapping>
    </element>
    <element id="Specimen.request">
      <path value="Specimen.request" />
      <short value="Why the specimen was collected" />
      <definition value="Details concerning a service request that required a specimen to be collected." />
      <comment value="The request may be explicit or implied such with a ServiceRequest that requires a blood draw." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="ORC? OBR-2/3?" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="outboundRelationship[typeCode=FLFS].target" />
      </mapping>
    </element>
    <element id="Specimen.collection">
      <path value="Specimen.collection" />
      <short value="Collection details" />
      <definition value="Details concerning the specimen collection." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="SPM-14" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]" />
      </mapping>
    </element>
    <element id="Specimen.collection.collector">
      <path value="Specimen.collection.collector" />
      <short value="Who collected the specimen" />
      <definition value="Person who collected the specimen." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.actor" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PRT" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PFM].role" />
      </mapping>
    </element>
    <element id="Specimen.collection.collected[x]">
      <path value="Specimen.collection.collected[x]" />
      <short value="Collection time" />
      <definition value="Time when specimen was collected from subject - the physiologically relevant time." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.init" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SPM-17" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Specimen.collection.duration">
      <path value="Specimen.collection.duration" />
      <short value="How long it took to collect specimen" />
      <definition value="The span of time over which the collection of a specimen occurred." />
      <max value="1" />
      <type>
        <code value="Duration" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.init" />
      </mapping>
    </element>
    <element id="Specimen.collection.quantity">
      <path value="Specimen.collection.quantity" />
      <short value="The quantity of specimen collected" />
      <definition value="The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample." />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="SPM-12" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity" />
      </mapping>
    </element>
    <element id="Specimen.collection.method">
      <path value="Specimen.collection.method" />
      <short value="Technique used to perform collection" />
      <definition value="A coded value specifying the technique that is used to perform the procedure." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenCollectionMethod" />
        </extension>
        <strength value="example" />
        <description value="The  technique that is used to perform the procedure." />
        <valueSet value="http://hl7.org/fhir/ValueSet/specimen-collection-method" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="SPM-7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".methodCode" />
      </mapping>
    </element>
    <element id="Specimen.collection.bodySite">
      <path value="Specimen.collection.bodySite" />
      <short value="Anatomical collection site" />
      <definition value="Anatomical location from which the specimen was collected (if subject is a patient). This is the target site.  This element is not used for environmental specimens." />
      <comment value="If the use case requires  BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [bodySite](extension-bodysite.html)." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BodySite" />
        </extension>
        <strength value="example" />
        <description value="Codes describing anatomical locations. May include laterality." />
        <valueSet value="http://hl7.org/fhir/ValueSet/body-site" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="SPM-8 and SPM-9" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".targetSiteCode" />
      </mapping>
    </element>
    <element id="Specimen.collection.fastingStatus[x]">
      <path value="Specimen.collection.fastingStatus[x]" />
      <short value="Whether or how long patient abstained from food and/or drink" />
      <definition value="Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection." />
      <comment value="Representing fasting status using this element is preferred to representing it with an observation using a 'pre-coordinated code'  such as  LOINC 2005-7 (Calcium [Moles/​time] in 2 hour Urine --12 hours fasting), or  using  a component observation ` such as `Observation.component code`  = LOINC 49541-6 (Fasting status - Reported)." />
      <requirements value="Many diagnostic tests require fasting  to facilitate accurate interpretation." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="FastingStatus" />
        </extension>
        <strength value="extensible" />
        <description value="Codes describing the fasting status of the patient." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0916" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="OBR-" />
      </mapping>
    </element>
    <element id="Specimen.processing">
      <path value="Specimen.processing" />
      <short value="Processing and processing step details" />
      <definition value="Details concerning processing and processing steps for the specimen." />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]" />
      </mapping>
    </element>
    <element id="Specimen.processing.description">
      <path value="Specimen.processing.description" />
      <short value="Textual description of procedure" />
      <definition value="Textual description of procedure." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".text" />
      </mapping>
    </element>
    <element id="Specimen.processing.procedure">
      <path value="Specimen.processing.procedure" />
      <short value="Indicates the treatment step  applied to the specimen" />
      <definition value="A coded value specifying the procedure used to process the specimen." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenProcessingProcedure" />
        </extension>
        <strength value="example" />
        <description value="Type indicating the technique used to process the specimen." />
        <valueSet value="http://hl7.org/fhir/ValueSet/specimen-processing-procedure" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Specimen.processing.additive">
      <path value="Specimen.processing.additive" />
      <short value="Material used in the processing step" />
      <definition value="Material used in the processing step." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="SPM-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=CSM].role[classCode=ADTV].code" />
      </mapping>
    </element>
    <element id="Specimen.processing.time[x]">
      <path value="Specimen.processing.time[x]" />
      <short value="Date and time of specimen processing" />
      <definition value="A record of the time or period when the specimen processing occurred.  For example the time of sample fixation or the period of time the sample was in formalin." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Specimen.container">
      <path value="Specimen.container" />
      <short value="Direct container of specimen (tube/slide, etc.)" />
      <definition value="The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here." />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".player.scopingRole[classCode=CONT].scoper" />
      </mapping>
    </element>
    <element id="Specimen.container.identifier">
      <path value="Specimen.container.identifier" />
      <short value="Id for the container" />
      <definition value="Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances." />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="SAC-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
    </element>
    <element id="Specimen.container.description">
      <path value="Specimen.container.description" />
      <short value="Textual description of the container" />
      <definition value="Textual description of the container." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".desc" />
      </mapping>
    </element>
    <element id="Specimen.container.type">
      <path value="Specimen.container.type" />
      <short value="Kind of container directly associated with specimen" />
      <definition value="The type of container associated with the specimen (e.g. slide, aliquot, etc.)." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenContainerType" />
        </extension>
        <strength value="example" />
        <description value="Type of specimen container." />
        <valueSet value="http://hl7.org/fhir/ValueSet/specimen-container-type" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="SPM-27" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Specimen.container.capacity">
      <path value="Specimen.container.capacity" />
      <short value="Container volume or size" />
      <definition value="The capacity (volume or other measure) the container may contain." />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".quantity" />
      </mapping>
    </element>
    <element id="Specimen.container.specimenQuantity">
      <path value="Specimen.container.specimenQuantity" />
      <short value="Quantity of specimen within container" />
      <definition value="The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type." />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="SAC-23 (value) SAC-24 (units" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playedRole[classCode=CONT].quantity" />
      </mapping>
    </element>
    <element id="Specimen.container.additive[x]">
      <path value="Specimen.container.additive[x]" />
      <short value="Additive associated with container" />
      <definition value="Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenContainerAdditive" />
        </extension>
        <strength value="example" />
        <description value="Substance added to specimen container." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0371" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="SAC-27" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".scopesRole[classCode=ADTV].player" />
      </mapping>
    </element>
    <element id="Specimen.condition">
      <path value="Specimen.condition" />
      <short value="State of the specimen" />
      <definition value="A mode or state of being that describes the nature of the specimen." />
      <comment value="Specimen condition is an observation made about the specimen.  It's a point-in-time assessment.  It can be used to assess its quality or appropriateness for a specific test." />
      <requirements value="The specimen condition can be used to assess its quality or appropriateness for a specific test." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SpecimenCondition" />
        </extension>
        <strength value="extensible" />
        <description value="Codes describing the state of the specimen." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0493" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="SPM-24" />
      </mapping>
    </element>
    <element id="Specimen.note">
      <path value="Specimen.note" />
      <short value="Comments" />
      <definition value="To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen)." />
      <type>
        <code value="Annotation" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="OBX" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>