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

v: SimpleQuantity

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

v: request

v: create

value: string
  v: BackboneElement

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

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

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

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

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

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

context:
  v: e5
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: e5
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: uuid5
transform:
  v: uuid

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

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

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

name:
  v: patient
source:
  context:
    v: cda
  element:
    v: recordTarget
  variable:
    v: recordTarget
rule:
  name:
    v: recPat
  source:
    context:
      v: recordTarget
    element:
      v: patientRole
    variable:
      v: patient
  rule:
    name:
      v: record
    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: extension
    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: 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: 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: motivoRicovero
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '46241-6')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionMotivoRicovero
  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 = '47039-3')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionInquadramentoClinico
  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 = '11493-4')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionRiscontri
  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 = '34104-0')
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: EsamiEseguitiDuranteilRicovero
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: ClinicalDocumentSectionEsamiEseguitiRicovero
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

name:
  v: HistoryOfProceduresDocument
source:
  context:
    v: srcSection
  element:
    v: code
  condition:
    v: (code = '47519-4')
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: section
  variable:
    v: tgtSection
dependent:
  name:
    v: ClinicalDocumentSectionProcedureEseguiteRicovero
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

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

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

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

name:
  v: DiagnosiDiDimissione
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: ClinicalDocumentSectionIstruzioniFollowUp
  variable:
    v: cda
  variable:
    v: srcSection
  variable:
    v: patient
  variable:
    v: tgtSection
  variable:
    v: bundle
  variable:
    v: encounter

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

v: discretizzi il primo livello di component

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

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

name:
  v: ClinicalDocumentSectionInquadramentoClinico
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: 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

v: reference

v: evaluate

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

context:
  v: tgt
context type:
  v: variable
element:
  v: text
variable:
  v: fhirText

name:
  v: reference
source:
  context:
    v: cdaText
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: cdaText
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: narrativeStatus
source:
  context:
    v: cdaText
target:
  context:
    v: fhirText
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: generated

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
      v: t

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

name:
  v: component
source:
  context:
    v: src
  element:
    v: component
  variable:
    v: component
rule:
  name:
    v: componentSec
  source:
    context:
      v: component
    element:
      v: section
    variable:
      v: section2
  rule:
    name:
      v: sec2fhir
    source:
      context:
        v: section2
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: section
      variable:
        v: sec2
    rule:
      name:
        v: code
    rule:
      name:
        v: title
    rule:
      name:
        v: exist
      documentation:
        v: section2.code -> sec2.code;
    rule:
      name:
        v: where
    rule:
      name:
        v: subsection1
    rule:
      name:
        v: esameObiettivo
      documentation:
        v: ESAME PBIETTIVO
    rule:
      name:
        v: TerapiaFarmacologicaAllIngresso
      documentation:
        v: TETAPIA FARMACOLOGICA
    documentation:
      v: ANAMNESI

v: section2

v: code

v: vvv

v: (code = '11329-0')

v: sec2

v: variable

v: code

v: vvv

v: create

v: section2

v: title

v: t

v: sec2

v: variable

v: title

v: evaluate

value: string
  v: t.dataString

v: src

v: src.entry.exists()

v: cdaText

context:
  v: section2
element:
  v: text
variable:
  v: cdaText

context:
  v: sec2
context type:
  v: variable
element:
  v: text
variable:
  v: fhirText

name:
  v: narrativeStatus
source:
  context:
    v: cdaText
target:
  context:
    v: fhirText
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: generated

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
      v: t

v: src

v: src.entry.exists().not()

v: cdaText

context:
  v: section2
element:
  v: text
variable:
  v: cdaText

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

context:
  v: e1
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: e1
context type:
  v: variable
element:
  v: resource
variable:
  v: condition
transform:
  v: create
parameter:
  value: string
    v: Observation

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

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

context:
  v: sec2
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/' + %condition.id

name:
  v: code
source:
  context:
    v: section2
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: statuscode
source:
  context:
    v: src
  condition:
    v: condition.statusCode.exists().not()
rule:
  name:
    v: status
  source:
    context:
      v: src
  target:
    context:
      v: condition
    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: condition
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: reference
  source:
    context:
      v: cdaText
  target:
    context:
      v: condition
    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: cdaText
  target:
    context:
      v: condition
    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: 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: section2

v: entry

v: entry1

v: entry

context:
  v: entry1
element:
  v: observation
variable:
  v: obs

name:
  v: observationcondition
