cda2fhirVaccination
type: StructureMap
node role: treeRoot
id:
  v: cda2fhirVaccination
text:
  status:
    v: generated
  div: map "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirVaccination" = "cda2fhirVaccination" 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 uses "http://hl7.org…
url:
  v: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirVaccination
version:
  v: 0.1.0
name:
  v: cda2fhirVaccination
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

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

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

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext1

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext1

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

v: id

v: extension

v: ext

v: requestPAT

v: variable

v: url

v: append

value: string
  v: Patient?identifier=

value: id
  v: ext

name:
  v: ClinicalDocumentToBundle
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: composition
  type:
    v: Composition
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: DocumentReference
  type:
    v: DocumentReference
  mode:
    v: target
rule:
  name:
    v: finished
  source:
    context:
      v: cda
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: finished
rule:
  name:
    v: coding
  source:
    context:
      v: cda
  target:
    context:
      v: encounter
    context type:
      v: variable
    element:
      v: class
    variable:
      v: coding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: amb
    source:
      context:
        v: cda
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
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

string
v: AMB

v: component

name:
  v: body
source:
  context:
    v: component
  element:
    v: structuredBody
  variable:
    v: body
rule:
  name:
    v: component
  source:
    context:
      v: body
    element:
      v: component
    variable:
      v: component
  rule:
    name:
      v: section
    source:
      context:
        v: component
      element:
        v: section
      variable:
        v: srcSection
    rule:
      name:
        v: TerapiaFarmacologicaAllaDimissione

v: srcSection

v: composition

v: variable

v: section

v: tgtSection

v: ClinicalDocumentSection

v: cda

v: srcSection

v: patient

v: tgtSection

v: bundle

v: encounter

name:
  v: ClinicalDocumentSection
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: cdaText
  source:
    context:
      v: src
    element:
      v: text
    variable:
      v: cdaText
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: text
    variable:
      v: fhirText
  rule:
    name:
      v: narrativeStatus
    source:
      context:
        v: cdaText
    target:
      context:
        v: fhirText
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: narrativeText
    source:
      context:
        v: cdaText
      variable:
        v: t
    target:
      context:
        v: fhirText
      context type:
        v: variable
      element:
        v: div
      transform:
        v: copy
      parameter:
        value: id
rule:
  name:
    v: entry
  source:
    context:
      v: src
    element:
      v: entry
    variable:
      v: entry1
  rule:
    name:
      v: substance
    source:
      context:
        v: entry1
      element:
        v: substanceAdministration
      variable:
        v: substance
    rule:
      name:
        v: ControlloImmunization
    rule:
      name:
        v: sub2

string
v: generated

id
v: t

v: substance

v: templateId

v: (root = '2.16.840.1.113883.2.9.10.1.11.4.1')

v: bundle

v: variable

v: entry

v: e1

v: e1

v: variable

v: request

v: request

v: create

value: string
  v: BackboneElement

v: request

v: variable

v: method

v: copy

value: string
  v: POST

v: e1

v: variable

v: resource

v: immunization

v: create

value: string
  v: Immunization

v: immunization

v: variable

v: id

v: uuid1

v: uuid

v: e1

v: variable

v: fullUrl

v: append

value: id
  v: uuid1

v: request

v: variable

v: url

v: copy

value: string
  v: Immunization

v: tgt

v: variable

v: entry

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

value: string
  v: 'https://example/Immunization/' + %immunization.id

v: patientRef

context:
  v: substance

context:
  v: immunization
context type:
  v: variable
element:
  v: patient
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/Patient/' + %patient.id

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'completed')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: completed

v: substance.templateId as tid -> immunization.identifier as idf then{

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'aborted')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: final

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'suspended')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: enterer-in-error

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'cancelled')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: not-done

v: value1

context:
  v: substance
element:
  v: effectiveTime
variable:
  v: eff
condition:
  v: (value.exists())

context:
  v: immunization
context type:
  v: variable
element:
  v: occurrence
variable:
  v: value
transform:
  v: create
parameter:
  value: string
    v: dateTime

name:
  v: TSDateTime
variable:
  v: eff
variable:
  v: value

v: valuePeriod

context:
  v: substance
element:
  v: effectiveTime
