cda2fhirEdReport
type: StructureMap
node role: treeRoot
id:
  v: cda2fhirEdReport
text:
  status:
    v: generated
  div: map "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirEdReport" = "cda2fhirEdReport" 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/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/fhir/cda/StructureDefinition/IVL-TS" as source uses "http://hl7.org/fhir/cda/StructureDefinition/PQ" alias PQ as source uses "http://hl7.org/fhir/StructureDefinition/Simpl…
url:
  v: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirEdReport
version:
  v: 0.1.0
name:
  v: cda2fhirEdReport
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/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
  alias:
    v: IVL_PQ
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/IVL-TS
    link: http://hl7.org/fhir/cda/StructureDefinition/IVL-TS
  mode:
    v: source
structure:
  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

name:
  v: CdaToBundle
type mode:
  v: none
documentation:
  v: --------------------------------------------------------------------------------------------
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

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: recPat
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: Modalitaditrasporto
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '11459-5')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ModalitadiTrasposto
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Inquadramentoclinico
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '78337-3')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: InquadramentoClinicoIniziale
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Inquadramentoclinico
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '46239-0')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: MotivoDellaVisita
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Triage
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '54094-8')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: Triage
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: motivoricovero
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '46240-8')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionEncounter
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: DecorsoOspedaliero
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '8648-8')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionDecorsoOspedaliero
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Complicazioni
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '55109-3')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionComplicanze
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Hospitaldischargestudiessummary
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '62387-6')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionConsulenza
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Accertamenti
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '30954-2')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionAccertamenti
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Accertamenti
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '8716-3')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionParametriVitali
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Accertamenti
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '29549-3')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionTerapiaFarmacoInPronto
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Pianodicuraalladimissione
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '18776-5')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionPianoCuraDimissione
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: Dimissione
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '28574-2')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionDimissione
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: TerapiaFarmacologicaDimissione
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '75311-1')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionTerapiaFarmacologicaDimissione
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: ClinicalDocumentSectionComplicanze
type mode:
  v: none
documentation:
  v: Sezione complicanze--------------------------------------------------------------------------
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
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: entryexists
  source:
    context:
      v: src
    condition:
      v: src.entry.exists()
  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
    rule:
      name:
        v: narrativeText
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: observation
    transform:
      v: create
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: observation
    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/Observation/

v: cdaText

v: fhirText

v: variable

v: status

v: copy

value: string
  v: generated

v: cdaText

v: t

v: fhirText

v: variable

v: div

v: copy

value: id
  v: t

value: id
  v: uuid1

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

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/Observation/' + %observation.id

name:
  v: act
source:
  context:
    v: entry1
  element:
    v: observation
  variable:
    v: obs
dependent:
  name:
    v: Observation
  variable:
    v: obs
  variable:
    v: patient
  variable:
    v: enc
  variable:
    v: observation
  variable:
    v: bundle

v: Sezione Strutturata-----------------------------------------------------------------------------------------------------------------------------------------------

name:
  v: where
source:
  context:
    v: src
  condition:
    v: src.entry.exists().not()
rule:
  name:
    v: cdaText
  source:
    context:
      v: src
    element:
      v: text
    variable:
      v: cdaText
  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: POST
  target:
    context:
      v: e8
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: Observation
    transform:
      v: create
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: Observation
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid8
    transform:
      v: uuid
  target:
    context:
      v: e8
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Observation/
    parameter:
      value: id
        v: uuid8
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: entry
    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/Observation/' + %Observation.id
  rule:
    name:
      v: reference
    source:
      context:
        v: src
    target:
      context:
        v: Observation
      context type:
        v: variable
      element:
        v: subject
      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: reference
    source:
      context:
        v: src
    target:
      context:
        v: Observation
      context type:
        v: variable
      element:
        v: encounter
      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: code
    source:
      context:
        v: src
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: Observation

string
v: Reference

string
v: 'https://example/Patient/' + %patient.id

