LaboratoryReport
type: StructureDefinition
node role: treeRoot
id:
  v: LaboratoryReport
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition LaboratoryReport Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> LaboratoryReport 0..* Element Laborbericht basierend auf der SR 818.101.126 Verordnung des EDI über die Meldung von Beobachtungen übertragbarer Krankheiten des Menschen (https://www.fedlex.admin.ch/eli/cc/2015/892/de) Elements defined in Ancestors:@id, <a href="http://hl7.org/fhir/R4/datatypes.html#Element" title="May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.">extension #xD; Header 1..1 Element Document information #xD; DocumentIdentifier 1..1 Identifier Persistent, unique identifier for the document #xD; DocumentTimestamp 1..1 dateTime Timestamp of the document #xD; DocumentLanguage 1..1 code Language of the document content #xD; DocumentTitle 1..1 string Human Readable name/title of the document #xD; DocumentSectionTitle 1..1 string Human Readable name/title of the section #xD; Author 1..1 Element Author of the document (may be identical with Lab) #xD; OrganizationGLN 1..1 Identifier Global location number (GLN) of the authoring/sending organization #xD; Art. 4 Abs. 2 (Meldepflichtiges Laboratorium)">Lab 1..1 Element Notifiable laboratory that performed the laboratory test -> Art. 4 Abs. 2 (Meldepflichtiges Laboratorium) #xD; OrganizationGLN 1..1 Identifier Global location number (GLN) of the laboratory organization #xD; OrganizationName 1..1 string Name of the laboratory organization #xD; OrderIdentifier 1..1 Identifier Identifier assigned to this order by the testing laboratory #xD; Art. 4 Abs. 3 (Auftraggebende Ärztin oder auftraggebender Arzt und Betrieb in dem …
url:
  v: http://fhir.ch/ig/ch-elm/StructureDefinition/LaboratoryReport
  l: LaboratoryReport
version:
  v: 1.14.0
name:
  v: ChElmLaboratoryReport
title:
  v: CH ELM Laboratory Report
status:
  v: active
date:
  v: 2026-06-10T16:11:18+00:00
publisher:
  v: Federal Office of Public Health FOPH
contact:
  name:
    v: Federal Office of Public Health FOPH
  telecom:
    system:
      v: url
    value:
      v: https://www.bag.admin.ch/bag/en/home/das-bag/kontakt-standort.html
description:
  v: The logical model represents the CH ELM laboratory report as an abstract data model. These data elements are defined by the ordinance of the Federal Office of Public Health (FOPH) and are then mapped to the FHIR document structure. Cardinalities: - The cardinalities in the logical model show the so-called 'best case'. This means that if these data are available, they must be submitted to the FOPH. - Since in reality the data is not always available, the CH ELM profiles define which elements are required or optional. - See also the concept 'Must Support', which is described on the 'Home' page of this implementation guide
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: CH
copyright:
  v: CC0-1.0
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  uri:
    v: hl7.org/fhir/r4
    l: r4
  name:
    v: CH ELM Laboratory Report to FHIR
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: http://fhir.ch/ig/ch-elm/StructureDefinition/LaboratoryReport
  l: LaboratoryReport
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: LaboratoryReport
    path:
      v: LaboratoryReport
    short:
      v: Laborbericht basierend auf der SR 818.101.126 Verordnung des EDI über die Meldung von Beobachtungen übertragbarer Krankheiten des Menschen (https://www.fedlex.admin.ch/eli/cc/2015/892/de)
    definition:
      v: Laboratory Report
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element
      min:
        v: 0
      max:
        v: *
    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() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
    is modifier:
      v: false
    mapping:
      identity:
        v: ChElmLaboratoryReportToFhir
      map:
        v: Bundle
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: LaboratoryReport.id
    path:
      v: LaboratoryReport.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    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:
      extension:
        value: Url
      code:
        v: http://hl7.org/fhirpath/System.String
        l: System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: LaboratoryReport.extension
    path:
      v: LaboratoryReport.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    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. 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 can 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
    constraint:
      key:
        v: ele-1

Url
v: string
l: string

v: value

v: url

v: error

v: All FHIR elements must have a @value or children

v: hasValue() or (children().count() > id.count())

v: @value|f:*|h:div

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

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: LaboratoryReport.Header
path:
  v: LaboratoryReport.Header
short:
  v: Document information
definition:
  v: Document information
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Header
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0]

id:
  v: LaboratoryReport.Header.id
path:
  v: LaboratoryReport.Header.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Header.extension
path:
  v: LaboratoryReport.Header.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Header.DocumentIdentifier
path:
  v: LaboratoryReport.Header.DocumentIdentifier
short:
  v: Persistent, unique identifier for the document
definition:
  v: Persistent, unique identifier for the document
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Header.DocumentIdentifier
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.identifier.where(system='urn:ietf:rfc:3986').value.substring(9)

id:
  v: LaboratoryReport.Header.DocumentTimestamp
path:
  v: LaboratoryReport.Header.DocumentTimestamp
short:
  v: Timestamp of the document
definition:
  v: Timestamp of the document
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Header.DocumentTimestamp
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.date

id:
  v: LaboratoryReport.Header.DocumentLanguage
path:
  v: LaboratoryReport.Header.DocumentLanguage
short:
  v: Language of the document content
definition:
  v: Language of the document content
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Header.DocumentLanguage
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.language

id:
  v: LaboratoryReport.Header.DocumentTitle
path:
  v: LaboratoryReport.Header.DocumentTitle
short:
  v: Human Readable name/title of the document
definition:
  v: Human Readable name/title of the document
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Header.DocumentTitle
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.title

id:
  v: LaboratoryReport.Header.DocumentSectionTitle
path:
  v: LaboratoryReport.Header.DocumentSectionTitle
short:
  v: Human Readable name/title of the section
definition:
  v: Human Readable name/title of the section
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Header.DocumentSectionTitle
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.title

id:
  v: LaboratoryReport.Author
path:
  v: LaboratoryReport.Author
short:
  v: Author of the document (may be identical with Lab)
definition:
  v: Author of the document (may be identical with Lab)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Author
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.author.resolve()

id:
  v: LaboratoryReport.Author.id
path:
  v: LaboratoryReport.Author.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Author.extension
path:
  v: LaboratoryReport.Author.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Author.OrganizationGLN
path:
  v: LaboratoryReport.Author.OrganizationGLN
short:
  v: Global location number (GLN) of the authoring/sending organization
definition:
  v: Global location number (GLN) of the authoring/sending organization
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Author.OrganizationGLN
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.author.resolve().identifier.where(system='urn:oid:2.51.1.3').value

id:
  v: LaboratoryReport.Lab
path:
  v: LaboratoryReport.Lab
short:
  v: Notifiable laboratory that performed the laboratory test -> Art. 4 Abs. 2 (Meldepflichtiges Laboratorium)
definition:
  v: Notifiable laboratory that performed the laboratory test -> Art. 4 Abs. 2 (Meldepflichtiges Laboratorium)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Lab
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).performer.resolve()

