profile-DiagnosticReport
type: StructureDefinition
node role: treeRoot
id:
  v: profile-DiagnosticReport
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-DiagnosticReport Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> DiagnosticReport 0..* DiagnosticReport A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:resultsInterpreter 0..* Reference(Cross-version Profile for R5.Practitioner for use in FHIR STU3(0.1.0) | Practitioner | Cross-version Profile for R5.PractitionerRole for use in FHIR STU3(0.1.0) | PractitionerRole | Cross-version Profile for R5.Organization for use in FHIR STU3(0.1.0) | Organization | Cross-version Profile for R5.CareTeam for use in FHIR STU3(0.1.0) | CareTeam) R5: Primary result interpreter (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.resultsInterpreter #xD; extension:note 0..* Annotation R5: Comments about the diagnostic report (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.note #xD; extension:study 0..* Reference(Cross-version Profile for R5.GenomicStudy for use in FHIR STU3(0.1.0) | Basic | Cross-version Profile for R5.ImagingStudy for use in FHIR STU3(0.1.0) | ImagingStudy) R5: Reference to full details of an analysis associated with the diagnostic report (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.study #xD; extension:supportingInfo 0..* (Complex) R5: Additional information supporting the diagnostic report (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.supportingInfo #xD; extension:composition 0..1 Reference(Cross-version Profile for R5.Composition for use in FHIR STU3(0.1.0) | Composition) R5: Reference to a Composition resource for the DiagnosticReport structure (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition #xD…
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-DiagnosticReport
  l: profile-DiagnosticReport
version:
  v: 0.1.0
name:
  v: Profile_R5_DiagnosticReport_R3
title:
  v: Cross-version Profile for R5.DiagnosticReport for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:05:12.9496801-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 DiagnosticReport content to be represented via FHIR STU3 DiagnosticReport 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: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
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
kind:
  v: resource
abstract:
  v: false
type:
  v: DiagnosticReport
base definition:
  v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
  l: DiagnosticReport
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: DiagnosticReport
    path:
      v: DiagnosticReport
    short:
      v: A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
    definition:
      v: The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.
    comment:
      v: This is intended to capture a single report, and is not suitable for use in displaying summary information that covers multiple reports. For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing.
    alias:
      v: Report
    alias:
      v: Test
    alias:
      v: Result
    alias:
      v: Results
    alias:
      v: Labs
    alias:
      v: Laboratory
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: DiagnosticReport
      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

v: error

v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated

v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()

v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))

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))]))
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource

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

identity:
  v: workflow
map:
  v: Event

identity:
  v: v2
map:
  v: ORU -> OBR

identity:
  v: rim
map:
  v: Observation[classCode=OBS, moodCode=EVN]

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

id:
  v: DiagnosticReport.id
path:
  v: DiagnosticReport.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: DiagnosticReport.meta
path:
  v: DiagnosticReport.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: DiagnosticReport.implicitRules
path:
  v: DiagnosticReport.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: DiagnosticReport.language
path:
  v: DiagnosticReport.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: DiagnosticReport.text
path:
  v: DiagnosticReport.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: DiagnosticReport.contained
path:
  v: DiagnosticReport.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: DiagnosticReport.extension
path:
  v: DiagnosticReport.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: DiagnosticReport.extension:resultsInterpreter
path:
  v: DiagnosticReport.extension
slice name:
  v: resultsInterpreter
short:
  v: R5: Primary result interpreter (new)
definition:
  v: R5: `DiagnosticReport.resultsInterpreter` (new:Reference(Practitioner,PractitionerRole,Organization,CareTeam))
comment:
  v: Element `DiagnosticReport.resultsInterpreter` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.resultsInterpreter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Might not be the same entity that takes responsibility for the clinical report.
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-DiagnosticReport.resultsInterpreter|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.resultsInterpreter
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: DiagnosticReport.extension:note
path:
  v: DiagnosticReport.extension
slice name:
  v: note
short:
  v: R5: Comments about the diagnostic report (new)
definition:
  v: R5: `DiagnosticReport.note` (new:Annotation)