string
v: Reference

string
v: 'https://example/Encounter/' + %enc.id

v: variable

v: code

v: vvv

v: create

name:
  v: statuscode
source:
  context:
    v: src
  condition:
    v: observation.statusCode.exists().not()
rule:
  name:
    v: status
  source:
    context:
      v: src
  target:
    context:
      v: Observation
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final

name:
  v: reference
source:
  context:
    v: cdaText
target:
  context:
    v: Observation
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: reference
  source:
    context:
      v: cdaText
    variable:
      v: t
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    transform:
      v: copy
    parameter:
      value: id
        v: t

v: Sezione Narrativa---------------------------------------------------------------------------------------------------------------------------------------------

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: statuscode
source:
  context:
    v: obs
  condition:
    v: obs.statusCode.exists().not()
rule:
  name:
    v: status
  source:
    context:
      v: obs
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final

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: 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: 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: originalText
    source:
      context:
        v: val
      element:
        v: originalText
      variable:
        v: vvv
    target:
      context:
        v: ce
      context type:
        v: variable
      element:
        v: text
      variable:
        v: vvv
      transform:
        v: create
  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: 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: translation1

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: 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: 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: 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: originalText
    source:
      context:
        v: val
      element:
        v: originalText
      variable:
        v: vvv
    target:
      context:
        v: ce
      context type:
        v: variable
      element:
        v: text
      variable:
        v: vvv
      transform:
        v: create
  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: 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: translation1

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: 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: 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: 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: BL
  element:
    v: value
  variable:
    v: value
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: boolean
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: value
  transform:
    v: evaluate
  parameter:
    value: string
      v: value.value

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: 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: 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: PUT
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitioner
  transform:
    v: create
  parameter:
    value: string
      v: Practitioner
rule:
  name:
    v: assignedEntity
  source:
    context:
      v: performer
    element:
      v: assignedEntity
    variable:
      v: entity
  rule:
    name:
      v: meta
    source:
      context:
        v: entity
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
  rule:
    name:
      v: identifier
    source:
      context:
        v: entity
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: ext
    rule:
      name:
        v: assigningAuthorityName
    rule:
      name:
        v: r
  rule:
    name:
      v: name
    source:
      context:
        v: entity
      element:
        v: assignedPerson
      variable:
        v: person
    rule:
      name:
        v: name
    rule:
      name:
        v: birth

v: entity

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: entity

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://algoritmodiscoring

v: code

context:
  v: entity

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: ClinicalDocument/body/observation/performer

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: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

v: UUID

context:
  v: entity

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: 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: root

v: r

v: performer

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

context:
  v: practitioner
context type:
  v: variable
element:
  v: id
variable:
  v: uuid1
transform:
  v: evaluate
parameter:
  value: string
    v: r + '-' + ext

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

context:
  v: ob
context type:
  v: variable
element:
  v: performer
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/Practitioner/' + %practitioner.id

v: person

v: name

v: vvv

v: practitioner

v: variable

v: name

v: vvv

v: create

v: person

v: birthTime

v: birthTime

v: value

context:
  v: birthTime
element:
  v: value
variable:
  v: date

context:
  v: practitioner
context type:
  v: variable
element:
  v: birthDate
transform:
  v: truncate
parameter:
  value: id
    v: date
parameter:
  value: integer
    v: 10

name:
  v: refRange
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: obsRange
  source:
    context:
      v: refRange
    element:
      v: observationRange
    variable:
      v: obsRange
  target:
    context:
      v: ref
    context type:
      v: variable
    element:
      v: low
    variable:
      v: Low
    transform:
      v: create
    parameter:
      value: string
        v: SimpleQuantity
  rule:
    name:
      v: IVL-PQ
    source:
      context:
        v: obsRange
      type:
        v: IVL_PQ
      element:
        v: value
      variable:
        v: v
    rule:
      name:
        v: decValue

v: v

v: low

v: l1