id:
  v: LaboratoryReport.Lab.id
path:
  v: LaboratoryReport.Lab.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Lab.extension
path:
  v: LaboratoryReport.Lab.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Lab.OrganizationGLN
path:
  v: LaboratoryReport.Lab.OrganizationGLN
short:
  v: Global location number (GLN) of the laboratory organization
definition:
  v: Global location number (GLN) of the laboratory organization
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Lab.OrganizationGLN
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).performer.resolve().identifier.where(system='urn:oid:2.51.1.3').value

id:
  v: LaboratoryReport.Lab.OrganizationName
path:
  v: LaboratoryReport.Lab.OrganizationName
short:
  v: Name of the laboratory organization
definition:
  v: Name of the laboratory organization
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Lab.OrganizationName
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).performer.resolve().name

id:
  v: LaboratoryReport.Lab.OrderIdentifier
path:
  v: LaboratoryReport.Lab.OrderIdentifier
short:
  v: Identifier assigned to this order by the testing laboratory
definition:
  v: Identifier assigned to this order by the testing laboratory
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Lab.OrderIdentifier
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().identifier

id:
  v: LaboratoryReport.Orderer
path:
  v: LaboratoryReport.Orderer
short:
  v: Orderer of the laboratory test -> Art. 4 Abs. 3 (Auftraggebende Ärztin oder auftraggebender Arzt und Betrieb in dem sie oder er tätig ist)
definition:
  v: Orderer of the laboratory test -> Art. 4 Abs. 3 (Auftraggebende Ärztin oder auftraggebender Arzt und Betrieb in dem sie oder er tätig ist)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve()

id:
  v: LaboratoryReport.Orderer.id
path:
  v: LaboratoryReport.Orderer.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.extension
path:
  v: LaboratoryReport.Orderer.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.OrganizationBER
path:
  v: LaboratoryReport.Orderer.OrganizationBER
short:
  v: Business and Enterprise Register (BER) of the ordering organization
definition:
  v: Business and Enterprise Register (BER) of the ordering organization
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationBER
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().identifier.where(system='urn:oid:2.16.756.5.45').value

id:
  v: LaboratoryReport.Orderer.OrganizationUIDB
path:
  v: LaboratoryReport.Orderer.OrganizationUIDB
short:
  v: Unique Identification Business (UIDB) of the ordering organization
definition:
  v: Unique Identification Business (UIDB) of the ordering organization
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationUIDB
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().identifier.where(system='urn:oid:2.16.756.5.35').value

id:
  v: LaboratoryReport.Orderer.OrganizationName
path:
  v: LaboratoryReport.Orderer.OrganizationName
short:
  v: Name of the ordering organization
definition:
  v: Name of the ordering organization
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationName
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().name

id:
  v: LaboratoryReport.Orderer.OrganizationDepartment
path:
  v: LaboratoryReport.Orderer.OrganizationDepartment
short:
  v: Department where the laboratory test is ordered
definition:
  v: Department where the laboratory test is ordered
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationDepartment
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().extension.where(url='http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-department').value

id:
  v: LaboratoryReport.Orderer.Physician
path:
  v: LaboratoryReport.Orderer.Physician
short:
  v: Ordering physician
definition:
  v: Ordering physician
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve()

id:
  v: LaboratoryReport.Orderer.Physician.id
path:
  v: LaboratoryReport.Orderer.Physician.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.Physician.extension
path:
  v: LaboratoryReport.Orderer.Physician.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.Physician.GLN
path:
  v: LaboratoryReport.Orderer.Physician.GLN
short:
  v: Global location number (GLN) of the physician
definition:
  v: Global location number (GLN) of the physician
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician.GLN
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().identifier.where(system='urn:oid:2.51.1.3').value

id:
  v: LaboratoryReport.Orderer.Physician.ZSR
path:
  v: LaboratoryReport.Orderer.Physician.ZSR