variable:
  v: eff
condition:
  v: (low.exists())

context:
  v: immunization
context type:
  v: variable
element:
  v: occurrence
variable:
  v: value
transform:
  v: create
parameter:
  value: string
    v: Period

name:
  v: IVLTSPeriod
variable:
  v: eff
variable:
  v: value

v: route

context:
  v: substance
element:
  v: routeCode
variable:
  v: vvv

context:
  v: immunization
context type:
  v: variable
element:
  v: route
variable:
  v: vvv
transform:
  v: create

v: site

context:
  v: substance
element:
  v: approachSiteCode
variable:
  v: vvv

context:
  v: immunization
context type:
  v: variable
element:
  v: site
variable:
  v: vvv
transform:
  v: create

v: q

context:
  v: substance

context:
  v: immunization
context type:
  v: variable
element:
  v: doseQuantity
variable:
  v: quantity
transform:
  v: create
parameter:
  value: string
    v: SimpleQuantity

name:
  v: qua
source:
  context:
    v: substance
  element:
    v: doseQuantity
  variable:
    v: q
rule:
  name:
    v: val
  source:
    context:
      v: q
  target:
    context:
      v: quantity
    context type:
      v: variable
    element:
      v: value
    transform:
      v: evaluate
    parameter:
      value: string
        v: q.value
rule:
  name:
    v: uni
  source:
    context:
      v: q
  target:
    context:
      v: quantity
    context type:
      v: variable
    element:
      v: unit
    transform:
      v: evaluate
    parameter:
      value: string
        v: q.unit

v: cons

context:
  v: substance
element:
  v: consumable
variable:
  v: cons

name:
  v: manufact
source:
  context:
    v: cons
  element:
    v: manufacturedProduct
  variable:
    v: manufact