v: value

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

context:
  v: Low
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: Unit

context:
  v: Low
context type:
  v: variable
element:
  v: unit
transform:
  v: copy
parameter:
  value: id
    v: Unit

name:
  v: ClinicalDocumentSectionDecorsoOspedaliero
type mode:
  v: none
documentation:
  v: ------------------------------------------------------------------------------------------------------ Sezione Decorso Ospedaliero----------------------------------------------------------------------------
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
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: OB-note
  source:
    context:
      v: src
  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: observation
    transform:
      v: create
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: observation
    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/Observation/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference

v: evaluate

value: string
  v: 'https://example/Observation/' + %observation.id

context:
  v: observation
context type:
  v: variable
element:
  v: note
variable:
  v: note

name:
  v: code
source:
  context:
    v: src
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: statuscode
source:
  context:
    v: src
  condition:
    v: observation.statusCode.exists().not()
rule:
  name:
    v: status
  source:
    context:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final

name:
  v: reference
source:
  context:
    v: src
target:
  context:
    v: observation
  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

name:
  v: reference
source:
  context:
    v: src
target:
  context:
    v: observation
  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/' + %enc.id

name:
  v: reference
source:
  context:
    v: src
  element:
    v: text
  variable:
    v: t
target:
  context:
    v: note
  context type:
    v: variable
  element:
    v: text
  transform:
    v: copy
  parameter:
    value: id
      v: t

name:
  v: Auth
source:
  context:
    v: src
  element:
    v: author
  variable:
    v: auth
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: PUT
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitioner
  transform:
    v: create
  parameter:
    value: string
      v: Practitioner
target:
  context:
    v: practitioner
  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/Practitioner/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: append
  parameter:
    value: string
      v: Practitioner/
  parameter:
    value: id
      v: uuid1
rule:
  name:
    v: time
  source:
    context:
      v: auth
    element:
      v: time
    variable:
      v: ti
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: time
    variable:
      v: value
    transform:
      v: create
    parameter:
      value: string
        v: dateTime
  dependent:
    name:
      v: TSDateTime
    variable:
      v: ti
    variable:
      v: value
rule:
  name:
    v: assAuth
  source:
    context:
      v: auth
    element:
      v: assignedAuthor
    variable:
      v: assAuth
  rule:
    name:
      v: meta
    source:
      context:
        v: assAuth
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
    documentation:
      v: meta+identifier
  rule:
    name:
      v: identifier
    source:
      context:
        v: assAuth
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: extension
    rule:
      name:
        v: assigningAuthorityName
    rule:
      name:
        v: r
  rule:
    name:
      v: 2.16.840.1.113883.2.9.4.3.2
    source:
      context:
        v: assAuth
      element:
        v: id
      variable:
        v: id
      condition:
        v: (root = '2.16.840.1.113883.2.9.4.3.2')

v: assAuth

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: assAuth

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://algoritmodiscoring

v: code

context:
  v: assAuth

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: ClinicalDocument/body/DecorsoOspedaliero/author

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: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

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: root

v: r

v: aut

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

context:
  v: practitioner
context type:
  v: variable
element:
  v: id
variable:
  v: uuid2
transform:
  v: evaluate
parameter:
  value: string
    v: r + '-' + ext

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

context:
  v: request
context type:
  v: variable
element:
  v: url
transform:
  v: append
parameter:
  value: string
    v: Practitioner/
parameter:
  value: id
    v: uuid2

context:
  v: note
context type:
  v: variable
element:
  v: author
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/Practitioner/' + %practitioner.id

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: assPers
source:
  context:
    v: assAuth
  element:
    v: assignedPerson
  variable:
    v: assPers
rule:
  name:
    v: name
  source:
    context:
      v: assPers
    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: ClinicalDocumentSectionEncounter
type mode:
  v: none