short:
  v: Unique Identification (ZSR/RCC) of the ordering physician
definition:
  v: Unique Identification (ZSR/RCC) of the ordering physician
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician.ZSR
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().identifier.where(system='urn:oid:2.16.756.5.30.1.123.100.2.1.1').value

id:
  v: LaboratoryReport.Orderer.Physician.Surname
path:
  v: LaboratoryReport.Orderer.Physician.Surname
short:
  v: Surname physician
definition:
  v: Surname physician
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician.Surname
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().name.family

id:
  v: LaboratoryReport.Orderer.Physician.Givenname
path:
  v: LaboratoryReport.Orderer.Physician.Givenname
short:
  v: Given name physician
definition:
  v: Given name physician
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician.Givenname
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().name.given

id:
  v: LaboratoryReport.Orderer.Physician.Phone
path:
  v: LaboratoryReport.Orderer.Physician.Phone
short:
  v: Phone number physician
definition:
  v: Phone number physician
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician.Phone
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().telecom.where(system='phone').value

id:
  v: LaboratoryReport.Orderer.Physician.Email
path:
  v: LaboratoryReport.Orderer.Physician.Email
short:
  v: Email address physician
definition:
  v: Email address physician
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.Physician.Email
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().telecom.where(system='email').value

id:
  v: LaboratoryReport.Orderer.PhysicianAddress
path:
  v: LaboratoryReport.Orderer.PhysicianAddress
short:
  v: Address of the ordering physician (optional, if different from organization address)
definition:
  v: Address of the ordering physician (optional, if different from organization address)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.PhysicianAddress
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.id
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.extension
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.StreetLine
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.StreetLine
short:
  v: Street name, house number
definition:
  v: Street name, house number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.PhysicianAddress.StreetLine
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.PostBox
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.PostBox
short:
  v: P.O. Box number
definition:
  v: P.O. Box number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.PhysicianAddress.PostBox
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.ZipCode
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.ZipCode
short:
  v: Zip code
definition:
  v: Zip code
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.PhysicianAddress.ZipCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.City
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.City
short:
  v: City
definition:
  v: City
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.PhysicianAddress.City
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.OrganizationAddress
path:
  v: LaboratoryReport.Orderer.OrganizationAddress
short:
  v: Address of the ordering organization (default address)
definition:
  v: Address of the ordering organization (default address)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationAddress
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.id
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.extension
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.StreetLine
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.StreetLine
short:
  v: Street name, house number
definition:
  v: Street name, house number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationAddress.StreetLine
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').value
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').value

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.PostBox
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.PostBox
short:
  v: P.O. Box number
definition:
  v: P.O. Box number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationAddress.PostBox
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').value

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.ZipCode
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.ZipCode
short:
  v: Zip code
definition:
  v: Zip code
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationAddress.ZipCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.postalCode

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.City
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.City
short:
  v: City
definition:
  v: City
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Orderer.OrganizationAddress.City
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.city

id:
  v: LaboratoryReport.Patient
path:
  v: LaboratoryReport.Patient
short:
  v: Patient -> Anhang 3 (Angaben zur betroffenen Person)
definition:
  v: Patient -> Anhang 3 (Angaben zur betroffenen Person)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve()

id:
  v: LaboratoryReport.Patient.id
path:
  v: LaboratoryReport.Patient.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Patient.extension
path:
  v: LaboratoryReport.Patient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Patient.Identifier
path:
  v: LaboratoryReport.Patient.Identifier
short:
  v: Identifier
definition:
  v: Identifier
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Identifier
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().identifier

id:
  v: LaboratoryReport.Patient.Identifier.id
path:
  v: LaboratoryReport.Patient.Identifier.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Patient.Identifier.extension
path:
  v: LaboratoryReport.Patient.Identifier.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Patient.Identifier.use
path:
  v: LaboratoryReport.Patient.Identifier.use
short:
  v: usual | official | temp | secondary | old (If known)
definition:
  v: The purpose of this identifier.
comment:
  v: Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
requirements:
  v: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one.
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: IdentifierUse
  strength:
    v: required
  description:
    v: Identifies the purpose for this identifier, if known .
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
    l: http://hl7.org/fhir/ValueSet/identifier-use
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: LaboratoryReport.Patient.Identifier.type
path:
  v: LaboratoryReport.Patient.Identifier.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: IdentifierType
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: extensible
  description:
    v: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/identifier-type
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: LaboratoryReport.Patient.Identifier.system
path:
  v: LaboratoryReport.Patient.Identifier.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
comment:
  v: Identifier.system is always case sensitive.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
example:
  label:
    v: General
  value: Uri
    v: http://www.acme.com/identifiers/patient
    l: patient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: LaboratoryReport.Patient.Identifier.value
path:
  v: LaboratoryReport.Patient.Identifier.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
example:
  label:
    v: General
  value: String
    v: 123456
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: LaboratoryReport.Patient.Identifier.period
path:
  v: LaboratoryReport.Patient.Identifier.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: LaboratoryReport.Patient.Identifier.assigner
path:
  v: LaboratoryReport.Patient.Identifier.assigner
short:
  v: Organization that issued id (may be just text)
definition:
  v: Organization that issued/manages the identifier.
comment:
  v: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.assigner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / (CX.4,CX.9,CX.10)
mapping:
  identity:
    v: rim
  map:
    v: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierIssuingAuthority

id:
  v: LaboratoryReport.Patient.Identifier.OASI
