profile-Specimen
type: StructureDefinition
node role: treeRoot
id:
  v: profile-Specimen
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-Specimen Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Specimen 0..* Specimen Sample for analysis #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:combined 0..1 code R5: grouped | pooled (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.combined Binding: R5SpecimenCombinedForR3 (0.1.0) (required): Codes for the combined status of a specimen. #xD; extension:role 0..* CodeableConcept R5: The role the specimen serves (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.role Binding: R5SpecimenRoleForR3 (0.1.0) (preferred): Codes describing specimen role. #xD; extension:feature 0..* (Complex) R5: The physical feature of a specimen (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.feature #xD; extension:condition 0..* CodeableConcept R5: State of the specimen (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.condition Binding: v2 Specimen Condition (extensible): Codes describing the state of the specimen. #xD; subject #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:subject 0..1 ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] R5: 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, a biologically-derived product, or a device URL: http://hl7.org/fhir/StructureDefinition/alternate-reference #xD; parent #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:parent 0..* ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] R5: parent additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference #xD; request #xD; Slices for extension …
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  extension:
    url:
      v: packageId
      l: packageId
    value: Id
      v: hl7.fhir.uv.xver-r5.r3
  extension:
    url:
      v: version
      l: version
    value: String
      v: 0.1.0
  url:
    v: http://hl7.org/fhir/StructureDefinition/package-source
    l: package-source
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 0
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r3
        l: hl7.fhir.uv.xver-r5.r3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r3
        l: hl7.fhir.uv.xver-r5.r3
url:
  v: http://hl7.org/fhir/5.0/StructureDefinition/profile-Specimen
  l: profile-Specimen
version:
  v: 0.1.0
name:
  v: Profile_R5_Specimen_R3
title:
  v: Cross-version Profile for R5.Specimen for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:05:13.1536615-05:00
publisher:
  v: FHIR Infrastructure
contact:
  name:
    v: FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: This cross-version profile allows R5 Specimen content to be represented via FHIR STU3 Specimen resources.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
fhir version:
  v: 3.0.2
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/w5
    l: w5
  name:
    v: W5 Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Specimen
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Specimen
  l: Specimen
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Specimen
    path:
      v: Specimen
    short:
      v: Sample for analysis
    definition:
      v: A sample to be used for analysis.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Specimen
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-1
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain any narrative
      expression:
        v: contained.text.empty()
      xpath:
        v: not(parent::f:contained and f:text)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
      expression:
        v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: rim
map:
  v: Role[classCode=SPEC]

identity:
  v: w5
map:
  v: clinical.diagnostics

id:
  v: Specimen.id
path:
  v: Specimen.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: Specimen.meta
path:
  v: Specimen.meta
short:
  v: Metadata about the resource
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
is summary:
  v: true

id:
  v: Specimen.implicitRules
path:
  v: Specimen.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
comment:
  v: 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. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
is modifier:
  v: true
is summary:
  v: true

id:
  v: Specimen.language
path:
  v: Specimen.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: 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 Not 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Reference
      l: 3.0
      l: .2
      reference:
        v: http://hl7.org/fhir/ValueSet/all-languages|3.0.2
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: extensible
  description:
    v: A human language.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/languages|3.0.2

id:
  v: Specimen.text
path:
  v: Specimen.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: 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.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: dom-1
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Specimen.contained
path:
  v: Specimen.contained
short:
  v: Contained, inline Resources
definition:
  v: 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.
comment:
  v: 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:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.extension
path:
  v: Specimen.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.extension:combined
path:
  v: Specimen.extension
slice name:
  v: combined
short:
  v: R5: grouped | pooled (new)
definition:
  v: R5: `Specimen.combined` (new:code)
comment:
  v: Element `Specimen.combined` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.combined` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.combined|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.combined
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.extension:role
path:
  v: Specimen.extension
slice name:
  v: role
short:
  v: R5: The role the specimen serves (new)
definition:
  v: R5: `Specimen.role` (new:CodeableConcept)
comment:
  v: Element `Specimen.role` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.role` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.role|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.role
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.extension:feature
path:
  v: Specimen.extension
