cda2fhirLabReport
type: StructureMap
node role: treeRoot
id:
  v: cda2fhirLabReport
text:
  status:
    v: generated
  div: map "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirLabReport" = "cda2fhirLabReport" uses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor" alias AssignedAuthor as queried uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" alias AssignedEntity as queried uses "http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity" alias AssociatedEntity as queried uses "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization" alias CustodianOrganization as queried uses "http://hl7.org/fhir/cda/StructureDefinition/OrganizationPartOf" alias OrganizationPartOf as queried uses "http://hl7.org/fhir/cda/StructureDefinition/Organization" alias rapresentedOrganization as queried uses "http://hl7.org/fhir/cda/StructureDefinition/Section" alias Section as queried uses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as queried uses "http://hl7.org/fhir/cda/StructureDefinition/AD" alias AD as source uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as produced uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Encounter" alias Encounter as produced uses "http://hl7.org/fhir/StructureDefinition/Person" alias Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as produced uses "http://hl7.org/fhir/StructureDefinition/Specimen" alias Specimen as produced uses "http://hl7.org/fhir/StructureDefinition/Procedure" alias Procedure as produced uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as produced uses "http://hl7.org/fhir/cda/StructureDefinition/Act" alias Act as produced uses "http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ" alias IVL_PQ as source uses "http://hl7.org/f…
url:
  v: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirLabReport
version:
  v: 0.1.0
name:
  v: cda2fhirLabReport
status:
  v: draft
date:
  v: 2025-10-01T07:14:02+00:00
publisher:
  v: HL7 Italy
contact:
  name:
    v: HL7 Italy
  telecom:
    system:
      v: url
    value:
      v: http://hl7.it
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: IT
    display:
      v: Italy
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
    link: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
  mode:
    v: source
  alias:
    v: ClinicalDocument
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor
    link: http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor
  mode:
    v: queried
  alias:
    v: AssignedAuthor
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity
    link: http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity
  mode:
    v: queried
  alias:
    v: AssignedEntity
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity
    link: http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity
  mode:
    v: queried
  alias:
    v: AssociatedEntity
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization
    link: http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization
  mode:
    v: queried
  alias:
    v: CustodianOrganization
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/OrganizationPartOf
    link: http://hl7.org/fhir/cda/StructureDefinition/OrganizationPartOf
  mode:
    v: queried
  alias:
    v: OrganizationPartOf
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/Organization
    link: http://hl7.org/fhir/cda/StructureDefinition/Organization
  mode:
    v: queried
  alias:
    v: rapresentedOrganization
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/Section
    link: http://hl7.org/fhir/cda/StructureDefinition/Section
  mode:
    v: queried
  alias:
    v: Section
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/PatientRole
    link: http://hl7.org/fhir/cda/StructureDefinition/PatientRole
  mode:
    v: queried
  alias:
    v: PatientRole
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/AD
    link: http://hl7.org/fhir/cda/StructureDefinition/AD
  mode:
    v: source
  alias:
    v: AD
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  mode:
    v: target
  alias:
    v: Bundle
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
  mode:
    v: produced
  alias:
    v: Composition
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  mode:
    v: produced
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter
  mode:
    v: produced
  alias:
    v: Encounter
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Person
    link: http://hl7.org/fhir/StructureDefinition/Person
  mode:
    v: produced
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  mode:
    v: produced
  alias:
    v: Practitioner
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Specimen
    link: http://hl7.org/fhir/StructureDefinition/Specimen
  mode:
    v: produced
  alias:
    v: Specimen
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Procedure
    link: http://hl7.org/fhir/StructureDefinition/Procedure
  mode:
    v: produced
  alias:
    v: Procedure
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  mode:
    v: produced
  alias:
    v: Organization
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/Act
    link: http://hl7.org/fhir/cda/StructureDefinition/Act
  mode:
    v: produced
  alias:
    v: Act
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ
    link: http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ
  mode:
    v: source

v: IVL_PQ

url:
  v: http://hl7.org/fhir/cda/StructureDefinition/PQ
  link: http://hl7.org/fhir/cda/StructureDefinition/PQ
mode:
  v: source
alias:
  v: PQ

url:
  v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
  link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
mode:
  v: target
alias:
  v: SimpleQuantity

url:
  v: http://hl7.org/fhir/cda/StructureDefinition/Organizer
  link: http://hl7.org/fhir/cda/StructureDefinition/Organizer
mode:
  v: source
alias:
  v: Organizer

name:
  v: CdaToBundle
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: ClinicalDocumentToBody
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: composition
    transform:
      v: create
    parameter:
      value: string
        v: Composition
  target:
    context:
      v: composition
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid1
    transform:
      v: uuid
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Composition/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Composition
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e2
  target:
    context:
      v: e2
    context type:
      v: variable
    element:
      v: request
    variable:
      v: requestPAT
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: requestPAT
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: PUT
  target:
    context:
      v: e2
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: patient
    transform:
      v: create
    parameter:
      value: string
        v: Patient
  target:
    context:
      v: patient
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid2
    transform:
      v: uuid
  target:
    context:
      v: e2
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Patient/
    parameter:
      value: id
        v: uuid2
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e3
  target:
    context:
      v: e3
    context type:
      v: variable
    element:
      v: request

v: request

v: create

value: string
  v: BackboneElement

context:
  v: request
context type:
  v: variable
element:
  v: method
transform:
  v: copy
parameter:
  value: string
    v: POST

context:
  v: e3
context type:
  v: variable
element:
  v: resource
variable:
  v: encounter
transform:
  v: create
parameter:
  value: string
    v: Encounter

context:
  v: encounter
context type:
  v: variable
element:
  v: id
variable:
  v: uuid3
transform:
  v: uuid

context:
  v: e3
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: https://example/Encounter/
parameter:
  value: id
    v: uuid3

context:
  v: request
context type:
  v: variable
element:
  v: url
transform:
  v: copy
parameter:
  value: string
    v: Encounter

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e6

context:
  v: e6
context type:
  v: variable
element:
  v: request
variable:
  v: request
transform:
  v: create
parameter:
  value: string
    v: BackboneElement

context:
  v: request
context type:
  v: variable
element:
  v: method
transform:
  v: copy
parameter:
  value: string
    v: POST

context:
  v: e6
context type:
  v: variable
element:
  v: resource
variable:
  v: DocumentReference
transform:
  v: create
parameter:
  value: string
    v: DocumentReference

context:
  v: DocumentReference
context type:
  v: variable
element:
  v: id
variable:
  v: uuid6
transform:
  v: uuid

context:
  v: e6
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: https://example/DocumentReference/
parameter:
  value: id
    v: uuid6

context:
  v: request
context type:
  v: variable
element:
  v: url
transform:
  v: copy
parameter:
  value: string
    v: DocumentReference

name:
  v: cdatobundle
source:
  context:
    v: cda
dependent:
  name:
    v: ClinicalDocumentToBundle
  variable:
    v: cda
  variable:
    v: patient
  variable:
    v: composition
  variable:
    v: encounter
  variable:
    v: bundle
  variable:
    v: DocumentReference

name:
  v: patient
source:
  context:
    v: cda
  element:
    v: recordTarget
  variable:
    v: recordTarget