path:
  v: LaboratoryReport.Patient.Identifier.OASI
short:
  v: Switzerland: Old-age and survivors's insurance (OASI) number
definition:
  v: Switzerland: Old-age and survivors's insurance (OASI) number
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Identifier.OASI
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().identifier.where(system='urn:oid:2.16.756.5.32').value

id:
  v: LaboratoryReport.Patient.Identifier.IDN
path:
  v: LaboratoryReport.Patient.Identifier.IDN
short:
  v: Liechtenstein: Identification number (IDN)
definition:
  v: Liechtenstein: Identification number (IDN)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Identifier.IDN
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().identifier.where(system='urn:oid:2.16.438.10.20.10.10.1.2.1').value

id:
  v: LaboratoryReport.Patient.Surname
path:
  v: LaboratoryReport.Patient.Surname
short:
  v: Surname (or initials)
definition:
  v: Surname (or initials)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Surname
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().name.given

id:
  v: LaboratoryReport.Patient.Givenname
path:
  v: LaboratoryReport.Patient.Givenname
short:
  v: Given name (or initials)
definition:
  v: Given name (or initials)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Givenname
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().name.family

id:
  v: LaboratoryReport.Patient.Gender
path:
  v: LaboratoryReport.Patient.Gender
short:
  v: Gender
definition:
  v: Gender
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Gender
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().gender

id:
  v: LaboratoryReport.Patient.DateOfBirth
path:
  v: LaboratoryReport.Patient.DateOfBirth
short:
  v: Date of birth
definition:
  v: Date of birth
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.DateOfBirth
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().birthDate

id:
  v: LaboratoryReport.Patient.Phone
path:
  v: LaboratoryReport.Patient.Phone
short:
  v: Phone number
definition:
  v: Phone number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Phone
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().telecom.where(system='phone').value

id:
  v: LaboratoryReport.Patient.Address
path:
  v: LaboratoryReport.Patient.Address
short:
  v: Residence address
definition:
  v: Residence address
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Address
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home')

id:
  v: LaboratoryReport.Patient.Address.id
path:
  v: LaboratoryReport.Patient.Address.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Patient.Address.extension
path:
  v: LaboratoryReport.Patient.Address.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.Patient.Address.StreetLine
path:
  v: LaboratoryReport.Patient.Address.StreetLine
short:
  v: Street name, house number
definition:
  v: Street name, house number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Address.StreetLine
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').value
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').value

id:
  v: LaboratoryReport.Patient.Address.ZipCode
path:
  v: LaboratoryReport.Patient.Address.ZipCode
short:
  v: Zip code
definition:
  v: Zip code
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Address.ZipCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').postalCode

id:
  v: LaboratoryReport.Patient.Address.City
path:
  v: LaboratoryReport.Patient.Address.City
short:
  v: City
definition:
  v: City
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Address.City
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').city

id:
  v: LaboratoryReport.Patient.Address.Canton
path:
  v: LaboratoryReport.Patient.Address.Canton
short:
  v: Canton
definition:
  v: Canton
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Address.Canton
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').state

id:
  v: LaboratoryReport.Patient.Address.Country
path:
  v: LaboratoryReport.Patient.Address.Country
short:
  v: Country
definition:
  v: Country
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.Patient.Address.Country
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').country.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-codedString').value.code

id:
  v: LaboratoryReport.TestResult
path:
  v: LaboratoryReport.TestResult
short:
  v: Laboratory result -> Art. 4 Abs. 1 (Die zu meldenden laboranalytischen Befunde) - Anhang 3 (Angaben zum laboranalytischen Befund)
definition:
  v: Laboratory result -> Art. 4 Abs. 1 (Die zu meldenden laboranalytischen Befunde) - Anhang 3 (Angaben zum laboranalytischen Befund)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section

id:
  v: LaboratoryReport.TestResult.id
path:
  v: LaboratoryReport.TestResult.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.extension
path:
  v: LaboratoryReport.TestResult.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.StudyType
path:
  v: LaboratoryReport.TestResult.StudyType
short:
  v: Laboratory study type
definition:
  v: Laboratory study type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.StudyType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.code.coding.where(system='http://loinc.org')

id:
  v: LaboratoryReport.TestResult.ExecutionDateTime
path:
  v: LaboratoryReport.TestResult.ExecutionDateTime
short:
  v: Date (-time) of test
definition:
  v: Date (-time) of test
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.ExecutionDateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().effective

id:
  v: LaboratoryReport.TestResult.Type
path:
  v: LaboratoryReport.TestResult.Type
short:
  v: Type of test
definition:
  v: Type of test
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().code.coding.where(system='http://loinc.org')

id:
  v: LaboratoryReport.TestResult.Type.id
path:
  v: LaboratoryReport.TestResult.Type.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Type.extension
path:
  v: LaboratoryReport.TestResult.Type.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Type.Code
path:
  v: LaboratoryReport.TestResult.Type.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Type.Code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().code.coding.where(system='http://loinc.org').code

id:
  v: LaboratoryReport.TestResult.Type.CodeSystem
path:
  v: LaboratoryReport.TestResult.Type.CodeSystem
short:
  v: Identity fo the terminology system
definition:
  v: Identity fo the terminology system
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Type.CodeSystem
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().code.coding.where(system='http://loinc.org').system

id:
  v: LaboratoryReport.TestResult.Specimen
path:
  v: LaboratoryReport.TestResult.Specimen
short:
  v: Test sample
definition:
  v: Test sample
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Specimen
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve()