slice name:
  v: feature
short:
  v: R5: The physical feature of a specimen (new)
definition:
  v: R5: `Specimen.feature` (new:BackboneElement)
comment:
  v: Element `Specimen.feature` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.feature` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.feature|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.feature
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.extension:condition
path:
  v: Specimen.extension
slice name:
  v: condition
short:
  v: R5: State of the specimen (new)
definition:
  v: R5: `Specimen.condition` (new:CodeableConcept)
comment:
  v: Element `Specimen.condition` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.condition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). 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.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.condition|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.condition
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.modifierExtension
path:
  v: Specimen.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.identifier
path:
  v: Specimen.identifier
short:
  v: External Identifier
definition:
  v: Id for specimen.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: SPM-2
mapping:
  identity:
    v: rim
  map:
    v: .id
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: Specimen.accessionIdentifier
path:
  v: Specimen.accessionIdentifier
short:
  v: Identifier assigned by the lab
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.accessionIdentifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: SPM-30 (v2.7+)
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: Specimen.status
path:
  v: Specimen.status
short:
  v: available | unavailable | unsatisfactory | entered-in-error
definition:
  v: The availability of the specimen.
comment:
  v: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
is modifier:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SpecimenStatus
  strength:
    v: required
  description:
    v: Codes providing the status/availability of a specimen.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/specimen-status|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: SPM-20
mapping:
  identity:
    v: rim
  map:
    v: status
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: Specimen.type
path:
  v: Specimen.type
short:
  v: Kind of material that forms the specimen
definition:
  v: The kind of material that forms the specimen.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SpecimenType
  strength:
    v: example
  description:
    v: The type of the specimen.
  value set: Reference
    l: 2.8
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/v2-0487|2.8.2
mapping:
  identity:
    v: v2
  map:
    v: SPM-4 and possibly SPM-5
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: Specimen.subject
path:
  v: Specimen.subject
short:
  v: Where the specimen came from. This may be from the patient(s) or from the environment or a device
definition:
  v: Where the specimen came from. This may be from the patient(s) or from the environment or a device.
requirements:
  v: Must know the subject context.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Specimen.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    l: Group
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .scoper or .scoper.playsRole
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: Specimen.subject.id
path:
  v: Specimen.subject.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.subject.extension
path:
  v: Specimen.subject.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.subject.extension:subject
path:
  v: Specimen.subject.extension
slice name:
  v: subject
short:
  v: R5: 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, a biologically-derived product, or a device
definition:
  v: R5: `Specimen.subject`
comment:
  v: Element `Specimen.subject` is mapped to FHIR STU3 element `Specimen.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.subject` with unmapped reference targets: BiologicallyDerivedProduct, Device, Group, Location, Patient, Substance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.subject.reference
path:
  v: Specimen.subject.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.subject.identifier
path:
  v: Specimen.subject.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Specimen.subject.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Specimen.subject.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.receivedTime
path:
  v: Specimen.receivedTime
short:
  v: The time when specimen was received for processing
definition:
  v: Time when specimen was received for processing or testing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.receivedTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: SPM-18
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: when.done

id:
  v: Specimen.parent
path:
  v: Specimen.parent
short:
  v: Specimen from which this specimen originated
definition:
  v: Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.
comment:
  v: 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:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.parent
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Specimen
    l: Specimen
mapping:
  identity:
    v: rim
  map:
    v: .scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)

id:
  v: Specimen.parent.id
path:
  v: Specimen.parent.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.parent.extension
path:
  v: Specimen.parent.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.parent.extension:parent
path:
  v: Specimen.parent.extension
slice name:
  v: parent
short:
  v: R5: parent additional types
definition:
  v: R5: `Specimen.parent` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Specimen.parent` is mapped to FHIR STU3 element `Specimen.parent` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.parent` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.parent` with unmapped reference targets: Specimen. 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:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.parent.reference
path:
  v: Specimen.parent.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.parent.identifier
path:
  v: Specimen.parent.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Specimen.parent.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Specimen.parent.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.request