rule:
  name:
    v: manufactmat
  source:
    context:
      v: manufact
    element:
      v: manufacturedMaterial
    variable:
      v: manufactmat
  rule:
    name:
      v: code
    source:
      context:
        v: manufactmat
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: immunization
      context type:
        v: variable
      element:
        v: vaccineCode
      variable:
        v: vvv
      transform:
        v: create
  rule:
    name:
      v: lotNumberText
    source:
      context:
        v: manufactmat
      element:
        v: lotNumberText
      variable:
        v: t
    target:
      context:
        v: immunization
      context type:
        v: variable
      element:
        v: lotNumber
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: manufactOrg
  source:
    context:
      v: manufact
    element:
      v: manufacturerOrganization
    variable:
      v: manufactOrg
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e1
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: PUT
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: organization
    transform:
      v: create
    parameter:
      value: string
        v: Organization
  rule:
    name:
      v: meta
    source:
      context:
        v: manufactOrg
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
  rule:
    name:
      v: identifier
    source:
      context:
        v: manufactOrg
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: ext
    rule:
      name:
        v: assigningAuthorityName
    rule:
      name:
        v: r
  rule:
    name:
      v: name
    source:
      context:
        v: manufactOrg
      element:
        v: name
      variable:
        v: n
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: name
      transform:
        v: evaluate
      parameter:
        value: string
    documentation:
      v: manufactOrg.id as id then{

string
v: t.dataString

v: manufactOrg

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: manufactOrg

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

v: code

context:
  v: manufactOrg

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

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

v: UUID

context:
  v: ext

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

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

v: id

v: root

v: r

v: extension

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

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

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

context:
  v: immunization
context type:
  v: variable
element:
  v: manufacturer
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/Organization/' + %uuid5

string
v: n.other

v: part

context:
  v: substance
element:
  v: participant
variable:
  v: part

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

context:
  v: e1
context type:
  v: variable
element:
  v: resource
variable:
  v: location
transform:
  v: create
parameter:
  value: string
    v: Location

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

string
v: ClinicalDocument/body/participant

name:
  v: role
source:
  context:
    v: part
  element:
    v: participantRole
  variable:
    v: partRole
rule:
  name:
    v: identifier
  source:
    context:
      v: partRole
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: location
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    rule:
      name:
        v: ref

id
v: r

string
v: uri

id
v: ext

v: ext

v: request

v: variable

v: url

v: append

value: string
  v: Location?identifier=

value: id
  v: ext

id
v: s

v: id

v: extension

v: ext

v: location

v: variable

v: id

v: uuid6

v: evaluate

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

v: e1

v: variable

v: fullUrl

v: append

value: id
  v: uuid6

v: immunization

v: variable

v: location

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

value: string
  v: 'https://example/Location/' + %uuid6

v: protocolAp

context:
  v: cda

context:
  v: immunization
context type:
  v: variable
element:
  v: protocolApplied
variable:
  v: prot

name:
  v: entrirel4
source:
  context:
    v: substance
  element:
    v: entryRelationship
  variable:
    v: entrirel4
rule:
  name:
    v: entrirel2
  source:
    context:
      v: entrirel4
    element:
      v: observation
    variable:
      v: obs
  rule:
    name:
      v: codeControl
    source:
      context:
        v: obs
      element:
        v: code
      condition:
        v: (code = '75323-6')
    rule:
      name:
        v: value
rule:
  name:
    v: entrirel2
  source:
    context:
      v: entrirel4
    element:
      v: observation
    variable:
      v: obsdosenumber
  rule:
    name:
      v: codeControl
    source:
      context:
        v: obsdosenumber
      element:
        v: code
      condition:
        v: (code = '30973-2')
    rule:
      name:
        v: v

v: obs

v: value

v: vvv

v: prot

v: variable

v: targetDisease

v: vvv

v: create

v: obsdosenumber

v: value

v: v

v: value

context:
  v: v
element:
  v: value
variable:
  v: int

context:
  v: prot
context type:
  v: variable
element:
  v: doseNumber
transform:
  v: evaluate
parameter:
  value: string
    v: int.toString()

v: entrirel2

context:
  v: substance
element:
  v: entryRelationship
variable:
  v: entrirel2

name:
  v: obs
source:
  context:
    v: entrirel2
  element:
    v: observation
  variable:
    v: obs
rule:
  name:
    v: codeControl
  source:
    context:
      v: obs
    element:
      v: code
    condition:
      v: ((code = '59778-1') or (code = '30981-5') or (code = '30980-7') or (code = '59777-3'))
  rule:
    name:
      v: value
    source:
      context:
        v: obs
      element:
        v: value
      variable:
        v: value
    rule:
      name:
        v: da

v: value

v: high

v: h

v: value

context:
  v: h
element:
  v: value
variable:
  v: date

context:
  v: immunization
context type:
  v: variable
element:
  v: expirationDate
transform:
  v: truncate
parameter:
  value: id
    v: date
parameter:
  value: integer
    v: 10

v: entrirel2

context:
  v: substance
element:
  v: entryRelationship
variable:
  v: entrirel3

name:
  v: obs
source:
  context:
    v: entrirel3
  element:
    v: observation
  variable:
    v: obs
rule:
  name:
    v: codeControl
  source:
    context:
      v: obs
    element:
      v: code
    condition:
      v: (code = '95715-9')
  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: immunization
    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: observation
    source:
      context:
        v: obs
    dependent:
      name:
        v: Observation
      variable:
        v: entrirel3
      variable:
        v: patient
      variable:
        v: tgt
      variable:
        v: bundle
      variable:
        v: enc
      variable:
        v: observation

v: entrirel2

context:
  v: substance
element:
  v: entryRelationship
variable:
  v: entrirel4

name:
  v: obs
source:
  context:
    v: entrirel4
  element:
    v: observation
  variable:
    v: obs
rule:
  name:
    v: codeControl
  source:
    context:
      v: obs
    element:
      v: code
    condition:
      v: (code = '59785-6')
  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: immunization
    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: observation
    source:
      context:
        v: obs
    dependent:
      name:
        v: Observation1
      variable:
        v: entrirel4
      variable:
        v: patient
      variable:
        v: tgt
      variable:
        v: bundle
      variable:
        v: enc
      variable:
        v: observation

v: entrirel2

context:
  v: substance
element:
  v: entryRelationship
variable:
  v: entrirel4

name:
  v: obs
source:
  context:
    v: entrirel4
  element:
    v: observation
  variable:
    v: obs
rule:
  name:
    v: codeControl
  source:
    context:
      v: obs
    element:
      v: code
    condition:
      v: (code = '31044-1')
  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: immunization
    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: observation
    source:
      context:
        v: obs
    dependent:
      name:
        v: Observation1
      variable:
        v: entrirel4
      variable:
        v: patient
      variable:
        v: tgt
      variable:
        v: bundle
      variable:
        v: enc
      variable:
        v: observation

v: substance

v: templateId

v: (root = '2.16.840.1.113883.2.9.10.1.11.4.2')

v: bundle

v: variable

v: entry

v: e1

v: e1

v: variable

v: request

v: request

v: create

value: string
  v: BackboneElement

v: request

v: variable

v: method

v: copy

value: string
  v: POST

v: e1

v: variable

v: resource

v: immunization

v: create

value: string
  v: Immunization

v: immunization

v: variable

v: id

v: uuid1

v: uuid

v: e1

v: variable

v: fullUrl

v: append

value: id
  v: uuid1

v: request

v: variable

v: url

v: copy

value: string
  v: Immunization

v: tgt

v: variable

v: entry

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

value: string
  v: 'https://example/Immunization/' + %immunization.id

v: patientRef

context:
  v: substance

context:
  v: immunization
context type:
  v: variable
element:
  v: patient
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/Patient/' + %patient.id

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'completed')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: completed