id:
  v: LaboratoryReport.TestResult.Specimen.id
path:
  v: LaboratoryReport.TestResult.Specimen.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Specimen.extension
path:
  v: LaboratoryReport.TestResult.Specimen.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Specimen.CollectionDateTime
path:
  v: LaboratoryReport.TestResult.Specimen.CollectionDateTime
short:
  v: Date (-time) of sample collection
definition:
  v: Date (-time) of sample collection
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Specimen.CollectionDateTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().collection.collected

id:
  v: LaboratoryReport.TestResult.Specimen.Type
path:
  v: LaboratoryReport.TestResult.Specimen.Type
short:
  v: Collection material
definition:
  v: Collection material
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Specimen.Type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().type

id:
  v: LaboratoryReport.TestResult.Specimen.Type.id
path:
  v: LaboratoryReport.TestResult.Specimen.Type.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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false

id:
  v: LaboratoryReport.TestResult.Specimen.Type.extension
path:
  v: LaboratoryReport.TestResult.Specimen.Type.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 resource. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false

id:
  v: LaboratoryReport.TestResult.Specimen.Type.value
path:
  v: LaboratoryReport.TestResult.Specimen.Type.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-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
      l: regex
    value: String
      v: [^\s]+(\s[^\s]+)*
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false

id:
  v: LaboratoryReport.TestResult.Specimen.Type.Code
path:
  v: LaboratoryReport.TestResult.Specimen.Type.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Specimen.Type.Code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().type.coding.where(system='http://snomed.info/sct').code

id:
  v: LaboratoryReport.TestResult.Specimen.Type.CodeSystem
path:
  v: LaboratoryReport.TestResult.Specimen.Type.CodeSystem
short:
  v: Identity fo the terminology system
definition:
  v: Identity fo the terminology system
min:
  v: 0
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Specimen.Type.CodeSystem
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().type.coding.where(system='http://snomed.info/sct').system

id:
  v: LaboratoryReport.TestResult.Value
path:
  v: LaboratoryReport.TestResult.Value
short:
  v: Acutal test result
definition:
  v: Acutal test result
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Value
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().value.coding.where(system='http://snomed.info/sct')

id:
  v: LaboratoryReport.TestResult.Value.id
path:
  v: LaboratoryReport.TestResult.Value.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Value.extension
path:
  v: LaboratoryReport.TestResult.Value.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Value.Code
path:
  v: LaboratoryReport.TestResult.Value.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Value.Code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().value.coding.where(system='http://snomed.info/sct').code

id:
  v: LaboratoryReport.TestResult.Value.CodeSystem
path:
  v: LaboratoryReport.TestResult.Value.CodeSystem
short:
  v: Identity fo the terminology system
definition:
  v: Identity fo the terminology system
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Value.CodeSystem
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().value.coding.where(system='http://snomed.info/sct').system

id:
  v: LaboratoryReport.TestResult.Interpretation
path:
  v: LaboratoryReport.TestResult.Interpretation
short:
  v: Interpretation of the test result
definition:
  v: Interpretation of the test result
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Interpretation
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().interpretation.coding.where(system='http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation')

id:
  v: LaboratoryReport.TestResult.Interpretation.id
path:
  v: LaboratoryReport.TestResult.Interpretation.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Interpretation.extension
path:
  v: LaboratoryReport.TestResult.Interpretation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (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
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: LaboratoryReport.TestResult.Interpretation.Code
path:
  v: LaboratoryReport.TestResult.Interpretation.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Interpretation.Code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().interpretation.coding.where(system='http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation').code

id:
  v: LaboratoryReport.TestResult.Interpretation.CodeSystem
path:
  v: LaboratoryReport.TestResult.Interpretation.CodeSystem
short:
  v: Identity fo the terminology system (HL7 ObservationInterpretation)
definition:
  v: Identity fo the terminology system (HL7 ObservationInterpretation)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: LaboratoryReport.TestResult.Interpretation.CodeSystem
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().interpretation.coding.where(system='http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation').system

element:
  id:
    v: LaboratoryReport
  path:
    v: LaboratoryReport
  short:
    v: Laborbericht basierend auf der SR 818.101.126 Verordnung des EDI über die Meldung von Beobachtungen übertragbarer Krankheiten des Menschen (https://www.fedlex.admin.ch/eli/cc/2015/892/de)
  definition:
    v: Laboratory Report
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle
element:
  id:
    v: LaboratoryReport.Header
  path:
    v: LaboratoryReport.Header
  short:
    v: Document information
  definition:
    v: Document information
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Element
      l: Element
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0]
element:
  id:
    v: LaboratoryReport.Header.DocumentIdentifier
  path:
    v: LaboratoryReport.Header.DocumentIdentifier
  short:
    v: Persistent, unique identifier for the document
  definition:
    v: Persistent, unique identifier for the document
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.identifier.where(system='urn:ietf:rfc:3986').value.substring(9)
element:
  id:
    v: LaboratoryReport.Header.DocumentTimestamp
  path:
    v: LaboratoryReport.Header.DocumentTimestamp
  short:
    v: Timestamp of the document
  definition:
    v: Timestamp of the document
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.date
element:
  id:
    v: LaboratoryReport.Header.DocumentLanguage
  path:
    v: LaboratoryReport.Header.DocumentLanguage
  short:
    v: Language of the document content
  definition:
    v: Language of the document content
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.language
element:
  id:
    v: LaboratoryReport.Header.DocumentTitle
  path:
    v: LaboratoryReport.Header.DocumentTitle
  short:
    v: Human Readable name/title of the document
  definition:
    v: Human Readable name/title of the document
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.title
element:
  id:
    v: LaboratoryReport.Header.DocumentSectionTitle
  path:
    v: LaboratoryReport.Header.DocumentSectionTitle
  short:
    v: Human Readable name/title of the section
  definition:
    v: Human Readable name/title of the section
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.section.title
element:
  id:
    v: LaboratoryReport.Author
  path:
    v: LaboratoryReport.Author
  short:
    v: Author of the document (may be identical with Lab)
  definition:
    v: Author of the document (may be identical with Lab)
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Element
      l: Element
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.author.resolve()
element:
  id:
    v: LaboratoryReport.Author.OrganizationGLN
  path:
    v: LaboratoryReport.Author.OrganizationGLN
  short:
    v: Global location number (GLN) of the authoring/sending organization
  definition:
    v: Global location number (GLN) of the authoring/sending organization
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: ChElmLaboratoryReportToFhir
    map:
      v: Bundle.entry[0].resource.author.resolve().identifier.where(system='urn:oid:2.51.1.3').value
element:
  id:
    v: LaboratoryReport.Lab
  path:
    v: LaboratoryReport.Lab
  short:
    v: Notifiable laboratory that performed the laboratory test -> Art. 4 Abs. 2 (Meldepflichtiges Laboratorium)
  definition:
    v: Notifiable laboratory that performed the laboratory test -> Art. 4 Abs. 2 (Meldepflichtiges Laboratorium)
  min:
    v: 1

v: 1

code:
  v: Element
  l: Element

identity:
  v: ChElmLaboratoryReportToFhir
map:
  v: Bundle.entry.resource.as(DiagnosticReport).performer.resolve()

id:
  v: LaboratoryReport.Lab.OrganizationGLN
path:
  v: LaboratoryReport.Lab.OrganizationGLN
short:
  v: Global location number (GLN) of the laboratory organization
definition:
  v: Global location number (GLN) of the laboratory organization
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).performer.resolve().identifier.where(system='urn:oid:2.51.1.3').value

