DSTU2 Ballot Source

This page is part of the FHIR Specification (v0.5.0: DSTU 2 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Specimen.profile.json

Raw JSON (canonical form)

StructureDefinition for specimen

{
  "resourceType": "StructureDefinition",
  "id": "Specimen",
  "meta": {
    "lastUpdated": "2015-04-03T14:24:32.000+11:00"
  },
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/Specimen",
  "name": "Specimen",
  "publisher": "HL7 FHIR Project (Orders and Observations)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/orders/index.cfm"
        }
      ]
    }
  ],
  "description": "Base StructureDefinition for Specimen Resource",
  "status": "draft",
  "date": "2015-04-03T14:24:32+11:00",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2"
    }
  ],
  "type": "resource",
  "abstract": true,
  "snapshot": {
    "element": [
      {
        "path": "Specimen",
        "short": "Sample for analysis",
        "definition": "Sample for analysis.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Role[classCode=SPEC]"
          }
        ]
      },
      {
        "path": "Specimen.id",
        "short": "Logical id of this artefact",
        "definition": "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "path": "Specimen.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ]
      },
      {
        "path": "Specimen.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true
      },
      {
        "path": "Specimen.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource\n\nNot all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "Language",
          "strength": "required",
          "description": "A human language",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "Specimen.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "Specimen.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Specimen.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Specimen.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Specimen.identifier",
        "short": "External Identifier",
        "definition": "Id for specimen.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-2"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Specimen.type",
        "short": "Kind of material that forms the specimen",
        "definition": "The kind of material that forms the specimen.",
        "comments": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "SpecimenType",
          "strength": "example",
          "description": "The type of the specimen.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/v2/vs/0487"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-4 and possibly SPM-5"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Specimen.parent",
        "short": "Specimen from which this specimen originated",
        "definition": "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of a another specimen.",
        "comments": "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.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Specimen"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper (if parent)\n.player.scopesRole[classCode=SPEC].player (if child)"
          }
        ]
      },
      {
        "path": "Specimen.subject",
        "short": "Where the specimen came from. This may be from the patient(s) or from the environment or a device",
        "definition": "Where the specimen came from. This may be from the patient(s) or from the environment or a device.",
        "requirements": "Must know the subject context.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper\n\nor\n\n.scoper.playsRole"
          }
        ]
      },
      {
        "path": "Specimen.accessionIdentifier",
        "short": "Identifier assigned by the lab",
        "definition": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-30 (v2.7+)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"
          }
        ]
      },
      {
        "path": "Specimen.receivedTime",
        "short": "The time when specimen was received for processing",
        "definition": "Time when specimen was received for processing or testing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-18"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"
          }
        ]
      },
      {
        "path": "Specimen.collection",
        "short": "Collection details",
        "definition": "Details concerning the specimen collection.",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-14"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Specimen.collection.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Specimen.collection.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Specimen.collection.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Specimen.collection.collector",
        "short": "Who collected the specimen",
        "definition": "Person who collected the specimen.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PRT"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM].role"
          }
        ]
      },
      {
        "path": "Specimen.collection.comment",
        "short": "Collector comments",
        "definition": "To communicate any details or issues encountered during the specimen collection procedure.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      },
      {
        "path": "Specimen.collection.collected[x]",
        "short": "Collection time",
        "definition": "Time when specimen was collected from subject - the physiologically relevant time.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-17"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "Specimen.collection.quantity",
        "short": "The quantity of specimen collected",
        "definition": "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-12"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"
          }
        ]
      },
      {
        "path": "Specimen.collection.method",
        "short": "Technique used to perform collection",
        "definition": "A coded value specifying the technique that is used to perform the procedure.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "SpecimenCollectionMethod",
          "strength": "example",
          "description": "The  technique that is used to perform the procedure",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/specimen-collection-method"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-7"
          },
          {
            "identity": "rim",
            "map": ".methodCode"
          }
        ]
      },
      {
        "path": "Specimen.collection.bodySite[x]",
        "short": "Anatomical collection site",
        "definition": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/BodySite"
          }
        ],
        "binding": {
          "name": "BodySite",
          "strength": "example",
          "description": "Codes describing anatomical locations. May include laterality",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/body-site"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-8 and SPM-9"
          },
          {
            "identity": "rim",
            "map": ".targetSiteCode"
          }
        ]
      },
      {
        "path": "Specimen.treatment",
        "short": "Treatment and processing step details",
        "definition": "Details concerning treatment and processing steps for the specimen.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Specimen.treatment.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Specimen.treatment.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Specimen.treatment.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Specimen.treatment.description",
        "short": "Textual description of procedure",
        "definition": "Textual description of procedure.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "Specimen.treatment.procedure",
        "short": "Indicates the treatment or processing step  applied to the specimen",
        "definition": "A coded value specifying the procedure used to process the specimen.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "SpecimenTreatmentProcedure",
          "strength": "example",
          "description": "Type indicating the technique used to process the specimen",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/specimen-treatment-procedure"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Specimen.treatment.additive",
        "short": "Material used in the processing step",
        "definition": "Material used in the processing step.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-6"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=CSM].role[classCode=ADTV].code"
          }
        ]
      },
      {
        "path": "Specimen.container",
        "short": "Direct container of specimen (tube/slide, etc)",
        "definition": "The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": ".player.scopingRole[classCode=CONT].scoper"
          }
        ]
      },
      {
        "path": "Specimen.container.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Specimen.container.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Specimen.container.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "isModifier": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Specimen.container.identifier",
        "short": "Id for the container",
        "definition": "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.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SAC-3"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Specimen.container.description",
        "short": "Textual description of the container",
        "definition": "Textual description of the container.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".desc"
          }
        ]
      },
      {
        "path": "Specimen.container.type",
        "short": "Kind of container directly associated with specimen",
        "definition": "The type of container associated with the specimen (e.g. slide, aliquot, etc).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "SpecimenContainerType",
          "strength": "example",
          "description": "Type of specimen container",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/specimen-container-type"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-27"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Specimen.container.capacity",
        "short": "Container volume or size",
        "definition": "The capacity (volume or other measure) the container may contain.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"
          },
          {
            "identity": "rim",
            "map": ".quantity"
          }
        ]
      },
      {
        "path": "Specimen.container.specimenQuantity",
        "short": "Quantity of specimen within container",
        "definition": "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "SAC-23 (value) SAC-24 (units"
          },
          {
            "identity": "rim",
            "map": ".playedRole[classCode=CONT].quantity"
          }
        ]
      },
      {
        "path": "Specimen.container.additive[x]",
        "short": "Additive associated with container",
        "definition": "Introduced substance to preserve, maintain or enhance the specimen. examples: Formalin, Citrate, EDTA.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "binding": {
          "name": "SpecimenContainerAdditive",
          "strength": "example",
          "description": "Substance added to specimen container",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/v2/vs/0371"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SAC-27"
          },
          {
            "identity": "rim",
            "map": ".scopesRole[classCode=ADTV].player"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Specimen",
        "short": "Sample for analysis",
        "definition": "Sample for analysis.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "DomainResource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Role[classCode=SPEC]"
          }
        ]
      },
      {
        "path": "Specimen.identifier",
        "short": "External Identifier",
        "definition": "Id for specimen.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-2"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Specimen.type",
        "short": "Kind of material that forms the specimen",
        "definition": "The kind of material that forms the specimen.",
        "comments": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "name": "SpecimenType",
          "strength": "example",
          "description": "The type of the specimen.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/v2/vs/0487"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-4 and possibly SPM-5"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Specimen.parent",
        "short": "Specimen from which this specimen originated",
        "definition": "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of a another specimen.",
        "comments": "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.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Specimen"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper (if parent)\n.player.scopesRole[classCode=SPEC].player (if child)"
          }
        ]
      },
      {
        "path": "Specimen.subject",
        "short": "Where the specimen came from. This may be from the patient(s) or from the environment or a device",
        "definition": "Where the specimen came from. This may be from the patient(s) or from the environment or a device.",
        "requirements": "Must know the subject context.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper\n\nor\n\n.scoper.playsRole"
          }
        ]
      },
      {
        "path": "Specimen.accessionIdentifier",
        "short": "Identifier assigned by the lab",
        "definition": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-30 (v2.7+)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"
          }
        ]
      },
      {
        "path": "Specimen.receivedTime",
        "short": "The time when specimen was received for processing",
        "definition": "Time when specimen was received for processing or testing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-18"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"
          }
        ]
      },
      {
        "path": "Specimen.collection",
        "short": "Collection details",
        "definition": "Details concerning the specimen collection.",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-14"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Specimen.collection.collector",
        "short": "Who collected the specimen",
        "definition": "Person who collected the specimen.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PRT"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM].role"
          }
        ]
      },
      {
        "path": "Specimen.collection.comment",
        "short": "Collector comments",
        "definition": "To communicate any details or issues encountered during the specimen collection procedure.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      },
      {
        "path": "Specimen.collection.collected[x]",
        "short": "Collection time",
        "definition": "Time when specimen was collected from subject - the physiologically relevant time.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-17"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "Specimen.collection.quantity",
        "short": "The quantity of specimen collected",
        "definition": "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-12"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"
          }
        ]
      },
      {
        "path": "Specimen.collection.method",
        "short": "Technique used to perform collection",
        "definition": "A coded value specifying the technique that is used to perform the procedure.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "SpecimenCollectionMethod",
          "strength": "example",
          "description": "The  technique that is used to perform the procedure",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/specimen-collection-method"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-7"
          },
          {
            "identity": "rim",
            "map": ".methodCode"
          }
        ]
      },
      {
        "path": "Specimen.collection.bodySite[x]",
        "short": "Anatomical collection site",
        "definition": "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.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/BodySite"
          }
        ],
        "binding": {
          "name": "BodySite",
          "strength": "example",
          "description": "Codes describing anatomical locations. May include laterality",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/body-site"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-8 and SPM-9"
          },
          {
            "identity": "rim",
            "map": ".targetSiteCode"
          }
        ]
      },
      {
        "path": "Specimen.treatment",
        "short": "Treatment and processing step details",
        "definition": "Details concerning treatment and processing steps for the specimen.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Specimen.treatment.description",
        "short": "Textual description of procedure",
        "definition": "Textual description of procedure.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "Specimen.treatment.procedure",
        "short": "Indicates the treatment or processing step  applied to the specimen",
        "definition": "A coded value specifying the procedure used to process the specimen.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "SpecimenTreatmentProcedure",
          "strength": "example",
          "description": "Type indicating the technique used to process the specimen",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/specimen-treatment-procedure"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Specimen.treatment.additive",
        "short": "Material used in the processing step",
        "definition": "Material used in the processing step.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-6"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=CSM].role[classCode=ADTV].code"
          }
        ]
      },
      {
        "path": "Specimen.container",
        "short": "Direct container of specimen (tube/slide, etc)",
        "definition": "The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": ".player.scopingRole[classCode=CONT].scoper"
          }
        ]
      },
      {
        "path": "Specimen.container.identifier",
        "short": "Id for the container",
        "definition": "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.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "SAC-3"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Specimen.container.description",
        "short": "Textual description of the container",
        "definition": "Textual description of the container.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".desc"
          }
        ]
      },
      {
        "path": "Specimen.container.type",
        "short": "Kind of container directly associated with specimen",
        "definition": "The type of container associated with the specimen (e.g. slide, aliquot, etc).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "SpecimenContainerType",
          "strength": "example",
          "description": "Type of specimen container",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/specimen-container-type"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SPM-27"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Specimen.container.capacity",
        "short": "Container volume or size",
        "definition": "The capacity (volume or other measure) the container may contain.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"
          },
          {
            "identity": "rim",
            "map": ".quantity"
          }
        ]
      },
      {
        "path": "Specimen.container.specimenQuantity",
        "short": "Quantity of specimen within container",
        "definition": "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "SAC-23 (value) SAC-24 (units"
          },
          {
            "identity": "rim",
            "map": ".playedRole[classCode=CONT].quantity"
          }
        ]
      },
      {
        "path": "Specimen.container.additive[x]",
        "short": "Additive associated with container",
        "definition": "Introduced substance to preserve, maintain or enhance the specimen. examples: Formalin, Citrate, EDTA.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Substance"
          }
        ],
        "binding": {
          "name": "SpecimenContainerAdditive",
          "strength": "example",
          "description": "Substance added to specimen container",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/v2/vs/0371"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "SAC-27"
          },
          {
            "identity": "rim",
            "map": ".scopesRole[classCode=ADTV].player"
          }
        ]
      }
    ]
  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.