path:
  v: Specimen.request
short:
  v: Why the specimen was collected
definition:
  v: Details concerning a test or procedure request that required a specimen to be collected.
comment:
  v: The request may be explicit or implied such with a ProcedureRequest that requires a blood draw.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.request
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ProcedureRequest
    l: ProcedureRequest
mapping:
  identity:
    v: v2
  map:
    v: ORC? OBR-2/3?
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode=FLFS].target
mapping:
  identity:
    v: w5
  map:
    v: why

id:
  v: Specimen.request.id
path:
  v: Specimen.request.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.request.extension
path:
  v: Specimen.request.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.request.extension:request
path:
  v: Specimen.request.extension
slice name:
  v: request
short:
  v: R5: request additional types
definition:
  v: R5: `Specimen.request` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Specimen.request` is mapped to FHIR STU3 element `Specimen.request` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.request` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.request` with unmapped reference targets: ServiceRequest. The request may be explicit or implied such with a ServiceRequest that requires a blood draw.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.request.reference
path:
  v: Specimen.request.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.request.identifier
path:
  v: Specimen.request.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Specimen.request.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Specimen.request.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.collection
path:
  v: Specimen.collection
short:
  v: Collection details
definition:
  v: Details concerning the specimen collection.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.collection
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: v2
  map:
    v: SPM-14
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]

id:
  v: Specimen.collection.id
path:
  v: Specimen.collection.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.collection.extension
path:
  v: Specimen.collection.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.collection.extension:duration
path:
  v: Specimen.collection.extension
slice name:
  v: duration
short:
  v: R5: How long it took to collect specimen (new)
definition:
  v: R5: `Specimen.collection.duration` (new:Duration)
comment:
  v: Element `Specimen.collection.duration` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.duration` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.duration|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.duration
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.collection.extension:device
path:
  v: Specimen.collection.extension
slice name:
  v: device
short:
  v: R5: Device used to perform collection (new)
definition:
  v: R5: `Specimen.collection.device` (new:CodeableReference(Device))
comment:
  v: Element `Specimen.collection.device` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.device` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.device|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.device
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.collection.extension:procedure
path:
  v: Specimen.collection.extension
slice name:
  v: procedure
short:
  v: R5: The procedure that collects the specimen (new)
definition:
  v: R5: `Specimen.collection.procedure` (new:Reference(Procedure))
comment:
  v: Element `Specimen.collection.procedure` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.procedure` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.procedure|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.procedure
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.collection.extension:fastingStatus
path:
  v: Specimen.collection.extension
slice name:
  v: fastingStatus
short:
  v: R5: Whether or how long patient abstained from food and/or drink (new)
definition:
  v: R5: `Specimen.collection.fastingStatus[x]` (new:CodeableConcept, Duration)
comment:
  v: Element `Specimen.collection.fastingStatus[x]` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.fastingStatus[x]` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). 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).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.fastingStatus|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.fastingStatus
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.collection.modifierExtension
path:
  v: Specimen.collection.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.collection.collector
path:
  v: Specimen.collection.collector
short:
  v: Who collected the specimen
definition:
  v: Person who collected the specimen.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.collection.collector
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: PRT
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PFM].role
mapping:
  identity:
    v: w5
  map:
    v: who.actor

id:
  v: Specimen.collection.collector.id
path:
  v: Specimen.collection.collector.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.collection.collector.extension
path:
  v: Specimen.collection.collector.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.collection.collector.extension:collector
path:
  v: Specimen.collection.collector.extension
slice name:
  v: collector
short:
  v: R5: collector
definition:
  v: R5: `Specimen.collection.collector`
comment:
  v: Element `Specimen.collection.collector` is mapped to FHIR STU3 element `Specimen.collection.collector` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.collection.collector` with unmapped reference targets: Patient, Practitioner, PractitionerRole, RelatedPerson.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.collection.collector.reference
path:
  v: Specimen.collection.collector.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.collection.collector.identifier
path:
  v: Specimen.collection.collector.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Specimen.collection.collector.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Specimen.collection.collector.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.collection.collected[x]