documentation:
  v: -------------------------------------------------------------------------------------------------------- Sezione Encounter---------------------------------------------------------------------------------------
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: enc1
  type:
    v: Encounter
  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: encounter
    transform:
      v: create
    parameter:
      value: string
        v: Encounter

string
v: generated

id
v: t

context:
  v: encounter
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/Encounter/
parameter:
  value: id
    v: uuid1

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

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/Encounter/' + %encounter.id

name:
  v: refer
source:
  context:
    v: entry1
target:
  context:
    v: encounter
  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/Encounter/' + %enc1.id

name:
  v: refer
source:
  context:
    v: entry1
target:
  context:
    v: encounter
  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

name:
  v: status
source:
  context:
    v: entry1
target:
  context:
    v: encounter
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: finished

name:
  v: class
source:
  context:
    v: entry1
target:
  context:
    v: encounter
  context type:
    v: variable
  element:
    v: class
  variable:
    v: cl
  transform:
    v: create
  parameter:
    value: string
      v: Coding
rule:
  name:
    v: code
  source:
    context:
      v: entry1
  target:
    context:
      v: cl
    context type:
      v: variable
    element:
      v: code
    transform:
      v: copy
    parameter:
      value: string
        v: AMB
rule:
  name:
    v: code
  source:
    context:
      v: entry1
  target:
    context:
      v: cl
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: string
        v: ambulatory

name:
  v: encounter
source:
  context:
    v: entry1
  element:
    v: encounter
  variable:
    v: enc
rule:
  name:
    v: code
  source:
    context:
      v: enc
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: type
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: where
  source:
    context:
      v: enc
    condition:
      v: effectiveTime.low.exists() or effectiveTime.high.exists()
  rule:
    name:
      v: effectiveTime
    source:
      context:
        v: enc
      element:
        v: effectiveTime
      variable:
        v: eff
    target:
      context:
        v: encounter
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
      transform:
        v: create
      parameter:
        value: string
    dependent:
      name:
        v: IVLTSPeriod
      variable:
        v: eff
      variable:
        v: period
  documentation:
    v: effectiveTime=period
rule:
  name:
    v: where
  source:
    context:
      v: enc
    condition:
      v: effectiveTime.low.exists().not() or effectiveTime.high.exists().not()
  rule:
    name:
      v: efft
    source:
      context:
        v: enc
      element:
        v: effectiveTime
      variable:
        v: effectivetime1
    target:
      context:
        v: encounter
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: val
  documentation:
    v: effectiveTime = time-stamp
rule:
  name:
    v: participant-ADM
  source:
    context:
      v: enc
    element:
      v: participant
    variable:
      v: part
    condition:
      v: (typeCode != 'LOC')
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: participant
    variable:
      v: patarg
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  rule:
    name:
      v: type
    source:
      context:
        v: part
    target:
      context:
        v: patarg
      context type:
        v: variable
      element:
        v: type
      variable:
        v: type
    rule:
      name:
        v: codeType
  rule:
    name:
      v: time
    source:
      context:
        v: part
      element:
        v: time
      variable:
        v: time1
    target:
      context:
        v: patarg
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: val
  rule:
    name:
      v: time
    source:
      context:
        v: part
      element:
        v: time
      variable:
        v: ti
    target:
      context:
        v: patarg
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
      transform:
        v: create
      parameter:
        value: string
    dependent:
      name:
        v: IVLTSPeriod
      variable:
        v: ti

string
v: Period

string
v: Period

v: effectivetime1

v: period

v: variable

v: start

v: start

v: create

value: string
  v: dateTime

v: TSDateTime

v: effectivetime1

v: start

v: part

v: type

v: variable

v: coding

v: coding

v: codice

context:
  v: part

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

v: system

context:
  v: part

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

string
v: Period

v: time1

v: period

v: variable

v: start

v: start

v: create

value: string
  v: dateTime

v: TSDateTime

v: time1

v: start

string
v: Period

v: period

name:
  v: partRole