v: substance.templateId as tid -> immunization.identifier as idf then{

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'aborted')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: final

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'suspended')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: enterer-in-error

v: statusCode

context:
  v: substance
element:
  v: statusCode
variable:
  v: statusc
condition:
  v: (code = 'cancelled')

context:
  v: immunization
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: not-done

v: value1

context:
  v: substance
element:
  v: effectiveTime
variable:
  v: eff
condition:
  v: (value.exists())

context:
  v: immunization
context type:
  v: variable
element:
  v: occurrence
variable:
  v: value
transform:
  v: create
parameter:
  value: string
    v: dateTime

name:
  v: TSDateTime
variable:
  v: eff
variable:
  v: value

v: valuePeriod

context:
  v: substance
element:
  v: effectiveTime
variable:
  v: eff
condition:
  v: (low.exists())

context:
  v: immunization
context type:
  v: variable
element:
  v: occurrence
variable:
  v: value
transform:
  v: create
parameter:
  value: string
    v: Period

name:
  v: IVLTSPeriod
variable:
  v: eff
variable:
  v: value

v: cons

context:
  v: substance
element:
  v: consumable
variable:
  v: cons

name:
  v: manufact
source:
  context:
    v: cons
  element:
    v: manufacturedProduct
  variable:
    v: manufact
rule:
  name:
    v: manufactmat
  source:
    context:
      v: manufact
    element:
      v: manufacturedMaterial
    variable:
      v: manufactmat
  rule:
    name:
      v: code
    source:
      context:
        v: manufactmat
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: immunization
      context type:
        v: variable
      element:
        v: vaccineCode
      variable:
        v: vvv
      transform:
        v: create
  rule:
    name:
      v: lotNumberText
    source:
      context:
        v: manufactmat
      element:
        v: lotNumberText
      variable:
        v: t
    target:
      context:
        v: immunization
      context type:
        v: variable
      element:
        v: lotNumber
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: manufactOrg
  source:
    context:
      v: manufact
    element:
      v: manufacturerOrganization
    variable:
      v: manufactOrg
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e1
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: PUT
  target:
    context:
      v: e1
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: organization
    transform:
      v: create
    parameter:
      value: string
        v: Organization
  rule:
    name:
      v: meta
    source:
      context:
        v: manufactOrg
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
  rule:
    name:
      v: identifier
    source:
      context:
        v: manufactOrg
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: organization2
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: ext
    rule:
      name:
        v: assigningAuthorityName
    rule:
      name:
        v: r
  rule:
    name:
      v: name
    source:
      context:
        v: manufactOrg
      element:
        v: name
      variable:
        v: n
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: name
      transform:
        v: evaluate
      parameter:
        value: string

string
v: t.dataString

v: manufactOrg

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: manufactOrg

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

v: code

context:
  v: manufactOrg

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

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

v: UUID

context:
  v: manufactOrg

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

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

v: id

v: root

v: r

v: org

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

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

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

context:
  v: immunization
context type:
  v: variable