path:
  v: Specimen.collection.collected[x]
short:
  v: Collection time
definition:
  v: Time when specimen was collected from subject - the physiologically relevant time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.collection.collected[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: Period
    l: Period
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: SPM-17
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: when.init

id:
  v: Specimen.collection.quantity
path:
  v: Specimen.collection.quantity
short:
  v: The quantity of specimen collected
definition:
  v: The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.collection.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    l: SimpleQuantity
mapping:
  identity:
    v: v2
  map:
    v: SPM-12
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role[classCode=SPEC].player.quantity

id:
  v: Specimen.collection.method
path:
  v: Specimen.collection.method
short:
  v: Technique used to perform collection
definition:
  v: A coded value specifying the technique that is used to perform the procedure.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.collection.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SpecimenCollectionMethod
  strength:
    v: example
  description:
    v: The technique that is used to perform the procedure
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/specimen-collection-method|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: SPM-7
mapping:
  identity:
    v: rim
  map:
    v: .methodCode

id:
  v: Specimen.collection.bodySite
path:
  v: Specimen.collection.bodySite
short:
  v: Anatomical collection site
definition:
  v: 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:
  v: 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 [body-site-instance](http://hl7.org/fhir/STU3/extension-body-site-instance.html).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.collection.bodySite
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: BodySite
  strength:
    v: example
  description:
    v: Codes describing anatomical locations. May include laterality.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/body-site|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: SPM-8 and SPM-9
mapping:
  identity:
    v: rim
  map:
    v: .targetSiteCode

id:
  v: Specimen.collection.bodySite.id
path:
  v: Specimen.collection.bodySite.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.collection.bodySite.extension
path:
  v: Specimen.collection.bodySite.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.collection.bodySite.extension:bodySite
path:
  v: Specimen.collection.bodySite.extension
slice name:
  v: bodySite
short:
  v: R5: bodySite additional types
definition:
  v: R5: `Specimen.collection.bodySite` additional types (CodeableReference(http://hl7.org/fhir/StructureDefinition/BodyStructure)) additional types from child elements (reference)
comment:
  v: Element `Specimen.collection.bodySite` is mapped to FHIR STU3 element `Specimen.collection.bodySite` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.collection.bodySite` do not cover the following types: CodeableReference. The mappings for `Specimen.collection.bodySite` do not cover the following types based on type expansion: reference. Reasons for using BodyStructure reference include: 1.) Need to identify a specific site instance (e.g. a specific mole), 2.) a single pre-coordinated coded concept for the body site does not exist, 3.) a desire to represent bodySite using multiple attributes (e.g. modifiers).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.bodySite|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.bodySite

id:
  v: Specimen.collection.bodySite.coding
path:
  v: Specimen.collection.bodySite.coding
short:
  v: Code defined by a terminology system
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: Specimen.collection.bodySite.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Specimen.collection.bodySite.text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: Specimen.processing
path:
  v: Specimen.processing
short:
  v: Processing and processing step details
definition:
  v: Details concerning processing and processing steps for the specimen.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.processing
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]

id:
  v: Specimen.processing.id
path:
  v: Specimen.processing.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.processing.extension
path:
  v: Specimen.processing.extension
short:
  v: Additional Content defined by implementations
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.processing.modifierExtension
path:
  v: Specimen.processing.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.processing.description
path:
  v: Specimen.processing.description
short:
  v: Textual description of procedure
definition:
  v: Textual description of procedure.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.processing.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Specimen.processing.procedure
path:
  v: Specimen.processing.procedure
short:
  v: Indicates the treatment step applied to the specimen
definition:
  v: A coded value specifying the procedure used to process the specimen.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.processing.procedure
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SpecimenProcessingProcedure
  strength:
    v: example
  description:
    v: Type indicating the technique used to process the specimen
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/specimen-processing-procedure|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: Specimen.processing.additive
path:
  v: Specimen.processing.additive
short:
  v: Material used in the processing step
definition:
  v: Material used in the processing step.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.processing.additive
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance
mapping:
  identity:
    v: v2
  map:
    v: SPM-6
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=CSM].role[classCode=ADTV].code

id:
  v: Specimen.processing.additive.id
path:
  v: Specimen.processing.additive.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.processing.additive.extension
path:
  v: Specimen.processing.additive.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.processing.additive.extension:additive
path:
  v: Specimen.processing.additive.extension
slice name:
  v: additive
short:
  v: R5: additive additional types
definition:
  v: R5: `Specimen.processing.additive` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Specimen.processing.additive` is mapped to FHIR STU3 element `Specimen.processing.additive` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.processing.additive` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.processing.additive` with unmapped reference targets: Substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.processing.additive.reference
path:
  v: Specimen.processing.additive.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.processing.additive.identifier
path:
  v: Specimen.processing.additive.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: Specimen.processing.additive.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Specimen.processing.additive.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.processing.time[x]
path:
  v: Specimen.processing.time[x]
short:
  v: Date and time of specimen processing
definition:
  v: 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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.processing.time[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: Period
    l: Period
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Specimen.container
path:
  v: Specimen.container
short:
  v: Direct container of specimen (tube/slide, etc.)
definition:
  v: The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.container
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: rim
  map:
    v: .player.scopingRole[classCode=CONT].scoper

id:
  v: Specimen.container.id
path:
  v: Specimen.container.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Specimen.container.extension
path:
  v: Specimen.container.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Specimen.container.extension:device
path:
  v: Specimen.container.extension
slice name:
  v: device
short:
  v: R5: Device resource for the container (new)
definition:
  v: R5: `Specimen.container.device` (new:Reference(Device))
comment:
  v: Element `Specimen.container.device` has a context of Specimen.container based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.container.device` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.device|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.device
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.container.extension:location
path:
  v: Specimen.container.extension
slice name:
  v: location
short:
  v: R5: Where the container is (new)
definition:
  v: R5: `Specimen.container.location` (new:Reference(Location))
comment:
  v: Element `Specimen.container.location` has a context of Specimen.container based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.container.location` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.location|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.location
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Specimen.container.modifierExtension
path:
  v: Specimen.container.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Specimen.container.identifier
path:
  v: Specimen.container.identifier
short:
  v: Id for the container
definition:
  v: 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:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.container.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: SAC-3
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Specimen.container.description
path:
  v: Specimen.container.description
short:
  v: Textual description of the container
definition:
  v: Textual description of the container.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.container.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: .desc

id:
  v: Specimen.container.type
path:
  v: Specimen.container.type
short:
  v: Kind of container directly associated with specimen
definition:
  v: The type of container associated with the specimen (e.g. slide, aliquot, etc.).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.container.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SpecimenContainerType
  strength:
    v: example
  description:
    v: Type of specimen container
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/specimen-container-type|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: SPM-27
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: Specimen.container.capacity
path:
  v: Specimen.container.capacity
short:
  v: Container volume or size
definition:
  v: The capacity (volume or other measure) the container may contain.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.container.capacity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    l: SimpleQuantity
mapping:
  identity:
    v: v2
  map:
    v: one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20
mapping:
  identity:
    v: rim
  map:
    v: .quantity

id:
  v: Specimen.container.specimenQuantity
path:
  v: Specimen.container.specimenQuantity
short:
  v: Quantity of specimen within container
definition:
  v: The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.container.specimenQuantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    l: SimpleQuantity
mapping:
  identity:
    v: v2
  map:
    v: SAC-23 (value) SAC-24 (units
mapping:
  identity:
    v: rim
  map:
    v: .playedRole[classCode=CONT].quantity

id:
  v: Specimen.container.additive[x]
path:
  v: Specimen.container.additive[x]
short:
  v: Additive associated with container
definition:
  v: Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Specimen.container.additive[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance
    l: Substance
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SpecimenContainerAdditive
  strength:
    v: example
  description:
    v: Substance added to specimen container
  value set: Reference
    l: 2.8
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/v2-0371|2.8.2
mapping:
  identity:
    v: v2
  map:
    v: SAC-27
mapping:
  identity:
    v: rim
  map:
    v: .scopesRole[classCode=ADTV].player

id:
  v: Specimen.note
path:
  v: Specimen.note
short:
  v: Comments
definition:
  v: To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Specimen.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
mapping:
  identity:
    v: v2
  map:
    v: OBX
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value

element:
  id:
    v: Specimen
  path:
    v: Specimen
element:
  id:
    v: Specimen.extension
  path:
    v: Specimen.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Specimen.extension:combined
  path:
    v: Specimen.extension
  slice name:
    v: combined
  short:
    v: R5: grouped | pooled (new)
  definition:
    v: R5: `Specimen.combined` (new:code)
  comment:
    v: Element `Specimen.combined` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.combined` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.combined|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.combined
element:
  id:
    v: Specimen.extension:role
  path:
    v: Specimen.extension
  slice name:
    v: role
  short:
    v: R5: The role the specimen serves (new)
  definition:
    v: R5: `Specimen.role` (new:CodeableConcept)
  comment:
    v: Element `Specimen.role` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.role` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.role|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.role
element:
  id:
    v: Specimen.extension:feature
  path:
    v: Specimen.extension
  slice name:
    v: feature
  short:
    v: R5: The physical feature of a specimen (new)
  definition:
    v: R5: `Specimen.feature` (new:BackboneElement)
  comment:
    v: Element `Specimen.feature` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.feature` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.feature|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.feature
element:
  id:
    v: Specimen.extension:condition
  path:
    v: Specimen.extension
  slice name:
    v: condition
  short:
    v: R5: State of the specimen (new)
  definition:
    v: R5: `Specimen.condition` (new:CodeableConcept)
  comment:
    v: Element `Specimen.condition` has a context of Specimen based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.condition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). 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.
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.condition|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.condition
element:
  id:
    v: Specimen.subject.extension
  path:
    v: Specimen.subject.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Specimen.subject.extension:subject
  path:
    v: Specimen.subject.extension
  slice name:
    v: subject
  short:
    v: R5: 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, a biologically-derived product, or a device
  definition:
    v: R5: `Specimen.subject`
  comment:
    v: Element `Specimen.subject` is mapped to FHIR STU3 element `Specimen.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.subject` with unmapped reference targets: BiologicallyDerivedProduct, Device, Group, Location, Patient, Substance.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/StructureDefinition/alternate-reference
      l: alternate-reference
element:
  id:
    v: Specimen.parent.extension

v: Specimen.parent.extension

discriminator:
  type:
    v: value
  path:
    v: url
ordered:
  v: false
rules:
  v: open

v: 0

v: *

id:
  v: Specimen.parent.extension:parent
path:
  v: Specimen.parent.extension
slice name:
  v: parent
short:
  v: R5: parent additional types
definition:
  v: R5: `Specimen.parent` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Specimen.parent` is mapped to FHIR STU3 element `Specimen.parent` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.parent` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.parent` with unmapped reference targets: Specimen. 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:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.request.extension
path:
  v: Specimen.request.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Specimen.request.extension:request
path:
  v: Specimen.request.extension
slice name:
  v: request
short:
  v: R5: request additional types
definition:
  v: R5: `Specimen.request` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Specimen.request` is mapped to FHIR STU3 element `Specimen.request` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.request` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.request` with unmapped reference targets: ServiceRequest. The request may be explicit or implied such with a ServiceRequest that requires a blood draw.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.collection.extension
path:
  v: Specimen.collection.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Specimen.collection.extension:duration
path:
  v: Specimen.collection.extension
slice name:
  v: duration
short:
  v: R5: How long it took to collect specimen (new)
definition:
  v: R5: `Specimen.collection.duration` (new:Duration)
comment:
  v: Element `Specimen.collection.duration` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.duration` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.duration|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.duration

id:
  v: Specimen.collection.extension:device
path:
  v: Specimen.collection.extension
slice name:
  v: device
short:
  v: R5: Device used to perform collection (new)
definition:
  v: R5: `Specimen.collection.device` (new:CodeableReference(Device))
comment:
  v: Element `Specimen.collection.device` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.device` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.device|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.device

id:
  v: Specimen.collection.extension:procedure
path:
  v: Specimen.collection.extension
slice name:
  v: procedure
short:
  v: R5: The procedure that collects the specimen (new)
definition:
  v: R5: `Specimen.collection.procedure` (new:Reference(Procedure))
comment:
  v: Element `Specimen.collection.procedure` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.procedure` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.procedure|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.procedure

id:
  v: Specimen.collection.extension:fastingStatus
path:
  v: Specimen.collection.extension
slice name:
  v: fastingStatus
short:
  v: R5: Whether or how long patient abstained from food and/or drink (new)
definition:
  v: R5: `Specimen.collection.fastingStatus[x]` (new:CodeableConcept, Duration)
comment:
  v: Element `Specimen.collection.fastingStatus[x]` has a context of Specimen.collection based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.collection.fastingStatus[x]` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). 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).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.fastingStatus|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.fastingStatus

id:
  v: Specimen.collection.collector.extension
path:
  v: Specimen.collection.collector.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Specimen.collection.collector.extension:collector
path:
  v: Specimen.collection.collector.extension
slice name:
  v: collector
short:
  v: R5: collector
definition:
  v: R5: `Specimen.collection.collector`
comment:
  v: Element `Specimen.collection.collector` is mapped to FHIR STU3 element `Specimen.collection.collector` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.collection.collector` with unmapped reference targets: Patient, Practitioner, PractitionerRole, RelatedPerson.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.collection.bodySite.extension
path:
  v: Specimen.collection.bodySite.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Specimen.collection.bodySite.extension:bodySite
path:
  v: Specimen.collection.bodySite.extension
slice name:
  v: bodySite
short:
  v: R5: bodySite additional types
definition:
  v: R5: `Specimen.collection.bodySite` additional types (CodeableReference(http://hl7.org/fhir/StructureDefinition/BodyStructure)) additional types from child elements (reference)
comment:
  v: Element `Specimen.collection.bodySite` is mapped to FHIR STU3 element `Specimen.collection.bodySite` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.collection.bodySite` do not cover the following types: CodeableReference. The mappings for `Specimen.collection.bodySite` do not cover the following types based on type expansion: reference. Reasons for using BodyStructure reference include: 1.) Need to identify a specific site instance (e.g. a specific mole), 2.) a single pre-coordinated coded concept for the body site does not exist, 3.) a desire to represent bodySite using multiple attributes (e.g. modifiers).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.bodySite|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.collection.bodySite

id:
  v: Specimen.processing.additive.extension
path:
  v: Specimen.processing.additive.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Specimen.processing.additive.extension:additive
path:
  v: Specimen.processing.additive.extension
slice name:
  v: additive
short:
  v: R5: additive additional types
definition:
  v: R5: `Specimen.processing.additive` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Specimen.processing.additive` is mapped to FHIR STU3 element `Specimen.processing.additive` as `SourceIsBroaderThanTarget`. The mappings for `Specimen.processing.additive` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `Specimen.processing.additive` with unmapped reference targets: Substance.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Specimen.container.extension
path:
  v: Specimen.container.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 1
max:
  v: *

id:
  v: Specimen.container.extension:device
path:
  v: Specimen.container.extension
slice name:
  v: device
short:
  v: R5: Device resource for the container (new)
definition:
  v: R5: `Specimen.container.device` (new:Reference(Device))
comment:
  v: Element `Specimen.container.device` has a context of Specimen.container based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.container.device` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.device|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.device

id:
  v: Specimen.container.extension:location
path:
  v: Specimen.container.extension
slice name:
  v: location
short:
  v: R5: Where the container is (new)
definition:
  v: R5: `Specimen.container.location` (new:Reference(Location))
comment:
  v: Element `Specimen.container.location` has a context of Specimen.container based on following the parent source element upwards and mapping to `Specimen`. Element `Specimen.container.location` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.location|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-Specimen.container.location