source:
  context:
    v: part
  element:
    v: participantRole
  variable:
    v: partRole
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: PUT
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitioner
  transform:
    v: create
  parameter:
    value: string
      v: Practitioner
target:
  context:
    v: practitioner
  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/Practitioner/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: append
  parameter:
    value: string
      v: Practitioner/
  parameter:
    value: id
      v: uuid1
rule:
  name:
    v: meta
  source:
    context:
      v: partRole
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: partRole
    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
  documentation:
    v: modifica meta+identifier
rule:
  name:
    v: identifier
  source:
    context:
      v: partRole
    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: extension
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy

string
v: Coding

v: partRole

v: coding

v: variable

v: system

v: copy

v: partRole

v: coding

v: variable

v: code

v: copy

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

id
v: r

string
v: uri

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: 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
        v: r + '-' + ext
  target:
    context:
      v: e1
    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: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: append
    parameter:
      value: string
        v: Practitioner/
    parameter:
      value: id
        v: uuid2
  target:
    context:
      v: patarg
    context type:
      v: variable
    element:
      v: individual
    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: 2.16.840.1.113883.2.9.4.3.2
source:
  context:
    v: partRole
  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: playEnt
source:
  context:
    v: partRole
  element:
    v: playingEntity
  variable:
    v: playEnt
rule:
  name:
    v: name
  source:
    context:
      v: playEnt
    element:
      v: name
    variable:
      v: vvv
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: name
    variable:
      v: vvv
    transform:
      v: create