comment:
  v: Element `DiagnosticReport.note` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.note` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). May include general statements about the diagnostic report, or statements about significant, unexpected or unreliable results values contained within the diagnostic report, or information about its source when relevant to its interpretation.
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-DiagnosticReport.note|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.note
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: DiagnosticReport.extension:study
path:
  v: DiagnosticReport.extension
slice name:
  v: study
short:
  v: R5: Reference to full details of an analysis associated with the diagnostic report (new)
definition:
  v: R5: `DiagnosticReport.study` (new:Reference(GenomicStudy,ImagingStudy))
comment:
  v: Element `DiagnosticReport.study` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.study` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). For laboratory-type studies like GenomeStudy, type resources will be used for tracking additional metadata and workflow aspects of complex studies. ImagingStudy and the media element are somewhat overlapping - typically, the list of image references in the media element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.
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-DiagnosticReport.study|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.study
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: DiagnosticReport.extension:supportingInfo
path:
  v: DiagnosticReport.extension
slice name:
  v: supportingInfo
short:
  v: R5: Additional information supporting the diagnostic report (new)
definition:
  v: R5: `DiagnosticReport.supportingInfo` (new:BackboneElement)
comment:
  v: Element `DiagnosticReport.supportingInfo` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.supportingInfo` 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-DiagnosticReport.supportingInfo|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.supportingInfo
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: DiagnosticReport.extension:composition
path:
  v: DiagnosticReport.extension
slice name:
  v: composition
short:
  v: R5: Reference to a Composition resource for the DiagnosticReport structure (new)
definition:
  v: R5: `DiagnosticReport.composition` (new:Reference(Composition))
comment:
  v: Element `DiagnosticReport.composition` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.composition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The Composition provides structure to the content of the DiagnosticReport (and only contains contents referenced in the DiagnosticReport) - e.g., to order the sections of an anatomic pathology structured report.
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-DiagnosticReport.composition|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition
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: DiagnosticReport.modifierExtension
path:
  v: DiagnosticReport.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: DiagnosticReport.identifier
path:
  v: DiagnosticReport.identifier
short:
  v: Business identifier for report
definition:
  v: Identifiers assigned to this report by the performer or other systems.
comment:
  v: Usually assigned by the Information System of the diagnostic service provider (filler id).
requirements:
  v: Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context.
alias:
  v: ReportID
alias:
  v: Filler ID
alias:
  v: Placer ID
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: v2
  map:
    v: OBR-51
mapping:
  identity:
    v: rim
  map:
    v: id
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: DiagnosticReport.basedOn
path:
  v: DiagnosticReport.basedOn
short:
  v: What was requested
definition:
  v: Details concerning a test or procedure requested.
comment:
  v: Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.
requirements:
  v: This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon.
alias:
  v: Request
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    l: CarePlan
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
    l: ImmunizationRecommendation
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionOrder
    l: NutritionOrder
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ProcedureRequest
    l: ProcedureRequest
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ReferralRequest
    l: ReferralRequest
mapping:
  identity:
    v: workflow
  map:
    v: Event.basedOn
mapping:
  identity:
    v: v2
  map:
    v: ORC? OBR-2/3?
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode=FLFS].target

id:
  v: DiagnosticReport.basedOn.id
path:
  v: DiagnosticReport.basedOn.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: DiagnosticReport.basedOn.extension
path:
  v: DiagnosticReport.basedOn.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: DiagnosticReport.basedOn.extension:basedOn
path:
  v: DiagnosticReport.basedOn.extension
slice name:
  v: basedOn
short:
  v: R5: basedOn
definition:
  v: R5: `DiagnosticReport.basedOn`
comment:
  v: Element `DiagnosticReport.basedOn` is mapped to FHIR STU3 element `DiagnosticReport.basedOn` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `DiagnosticReport.basedOn` with unmapped reference targets: CarePlan, ImmunizationRecommendation, MedicationRequest, NutritionOrder, ServiceRequest. Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.
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: DiagnosticReport.basedOn.reference
path:
  v: DiagnosticReport.basedOn.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: DiagnosticReport.basedOn.identifier
path:
  v: DiagnosticReport.basedOn.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: DiagnosticReport.basedOn.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: DiagnosticReport.basedOn.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: DiagnosticReport.status
path:
  v: DiagnosticReport.status
short:
  v: registered | partial | preliminary | final +
definition:
  v: The status of the diagnostic report as a whole.
comment:
  v: This is labeled as "Is Modifier" because applications need to take appropriate action if a report is withdrawn.
requirements:
  v: Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DiagnosticReport.status
  min:
    v: 1
  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: DiagnosticReportStatus
  strength:
    v: required
  description:
    v: The status of the diagnostic report as a whole.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/diagnostic-report-status|3.0.2
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: v2
  map:
    v: OBR-25 (not 1:1 mapping)
mapping:
  identity:
    v: rim
  map:
    v: statusCode Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type "revise"
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: DiagnosticReport.status.id
path:
  v: DiagnosticReport.status.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)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: DiagnosticReport.status.extension
path:
  v: DiagnosticReport.status.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: DiagnosticReport.status.extension:status
path:
  v: DiagnosticReport.status.extension
slice name:
  v: status
short:
  v: R5: registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown additional codes
definition:
  v: R5: `DiagnosticReport.status` additional codes
comment:
  v: Element `DiagnosticReport.status` is mapped to FHIR STU3 element `DiagnosticReport.status` as `RelatedTo`. The mappings for `DiagnosticReport.status` do not allow expression of the necessary codes, per the bindings on the source and target. The target context `DiagnosticReport.status` is a modifier element, so this extension does not need to be defined as a modifier.
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-DiagnosticReport.status|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.status
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: DiagnosticReport.status.value
path:
  v: DiagnosticReport.status.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: DiagnosticReport.category
path:
  v: DiagnosticReport.category
short:
  v: Service category
definition:
  v: A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.
comment:
  v: The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code.
alias:
  v: Department
alias:
  v: Sub-department
alias:
  v: Service
alias:
  v: Discipline
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.category
  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: DiagnosticServiceSection
  strength:
    v: example
  description:
    v: Codes for diagnostic service sections.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/diagnostic-service-sections|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: OBR-24
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code < LabService].code
mapping:
  identity:
    v: w5
  map:
    v: class

id:
  v: DiagnosticReport.code
path:
  v: DiagnosticReport.code
short:
  v: Name/Code for this diagnostic report
definition:
  v: A code or name that describes this diagnostic report.
alias:
  v: Type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DiagnosticReport.code
  min:
    v: 1
  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: DiagnosticReportCodes
  strength:
    v: preferred
  description:
    v: Codes that describe Diagnostic Reports.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/report-codes|3.0.2
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: v2
  map:
    v: OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)
mapping:
  identity:
    v: rim
  map:
    v: code
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: DiagnosticReport.subject
path:
  v: DiagnosticReport.subject
short:
  v: The subject of the report - usually, but not always, the patient
definition:
  v: The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources.
requirements:
  v: SHALL know the subject context.
alias:
  v: Patient
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.subject
  min:
    v: 0
  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/Location
    l: Location
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: v2
  map:
    v: PID-3 (no HL7 v2 mapping for Group or Device)
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=SBJ]
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: DiagnosticReport.subject.id
path:
  v: DiagnosticReport.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: DiagnosticReport.subject.extension
path:
  v: DiagnosticReport.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: DiagnosticReport.subject.extension:subject
path:
  v: DiagnosticReport.subject.extension
slice name:
  v: subject
short:
  v: R5: subject
definition:
  v: R5: `DiagnosticReport.subject`
comment:
  v: Element `DiagnosticReport.subject` is mapped to FHIR STU3 element `DiagnosticReport.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `DiagnosticReport.subject` with unmapped reference targets: BiologicallyDerivedProduct, Device, Group, Location, Medication, Organization, Patient, Practitioner, 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: DiagnosticReport.subject.reference