source:
  context:
    v: obs
  element:
    v: code
  condition:
    v: (code = '75326-9')
rule:
  name:
    v: whereEntryPatologicaProssima
  source:
    context:
      v: obs
  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: condition
    transform:
      v: create
    parameter:
      value: string
        v: Condition
  target:
    context:
      v: condition
    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/Condition/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Condition
  target:
    context:
      v: sec2
    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/Condition/' + %condition.id
  rule:
    name:
      v: code
    source:
      context:
        v: obs
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: category
      variable:
        v: vvv
      transform:
        v: create
  rule:
    name:
      v: reference
    source:
      context:
        v: obs
    target:
      context:
        v: condition
      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: obs
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: encounter
      variable:
        v: reference
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: reference
      context type:
        v: variable

string
v: Reference

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

string
v: Reference

v: reference

v: evaluate

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

name:
  v: status
source:
  context:
    v: obs
  element:
    v: statusCode
  variable:
    v: status
  condition:
    v: (code = 'completed')
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: verificationStatus
  variable:
    v: status2
rule:
  name:
    v: st3
  source:
    context:
      v: status
  target:
    context:
      v: status2
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: status3
  rule:
    name:
      v: finald
    source:
      context:
        v: status
    target:
      context:
        v: status3
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: system
    source:
      context:
        v: status
    target:
      context:
        v: status3
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string

string
v: confirmed

name:
  v: effectivetime1
source:
  context:
    v: obs
  element:
    v: effectiveTime
  variable:
    v: effective1
rule:
  name:
    v: ef
  source:
    context:
      v: effective1
    condition:
      v: effective1.low.exists() or effective1.high.exists()
  rule:
    name:
      v: onsetperiod
    source:
      context:
        v: effective1
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: onset
      variable:
        v: periodonset
      transform:
        v: create
      parameter:
        value: string
    dependent:
      name:
        v: IVLTSPeriod
      variable:
        v: effective1
      variable:
        v: periodonset

string
v: Period

name:
  v: Value
source:
  context:
    v: obs
  type:
    v: CD
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: Ce
  source:
    context:
      v: val
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: code
    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: coding
    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

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

name:
  v: EntryRelationship1
source:
  context:
    v: obs
  element:
    v: entryRelationship
  variable:
    v: entriRel
rule:
  name:
    v: evidence
  source:
    context:
      v: entriRel
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: evidence
    variable:
      v: evidence
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  rule:
    name:
      v: Observation2
    source:
      context:
        v: entriRel
      element:
        v: observation
      variable:
        v: observation2
    rule:
      name:
        v: code

v: observation2

v: code

v: code

v: whereDecorsoClinico

context:
  v: code
element:
  v: code
condition:
  v: (code.code = '89261-2')

name:
  v: obser
source:
  context:
    v: obs
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
rule:
  name:
    v: ref
  source:
    context:
      v: entriRel
  target:
    context:
      v: evidence
    context type:
      v: variable
    element:
      v: detail
    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: code
  source:
    context:
      v: observation2
    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: statuscode
  source:
    context:
      v: observation2
    condition:
      v: observation.statusCode.exists().not()
  rule:
    name:
      v: status
    source:
      context:
        v: observation2
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
rule:
  name:
    v: Annontation
  source:
    context:
      v: observation2
    element:
      v: text
    variable:
      v: text
  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: val
    source:
      context:
        v: text
      element:
        v: reference
      variable:
        v: ref

string
v: final

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

name:
  v: reference
source:
  context:
    v: obs
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: obs
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: statusCode
source:
  context:
    v: observation2
  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

name:
  v: statusCode
source:
  context:
    v: observation2
  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

name:
  v: statusCode
source:
  context:
    v: observation2
  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

name:
  v: statusCode
source:
  context:
    v: observation2
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'suspended')
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: partial

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

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

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

v: originalText

v: reference

v: reference

v: ce

v: variable

v: text

v: copy

value: id
  v: reference

v: val

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: val

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: val

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: val

v: codeSystemVersion

v: version

v: coding

v: variable

v: version

v: cast

value: id
  v: version

value: string
  v: string

v: translation

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: translation

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: translation

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: codeSystemVersion

v: version

v: coding

v: variable

v: version

v: cast

value: id
  v: version

value: string
  v: string

v: translation

v: qualifier

v: qualifier

v: value

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

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

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

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

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

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

name:
  v: valueQuantity
source:
  context:
    v: observation2
  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: observation2
  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: Value