rule:
  name:
    v: record
  source:
    context:
      v: recordTarget
    element:
      v: patientRole
    variable:
      v: patient
  rule:
    name:
      v: idfr
    source:
      context:
        v: patient
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: patient
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: value
    rule:
      name:
        v: assigningAuthorityName
  rule:
    name:
      v: ext
    source:
      context:
        v: patient
      element:
        v: id
      variable:
        v: id
      condition:
        v: (root = '2.16.840.1.113883.2.9.4.3.2') or (root = '2.16.840.1.113883.2.9.4.3.7') or (root = '2.16.840.1.113883.2.9.4.3.3') or (root = '2.16.840.1.113883.2.9.4.3.17') or (root = '2.16.840.1.113883.2.9.4.3.18') or (root = '2.16.840.1.113883.2.9.2.10.4.1.1') or (root = '2.16.840.1.113883.2.9.2.20.4.1.1') or (root = '2.16.840.1.113883.2.9.2.30.4.1.1') or (root = '2.16.840.1.113883.2.9.2.41.4.1.1') or (root = '2.16.840.1.113883.2.9.2.42.4.1.1') or (root = '2.16.840.1.113883.2.9.2.50.4.1.1') or (root = '2.16.840.1.113883.2.9.2.60.4.1.1') or (root = '2.16.840.1.113883.2.9.2.70.4.1.1') or (root = '2.16.840.1.113883.2.9.2.80.4.1.1') or (root = '2.16.840.1.113883.2.9.2.90.4.1.1') or (root = '2.16.840.1.113883.2.9.2.100.4.1.1') or (root = '2.16.840.1.113883.2.9.2.110.4.1.1') or (root = '2.16.840.1.113883.2.9.2.120.4.1.1') or (root = '2.16.840.1.113883.2.9.2.130.4.1.1') or (root = '2.16.840.1.113883.2.9.2.140.4.1.1') or (root = '2.16.840.1.113883.2.9.2.150.4.1.1') or (root = '2.16.840.1.113883.2.9.2.160.4.1.1') or (root = '2.16.840.1.113883.2.9.2.170.4.1.1') or (root = '2.16.840.1.113883.2.9.2.180.4.1.1') or (root = '2.16.840.1.113883.2.9.2.190.4.1.1') or (root = '2.16.840.1.113883.2.9.2.200.4.1.1') or (root = '2.16.840.1.113883.2.9.2.10.4.1') or (root = '2.16.840.1.113883.2.9.2.20.4.1') or (root = '2.16.840.1.113883.2.9.2.30.4.1') or (root = '2.16.840.1.113883.2.9.2.41.4.1') or (root = '2.16.840.1.113883.2.9.2.42.4.1') or (root = '2.16.840.1.113883.2.9.2.50.4.1') or (root = '2.16.840.1.113883.2.9.2.60.4.1') or (root = '2.16.840.1.113883.2.9.2.70.4.1') or (root = '2.16.840.1.113883.2.9.2.80.4.1') or (root = '2.16.840.1.113883.2.9.2.90.4.1') or (root = '2.16.840.1.113883.2.9.2.100.4.1') or (root = '2.16.840.1.113883.2.9.2.110.4.1') or (root = '2.16.840.1.113883.2.9.2.120.4.1') or (root = '2.16.840.1.113883.2.9.2.130.4.1') or (root = '2.16.840.1.113883.2.9.2.140.4.1') or (root = '2.16.840.1.113883.2.9.2.150.4.1') or (root = '2.16.840.1.113883.2.9.2.160.4.1') or (root = '2.16.840.…
    rule:
      name:
        v: UUID

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext1

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext1

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

v: id

v: extension

v: ext

v: requestPAT

v: variable

v: url

v: append

value: string
  v: Patient?identifier=

value: id
  v: ext

name:
  v: ClinicalDocumentToBundle
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: composition
  type:
    v: Composition
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: documentreference
  type:
    v: DocumentReference
  mode:
    v: target
rule:
  name:
    v: id
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: id
    transform:
      v: uuid
rule:
  name:
    v: identifier
  source:
    context:
      v: cda
    element:
      v: id
    variable:
      v: vvv
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: type
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: type
    transform:
      v: copy
    parameter:
      value: string
        v: transaction
rule:
  name:
    v: date
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: timestamp
    transform:
      v: evaluate
    parameter:
      value: string
        v: timestamp.now()
rule:
  name:
    v: composition
  source:
    context:
      v: cda
  dependent:
    name:
      v: ClinicalDocumentComposition
    variable:
      v: cda
    variable:
      v: composition
    variable:
      v: patient
    variable:
      v: encounter
    variable:
      v: bundle
    variable:
      v: documentreference
rule:
  name:
    v: component
  source:
    context:
      v: cda
    element:
      v: component
    variable:
      v: component
  rule:
    name:
      v: body
    source:
      context:
        v: component
      element:
        v: structuredBody
      variable:
        v: body
    rule:
      name:
        v: component

v: body

v: component

v: component

v: section

context:
  v: component
element:
  v: section
variable:
  v: srcSection

name:
  v: code
source:
  context:
    v: srcSection
  element:
    v: code
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSection
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter
  variable:
    v: documentreference

name:
  v: ClinicalDocumentSection
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: documentreference
  type:
    v: DocumentReference
  mode:
    v: target
rule:
  name:
    v: title
  source:
    context:
      v: src
    element:
      v: title
    variable:
      v: t
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: title
    transform:
      v: evaluate
    parameter:
      value: string
        v: t.dataString
rule:
  name:
    v: code
  source:
    context:
      v: src
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: code
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: cdaText
  source:
    context:
      v: src
    element:
      v: text
    variable:
      v: cdaText
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: text
    variable:
      v: fhirText
  rule:
    name:
      v: narrativeStatus
    source:
      context:
        v: cdaText
    target:
      context:
        v: fhirText
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: narrativeText
    source:
      context:
        v: cdaText
      variable:
        v: t
    target:
      context:
        v: fhirText
      context type:
        v: variable
      element:
        v: div
      transform:
        v: copy
      parameter:
        value: id
rule:
  name:
    v: entry
  source:
    context:
      v: src
    element:
      v: entry
    variable:
      v: entry1
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e1
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: DiagnosticReport

string
v: generated

id
v: t

v: create

value: string
  v: DiagnosticReport

context:
  v: DiagnosticReport
context type:
  v: variable
element:
  v: id
variable:
  v: uuid1
transform:
  v: uuid

context:
  v: e1
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: https://example/DiagnosticReport/
parameter:
  value: id
    v: uuid1

context:
  v: request
context type:
  v: variable
element:
  v: url
transform:
  v: copy
parameter:
  value: string
    v: DiagnosticReport

context:
  v: tgt
context type:
  v: variable
element:
  v: entry
variable:
  v: reference
transform:
  v: create
parameter:
  value: string
    v: Reference

context:
  v: reference
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: string
    v: 'https://example/DiagnosticReport/' + %DiagnosticReport.id

name:
  v: act
source:
  context:
    v: entry1
  element:
    v: act
  variable:
    v: act1
dependent:
  name:
    v: Act
  variable:
    v: act1
  variable:
    v: patient
  variable:
    v: DiagnosticReport
  variable:
    v: enc
  variable:
    v: bundle

name:
  v: component
source:
  context:
    v: src
  element:
    v: component
  variable:
    v: component
rule:
  name:
    v: section
  source:
    context:
      v: component
    element:
      v: section
    variable:
      v: sec
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: section
    variable:
      v: tgtSection
  dependent:
    name:
      v: ClinicalDocumentSection
    variable:
      v: cda
    variable:
      v: sec
    variable:
      v: patient
    variable:
      v: tgtSection
    variable:
      v: bundle
    variable:
      v: enc
    variable:
      v: documentreference

name:
  v: Observation
type mode:
  v: none
input:
  name:
    v: obs
  type:
    v: Observation
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: ob
  type:
    v: Observation
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: reference
  source:
    context:
      v: obs
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Patient/' + %patient.id
rule:
  name:
    v: reference
  source:
    context:
      v: obs
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: encounter
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: code
  source:
    context:
      v: obs
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: code
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: statusCode
  source:
    context:
      v: obs
    element:
      v: statusCode
    variable:
      v: statusc
    condition:
      v: (code = 'completed')
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final
rule:
  name:
    v: statusCode
  source:
    context:
      v: obs
    element:
      v: statusCode
    variable:
      v: statusc
    condition:
      v: (code = 'active')
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: registered
rule:
  name:
    v: statusCode
  source:
    context:
      v: obs
    element:
      v: statusCode
    variable:
      v: statusc
    condition:
      v: (code = 'aborted')
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: cancelled
rule:
  name:
    v: statusCode
  source:
    context:
      v: obs

v: statusCode

v: statusc

v: (code = 'suspended')

context:
  v: ob
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: partial

name:
  v: value2
source:
  context:
    v: obs
  element:
    v: effectiveTime
  variable:
    v: effectiveTime
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: effective
  variable:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: dateTime
dependent:
  name:
    v: TSDateTime
  variable:
    v: effectiveTime
  variable:
    v: value

name:
  v: where
source:
  context:
    v: obs
  condition:
    v: effectiveTime.low.exists() or effectiveTime.high.exists()
rule:
  name:
    v: effectiveTime
  source:
    context:
      v: obs
    element:
      v: effectiveTime
    variable:
      v: eff
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: effective
    variable:
      v: period
    transform:
      v: create
    parameter:
      value: string
        v: Period
  dependent:
    name:
      v: IVLTSPeriod
    variable:
      v: eff
    variable:
      v: period

name:
  v: interpretationCode
source:
  context:
    v: obs
  element:
    v: interpretationCode
  variable:
    v: vvv
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: interpretation
  variable:
    v: vvv
  transform:
    v: create

name:
  v: methodCode
source:
  context:
    v: obs
  element:
    v: methodCode
  variable:
    v: vvv
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: method
  variable:
    v: vvv
  transform:
    v: create

name:
  v: value
source:
  context:
    v: obs
  type:
    v: INT
  element:
    v: value
  variable:
    v: int
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: value
  transform:
    v: evaluate
  parameter:
    value: string
      v: int.value

name:
  v: boolean
source:
  context:
    v: obs
  type:
    v: BL
  element:
    v: value
  variable:
    v: boolean
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: value
  transform:
    v: evaluate
  parameter:
    value: string
      v: boolean.value

name:
  v: val
source:
  context:
    v: obs
  type:
    v: CE
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: coding
  source:
    context:
      v: val
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: value
    variable:
      v: ce
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: originltext
    source:
      context:
        v: val
      element:
        v: originalText
      variable:
        v: originalText
    rule:
      name:
        v: reference
  rule:
    name:
      v: code
    source:
      context:
        v: val
    target:
      context:
        v: ce
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: coding
    rule:
      name:
        v: code
    rule:
      name:
        v: codeSystem
    rule:
      name:
        v: displayName
    rule:
      name:
        v: codeSystemVersion
  rule:
    name:
      v: translation
    source:
      context:
        v: val
      element:
        v: translation
      variable:
        v: translation
    target:
      context:
        v: ce
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: coding
    rule:
      name:
        v: code
    rule:
      name:
        v: codeSystem
    rule:
      name:
        v: displayName
    rule:
      name:
        v: codeSystemVersion
    rule:
      name:
        v: qualifier

v: originalText

v: reference

v: reference

v: ce

v: variable

v: text

v: copy

value: id
  v: reference

v: val

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: val

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: val

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: val

v: codeSystemVersion

v: version

v: coding

v: variable

v: version

v: cast

value: id
  v: version

value: string
  v: string

v: translation

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: translation

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: translation

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: codeSystemVersion

v: version

v: coding

v: variable

v: version

v: cast

value: id
  v: version

value: string
  v: string

v: translation

v: qualifier

v: qualifier

v: value

context:
  v: qualifier
element:
  v: value
variable:
  v: value

context:
  v: ce
context type:
  v: variable
element:
  v: coding
variable:
  v: coding

name:
  v: code
source:
  context:
    v: value
  element:
    v: code
  variable:
    v: code
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: cast
  parameter:
    value: id
      v: code
  parameter:
    value: string
      v: string

name:
  v: codeSystem
source:
  context:
    v: value
  element:
    v: codeSystem
  variable:
    v: system
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: translate
  parameter:
    value: id
      v: system
  parameter:
    value: string
      v: http://hl7.org/fhir/ConceptMap/special-oid2uri
  parameter:
    value: string
      v: uri

name:
  v: displayName
source:
  context:
    v: value
  element:
    v: displayName
  variable:
    v: display
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: display
  transform:
    v: cast
  parameter:
    value: id
      v: display
  parameter:
    value: string
      v: string

name:
  v: codeSystemVersion
source:
  context:
    v: value
  element:
    v: codeSystemVersion
  variable:
    v: version
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: version
  transform:
    v: cast
  parameter:
    value: id
      v: version
  parameter:
    value: string
      v: string

name:
  v: val
source:
  context:
    v: obs
  type:
    v: CD
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: coding
  source:
    context:
      v: val
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: value
    variable:
      v: ce
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: originltext
    source:
      context:
        v: val
      element:
        v: originalText
      variable:
        v: originalText
    rule:
      name:
        v: reference
  rule:
    name:
      v: code
    source:
      context:
        v: val
    target:
      context:
        v: ce
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: coding
    rule:
      name:
        v: code
    rule:
      name:
        v: codeSystem
    rule:
      name:
        v: displayName
    rule:
      name:
        v: codeSystemVersion
  rule:
    name:
      v: translation
    source:
      context:
        v: val
      element:
        v: translation
      variable:
        v: translation
    target:
      context:
        v: ce
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: coding
    rule:
      name:
        v: code
    rule:
      name:
        v: codeSystem
    rule:
      name:
        v: displayName
    rule:
      name:
        v: codeSystemVersion
    rule:
      name:
        v: qualifier

v: originalText

v: reference

v: reference

v: ce

v: variable

v: text

v: copy

value: id
  v: reference

v: val

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: val

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: val

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: val

v: codeSystemVersion

v: version

v: coding

v: variable

v: version

v: cast

value: id
  v: version

value: string
  v: string

v: translation

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: translation

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: translation

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: codeSystemVersion

v: version

v: coding

v: variable

v: version

v: cast

value: id
  v: version

value: string
  v: string

v: translation

v: qualifier

v: qualifier

v: value

context:
  v: qualifier
element:
  v: value
variable:
  v: value

context:
  v: ce
context type:
  v: variable
element:
  v: coding
variable:
  v: coding

name:
  v: code
source:
  context:
    v: value
  element:
    v: code
  variable:
    v: code
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: cast
  parameter:
    value: id
      v: code
  parameter:
    value: string
      v: string

name:
  v: codeSystem
source:
  context:
    v: value
  element:
    v: codeSystem
  variable:
    v: system
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: translate
  parameter:
    value: id
      v: system
  parameter:
    value: string
      v: http://hl7.org/fhir/ConceptMap/special-oid2uri
  parameter:
    value: string
      v: uri

name:
  v: displayName
source:
  context:
    v: value
  element:
    v: displayName
  variable:
    v: display
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: display
  transform:
    v: cast
  parameter:
    value: id
      v: display
  parameter:
    value: string
      v: string

name:
  v: codeSystemVersion
source:
  context:
    v: value
  element:
    v: codeSystemVersion
  variable:
    v: version
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: version
  transform:
    v: cast
  parameter:
    value: id
      v: version
  parameter:
    value: string
      v: string

name:
  v: valueQuantity
source:
  context:
    v: obs
  type:
    v: PQ
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: quantity
  source:
    context:
      v: val
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: value
    variable:
      v: quantity
    transform:
      v: create
    parameter:
      value: string
        v: Quantity
  rule:
    name:
      v: value
    source:
      context:
        v: val
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: quantity
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: unit
    source:
      context:
        v: val
      element:
        v: unit
      variable:
        v: unit
    target:
      context:
        v: quantity
      context type:
        v: variable
      element:
        v: unit
      transform:
        v: copy
      parameter:
        value: id

id
v: value

id
v: unit

name:
  v: value
source:
  context:
    v: obs
  type:
    v: ST
  element:
    v: value
  variable:
    v: value
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: string
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: value
  transform:
    v: evaluate
  parameter:
    value: string
      v: value.dataString

name:
  v: entryRelationship
source:
  context:
    v: obs
  element:
    v: entryRelationship
  variable:
    v: entryRelationship
rule:
  name:
    v: Act
  source:
    context:
      v: entryRelationship
    element:
      v: act
    variable:
      v: act
  rule:
    name:
      v: text
    source:
      context:
        v: act
      element:
        v: text
      variable:
        v: text
    rule:
      name:
        v: reference
documentation:
  v: Note e commenti

v: text

v: reference

v: reference

v: ob

v: variable

v: note

v: note

v: reference

context:
  v: reference

context:
  v: note
context type:
  v: variable
element:
  v: text
transform:
  v: evaluate
parameter:
  value: string
    v: reference.value

name:
  v: subject
source:
  context:
    v: obs
  element:
    v: subject
  variable:
    v: sbj
rule:
  name:
    v: relatedSubject
  source:
    context:
      v: sbj
    element:
      v: relatedSubject
    variable:
      v: relatedSubj
  target:
    context:
      v: patient
    context type:
      v: variable
    element:
      v: extension
    variable:
      v: extension2
  dependent:
    name:
      v: ExtSubjectAnimal
    variable:
      v: relatedSubj
    variable:
      v: extension2
documentation:
  v: subject

name:
  v: performer
source:
  context:
    v: obs
  element:
    v: performer
  variable:
    v: performer
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e1
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitionerRole
  transform:
    v: create
  parameter:
    value: string
      v: PractitionerRole
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid1
  transform:
    v: uuid
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/PractitionerRole/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: PractitionerRole
rule:
  name:
    v: practitionerRole
  source:
    context:
      v: performer
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: performer
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/PractitionerRole/' + %practitionerRole.id
  rule:
    name:
      v: entity
    source:
      context:
        v: performer
      element:
        v: assignedEntity
      variable:
        v: entity
    rule:
      name:
        v: code
    rule:
      name:
        v: practitioner
documentation:
  v: performer

v: entity

v: code

v: vvv

v: practitionerRole

v: variable

v: code

v: vvv

v: create

v: entity

v: bundle

v: variable

v: entry

v: e2

v: e2

v: variable

v: request

v: request

v: create

value: string
  v: BackboneElement

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: e2

v: variable

v: resource

v: practitioner

v: create

value: string
  v: Practitioner

v: meta

context:
  v: entity

context:
  v: practitioner
context type:
  v: variable
element:
  v: meta
variable:
  v: meta

name:
  v: coding
source:
  context:
    v: entity
target:
  context:
    v: meta
  context type:
    v: variable
  element:
    v: tag
  variable:
    v: coding
  transform:
    v: create
  parameter:
    value: string
      v: Coding
rule:
  name:
    v: system
  source:
    context:
      v: entity
  target:
    context:
      v: coding
    context type:
      v: variable
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: string
        v: http://algoritmodiscoring
rule:
  name:
    v: code
  source:
    context:
      v: entity
  target:
    context:
      v: coding
    context type:
      v: variable
    element:
      v: code
    transform:
      v: copy
    parameter:
      value: string
        v: ClinicalDocument/body/observation/performer

v: identifier

context:
  v: entity
element:
  v: id
variable:
  v: id

context:
  v: practitioner
context type:
  v: variable
element:
  v: identifier
variable:
  v: identifier

name:
  v: root1
source:
  context:
    v: id
  element:
    v: root
  variable:
    v: r
target:
  context:
    v: identifier
  context type:
    v: variable
  element:
    v: system
  transform:
    v: translate
  parameter:
    value: id
      v: r
  parameter:
    value: string
      v: http://hl7.org/fhir/ConceptMap/special-oid2uri
  parameter:
    value: string
      v: uri

name:
  v: ext
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: identifier
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: id
      v: ext
rule:
  name:
    v: UUID
  source:
    context:
      v: entity
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: append
    parameter:
      value: string
        v: Practitioner?identifier=
    parameter:
      value: id
        v: ext

name:
  v: assigningAuthorityName
source:
  context:
    v: id
  element:
    v: assigningAuthorityName
  variable:
    v: s
target:
  context:
    v: identifier
  context type:
    v: variable
  element:
    v: assigner
  variable:
    v: a
target:
  context:
    v: a
  context type:
    v: variable
  element:
    v: display
  transform:
    v: copy
  parameter:
    value: id
      v: s

name:
  v: r
source:
  context:
    v: id
  element:
    v: root
  variable:
    v: r
rule:
  name:
    v: performer
  source:
    context:
      v: id
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid2
    transform:
      v: evaluate
    parameter:
      value: string
        v: r + '-' + ext
  target:
    context:
      v: e2
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Practitioner/
    parameter:
      value: id
        v: uuid2
  target:
    context:
      v: practitionerRole
    context type:
      v: variable
    element:
      v: practitioner
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Practitioner/' + %practitioner.id

v: 2.16.840.1.113883.2.9.4.3.2

context:
  v: entity
element:
  v: id
variable:
  v: id
condition:
  v: (root = '2.16.840.1.113883.2.9.4.3.2')

name:
  v: UUID
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: append
  parameter:
    value: string
      v: Practitioner?identifier=
  parameter:
    value: id
      v: ext

v: diverso

context:
  v: entity
element:
  v: id
variable:
  v: id
condition:
  v: (root != '2.16.840.1.113883.2.9.4.3.2')

name:
  v: UUID
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: append
  parameter:
    value: string
      v: Practitioner?identifier=
  parameter:
    value: id
      v: ext

v: addr

context:
  v: entity
element:
  v: addr
variable:
  v: vvv

context:
  v: practitioner
context type:
  v: variable
element:
  v: address
variable:
  v: vvv
transform:
  v: create

v: telecom

context:
  v: entity
element:
  v: telecom
variable:
  v: vvv

context:
  v: practitioner
context type:
  v: variable
element:
  v: telecom
variable:
  v: vvv
transform:
  v: create

v: name

context:
  v: entity
element:
  v: assignedPerson
variable:
  v: person

name:
  v: name
source:
  context:
    v: person
  element:
    v: name
  variable:
    v: vvv
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: name
  variable:
    v: vvv
  transform:
    v: create

name:
  v: birth
source:
  context:
    v: person
  element:
    v: birthTime
  variable:
    v: birthTime
rule:
  name:
    v: value
  source:
    context:
      v: birthTime
    element:
      v: value
    variable:
      v: date
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: birthDate
    transform:
      v: truncate
    parameter:
      value: id
        v: date
    parameter:
      value: integer
        v: 10

v: representedOrganization

context:
  v: entity
element:
  v: representedOrganization
variable:
  v: representedOrganization

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e3

context:
  v: e3
context type:
  v: variable
element:
  v: request
variable:
  v: request
transform:
  v: create
parameter:
  value: string
    v: BackboneElement

context:
  v: request
context type:
  v: variable
element:
  v: method
transform:
  v: copy
parameter:
  value: string
    v: PUT

context:
  v: e3
context type:
  v: variable
element:
  v: resource
variable:
  v: organization
transform:
  v: create
parameter:
  value: string
    v: Organization

name:
  v: meta
source:
  context:
    v: representedOrganization
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: meta
  variable:
    v: meta
rule:
  name:
    v: coding
  source:
    context:
      v: representedOrganization
  target:
    context:
      v: meta
    context type:
      v: variable
    element:
      v: tag
    variable:
      v: coding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: system
    source:
      context:
        v: representedOrganization
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: code
    source:
      context:
        v: representedOrganization
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string

string
v: ClinicalDocument/body/observation/performer/representedOrganization

name:
  v: identifier
source:
  context:
    v: representedOrganization
  element:
    v: id
  variable:
    v: id
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: identifier
rule:
  name:
    v: root1
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: system
    transform:
      v: translate
    parameter:
      value: id
        v: r
    parameter:
      value: string
        v: http://hl7.org/fhir/ConceptMap/special-oid2uri
    parameter:
      value: string
        v: uri
rule:
  name:
    v: ext
  source:
    context:
      v: id
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: id
        v: ext
  rule:
    name:
      v: UUID
    source:
      context:
        v: representedOrganization
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: url
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
rule:
  name:
    v: assigningAuthorityName
  source:
    context:
      v: id
    element:
      v: assigningAuthorityName
    variable:
      v: s
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: assigner
    variable:
      v: a
  target:
    context:
      v: a
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: s
rule:
  name:
    v: r
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  rule:
    name:
      v: aut
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid3
      transform:
        v: evaluate
      parameter:
        value: string
    target:
      context:
        v: e3
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
    target:
      context:
        v: practitionerRole
      context type:
        v: variable
      element:
        v: organization
      variable:
        v: referenceOrg
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: referenceOrg
      context type:
        v: variable
      element:
        v: reference
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id

string
v: Organization?identifier=

id
v: ext

string
v: r + '-' + ext

id
v: uuid3

string
v: Reference

id
v: uuid3

name:
  v: name
source:
  context:
    v: representedOrganization
  element:
    v: name
  variable:
    v: v
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: name
  transform:
    v: evaluate
  parameter:
    value: string
      v: v.other

name:
  v: telecom
source:
  context:
    v: representedOrganization
  element:
    v: telecom
  variable:
    v: vvv
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: telecom
  variable:
    v: vvv
  transform:
    v: create

name:
  v: addr
source:
  context:
    v: representedOrganization
  element:
    v: addr
  variable:
    v: vvv
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: address
  variable:
    v: vvv
  transform:
    v: create

name:
  v: OrgPartOf
source:
  context:
    v: representedOrganization
  element:
    v: asOrganizationPartOf
  variable:
    v: OrgPartOf
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e4
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: organization1
  transform:
    v: create
  parameter:
    value: string
      v: Organization
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: PUT
rule:
  name:
    v: meta
  source:
    context:
      v: OrgPartOf
  target:
    context:
      v: organization1
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: OrgPartOf
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: identifier
  source:
    context:
      v: OrgPartOf
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: organization1
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root

string
v: Coding

v: OrgPartOf

v: coding

v: variable

v: system

v: copy

v: OrgPartOf

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/observation/performer/representedOrganization/asOrganizationPartOf

id
v: r

string
v: uri

id
v: ext

v: OrgPartOf

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

name:
  v: org
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid4
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid4
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Organization/' + %organization1.id

name:
  v: code
source:
  context:
    v: OrgPartOf
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: type
  variable:
    v: vvv
  transform:
    v: create

name:
  v: statusCode
source:
  context:
    v: OrgPartOf
  element:
    v: statusCode
  variable:
    v: status
  condition:
    v: (value = 'active')
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: active
  transform:
    v: create
  parameter:
    value: string
      v: boolean
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: active
  transform:
    v: copy
  parameter:
    value: string
      v: true

name:
  v: wholeOrganization
source:
  context:
    v: OrgPartOf
  element:
    v: wholeOrganization
  variable:
    v: wholeOrgan
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e5
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: PUT
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: organization2
  transform:
    v: create
  parameter:
    value: string
      v: Organization
rule:
  name:
    v: meta
  source:
    context:
      v: wholeOrgan
  target:
    context:
      v: organization2
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: wholeOrgan
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: identifier
  source:
    context:
      v: wholeOrgan
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: organization2
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root

string
v: Coding

v: wholeOrgan

v: coding

v: variable

v: system

v: copy

v: wholeOrgan

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/observation/performer/representedOrganization/wholeOrganization

id
v: r

string
v: uri

id
v: ext

v: wholeOrgan

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

name:
  v: org
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid5
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid5
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Organization/' + %organization2.id

name:
  v: name
source:
  context:
    v: wholeOrgan
  element:
    v: name
  variable:
    v: v
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: name
  transform:
    v: evaluate
  parameter:
    value: string
      v: v.other

name:
  v: telecom
source:
  context:
    v: wholeOrgan
  element:
    v: telecom
  variable:
    v: vvv
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: telecom
  variable:
    v: vvv
  transform:
    v: create

name:
  v: addr
source:
  context:
    v: wholeOrgan
  element:
    v: addr
  variable:
    v: vvv
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: address
  variable:
    v: vvv
  transform:
    v: create

v: organization

name:
  v: author
source:
  context:
    v: obs
  element:
    v: author
  variable:
    v: srcAuthor
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e6
target:
  context:
    v: e6
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e6
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitionerRole
  transform:
    v: create
  parameter:
    value: string
      v: PractitionerRole
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid6
  transform:
    v: uuid
target:
  context:
    v: e6
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/PractitionerRole/
  parameter:
    value: id
      v: uuid6
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: PractitionerRole
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: performer
  variable:
    v: referenceaut
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: referenceaut
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/PractitionerRole/' + %practitionerRole.id
rule:
  name:
    v: assignedAuthor
  source:
    context:
      v: srcAuthor
    element:
      v: assignedAuthor
    variable:
      v: assignedAuthor
  rule:
    name:
      v: code
    source:
      context:
        v: assignedAuthor
      element:
        v: code
      variable:
        v: codice
    target:
      context:
        v: practitionerRole
      context type:
        v: variable
      element:
        v: code
      variable:
        v: code2
    dependent:
      name:
        v: CECodeableConcept
      variable:
        v: codice
      variable:
        v: code2
  rule:
    name:
      v: ASSAUth
    source:
      context:
        v: assignedAuthor
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e7
    target:
      context:
        v: e7
      context type:
        v: variable
      element:
        v: request
      variable:
        v: request
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: method
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: e7
      context type:
        v: variable
      element:
        v: resource

string
v: BackboneElement

string
v: PUT

v: practitioner

v: create

value: string
  v: Practitioner

context:
  v: practitioner
context type:
  v: variable
element:
  v: id
variable:
  v: uuid7
transform:
  v: uuid

name:
  v: functionCode
source:
  context:
    v: srcAuthor
  element:
    v: functionCode
  variable:
    v: vvv
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: meta
source:
  context:
    v: assignedAuthor
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: meta
  variable:
    v: meta
rule:
  name:
    v: coding
  source:
    context:
      v: assignedAuthor
  target:
    context:
      v: meta
    context type:
      v: variable
    element:
      v: tag
    variable:
      v: coding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: system
    source:
      context:
        v: assignedAuthor
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: code
    source:
      context:
        v: assignedAuthor
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string

string
v: ClinicalDocument/body/observation/author

name:
  v: identifier
source:
  context:
    v: assignedAuthor
  element:
    v: id
  variable:
    v: id
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: identifier
rule:
  name:
    v: root1
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: system
    transform:
      v: translate
    parameter:
      value: id
        v: r
    parameter:
      value: string
        v: http://hl7.org/fhir/ConceptMap/special-oid2uri
    parameter:
      value: string
        v: uri
rule:
  name:
    v: ext
  source:
    context:
      v: id
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: id
        v: ext
  rule:
    name:
      v: UUID
    source:
      context:
        v: assignedAuthor
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: url
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
rule:
  name:
    v: assigningAuthorityName
  source:
    context:
      v: id
    element:
      v: assigningAuthorityName
    variable:
      v: s
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: assigner
    variable:
      v: a
  target:
    context:
      v: a
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: s
rule:
  name:
    v: r
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  rule:
    name:
      v: aut
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid2
      transform:
        v: evaluate
      parameter:
        value: string
    target:
      context:
        v: e7
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
    target:
      context:
        v: practitionerRole
      context type:
        v: variable
      element:
        v: practitioner
      variable:
        v: reference
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: reference
      context type:
        v: variable
      element:
        v: reference
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: 2.16.840.1.113883.2.9.4.3.2
  source:
    context:
      v: assignedAuthor
    element:
      v: id
    variable:
      v: id
    condition:
      v: (root = '2.16.840.1.113883.2.9.4.3.2')
  rule:
    name:
      v: UUID

string
v: Practitioner?identifier=

id
v: ext

string
v: r + '-' + ext

id
v: uuid2

string
v: Reference

string
v: 'https://example/Practitioner/' + %practitioner.id

context:
  v: id
element:
  v: extension
variable:
  v: ext

context:
  v: request
context type:
  v: variable
element:
  v: url
transform:
  v: append
parameter:
  value: string
    v: Practitioner?identifier=
parameter:
  value: id
    v: ext

name:
  v: diverso
source:
  context:
    v: assignedAuthor
  element:
    v: id
  variable:
    v: id
  condition:
    v: (root != '2.16.840.1.113883.2.9.4.3.2')
rule:
  name:
    v: UUID
  source:
    context:
      v: id
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: append
    parameter:
      value: string
        v: Practitioner?identifier=
    parameter:
      value: id
        v: ext

name:
  v: addr
source:
  context:
    v: assignedAuthor
  element:
    v: addr
  variable:
    v: vvv
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: address
  variable:
    v: vvv
  transform:
    v: create

name:
  v: telecom
source:
  context:
    v: assignedAuthor
  element:
    v: telecom
  variable:
    v: vvv
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: telecom
  variable:
    v: vvv
  transform:
    v: create

name:
  v: name
source:
  context:
    v: assignedAuthor
  element:
    v: assignedPerson
  variable:
    v: person
rule:
  name:
    v: name
  source:
    context:
      v: person
    element:
      v: name
    variable:
      v: vvv
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: name
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: birth
  source:
    context:
      v: person
    element:
      v: birthTime
    variable:
      v: birthTime
  rule:
    name:
      v: value
    source:
      context:
        v: birthTime
      element:
        v: value
      variable:
        v: date
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: birthDate
      transform:
        v: truncate
      parameter:
        value: id
      parameter:
        value: integer
documentation:
  v: person

id
v: date

integer
v: 10

name:
  v: representedOrganization
source:
  context:
    v: assignedAuthor
  element:
    v: representedOrganization
  variable:
    v: representedOrganization
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e8
target:
  context:
    v: e8
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: PUT
target:
  context:
    v: e8
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: organization
  transform:
    v: create
  parameter:
    value: string
      v: Organization
rule:
  name:
    v: meta
  source:
    context:
      v: representedOrganization
  target:
    context:
      v: organization
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: representedOrganization
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: identifier
  source:
    context:
      v: representedOrganization
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: organization
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root

string
v: Coding

v: representedOrganization

v: coding

v: variable

v: system

v: copy

v: representedOrganization

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/observation/author/representedOrganization

id
v: r

string
v: uri

id
v: ext

v: representedOrganization

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

name:
  v: org
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid3
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e8
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid3
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: organization
  variable:
    v: referenceOrg
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: referenceOrg
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid3

name:
  v: name
source:
  context:
    v: representedOrganization
  element:
    v: name
  variable:
    v: v
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: name
  transform:
    v: evaluate
  parameter:
    value: string
      v: v.other

name:
  v: telecom
source:
  context:
    v: representedOrganization
  element:
    v: telecom
  variable:
    v: vvv
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: telecom
  variable:
    v: vvv
  transform:
    v: create

name:
  v: addr
source:
  context:
    v: representedOrganization
  element:
    v: addr
  variable:
    v: vvv
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: address
  variable:
    v: vvv
  transform:
    v: create

name:
  v: OrgPartOf
source:
  context:
    v: representedOrganization
  element:
    v: asOrganizationPartOf
  variable:
    v: OrgPartOf
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e9
target:
  context:
    v: e9
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: PUT
target:
  context:
    v: e9
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: organization1
  transform:
    v: create
  parameter:
    value: string
      v: Organization
rule:
  name:
    v: meta
  source:
    context:
      v: OrgPartOf
  target:
    context:
      v: organization1
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: OrgPartOf
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: identifier
  source:
    context:
      v: OrgPartOf
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: organization1
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root

string
v: Coding

v: OrgPartOf

v: coding

v: variable

v: system

v: copy

v: OrgPartOf

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf

id
v: r

string
v: uri

id
v: ext

v: OrgPartOf

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

name:
  v: org
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid4
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e9
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid4
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Organization/' + %organization1.id

name:
  v: code
source:
  context:
    v: OrgPartOf
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: type
  variable:
    v: vvv
  transform:
    v: create

name:
  v: statusCode
source:
  context:
    v: OrgPartOf
  element:
    v: statusCode
  variable:
    v: status
  condition:
    v: (value = 'active')
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: active
  transform:
    v: create
  parameter:
    value: string
      v: boolean
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: active
  transform:
    v: copy
  parameter:
    value: string
      v: true

name:
  v: wholeOrganization
source:
  context:
    v: OrgPartOf
  element:
    v: wholeOrganization
  variable:
    v: wholeOrgan
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e10
target:
  context:
    v: e10
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: PUT
target:
  context:
    v: e10
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: organization2
  transform:
    v: create
  parameter:
    value: string
      v: Organization
rule:
  name:
    v: meta
  source:
    context:
      v: wholeOrgan
  target:
    context:
      v: organization2
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: wholeOrgan
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: identifier
  source:
    context:
      v: wholeOrgan
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: organization2
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root

string
v: Coding

v: wholeOrgan

v: coding

v: variable

v: system

v: copy

v: wholeOrgan

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf/wholeOrganization

id
v: r

string
v: uri

id
v: ext

v: wholeOrgan

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

name:
  v: org
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid4
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e10
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid4
target:
  context:
    v: organization1
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Organization/' + %organization2.id

name:
  v: name
source:
  context:
    v: wholeOrgan
  element:
    v: name
  variable:
    v: v
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: name
  transform:
    v: evaluate
  parameter:
    value: string
      v: v.other

name:
  v: telecom
source:
  context:
    v: wholeOrgan
  element:
    v: telecom
  variable:
    v: vvv
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: telecom
  variable:
    v: vvv
  transform:
    v: create

name:
  v: addr
source:
  context:
    v: wholeOrgan
  element:
    v: addr
  variable:
    v: vvv
target:
  context:
    v: organization2
  context type:
    v: variable
  element:
    v: address
  variable:
    v: vvv
  transform:
    v: create

v: organization

name:
  v: Device
source:
  context:
    v: assignedAuthor
  element:
    v: assignedAuthoringDevice
  variable:
    v: assignedAuthoringDevice
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e11
target:
  context:
    v: e11
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e11
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: device
  transform:
    v: create
  parameter:
    value: string
      v: Device
target:
  context:
    v: device
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid11
  transform:
    v: uuid
target:
  context:
    v: e11
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Device/
  parameter:
    value: id
      v: uuid11
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Device
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: author
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Device/' + %device.id
rule:
  name:
    v: templateId
  source:
    context:
      v: assignedAuthoringDevice
    element:
      v: templateId
    variable:
      v: vvv
  target:
    context:
      v: device
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: code
  source:
    context:
      v: assignedAuthoringDevice
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: device
    context type:
      v: variable
    element:
      v: type
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: manufacturer
  source:
    context:
      v: assignedAuthoringDevice
    element:
      v: manufacturerModelName
    variable:
      v: manufacturerModelName
  rule:
    name:
      v: displayRule
    source:
      context:
        v: manufacturerModelName
      variable:
        v: m
    target:
      context:
        v: device
      context type:
        v: variable
      element:
        v: manufacturer
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: deviceName
  source:
    context:
      v: assignedAuthoringDevice
    element:
      v: softwareName
    variable:
      v: softwareName

string
v: m.displayName

context:
  v: device
context type:
  v: variable
element:
  v: deviceName
variable:
  v: deviceName

name:
  v: typeName
source:
  context:
    v: softwareName
target:
  context:
    v: deviceName
  context type:
    v: variable
  element:
    v: type
  transform:
    v: copy
  parameter:
    value: string
      v: other

name:
  v: name
source:
  context:
    v: softwareName
  variable:
    v: s
target:
  context:
    v: deviceName
  context type:
    v: variable
  element:
    v: name
  transform:
    v: evaluate
  parameter:
    value: string
      v: s.displayName

v: device

v: author

name:
  v: participantEncounter
source:
  context:
    v: obs
  element:
    v: participant
  variable:
    v: participant
  condition:
    v: (typeCode != 'DEV')
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: encounter
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: fhirParticipant
  source:
    context:
      v: participant
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: participant
    variable:
      v: FhirParticipant
  rule:
    name:
      v: type
    source:
      context:
        v: participant
      variable:
        v: p
    target:
      context:
        v: FhirParticipant
      context type:
        v: variable
      element:
        v: type
      variable:
        v: type
    rule:
      name:
        v: codeType
rule:
  name:
    v: partRole
  source:
    context:
      v: participant
    element:
      v: participantRole
    variable:
      v: participantRole
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e12
  target:
    context:
      v: e12
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e12
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: practitionerRole
    transform:
      v: create
    parameter:
      value: string
        v: PractitionerRole
  target:
    context:
      v: practitionerRole
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid12
    transform:
      v: uuid
  target:
    context:
      v: e12
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/PractitionerRole/
    parameter:
      value: id
        v: uuid12
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: PractitionerRole
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: participant
    variable:
      v: participant1
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: participant1
    context type:
      v: variable
    element:
      v: individual
    variable:
      v: referencepart
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: referencepart
    context type:
      v: variable

v: p

v: type

v: variable

v: coding

v: coding

v: codice

context:
  v: p

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: evaluate
parameter:
  value: string
    v: p.typeCode

v: system

context:
  v: p

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://terminology.hl7.org/CodeSystem/v3-ParticipationType

v: reference

v: evaluate

value: string
  v: 'https://example/Practitioner/' + %practitionerRole.id

name:
  v: time
source:
  context:
    v: participant
  element:
    v: time
  variable:
    v: time1
target:
  context:
    v: participant1
  context type:
    v: variable
  element:
    v: period
  variable:
    v: period
  transform:
    v: create
  parameter:
    value: string
      v: Period
rule:
  name:
    v: val
  source:
    context:
      v: time1
  target:
    context:
      v: period
    context type:
      v: variable
    element:
      v: start
    variable:
      v: start
    transform:
      v: create
    parameter:
      value: string
        v: dateTime
  dependent:
    name:
      v: TSDateTime
    variable:
      v: time1
    variable:
      v: start
documentation:
  v: participant.time -> participant1.period;

name:
  v: time
source:
  context:
    v: participant
  element:
    v: time
  variable:
    v: time1
target:
  context:
    v: participant1
  context type:
    v: variable
  element:
    v: period
  variable:
    v: period
  transform:
    v: create
  parameter:
    value: string
      v: Period
dependent:
  name:
    v: IVLTSPeriod
  variable:
    v: time1
  variable:
    v: period

name:
  v: functionCode
source:
  context:
    v: participant
  element:
    v: functionCode
  variable:
    v: vvv
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: practitioner
source:
  context:
    v: participantRole
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e13
target:
  context:
    v: e13
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: PUT
target:
  context:
    v: e13
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitioner
  transform:
    v: create
  parameter:
    value: string
      v: Practitioner
rule:
  name:
    v: meta
  source:
    context:
      v: participantRole
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: participantRole
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: identifier
  source:
    context:
      v: participantRole
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r

string
v: Coding

v: participantRole

v: coding

v: variable

v: system

v: copy

v: participantRole

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/observation/participant

id
v: r

string
v: uri

id
v: ext

v: participantRole

v: request

v: variable

v: url

v: append

value: string
  v: Practitioner?identifier=

value: id
  v: ext

id
v: s

name:
  v: org
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid4
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e13
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Practitioner/
  parameter:
    value: id
      v: uuid4
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: practitioner
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Practitioner/' + %practitioner.id

name:
  v: code
source:
  context:
    v: participantRole
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: practitionerRole
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: addr
source:
  context:
    v: participantRole
  element:
    v: addr
  variable:
    v: vvv
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: address
  variable:
    v: vvv
  transform:
    v: create

name:
  v: telecom
source:
  context:
    v: participantRole
  element:
    v: telecom
  variable:
    v: vvv
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: telecom
  variable:
    v: vvv
  transform:
    v: create

name:
  v: name
source:
  context:
    v: participantRole
  element:
    v: playingEntity
  variable:
    v: playingEntity
rule:
  name:
    v: name
  source:
    context:
      v: playingEntity
    element:
      v: name
    variable:
      v: vvv
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: name
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: birth
  source:
    context:
      v: playingEntity
    element:
      v: birthTime
    variable:
      v: birthTime
  rule:
    name:
      v: value
    source:
      context:
        v: birthTime
      element:
        v: value
      variable:
        v: date
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: birthDate
      transform:
        v: truncate
      parameter:
        value: id
      parameter:
        value: integer

id
v: date

integer
v: 10

v: non mappa i 2 precedenti

v: participant person

name:
  v: devParticipant
source:
  context:
    v: obs
  element:
    v: participant
  variable:
    v: devParticipant
  condition:
    v: (typeCode = 'DEV')
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e14
target:
  context:
    v: e14
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e14
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: device
  transform:
    v: create
  parameter:
    value: string
      v: Device
target:
  context:
    v: device
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid14
  transform:
    v: uuid
target:
  context:
    v: e14
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Device/
  parameter:
    value: id
      v: uuid14
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Device
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: device
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Device/' + %device.id
rule:
  name:
    v: participantRoleDev
  source:
    context:
      v: devParticipant
    element:
      v: participantRole
    variable:
      v: participantRoleDev
  rule:
    name:
      v: playingDevice
    source:
      context:
        v: participantRoleDev
      element:
        v: playingDevice
      variable:
        v: playingDevice
    rule:
      name:
        v: code
    rule:
      name:
        v: manufacturer
    rule:
      name:
        v: deviceName
documentation:
  v: participant device

v: playingDevice

v: code

v: vvv

v: device

v: variable

v: type

v: vvv

v: create

v: playingDevice

v: manufacturerModelName

v: manufacturerModelName

v: displayRule

context:
  v: manufacturerModelName
variable:
  v: m

context:
  v: device
context type:
  v: variable
element:
  v: manufacturer
transform:
  v: evaluate
parameter:
  value: string
    v: m.displayName

v: playingDevice

v: softwareName

v: softwareName

v: device

v: variable

v: deviceName

v: deviceName

v: typeName

context:
  v: softwareName

context:
  v: deviceName
context type:
  v: variable
element:
  v: type
transform:
  v: copy
parameter:
  value: string
    v: other

v: name

context:
  v: softwareName
variable:
  v: s

context:
  v: deviceName
context type:
  v: variable
element:
  v: name
transform:
  v: evaluate
parameter:
  value: string
    v: s.displayName

name:
  v: observationMedia
source:
  context:
    v: obs
  element:
    v: entryRelationship
  variable:
    v: er
rule:
  name:
    v: media
  source:
    context:
      v: er
    element:
      v: observationMedia
    variable:
      v: obsMedia
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e15
  target:
    context:
      v: e15
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e15
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: media1
    transform:
      v: create
    parameter:
      value: string
        v: Media
  target:
    context:
      v: media1
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid15
    transform:
      v: uuid
  target:
    context:
      v: e15
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Media/
    parameter:
      value: id
        v: uuid15
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Media
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: derivedFrom
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Media/' + %media1.id
  rule:
    name:
      v: Attachment
    source:
      context:
        v: obsMedia
    target:
      context:
        v: media1
      context type:
        v: variable
      element:
        v: content
      variable:
        v: Attachment
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: status
    rule:
      name:
        v: valuemedia
documentation:
  v: observationMedia

string
v: Attachment

v: obsMedia

v: media1

v: variable

v: status

v: copy

value: string
  v: unknown

v: obsMedia

v: value

v: valueMedia

v: type

context:
  v: valueMedia
element:
  v: mediaType
variable:
  v: type

context:
  v: Attachment
context type:
  v: variable
element:
  v: contentType
transform:
  v: copy
parameter:
  value: id
    v: type

v: data

context:
  v: valueMedia

context:
  v: Attachment
context type:
  v: variable
element:
  v: data
transform:
  v: evaluate
parameter:
  value: string
    v: valueMedia.dataBase64Binary

name:
  v: ref
source:
  context:
    v: obs
  element:
    v: referenceRange
  variable:
    v: refRange
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: referenceRange
  variable:
    v: ref
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
rule:
  name:
    v: refRange
  source:
    context:
      v: refRange
    element:
      v: observationRange
    variable:
      v: obsRange
  rule:
    name:
      v: value
    source:
      context:
        v: obsRange
      type:
        v: ST
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: ref
      context type:
        v: variable
      element:
        v: text
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: ref
      context type:
        v: variable
      element:
        v: text
      transform:
        v: evaluate
      parameter:
        value: string
  rule:
    name:
      v: obsRange
    source:
      context:
        v: obsRange
    target:
      context:
        v: ref
      context type:
        v: variable
      element:
        v: low
      variable:
        v: Low
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: IVL-PQ
    rule:
      name:
        v: interpretationCode
    rule:
      name:
        v: precondition
documentation:
  v: referenceRange

string
v: string

string
v: value.dataString

string
v: Quantity

v: obsRange

v: IVL_PQ

v: value

v: v

v: decValue

context:
  v: v
element:
  v: low
variable:
  v: l1

name:
  v: value
source:
  context:
    v: l1
  element:
    v: value
  variable:
    v: decValue
target:
  context:
    v: Low
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: id
      v: decValue

name:
  v: unit
source:
  context:
    v: l1
  element:
    v: unit
  variable:
    v: Unit
target:
  context:
    v: Low
  context type:
    v: variable
  element:
    v: unit
  transform:
    v: copy
  parameter:
    value: id
      v: Unit

v: high

context:
  v: v

context:
  v: ref
context type:
  v: variable
element:
  v: high
variable:
  v: high
transform:
  v: create
parameter:
  value: string
    v: Quantity

name:
  v: decValue
source:
  context:
    v: v
  element:
    v: high
  variable:
    v: h1
rule:
  name:
    v: value
  source:
    context:
      v: h1
    element:
      v: value
    variable:
      v: decValue1
  target:
    context:
      v: high
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: id
        v: decValue1
rule:
  name:
    v: unit
  source:
    context:
      v: h1
    element:
      v: unit
    variable:
      v: Unit1
  target:
    context:
      v: high
    context type:
      v: variable
    element:
      v: unit
    transform:
      v: copy
    parameter:
      value: id
        v: Unit1

v: obsRange

v: interpretationCode

v: vvv

v: ref

v: variable

v: type

v: vvv

v: create

v: obsRange

v: precondition

v: precondition

v: criterion

context:
  v: precondition
element:
  v: criterion
variable:
  v: criterion

name:
  v: appliesTo
source:
  context:
    v: criterion
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: ref
  context type:
    v: variable
  element:
    v: appliesTo
  variable:
    v: vvv
  transform:
    v: create

name:
  v: v
source:
  context:
    v: criterion
  type:
    v: IVL_PQ
  element:
    v: value
  variable:
    v: v
rule:
  name:
    v: low
  source:
    context:
      v: v
    element:
      v: high
    variable:
      v: l1
  rule:
    name:
      v: age
    source:
      context:
        v: l1
    target:
      context:
        v: ref
      context type:
        v: variable
      element:
        v: age
      variable:
        v: age
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: high

string
v: Quantity

v: l1

v: age

v: variable

v: high

v: high

v: value

context:
  v: l1
element:
  v: value
variable:
  v: decValue

context:
  v: high
context type:
  v: variable
element:
  v: value
transform:
  v: copy
parameter:
  value: id
    v: decValue

v: unit

context:
  v: l1
element:
  v: unit
variable:
  v: Unit1

context:
  v: high
context type:
  v: variable
element:
  v: unit
transform:
  v: copy
parameter:
  value: id
    v: Unit1

name:
  v: Observation2
type mode:
  v: none
input:
  name:
    v: obs
  type:
    v: Observation
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: ob
  type:
    v: Observation
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: cda
  type:
    v: Act
  mode:
    v: source
input:
  name:
    v: specimenp
  type:
    v: Specimen
  mode:
    v: target
rule:
  name:
    v: reference
  source:
    context:
      v: obs
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Patient/' + %patient.id