path:
  v: DiagnosticReport.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: DiagnosticReport.subject.identifier
path:
  v: DiagnosticReport.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: DiagnosticReport.subject.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: DiagnosticReport.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: DiagnosticReport.context
path:
  v: DiagnosticReport.context
short:
  v: Health care event when test ordered
definition:
  v: The healthcare event (e.g. a patient and healthcare provider interaction) which this DiagnosticReport per is about.
comment:
  v: This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter or episode but still be tied to the context of the encounter or episode (e.g. pre-admission lab tests).
requirements:
  v: Links the request to the Encounter context.
alias:
  v: Encounter
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
    l: EpisodeOfCare
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-19
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]
mapping:
  identity:
    v: w5
  map:
    v: context

id:
  v: DiagnosticReport.context.id
path:
  v: DiagnosticReport.context.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: DiagnosticReport.context.extension
path:
  v: DiagnosticReport.context.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: DiagnosticReport.context.extension:encounter
path:
  v: DiagnosticReport.context.extension
slice name:
  v: encounter
short:
  v: R5: encounter additional types
definition:
  v: R5: `DiagnosticReport.encounter` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.encounter` is mapped to FHIR STU3 element `DiagnosticReport.context` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.encounter` 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 `DiagnosticReport.encounter` with unmapped reference targets: Encounter. This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).
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: DiagnosticReport.context.reference
path:
  v: DiagnosticReport.context.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: DiagnosticReport.context.identifier