source:
  context:
    v: observation2
  type:
    v: CE
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: Ce
  source:
    context:
      v: val
  target:
    context:
      v: observation
    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: coding
    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

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

name:
  v: entryrelationshipstatus
source:
  context:
    v: obs
  element:
    v: entryRelationship
  variable:
    v: entriRel
rule:
  name:
    v: observationstatus
  source:
    context:
      v: entriRel
    element:
      v: observation
    variable:
      v: observation2
  rule:
    name:
      v: codestatus
    source:
      context:
        v: observation2
      element:
        v: code
      variable:
        v: code
    rule:
      name:
        v: whereDecorsoClinico

v: code

v: code

v: (code.code = '33999-4')

v: code

context:
  v: observation2

context:
  v: condition
context type:
  v: variable
element:
  v: clinicalStatus
variable:
  v: status
transform:
  v: create
parameter:
  value: string
    v: CodeableConcept

name:
  v: textstat
source:
  context:
    v: observation2
  element:
    v: text
  variable:
    v: text
rule:
  name:
    v: statref
  source:
    context:
      v: text
    element:
      v: reference
    variable:
      v: refstat
  target:
    context:
      v: status
    context type:
      v: variable
    element:
      v: text
    transform:
      v: evaluate
    parameter:
      value: string
        v: refstat.value

name:
  v: coding
source:
  context:
    v: observation2
target:
  context:
    v: status
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding
  transform:
    v: create
  parameter:
    value: string
      v: Coding
rule:
  name:
    v: value1
  source:
    context:
      v: observation2
    element:
      v: value
    variable:
      v: value
  rule:
    name:
      v: active
    source:
      context:
        v: value
      element:
        v: code
      condition:
        v: (value.code = 'LA16666-2')
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: inactive
    source:
      context:
        v: value
      element:
        v: code
      condition:
        v: (value.code = 'LA18632-2')
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: system
    source:
      context:
        v: value
      element:
        v: codeSystem
      variable:
        v: system
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    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
      parameter:
        value: string

string
v: active

string
v: inactive

id
v: display

string
v: string

v: EntryRelationship per il Problem

v: section2

v: code

v: (code = '29545-1')

v: ClinicalDocumentSottoSectionOBS

v: section2

v: sec2

v: bundle

v: enc

v: patient

v: section2

v: code

v: (code = '42346-7')

v: ClinicalDocumentSottoSectionMS

v: section2

v: sec2

v: bundle

v: patient

v: enc

name:
  v: ClinicalDocumentSectionDecorsoOspedaliero
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: 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

v: reference

v: evaluate

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

context:
  v: tgt
context type:
  v: variable
element:
  v: text
variable:
  v: fhirText

name:
  v: narrativeStatus
source:
  context:
    v: cdaText
target:
  context:
    v: fhirText
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: generated

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
      v: t

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

name:
  v: 2
source:
  context:
    v: src
  element:
    v: component
  variable:
    v: component
rule:
  name:
    v: 1
  source:
    context:
      v: component
    element:
      v: section
    variable:
      v: section2
  rule:
    name:
      v: Decorso
    source:
      context:
        v: src
    dependent:
      name:
        v: ClinicalDocumentSottoSectionOBS
      variable:
        v: section2
      variable:
        v: tgt
      variable:
        v: bundle
      variable:
        v: enc
      variable:
        v: patient

name:
  v: ClinicalDocumentSectionComplicanze
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: exist
  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: 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: observation
      transform:
        v: create
      parameter:
        value: string
    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

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

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

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/
  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
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Observation/' + %observation.id
rule:
  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

name:
  v: ClinicalDocumentSectionRiscontri
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: 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

v: reference

v: evaluate

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

context:
  v: tgt
context type:
  v: variable
element:
  v: text
variable:
  v: fhirText

name:
  v: narrativeStatus
source:
  context:
    v: cdaText
target:
  context:
    v: fhirText
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: generated

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
      v: t

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

name:
  v: 2
source:
  context:
    v: src
  element:
    v: component
  variable:
    v: component
rule:
  name:
    v: 1
  source:
    context:
      v: component
    element:
      v: section
    variable:
      v: section2
  rule:
    name:
      v: Decorso
    source:
      context:
        v: src
    dependent:
      name:
        v: ClinicalDocumentSottoSectionOBS
      variable:
        v: section2
      variable:
        v: tgt
      variable:
        v: bundle
      variable:
        v: enc
      variable:
        v: patient