id:
  v: LaboratoryReport.Lab.OrganizationName
path:
  v: LaboratoryReport.Lab.OrganizationName
short:
  v: Name of the laboratory organization
definition:
  v: Name of the laboratory organization
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).performer.resolve().name

id:
  v: LaboratoryReport.Lab.OrderIdentifier
path:
  v: LaboratoryReport.Lab.OrderIdentifier
short:
  v: Identifier assigned to this order by the testing laboratory
definition:
  v: Identifier assigned to this order by the testing laboratory
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().identifier

id:
  v: LaboratoryReport.Orderer
path:
  v: LaboratoryReport.Orderer
short:
  v: Orderer of the laboratory test -> Art. 4 Abs. 3 (Auftraggebende Ärztin oder auftraggebender Arzt und Betrieb in dem sie oder er tätig ist)
definition:
  v: Orderer of the laboratory test -> Art. 4 Abs. 3 (Auftraggebende Ärztin oder auftraggebender Arzt und Betrieb in dem sie oder er tätig ist)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve()

id:
  v: LaboratoryReport.Orderer.OrganizationBER
path:
  v: LaboratoryReport.Orderer.OrganizationBER
short:
  v: Business and Enterprise Register (BER) of the ordering organization
definition:
  v: Business and Enterprise Register (BER) of the ordering organization
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().identifier.where(system='urn:oid:2.16.756.5.45').value

id:
  v: LaboratoryReport.Orderer.OrganizationUIDB
path:
  v: LaboratoryReport.Orderer.OrganizationUIDB
short:
  v: Unique Identification Business (UIDB) of the ordering organization
definition:
  v: Unique Identification Business (UIDB) of the ordering organization
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().identifier.where(system='urn:oid:2.16.756.5.35').value

id:
  v: LaboratoryReport.Orderer.OrganizationName
path:
  v: LaboratoryReport.Orderer.OrganizationName
short:
  v: Name of the ordering organization
definition:
  v: Name of the ordering organization
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().name

id:
  v: LaboratoryReport.Orderer.OrganizationDepartment
path:
  v: LaboratoryReport.Orderer.OrganizationDepartment
short:
  v: Department where the laboratory test is ordered
definition:
  v: Department where the laboratory test is ordered
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().extension.where(url='http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-department').value

id:
  v: LaboratoryReport.Orderer.Physician
path:
  v: LaboratoryReport.Orderer.Physician
short:
  v: Ordering physician
definition:
  v: Ordering physician
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve()

id:
  v: LaboratoryReport.Orderer.Physician.GLN
path:
  v: LaboratoryReport.Orderer.Physician.GLN
short:
  v: Global location number (GLN) of the physician
definition:
  v: Global location number (GLN) of the physician
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().identifier.where(system='urn:oid:2.51.1.3').value

id:
  v: LaboratoryReport.Orderer.Physician.ZSR
path:
  v: LaboratoryReport.Orderer.Physician.ZSR
short:
  v: Unique Identification (ZSR/RCC) of the ordering physician
definition:
  v: Unique Identification (ZSR/RCC) of the ordering physician
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().identifier.where(system='urn:oid:2.16.756.5.30.1.123.100.2.1.1').value

id:
  v: LaboratoryReport.Orderer.Physician.Surname
path:
  v: LaboratoryReport.Orderer.Physician.Surname