path:
  v: DiagnosticReport.context.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: DiagnosticReport.context.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: DiagnosticReport.context.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: DiagnosticReport.effective[x]
path:
  v: DiagnosticReport.effective[x]
short:
  v: Clinically relevant time/time-period for report
definition:
  v: The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.
comment:
  v: If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic.
requirements:
  v: Need to know where in the patient history to file/present this report.
alias:
  v: Observation time
alias:
  v: Effective Time
alias:
  v: Occurrence
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.effective[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: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: v2
  map:
    v: OBR-7
mapping:
  identity:
    v: rim
  map:
    v: effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: when.done

id:
  v: DiagnosticReport.issued
path:
  v: DiagnosticReport.issued
short:
  v: DateTime this version was released
definition:
  v: The date and time that this version of the report was released from the source diagnostic service.
comment:
  v: May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report.
requirements:
  v: Clinicians need to be able to check the date that the report was released.
alias:
  v: Date Created
alias:
  v: Date published
alias:
  v: Date Issued
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.issued
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant
    l: instant
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: OBR-22
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=VRF or AUT].time
mapping:
  identity:
    v: w5
  map:
    v: when.recorded

id:
  v: DiagnosticReport.performer
path:
  v: DiagnosticReport.performer
short:
  v: Participants in producing the report
definition:
  v: Indicates who or what participated in producing the report.
alias:
  v: Laboratory
alias:
  v: Service
alias:
  v: Practitioner
alias:
  v: Department
alias:
  v: Company
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.performer
  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
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: v2
  map:
    v: PRT-8 (where this PRT-4-Participation = "PO")
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF]
mapping:
  identity:
    v: w5
  map:
    v: who.witness

id:
  v: DiagnosticReport.performer.id
path:
  v: DiagnosticReport.performer.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: DiagnosticReport.performer.extension
path:
  v: DiagnosticReport.performer.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: DiagnosticReport.performer.modifierExtension
path:
  v: DiagnosticReport.performer.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: DiagnosticReport.performer.role
path:
  v: DiagnosticReport.performer.role
short:
  v: Type of performer
definition:
  v: Describes the type of participation (e.g. a responsible party, author, or verifier).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.performer.role
  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: Role
  strength:
    v: example
  description:
    v: Indicate a role of diagnostic report performer
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/performer-role|3.0.2
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.role
mapping:
  identity:
    v: v2
  map:
    v: PRT-8 (where this PRT-4-Participation = "PO")
mapping:
  identity:
    v: rim
  map:
    v: .functionCode

id:
  v: DiagnosticReport.performer.actor
path:
  v: DiagnosticReport.performer.actor
short:
  v: Practitioner or Organization participant
definition:
  v: The reference to the practitioner or organization involved in producing the report. For example, the diagnostic service that is responsible for issuing the report.
comment:
  v: This is not necessarily the source of the atomic data items. It is the entity that takes responsibility for the clinical report.
requirements:
  v: Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DiagnosticReport.performer.actor
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: v2
  map:
    v: PRT-8 (where this PRT-4-Participation = "PO")
mapping:
  identity:
    v: rim
  map:
    v: .role

id:
  v: DiagnosticReport.specimen
path:
  v: DiagnosticReport.specimen
short:
  v: Specimens this report is based on
definition:
  v: Details about the specimens on which this diagnostic report is based.
comment:
  v: If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.
requirements:
  v: Need to be able to report information about the collected specimens on which the report is based.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.specimen
  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: v2
  map:
    v: SPM
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=SBJ]

id:
  v: DiagnosticReport.specimen.id
path:
  v: DiagnosticReport.specimen.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: DiagnosticReport.specimen.extension
path:
  v: DiagnosticReport.specimen.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: DiagnosticReport.specimen.extension:specimen
path:
  v: DiagnosticReport.specimen.extension
slice name:
  v: specimen
short:
  v: R5: specimen additional types
definition:
  v: R5: `DiagnosticReport.specimen` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.specimen` is mapped to FHIR STU3 element `DiagnosticReport.specimen` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.specimen` 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 `DiagnosticReport.specimen` with unmapped reference targets: Specimen. If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.
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: DiagnosticReport.specimen.reference
path:
  v: DiagnosticReport.specimen.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: DiagnosticReport.specimen.identifier