name:
  v: ClinicalDocumentSectionConsulenza
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: exist
  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: 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: observation
      transform:
        v: create
      parameter:
        value: string
    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

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

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

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/
  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
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Observation/' + %observation.id
rule:
  name:
    v: act
  source:
    context:
      v: entry1
    element:
      v: observation
    variable:
      v: obs
  dependent:
    name:
      v: ObservationConsulenza
    variable:
      v: obs
    variable:
      v: patient
    variable:
      v: enc
    variable:
      v: observation
    variable:
      v: bundle

name:
  v: ClinicalDocumentSectionEsamiEseguitiRicovero
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: 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: 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: observation
      transform:
        v: create
      parameter:
        value: string
    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

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

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

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/
  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
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Observation/' + %observation.id
rule:
  name:
    v: act
  source:
    context:
      v: entry1
    element:
      v: observation
    variable:
      v: obs
  dependent:
    name:
      v: ObservationEsamiDuranteRicovero
    variable:
      v: obs
    variable:
      v: patient
    variable:
      v: enc
    variable:
      v: observation
    variable:
      v: bundle

name:
  v: ClinicalDocumentSectionProcedureEseguiteRicovero
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
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: 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: 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: procedure
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: procedure
      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

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

value: id
  v: uuid1

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

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

name:
  v: reference
source:
  context:
    v: src
target:
  context:
    v: procedure
  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: procedure
  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: statuscode
source:
  context:
    v: src
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: unknown

name:
  v: reference
source:
  context:
    v: cdaText
target:
  context:
    v: procedure
  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

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: procedure
  transform:
    v: create
  parameter:
    value: string
      v: Procedure
target:
  context:
    v: procedure
  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/Procedure/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Procedure
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/Procedure/' + %procedure.id
rule:
  name:
    v: reference
  source:
    context:
      v: src
  target:
    context:
      v: procedure
    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: src
  target:
    context:
      v: procedure
    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: Procedure
  source:
    context:
      v: entry1
    element:
      v: procedure
    variable:
      v: proceduresrc
  rule:
    name:
      v: code
    source:
      context:
        v: proceduresrc
      element:
        v: code

v: vvv

context:
  v: procedure
context type:
  v: variable
element:
  v: code
variable:
  v: vvv
transform:
  v: create

name:
  v: text
source:
  context:
    v: proceduresrc
  element:
    v: text
  variable:
    v: txt
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: reference
  source:
    context:
      v: txt
    element:
      v: reference
    variable:
      v: ref
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    transform:
      v: evaluate
    parameter:
      value: string
        v: ref.value

name:
  v: status
source:
  context:
    v: proceduresrc
  condition:
    v: proc.statusCode.exists().not()
rule:
  name:
    v: statuscode
  source:
    context:
      v: proceduresrc
  target:
    context:
      v: procedure
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: unknown

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'completed')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: completed

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'active')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: in-progress

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'aborted')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: stopped

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'suspended')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: on-hold

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'cancelled')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: not-done

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'held')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: on-hold

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'new')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: preparation

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'obsolete')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: entered-in-error

name:
  v: statusCode
source:
  context:
    v: proceduresrc
  element:
    v: statusCode
  variable:
    v: statusc
  condition:
    v: (code = 'nullified')
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: unknown

name:
  v: effectiveTime
source:
  context:
    v: proceduresrc
  element:
    v: effectiveTime
  variable:
    v: efft
target:
  context:
    v: procedure
  context type:
    v: variable
  element:
    v: performed
  variable:
    v: period
  transform:
    v: create
  parameter:
    value: string
      v: Period
dependent:
  name:
    v: IVLTSPeriod
  variable:
    v: efft
  variable:
    v: period

name:
  v: Observation
source:
  context:
    v: proceduresrc
  element:
    v: entryRelationship
  variable:
    v: entriRel
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: procedure
  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: reference
  source:
    context:
      v: entriRel
  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
rule:
  name:
    v: reference
  source:
    context:
      v: entriRel
  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
rule:
  name:
    v: ObservationValue
  source:
    context:
      v: entriRel
    element:
      v: observation
    variable:
      v: obs
  rule:
    name:
      v: code
    source:
      context:
        v: obs
      element:
        v: code

v: vvv

context:
  v: observation
context type:
  v: variable
element:
  v: code
variable:
  v: vvv
transform:
  v: create

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

name:
  v: ClinicalDocumentSectionAllergie
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
rule:
  name:
    v: title
  source:
    context:
      v: src