short:
  v: Surname physician
definition:
  v: Surname physician
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().name.family

id:
  v: LaboratoryReport.Orderer.Physician.Givenname
path:
  v: LaboratoryReport.Orderer.Physician.Givenname
short:
  v: Given name physician
definition:
  v: Given name physician
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().name.given

id:
  v: LaboratoryReport.Orderer.Physician.Phone
path:
  v: LaboratoryReport.Orderer.Physician.Phone
short:
  v: Phone number physician
definition:
  v: Phone number physician
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().telecom.where(system='phone').value

id:
  v: LaboratoryReport.Orderer.Physician.Email
path:
  v: LaboratoryReport.Orderer.Physician.Email
short:
  v: Email address physician
definition:
  v: Email address physician
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().practitioner.resolve().telecom.where(system='email').value

id:
  v: LaboratoryReport.Orderer.PhysicianAddress
path:
  v: LaboratoryReport.Orderer.PhysicianAddress
short:
  v: Address of the ordering physician (optional, if different from organization address)
definition:
  v: Address of the ordering physician (optional, if different from organization address)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Element
    l: Element

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.StreetLine
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.StreetLine
short:
  v: Street name, house number
definition:
  v: Street name, house number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.PostBox
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.PostBox
short:
  v: P.O. Box number
definition:
  v: P.O. Box number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.ZipCode
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.ZipCode
short:
  v: Zip code
definition:
  v: Zip code
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.PhysicianAddress.City
path:
  v: LaboratoryReport.Orderer.PhysicianAddress.City
short:
  v: City
definition:
  v: City
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: LaboratoryReport.Orderer.OrganizationAddress
path:
  v: LaboratoryReport.Orderer.OrganizationAddress
short:
  v: Address of the ordering organization (default address)
definition:
  v: Address of the ordering organization (default address)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.StreetLine
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.StreetLine
short:
  v: Street name, house number
definition:
  v: Street name, house number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').value
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').value

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.PostBox
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.PostBox
short:
  v: P.O. Box number
definition:
  v: P.O. Box number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox').value

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.ZipCode
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.ZipCode
short:
  v: Zip code
definition:
  v: Zip code
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.postalCode

id:
  v: LaboratoryReport.Orderer.OrganizationAddress.City
path:
  v: LaboratoryReport.Orderer.OrganizationAddress.City
short:
  v: City
definition:
  v: City
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry.resource.as(DiagnosticReport).basedOn.resolve().requester.resolve().organization.resolve().address.city

id:
  v: LaboratoryReport.Patient
path:
  v: LaboratoryReport.Patient
short:
  v: Patient -> Anhang 3 (Angaben zur betroffenen Person)
definition:
  v: Patient -> Anhang 3 (Angaben zur betroffenen Person)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve()

id:
  v: LaboratoryReport.Patient.Identifier
path:
  v: LaboratoryReport.Patient.Identifier
short:
  v: Identifier
definition:
  v: Identifier
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().identifier

id:
  v: LaboratoryReport.Patient.Identifier.OASI
path:
  v: LaboratoryReport.Patient.Identifier.OASI
short:
  v: Switzerland: Old-age and survivors's insurance (OASI) number
definition:
  v: Switzerland: Old-age and survivors's insurance (OASI) number
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().identifier.where(system='urn:oid:2.16.756.5.32').value

id:
  v: LaboratoryReport.Patient.Identifier.IDN
path:
  v: LaboratoryReport.Patient.Identifier.IDN
short:
  v: Liechtenstein: Identification number (IDN)
definition:
  v: Liechtenstein: Identification number (IDN)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Identifier
    l: Identifier
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().identifier.where(system='urn:oid:2.16.438.10.20.10.10.1.2.1').value

id:
  v: LaboratoryReport.Patient.Surname
path:
  v: LaboratoryReport.Patient.Surname
short:
  v: Surname (or initials)
definition:
  v: Surname (or initials)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().name.given

id:
  v: LaboratoryReport.Patient.Givenname
path:
  v: LaboratoryReport.Patient.Givenname
short:
  v: Given name (or initials)
definition:
  v: Given name (or initials)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().name.family

id:
  v: LaboratoryReport.Patient.Gender
path:
  v: LaboratoryReport.Patient.Gender
short:
  v: Gender
definition:
  v: Gender
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().gender

id:
  v: LaboratoryReport.Patient.DateOfBirth
path:
  v: LaboratoryReport.Patient.DateOfBirth
short:
  v: Date of birth
definition:
  v: Date of birth
min:
  v: 1
max:
  v: 1
type:
  code:
    v: date
    l: date
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().birthDate

id:
  v: LaboratoryReport.Patient.Phone
path:
  v: LaboratoryReport.Patient.Phone
short:
  v: Phone number
definition:
  v: Phone number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().telecom.where(system='phone').value

id:
  v: LaboratoryReport.Patient.Address
path:
  v: LaboratoryReport.Patient.Address
short:
  v: Residence address
definition:
  v: Residence address
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home')

id:
  v: LaboratoryReport.Patient.Address.StreetLine
path:
  v: LaboratoryReport.Patient.Address.StreetLine
short:
  v: Street name, house number
definition:
  v: Street name, house number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').value
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').value

id:
  v: LaboratoryReport.Patient.Address.ZipCode
path:
  v: LaboratoryReport.Patient.Address.ZipCode
short:
  v: Zip code
definition:
  v: Zip code
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').postalCode