element:
  v: manufacturer
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/Organization/' + %uuid23

string
v: n.other

v: protocolAp

context:
  v: cda

context:
  v: immunization
context type:
  v: variable
element:
  v: protocolApplied
variable:
  v: prot

name:
  v: entrirel4
source:
  context:
    v: substance
  element:
    v: entryRelationship
  variable:
    v: entrirel4
rule:
  name:
    v: entrirel2
  source:
    context:
      v: entrirel4
    element:
      v: observation
    variable:
      v: obs
  rule:
    name:
      v: codeControl
    source:
      context:
        v: obs
      element:
        v: code
      condition:
        v: (code = '75323-6')
    rule:
      name:
        v: value
rule:
  name:
    v: entrirel2
  source:
    context:
      v: entrirel4
    element:
      v: observation
    variable:
      v: obsdosenumber
  rule:
    name:
      v: codeControl
    source:
      context:
        v: obsdosenumber
      element:
        v: code
      condition:
        v: (code = '30973-2')
    rule:
      name:
        v: v

v: obs

v: value

v: vvv

v: prot

v: variable

v: targetDisease

v: vvv

v: create

v: obsdosenumber

v: value

v: v

v: value

context:
  v: v
element:
  v: value
variable:
  v: int

context:
  v: prot
context type:
  v: variable
element:
  v: doseNumber
transform:
  v: evaluate
parameter:
  value: string
    v: int.toString()

v: entrirel1

context:
  v: substance
element:
  v: entryRelationship
variable:
  v: entrirel1

name:
  v: obs
source:
  context:
    v: entrirel1
  element:
    v: observation
  variable:
    v: obs
rule:
  name:
    v: codeControl
  source:
    context:
      v: obs
    element:
      v: code
    condition:
      v: (code = '85714-4')
  rule:
    name:
      v: code
    source:
      context:
        v: obs
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: immunization
      context type:
        v: variable
      element:
        v: statusReason
      variable:
        v: vvv
      transform:
        v: create
rule:
  name:
    v: codeControl
  source:
    context:
      v: obs
    element:
      v: code
    condition:
      v: (code = '59784-9')
  rule:
    name:
      v: val
    source:
      context:
        v: obs
      element:
        v: value
      variable:
        v: val
    rule:
      name:
        v: cod

v: val

v: originalText

v: original

v: immunization

v: variable

v: statusReason

v: cod

v: create

value: string
  v: CodeableConcept

v: reference

context:
  v: original
element:
  v: reference
variable:
  v: reff

context:
  v: cod
context type:
  v: variable
element:
  v: text
transform:
  v: evaluate
parameter:
  value: string
    v: reff.value

v: location

context:
  v: substance
element:
  v: participant
variable:
  v: part

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

context:
  v: e1
context type:
  v: variable
element:
  v: resource
variable:
  v: location
transform:
  v: create
parameter:
  value: string
    v: Location

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

string
v: ClinicalDocument/body/participant

name:
  v: role
source:
  context:
    v: part
  element:
    v: participantRole
  variable:
    v: partRole
rule:
  name:
    v: identifier
  source:
    context:
      v: partRole
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: location
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: ext
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
    rule:
      name:
        v: UUID
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: assigner
      variable:
        v: a
    target:
      context:
        v: a
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: r
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    rule:
      name:
        v: ref

id
v: r

string
v: uri

id
v: ext

v: ext

v: request

v: variable

v: url

v: append

value: string
  v: Location?identifier=

value: id
  v: ext

id
v: s

v: id

v: extension

v: ext

v: location

v: variable

v: id

v: uuid7

v: evaluate

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

v: e1

v: variable

v: fullUrl

v: append

value: id
  v: uuid7

v: immunization

v: variable

v: location

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

value: string
  v: 'https://example/Location/' + %uuid7

name:
  v: Observation
type mode:
  v: none
input:
  name:
    v: entrirel2
  type:
    v: entryRelationship
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: obs
  type:
    v: Observation
  mode:
    v: target