path:
  v: DiagnosticReport.specimen.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: DiagnosticReport.specimen.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: DiagnosticReport.specimen.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: DiagnosticReport.result
path:
  v: DiagnosticReport.result
short:
  v: Observations - simple, or complex nested groups
definition:
  v: Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. "atomic" results), or they can be grouping observations that include references to other members of the group (e.g. "panels").
requirements:
  v: Need to support individual results, or report groups of results, where the result grouping is arbitrary, but meaningful. This structure is recursive - observations can contain observations.
alias:
  v: Data
alias:
  v: Atomic Value
alias:
  v: Result
alias:
  v: Atomic result
alias:
  v: Data
alias:
  v: Test
alias:
  v: Analyte
alias:
  v: Battery
alias:
  v: Organizer
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.result
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
mapping:
  identity:
    v: v2
  map:
    v: OBXs
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode=COMP].target

id:
  v: DiagnosticReport.result.id
path:
  v: DiagnosticReport.result.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: DiagnosticReport.result.extension
path:
  v: DiagnosticReport.result.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: DiagnosticReport.result.extension:result
path:
  v: DiagnosticReport.result.extension
slice name:
  v: result
short:
  v: R5: Observations additional types
definition:
  v: R5: `DiagnosticReport.result` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.result` is mapped to FHIR STU3 element `DiagnosticReport.result` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.result` 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 `DiagnosticReport.result` with unmapped reference targets: Observation. Observations can contain observations.
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: DiagnosticReport.result.reference
path:
  v: DiagnosticReport.result.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: DiagnosticReport.result.identifier
path:
  v: DiagnosticReport.result.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: DiagnosticReport.result.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: DiagnosticReport.result.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: DiagnosticReport.imagingStudy
path:
  v: DiagnosticReport.imagingStudy
short:
  v: Reference to full details of imaging associated with the diagnostic report
definition:
  v: One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.
comment:
  v: ImagingStudy and ImageManifest and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.imagingStudy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingStudy
    l: ImagingStudy
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingManifest
    l: ImagingManifest
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]

id:
  v: DiagnosticReport.image
path:
  v: DiagnosticReport.image
short:
  v: Key images associated with this report
definition:
  v: A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).
requirements:
  v: Many diagnostic services include images in the report as part of their service.
alias:
  v: DICOM
alias:
  v: Slides
alias:
  v: Scans
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.image
  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
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: OBX?
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode=COMP].target

id:
  v: DiagnosticReport.image.id
path:
  v: DiagnosticReport.image.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: DiagnosticReport.image.extension
path:
  v: DiagnosticReport.image.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: DiagnosticReport.image.modifierExtension
path:
  v: DiagnosticReport.image.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: DiagnosticReport.image.comment
path:
  v: DiagnosticReport.image.comment
short:
  v: Comment about the image (e.g. explanation)
definition:
  v: A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features.
comment:
  v: The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion.
requirements:
  v: The provider of the report should make a comment about each image included in the report.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.image.comment
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="annotation"].value

id:
  v: DiagnosticReport.image.link
path:
  v: DiagnosticReport.image.link
short:
  v: Reference to the image source
definition:
  v: Reference to the image source.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DiagnosticReport.image.link
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Media
    l: Media
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .value.reference

id:
  v: DiagnosticReport.image.link.id
path:
  v: DiagnosticReport.image.link.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: DiagnosticReport.image.link.extension
path:
  v: DiagnosticReport.image.link.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: DiagnosticReport.image.link.extension:link
path:
  v: DiagnosticReport.image.link.extension
slice name:
  v: link
short:
  v: R5: Reference to the image or data source additional types
definition:
  v: R5: `DiagnosticReport.media.link` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.media.link` is mapped to FHIR STU3 element `DiagnosticReport.image.link` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.media.link` 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 `DiagnosticReport.media.link` with unmapped reference targets: DocumentReference.
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: DiagnosticReport.image.link.reference
path:
  v: DiagnosticReport.image.link.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: DiagnosticReport.image.link.identifier
path:
  v: DiagnosticReport.image.link.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: DiagnosticReport.image.link.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: DiagnosticReport.image.link.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: DiagnosticReport.conclusion