id:
  v: LaboratoryReport.Patient.Address.City
path:
  v: LaboratoryReport.Patient.Address.City
short:
  v: City
definition:
  v: City
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').city

id:
  v: LaboratoryReport.Patient.Address.Canton
path:
  v: LaboratoryReport.Patient.Address.Canton
short:
  v: Canton
definition:
  v: Canton
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').state

id:
  v: LaboratoryReport.Patient.Address.Country
path:
  v: LaboratoryReport.Patient.Address.Country
short:
  v: Country
definition:
  v: Country
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.subject.resolve().address.where(use='home').country.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-codedString').value.code

id:
  v: LaboratoryReport.TestResult
path:
  v: LaboratoryReport.TestResult
short:
  v: Laboratory result -> Art. 4 Abs. 1 (Die zu meldenden laboranalytischen Befunde) - Anhang 3 (Angaben zum laboranalytischen Befund)
definition:
  v: Laboratory result -> Art. 4 Abs. 1 (Die zu meldenden laboranalytischen Befunde) - Anhang 3 (Angaben zum laboranalytischen Befund)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section

id:
  v: LaboratoryReport.TestResult.StudyType
path:
  v: LaboratoryReport.TestResult.StudyType
short:
  v: Laboratory study type
definition:
  v: Laboratory study type
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.code.coding.where(system='http://loinc.org')

id:
  v: LaboratoryReport.TestResult.ExecutionDateTime
path:
  v: LaboratoryReport.TestResult.ExecutionDateTime
short:
  v: Date (-time) of test
definition:
  v: Date (-time) of test
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().effective

id:
  v: LaboratoryReport.TestResult.Type
path:
  v: LaboratoryReport.TestResult.Type
short:
  v: Type of test
definition:
  v: Type of test
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().code.coding.where(system='http://loinc.org')

id:
  v: LaboratoryReport.TestResult.Type.Code
path:
  v: LaboratoryReport.TestResult.Type.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().code.coding.where(system='http://loinc.org').code

id:
  v: LaboratoryReport.TestResult.Type.CodeSystem
path:
  v: LaboratoryReport.TestResult.Type.CodeSystem
short:
  v: Identity fo the terminology system
definition:
  v: Identity fo the terminology system
min:
  v: 1
max:
  v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().code.coding.where(system='http://loinc.org').system

id:
  v: LaboratoryReport.TestResult.Specimen
path:
  v: LaboratoryReport.TestResult.Specimen
short:
  v: Test sample
definition:
  v: Test sample
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve()

id:
  v: LaboratoryReport.TestResult.Specimen.CollectionDateTime
path:
  v: LaboratoryReport.TestResult.Specimen.CollectionDateTime
short:
  v: Date (-time) of sample collection
definition:
  v: Date (-time) of sample collection
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().collection.collected

id:
  v: LaboratoryReport.TestResult.Specimen.Type
path:
  v: LaboratoryReport.TestResult.Specimen.Type
short:
  v: Collection material
definition:
  v: Collection material
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().type

id:
  v: LaboratoryReport.TestResult.Specimen.Type.Code
path:
  v: LaboratoryReport.TestResult.Specimen.Type.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().type.coding.where(system='http://snomed.info/sct').code

id:
  v: LaboratoryReport.TestResult.Specimen.Type.CodeSystem
path:
  v: LaboratoryReport.TestResult.Specimen.Type.CodeSystem
short:
  v: Identity fo the terminology system
definition:
  v: Identity fo the terminology system
min:
  v: 0
max:
  v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().specimen.resolve().type.coding.where(system='http://snomed.info/sct').system

id:
  v: LaboratoryReport.TestResult.Value
path:
  v: LaboratoryReport.TestResult.Value
short:
  v: Acutal test result
definition:
  v: Acutal test result
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().value.coding.where(system='http://snomed.info/sct')

id:
  v: LaboratoryReport.TestResult.Value.Code
path:
  v: LaboratoryReport.TestResult.Value.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().value.coding.where(system='http://snomed.info/sct').code

id:
  v: LaboratoryReport.TestResult.Value.CodeSystem
path:
  v: LaboratoryReport.TestResult.Value.CodeSystem
short:
  v: Identity fo the terminology system
definition:
  v: Identity fo the terminology system
min:
  v: 1
max:
  v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().value.coding.where(system='http://snomed.info/sct').system

id:
  v: LaboratoryReport.TestResult.Interpretation
path:
  v: LaboratoryReport.TestResult.Interpretation
short:
  v: Interpretation of the test result
definition:
  v: Interpretation of the test result
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Element
    l: Element
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().interpretation.coding.where(system='http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation')

id:
  v: LaboratoryReport.TestResult.Interpretation.Code
path:
  v: LaboratoryReport.TestResult.Interpretation.Code
short:
  v: Coded data
definition:
  v: Coded data
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().interpretation.coding.where(system='http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation').code

id:
  v: LaboratoryReport.TestResult.Interpretation.CodeSystem
path:
  v: LaboratoryReport.TestResult.Interpretation.CodeSystem
short:
  v: Identity fo the terminology system (HL7 ObservationInterpretation)
definition:
  v: Identity fo the terminology system (HL7 ObservationInterpretation)
min:
  v: 1
max:
  v: 1
type:
  code:
    v: uri
    l: uri
mapping:
  identity:
    v: ChElmLaboratoryReportToFhir
  map:
    v: Bundle.entry[0].resource.section.entry.resolve().interpretation.coding.where(system='http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation').system