v: enc.effectiveTime as eff -> encounter.period = create('Period') as period then{

name:
  v: participant2
source:
  context:
    v: enc
  element:
    v: participant
  variable:
    v: part
  condition:
    v: (typeCode = 'LOC')
rule:
  name:
    v: location
  source:
    context:
      v: part
    element:
      v: time
    variable:
      v: tim
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: location
    variable:
      v: locat
  rule:
    name:
      v: time
    source:
      context:
        v: tim
    target:
      context:
        v: locat
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
      transform:
        v: create
      parameter:
        value: string
    dependent:
      name:
        v: IVLTSPeriod
      variable:
        v: tim
      variable:
        v: period
  rule:
    name:
      v: time
    source:
      context:
        v: part
      element:
        v: time
      variable:
        v: tim
    target:
      context:
        v: locat
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: val
  rule:
    name:
      v: partRole
    source:
      context:
        v: part
      element:
        v: participantRole
      variable:
        v: partRole
    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
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: method
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: e1
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: location
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: location
      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
      parameter:
        value: id
    rule:
      name:
        v: meta
    rule:
      name:
        v: identifier
    rule:
      name:
        v: code

string
v: Period

string
v: Period

v: tim

v: period

v: variable

v: start

v: start

v: create

value: string
  v: dateTime

v: TSDateTime

v: tim

v: start

string
v: BackboneElement

string
v: PUT

string
v: Location

id
v: uuid1

v: part

v: location

v: variable

v: meta

v: meta

v: coding

context:
  v: part

context:
  v: meta
context type:
  v: variable
element:
  v: tag
variable:
  v: coding
transform:
  v: create
parameter:
  value: string
    v: Coding

name:
  v: system
source:
  context:
    v: part
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: string
      v: http://algoritmodiscoring

name:
  v: code
source:
  context:
    v: part
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: string
      v: ClinicalDocument/body/Encounter/participant

v: partRole

v: id

v: id

v: location

v: variable

v: identifier

v: identifier

v: root1

context:
  v: id
element:
  v: root
variable:
  v: r

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

v: ext

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

context:
  v: identifier
context type:
  v: variable
element:
  v: value
transform:
  v: copy
parameter:
  value: id
    v: ext

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

v: assigningAuthorityName

context:
  v: id
element:
  v: assigningAuthorityName
variable:
  v: s

context:
  v: identifier
context type:
  v: variable
element:
  v: assigner
variable:
  v: a

context:
  v: a
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: id
    v: s

v: r

context:
  v: id
element:
  v: root
variable:
  v: r

name:
  v: idasi
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: location
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Location/
  parameter:
    value: id
      v: uuid
target:
  context:
    v: locat
  context type:
    v: variable
  element:
    v: location
  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/Location/' + %location.id

v: partRole

v: code

v: vvv

v: location

v: variable

v: type

v: vvv

v: create

name:
  v: entryRel-SUBJ
source:
  context:
    v: enc
  element:
    v: entryRelationship
  variable:
    v: entr
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: observation
  transform:
    v: create
  parameter:
    value: string
      v: Observation
target:
  context:
    v: observation
  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/Observation/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Observation
target:
  context:
    v: encounter
  context type:
    v: variable
  element:
    v: reasonReference
  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/Observation/' + %observation.id
rule:
  name:
    v: act
  source:
    context:
      v: entr
    element:
      v: act
    variable:
      v: act
  rule:
    name:
      v: code
    source:
      context:
        v: act
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: code
      variable:
        v: vvv
      transform:
        v: create
  rule:
    name:
      v: reference
    source:
      context:
        v: act
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: subject
      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: reference
    source:
      context:
        v: act
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: encounter
      variable:
        v: reference
      transform:
        v: create
      parameter:
        value: string

string
v: Reference

string
v: 'https://example/Patient/' + %patient.id

string
v: Reference

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

name:
  v: statuscode
source:
  context:
    v: act
  condition:
    v: act.statusCode.exists().not()
rule:
  name:
    v: status
  source:
    context:
      v: act
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final

name:
  v: note
source:
  context:
    v: act
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
  transform:
    v: create
  parameter:
    value: string
      v: Annotation
rule:
  name:
    v: text
  source:
    context:
      v: act
    element:
      v: text
    variable:
      v: text
  rule:
    name:
      v: reference
    source:
      context:
        v: text
      element:
        v: reference
      variable:
        v: reff
    target:
      context:
        v: note
      context type:
        v: variable
      element:
        v: text
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: String
  source:
    context:
      v: act
    element:
      v: text
    variable:
      v: tx
  rule:
    name:
      v: val
    source:
      context:
        v: tx
      element:
        v: reference
      variable:
        v: ref
    target:
      context:
        v: note
      context type:
        v: variable
      element:
        v: text
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: practitioner
  source:
    context:
      v: act
    element:
      v: author
    variable:
      v: auth
  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: PUT
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: practitioner
    transform:
      v: create
    parameter:
      value: string
        v: Practitioner
  target:
    context:
      v: practitioner
    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/Practitioner/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: append
    parameter:
      value: string
        v: Practitioner/
    parameter:
      value: id
        v: uuid1
  rule:
    name:
      v: notetime
    source:
      context:
        v: auth
      element:
        v: time
      variable:
        v: ti
    target:
      context:
        v: note
      context type:
        v: variable
      element:
        v: time
      variable:
        v: value
      transform:
        v: create
      parameter:
        value: string

string
v: reff.value

string
v: ref.value

string
v: dateTime

name:
  v: TSDateTime
variable:
  v: ti
variable:
  v: value

name:
  v: assAush
source:
  context:
    v: auth
  element:
    v: assignedAuthor
  variable:
    v: assAuth
rule:
  name:
    v: meta
  source:
    context:
      v: assAuth
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: assAuth
    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: assAuth
    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: extension
    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: 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
    rule:
      name:
        v: aut
rule:
  name:
    v: 2.16.840.1.113883.2.9.4.3.2
  source:
    context:
      v: assAuth
    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
      parameter:
        value: id
rule:
  name:
    v: time
  source:
    context:
      v: assAuth
    element:
      v: time
    variable:
      v: t

string
v: Coding

v: assAuth

v: coding

v: variable

v: system

v: copy

v: assAuth

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/Encounter/author

id
v: r

string
v: uri

id
v: ext

id
v: s

v: id

v: extension

v: ext

v: practitioner

v: variable

v: id

v: uuid2

v: evaluate

value: string
  v: r + '-' + ext

v: e1

v: variable

v: fullUrl

v: append

value: id
  v: uuid2

v: request

v: variable

v: url

v: append

value: string
  v: Practitioner/

value: id
  v: uuid2

v: note

v: variable

v: author

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

string
v: Practitioner?identifier=

id
v: ext

context:
  v: note
context type:
  v: variable
element:
  v: text
variable:
  v: value
transform:
  v: create
parameter:
  value: string
    v: dateTime

name:
  v: TSDateTime
variable:
  v: t
variable:
  v: value

v: fine modifica

name:
  v: name
source:
  context:
    v: assAuth
  element:
    v: assignedPerson
  variable:
    v: assPers
rule:
  name:
    v: name
  source:
    context:
      v: assPers
    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: ClinicalDocumentSectionConsulenza
type mode:
  v: none
documentation:
  v: -------------------------------------------------------------------------------------------------------- Sezione Consulenza--------------------------------------------------------------------------------------
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
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: entry-exists
  source:
    context:
      v: src
    condition:
      v: src.entry.exists()
  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
    rule:
      name:
        v: narrativeText
rule:
  name:
    v: where
  source:
    context:
      v: src
    condition:
      v: src.entry.exists().not()
  rule:
    name:
      v: cdaText
    source:
      context:
        v: src
      element:
        v: text
      variable:
        v: cdaText
    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
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: method
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: e8
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: ServiceRequest
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: ServiceRequest
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid8
      transform:
        v: uuid
    target:
      context:
        v: e8
      context type:
        v: variable
      element:
        v: fullUrl

v: cdaText

v: fhirText

v: variable

v: status

v: copy

value: string
  v: generated

v: cdaText

v: t

v: fhirText

v: variable

v: div

v: copy

value: id
  v: t

string
v: BackboneElement

string
v: POST

string
v: ServiceRequest

v: append

value: id
  v: uuid8

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

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/ServiceRequest/' + %ServiceRequest.id

name:
  v: reference
source:
  context:
    v: src
target:
  context:
    v: ServiceRequest
  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

name:
  v: reference
source:
  context:
    v: src
target:
  context:
    v: ServiceRequest
  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/' + %enc.id

name:
  v: status
source:
  context:
    v: src
target:
  context:
    v: ServiceRequest
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: active

name:
  v: intent
source:
  context:
    v: src
target:
  context:
    v: ServiceRequest
  context type:
    v: variable
  element:
    v: intent
  transform:
    v: copy
  parameter:
    value: string
      v: order

name:
  v: reference
source:
  context:
    v: cdaText
target:
  context:
    v: ServiceRequest
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: reference
  source:
    context:
      v: cdaText
    variable:
      v: t
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    transform:
      v: copy
    parameter:
      value: id
        v: t

v: Sezione Narrativa--------------------------------------------------------------------------------------------------------------------------------------------------

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: serviceRequest
  transform:
    v: create
  parameter:
    value: string
      v: ServiceRequest
target:
  context:
    v: serviceRequest
  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/ServiceRequest/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: ServiceRequest
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: entry
  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/ServiceRequest/' + %serviceRequest.id
target:
  context:
    v: serviceRequest
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: reference
  source:
    context:
      v: entry1
  target:
    context:
      v: serviceRequest
    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: entry1
  target:
    context:
      v: serviceRequest
    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/' + %enc.id
rule:
  name:
    v: status
  source:
    context:
      v: entry1

context:
  v: serviceRequest
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: active

name:
  v: intent
source:
  context:
    v: entry1
target:
  context:
    v: serviceRequest
  context type:
    v: variable
  element:
    v: intent
  transform:
    v: copy
  parameter:
    value: string
      v: order

name:
  v: ACT
source:
  context:
    v: entry1
  element:
    v: act
  variable:
    v: act
rule:
  name:
    v: code
  source:
    context:
      v: act
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: code
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: text
  source:
    context:
      v: act
    element:
      v: text
    variable:
      v: t
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    transform:
      v: evaluate
    parameter:
      value: string
        v: t.dataString
rule:
  name:
    v: statusCode
  source:
    context:
      v: act
    element:
      v: statusCode
    variable:
      v: code
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: status
    transform:
      v: evaluate
    parameter:
      value: string
        v: code.code
rule:
  name:
    v: performer
  source:
    context:
      v: act
    element:
      v: performer
    variable:
      v: perf
  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: PUT
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: practitioner
    transform:
      v: create
    parameter:
      value: string
        v: Practitioner
  target:
    context:
      v: practitioner
    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/Practitioner/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: append
    parameter:
      value: string
        v: Practitioner/
    parameter:
      value: id
        v: uuid1
  rule:
    name:
      v: time
    source:
      context:
        v: perf
      element:
        v: time
      variable:
        v: time
    target:
      context:
        v: serviceRequest
      context type:
        v: variable
      element:
        v: occurrence
      variable:
        v: t
      transform:
        v: create
      parameter:
        value: string
    dependent:
      name:
        v: TSDateTime
      variable:
        v: time
      variable:
        v: t

string
v: dateTime

name:
  v: assEnt
source:
  context:
    v: perf
  element:
    v: assignedEntity
  variable:
    v: assEnt
rule:
  name:
    v: meta
  source:
    context:
      v: assEnt
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: assEnt
    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: assEnt
    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: extension
    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: 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
    rule:
      name:
        v: aut
rule:
  name:
    v: 2.16.840.1.113883.2.9.4.3.2
  source:
    context:
      v: assEnt
    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
      parameter:
        value: id
rule:
  name:
    v: assPer
  source:
    context:
      v: assEnt
    element:
      v: assignedPerson
    variable:
      v: assPer

string
v: Coding

v: assEnt

v: coding

v: variable

v: system

v: copy

v: assEnt

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/body/Consulenze/performer

id
v: r

string
v: uri

id
v: ext

id
v: s

v: id

v: extension

v: ext

v: practitioner

v: variable

v: id

v: uuid2

v: evaluate

value: string
  v: r + '-' + ext

v: e1

v: variable

v: fullUrl

v: append

value: id
  v: uuid2

v: request

v: variable

v: url

v: append

value: string
  v: Practitioner/

value: id
  v: uuid2

v: serviceRequest

v: variable

v: performer

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

string
v: Practitioner?identifier=

id
v: ext

name:
  v: name
source:
  context:
    v: assPer
  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: participant
source:
  context:
    v: act
  element:
    v: participant
  variable:
    v: parti
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: PUT
target:
  context:
    v: e1
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitioner
  transform:
    v: create
  parameter:
    value: string
      v: Practitioner
target:
  context:
    v: practitioner
  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/Practitioner/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: append
  parameter:
    value: string
      v: Practitioner/
  parameter:
    value: id
      v: uuid1
rule:
  name:
    v: time
  source:
    context:
      v: parti
    element:
      v: time
    variable:
      v: time
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: authoredOn
    variable:
      v: t
    transform:
      v: create
    parameter:
      value: string
        v: dateTime
  dependent:
    name:
      v: TSDateTime
    variable:
      v: time
    variable:
      v: t
rule:
  name:
    v: partRole
  source:
    context:
      v: parti
    element:
      v: participantRole
    variable:
      v: partRole
  rule:
    name:
      v: meta
    source:
      context:
        v: partRole
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
  rule:
    name:
      v: identifier
    source:
      context:
        v: partRole
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: extension
    rule:
      name:
        v: assigningAuthorityName
    rule:
      name:
        v: r

v: partRole

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: partRole

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://algoritmodiscoring

v: code

context:
  v: partRole

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: ClinicalDocument/body/Consulenze/participant

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: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

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: root

v: r

v: aut