path:
  v: DiagnosticReport.conclusion
short:
  v: Clinical Interpretation of test results
definition:
  v: Concise and clinically contextualized impression / summary of the diagnostic report.
requirements:
  v: Need to be able to provide a conclusion that is not lost among the basic result data.
alias:
  v: Report
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DiagnosticReport.conclusion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: v2
  map:
    v: OBX
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode="SPRT"].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)

id:
  v: DiagnosticReport.codedDiagnosis
path:
  v: DiagnosticReport.codedDiagnosis
short:
  v: Codes for the conclusion
definition:
  v: Codes for the conclusion.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.codedDiagnosis
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdjunctDiagnosis
  strength:
    v: example
  description:
    v: Diagnosis codes provided as adjuncts to the report.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/clinical-findings|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: OBX
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)

id:
  v: DiagnosticReport.presentedForm
path:
  v: DiagnosticReport.presentedForm
short:
  v: Entire report as issued
definition:
  v: Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.
comment:
  v: "application/pdf" is recommended as the most reliable and interoperable in this context.
requirements:
  v: Gives laboratory the ability to provide its own fully formatted report for clinical fidelity.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DiagnosticReport.presentedForm
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Attachment
    l: Attachment
mapping:
  identity:
    v: v2
  map:
    v: OBX
mapping:
  identity:
    v: rim
  map:
    v: text (type=ED)

element:
  id:
    v: DiagnosticReport
  path:
    v: DiagnosticReport
element:
  id:
    v: DiagnosticReport.extension
  path:
    v: DiagnosticReport.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: DiagnosticReport.extension:resultsInterpreter
  path:
    v: DiagnosticReport.extension
  slice name:
    v: resultsInterpreter
  short:
    v: R5: Primary result interpreter (new)
  definition:
    v: R5: `DiagnosticReport.resultsInterpreter` (new:Reference(Practitioner,PractitionerRole,Organization,CareTeam))
  comment:
    v: Element `DiagnosticReport.resultsInterpreter` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.resultsInterpreter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Might not be the same entity that takes responsibility for the clinical report.
  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-DiagnosticReport.resultsInterpreter|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.resultsInterpreter
element:
  id:
    v: DiagnosticReport.extension:note
  path:
    v: DiagnosticReport.extension
  slice name:
    v: note
  short:
    v: R5: Comments about the diagnostic report (new)
  definition:
    v: R5: `DiagnosticReport.note` (new:Annotation)
  comment:
    v: Element `DiagnosticReport.note` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.note` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). May include general statements about the diagnostic report, or statements about significant, unexpected or unreliable results values contained within the diagnostic report, or information about its source when relevant to its interpretation.
  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-DiagnosticReport.note|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.note
element:
  id:
    v: DiagnosticReport.extension:study
  path:
    v: DiagnosticReport.extension
  slice name:
    v: study
  short:
    v: R5: Reference to full details of an analysis associated with the diagnostic report (new)
  definition:
    v: R5: `DiagnosticReport.study` (new:Reference(GenomicStudy,ImagingStudy))
  comment:
    v: Element `DiagnosticReport.study` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.study` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). For laboratory-type studies like GenomeStudy, type resources will be used for tracking additional metadata and workflow aspects of complex studies. ImagingStudy and the media element are somewhat overlapping - typically, the list of image references in the media element will also be found in one of the imaging study resources. However, each caters to different types of displays for different types of purposes. Neither, either, or both may be provided.
  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-DiagnosticReport.study|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.study
element:
  id:
    v: DiagnosticReport.extension:supportingInfo
  path:
    v: DiagnosticReport.extension
  slice name:
    v: supportingInfo
  short:
    v: R5: Additional information supporting the diagnostic report (new)
  definition:
    v: R5: `DiagnosticReport.supportingInfo` (new:BackboneElement)
  comment:
    v: Element `DiagnosticReport.supportingInfo` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.supportingInfo` 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-DiagnosticReport.supportingInfo|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.supportingInfo
element:
  id:
    v: DiagnosticReport.extension:composition
  path:
    v: DiagnosticReport.extension
  slice name:
    v: composition
  short:
    v: R5: Reference to a Composition resource for the DiagnosticReport structure (new)
  definition:
    v: R5: `DiagnosticReport.composition` (new:Reference(Composition))
  comment:
    v: Element `DiagnosticReport.composition` has a context of DiagnosticReport based on following the parent source element upwards and mapping to `DiagnosticReport`. Element `DiagnosticReport.composition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The Composition provides structure to the content of the DiagnosticReport (and only contains contents referenced in the DiagnosticReport) - e.g., to order the sections of an anatomic pathology structured report.
  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-DiagnosticReport.composition|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition
element:
  id:
    v: DiagnosticReport.basedOn.extension
  path:
    v: DiagnosticReport.basedOn.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: DiagnosticReport.basedOn.extension:basedOn

v: DiagnosticReport.basedOn.extension

v: basedOn

v: R5: basedOn

v: R5: `DiagnosticReport.basedOn`

v: Element `DiagnosticReport.basedOn` is mapped to FHIR STU3 element `DiagnosticReport.basedOn` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `DiagnosticReport.basedOn` with unmapped reference targets: CarePlan, ImmunizationRecommendation, MedicationRequest, NutritionOrder, ServiceRequest. Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports.

v: 0

v: *

path:
  v: DomainResource.extension
min:
  v: 0
max:
  v: *

code:
  v: Extension
  l: Extension
profile:
  v: http://hl7.org/fhir/StructureDefinition/alternate-reference
  l: alternate-reference

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

id:
  v: DiagnosticReport.status.extension:status
path:
  v: DiagnosticReport.status.extension
slice name:
  v: status
short:
  v: R5: registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown additional codes
definition:
  v: R5: `DiagnosticReport.status` additional codes
comment:
  v: Element `DiagnosticReport.status` is mapped to FHIR STU3 element `DiagnosticReport.status` as `RelatedTo`. The mappings for `DiagnosticReport.status` do not allow expression of the necessary codes, per the bindings on the source and target. The target context `DiagnosticReport.status` is a modifier element, so this extension does not need to be defined as a modifier.
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-DiagnosticReport.status|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.status

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

id:
  v: DiagnosticReport.subject.extension:subject
path:
  v: DiagnosticReport.subject.extension
slice name:
  v: subject
short:
  v: R5: subject
definition:
  v: R5: `DiagnosticReport.subject`
comment:
  v: Element `DiagnosticReport.subject` is mapped to FHIR STU3 element `DiagnosticReport.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R5 element `DiagnosticReport.subject` with unmapped reference targets: BiologicallyDerivedProduct, Device, Group, Location, Medication, Organization, Patient, Practitioner, 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

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

id:
  v: DiagnosticReport.context.extension:encounter
path:
  v: DiagnosticReport.context.extension
slice name:
  v: encounter
short:
  v: R5: encounter additional types
definition:
  v: R5: `DiagnosticReport.encounter` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.encounter` is mapped to FHIR STU3 element `DiagnosticReport.context` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.encounter` 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 `DiagnosticReport.encounter` with unmapped reference targets: Encounter. This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).
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: DiagnosticReport.specimen.extension
path:
  v: DiagnosticReport.specimen.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: DiagnosticReport.specimen.extension:specimen
path:
  v: DiagnosticReport.specimen.extension
slice name:
  v: specimen
short:
  v: R5: specimen additional types
definition:
  v: R5: `DiagnosticReport.specimen` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.specimen` is mapped to FHIR STU3 element `DiagnosticReport.specimen` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.specimen` 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 `DiagnosticReport.specimen` with unmapped reference targets: Specimen. If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group.
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: DiagnosticReport.result.extension
path:
  v: DiagnosticReport.result.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: DiagnosticReport.result.extension:result
path:
  v: DiagnosticReport.result.extension
slice name:
  v: result
short:
  v: R5: Observations additional types
definition:
  v: R5: `DiagnosticReport.result` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.result` is mapped to FHIR STU3 element `DiagnosticReport.result` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.result` 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 `DiagnosticReport.result` with unmapped reference targets: Observation. Observations can contain observations.
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: DiagnosticReport.image.link.extension
path:
  v: DiagnosticReport.image.link.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: DiagnosticReport.image.link.extension:link
path:
  v: DiagnosticReport.image.link.extension
slice name:
  v: link
short:
  v: R5: Reference to the image or data source additional types
definition:
  v: R5: `DiagnosticReport.media.link` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `DiagnosticReport.media.link` is mapped to FHIR STU3 element `DiagnosticReport.image.link` as `SourceIsBroaderThanTarget`. The mappings for `DiagnosticReport.media.link` 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 `DiagnosticReport.media.link` with unmapped reference targets: DocumentReference.
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