rule:
  name:
    v: obs
  source:
    context:
      v: entrirel2
    element:
      v: observation
    variable:
      v: observation
  rule:
    name:
      v: code
    source:
      context:
        v: observation
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: code
      variable:
        v: vvv
      transform:
        v: create
    documentation:
      v: observation.templateId as tid -> obs.identifier as idf then{
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'completed')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'active')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'aborted')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'suspended')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: reference
    source:
      context:
        v: observation
    target:
      context:
        v: obs
      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

string
v: final

string
v: registered

string
v: cancelled

string
v: partial

string
v: Reference

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

context:
  v: observation

context:
  v: obs
context type:
  v: variable
element:
  v: encounter
variable:
  v: reference
transform:
  v: create
parameter:
  value: string
    v: Reference

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

name:
  v: refRange
source:
  context:
    v: observation
target:
  context:
    v: obs
  context type:
    v: variable
  element:
    v: referenceRange
  variable:
    v: refRange
rule:
  name:
    v: value
  source:
    context:
      v: observation
    element:
      v: value
    variable:
      v: vvv
  target:
    context:
      v: refRange
    context type:
      v: variable
    element:
      v: appliesTo
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: text
  source:
    context:
      v: observation
  target:
    context:
      v: refRange
    context type:
      v: variable
    element:
      v: text
    transform:
      v: copy
    parameter:
      value: string
        v: string

name:
  v: Observation1
type mode:
  v: none
input:
  name:
    v: entrirel4
  type:
    v: entryRelationship
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: obs
  type:
    v: Observation
  mode:
    v: target
rule:
  name:
    v: obs
  source:
    context:
      v: entrirel4
    element:
      v: observation
    variable:
      v: observation
  rule:
    name:
      v: code
    source:
      context:
        v: observation
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: code
      variable:
        v: vvv
      transform:
        v: create
    documentation:
      v: observation.templateId as tid -> obs.identifier as idf then{
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'completed')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'active')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'aborted')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: statusCode
    source:
      context:
        v: observation
      element:
        v: statusCode
      variable:
        v: statusc
      condition:
        v: (code = 'suspended')
    target:
      context:
        v: obs
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: reference
    source:
      context:
        v: observation
    target:
      context:
        v: obs
      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

string
v: final

string
v: registered

string
v: cancelled

string
v: partial

string
v: Reference

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

context:
  v: observation

context:
  v: obs
context type:
  v: variable
element:
  v: encounter
variable:
  v: reference
transform:
  v: create
parameter:
  value: string
    v: Reference

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

name:
  v: value1
source:
  context:
    v: observation
  element:
    v: effectiveTime
  variable:
    v: eff
  condition:
    v: (value.exists())
target:
  context:
    v: obs
  context type:
    v: variable
  element:
    v: effective
  variable:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: dateTime
dependent:
  name:
    v: TSDateTime
  variable:
    v: eff
  variable:
    v: value

name:
  v: period
source:
  context:
    v: observation
  element:
    v: effectiveTime
  variable:
    v: eff
target:
  context:
    v: obs
  context type:
    v: variable
  element:
    v: effective
  variable:
    v: period
  transform:
    v: create
  parameter:
    value: string
      v: Period
dependent:
  name:
    v: IVLTSPeriod
  variable:
    v: eff
  variable:
    v: period

name:
  v: refRange
source:
  context:
    v: observation
target:
  context:
    v: obs
  context type:
    v: variable
  element:
    v: value
  variable:
    v: concept
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: coding
  source:
    context:
      v: observation
    element:
      v: value
  target:
    context:
      v: concept
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: coding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: value
    source:
      context:
        v: observation
      element:
        v: value
      variable:
        v: v
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: evaluate
      parameter:
        value: string
  rule:
    name:
      v: vv
    source:
      context:
        v: observation
      element:
        v: value
      variable:
        v: v
    rule:
      name:
        v: codeSystem
  rule:
    name:
      v: value
    source:
      context:
        v: observation
      element:
        v: value
      variable:
        v: v
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: value
  source:
    context:
      v: observation
    element:
      v: value
    variable:
      v: valu
  rule:
    name:
      v: txt
    source:
      context:
        v: valu
      element:
        v: originalText
      variable:
        v: txt
    rule:
      name:
        v: reference

string
v: v.code

v: v

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

string
v: v.displayName

v: txt

v: reference

v: ref

v: concept

v: variable

v: text

v: evaluate

value: string
  v: ref.value