cda2fhirAmbReport
type: StructureMap
node role: treeRoot
id:
  v: cda2fhirAmbReport
text:
  status:
    v: generated
  div: map "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirAmbReport" = "cda2fhirAmbReport" 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/List" alias List 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/StructureDefinit…
url:
  v: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirAmbReport
version:
  v: 0.1.0
name:
  v: cda2fhirAmbReport
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/List
    link: http://hl7.org/fhir/StructureDefinition/List
  mode:
    v: produced
  alias:
    v: List
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

v: PQ

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

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

context:
  v: e4
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: e4
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: uuid4
transform:
  v: uuid

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

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

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext1

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext1

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

v: id

v: extension

v: ext

v: requestPAT

v: variable

v: url

v: append

value: string
  v: Patient?identifier=

value: id
  v: ext

name:
  v: ClinicalDocumentToBundle
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: composition
  type:
    v: Composition
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: DocumentReference
  type:
    v: DocumentReference
  mode:
    v: target
rule:
  name:
    v: id
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: id
    transform:
      v: uuid
rule:
  name:
    v: identifier
  source:
    context:
      v: cda
    element:
      v: id
    variable:
      v: vvv
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: type
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: type
    transform:
      v: copy
    parameter:
      value: string
        v: transaction
rule:
  name:
    v: date
  source:
    context:
      v: cda
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: timestamp
    transform:
      v: evaluate
    parameter:
      value: string
        v: timestamp.now()
rule:
  name:
    v: composition
  source:
    context:
      v: cda
  dependent:
    name:
      v: ClinicalDocumentComposition
    variable:
      v: cda
    variable:
      v: composition
    variable:
      v: patient
    variable:
      v: encounter
    variable:
      v: bundle
    variable:
      v: DocumentReference
rule:
  name:
    v: diagnostic
  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: diagnosticReport
    transform:
      v: create
    parameter:
      value: string
        v: DiagnosticReport
  target:
    context:
      v: diagnosticReport
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid1

v: uuid

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

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

name:
  v: diagnosticCode
source:
  context:
    v: cda
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: diagnosticReport
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: stats
source:
  context:
    v: cda
target:
  context:
    v: diagnosticReport
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: registered

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
    source:
      context:
        v: body
      element:
        v: component
      variable:
        v: component
    rule:
      name:
        v: section

v: component

v: section

v: srcSection

v: code

context:
  v: srcSection
element:
  v: code

context:
  v: composition
context type:
  v: variable
element:
  v: section
variable:
  v: tgtSection

name:
  v: ClinicalDocumentSection
variable:
  v: cda
variable:
  v: srcSection
variable:
  v: patient
variable:
  v: tgtSection
variable:
  v: bundle
variable:
  v: encounter
variable:
  v: diagnosticReport

name:
  v: ClinicalDocumentSection
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: enc
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: dReport
  type:
    v: DiagnosticReport
  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: reference
  source:
    context:
      v: src
  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/DiagnosticReport/' + %dReport.id
rule:
  name:
    v: entry
  source:
    context:
      v: src
    element:
      v: entry
    variable:
      v: entry
  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: dreport
    source:
      context:
        v: entry
    dependent:
      name:
        v: DiagnosticReportFunction
      variable:
        v: src
      variable:
        v: entry
      variable:
        v: dReport
      variable:
        v: bundle
      variable:
        v: enc
      variable:
        v: patient
rule:
  name:
    v: narrative
  source:
    context:
      v: src
    condition:
      v: src.entry.exists().not()
  dependent:
    name:
      v: DiagnosticReportFunction
    variable:
      v: src
    variable:
      v: cda
    variable:
      v: dReport
    variable:
      v: bundle
    variable:
      v: enc

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

v: patient

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

name:
  v: DiagnosticReportFunction
type mode:
  v: none
input:
  name:
    v: section
  type:
    v: section
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: entry
  mode:
    v: source
input:
  name:
    v: dReport
  type:
    v: DiagnosticReport
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
rule:
  name:
    v: entryObs
  source:
    context:
      v: src
    element:
      v: observation
    variable:
      v: observation
  rule:
    name:
      v: QuesitoDiagnostico
    source:
      context:
        v: section
      condition:
        v: code.code = '29299-5'
    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: obs1
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: obs1
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid1
      transform:
        v: uuid
    target:
      context:
        v: e1
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: dReport
      context type:
        v: variable
      element:
        v: result
      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
    dependent:
      name:
        v: Observation
      variable:
        v: observation
      variable:
        v: patient
      variable:
        v: encounter
      variable:
        v: obs1
      variable:
        v: bundle
  rule:
    name:
      v: StoriaClinica1
    source:
      context:
        v: section
      condition:
        v: code.code = '11329-0'
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e2
    target:
      context:
        v: e2
      context type:
        v: variable

string
v: BackboneElement

string
v: POST

string
v: Observation

id
v: uuid1

string
v: Observation

string
v: Reference

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

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

context:
  v: obs2
context type:
  v: variable
element:
  v: id
variable:
  v: uuid2
transform:
  v: uuid

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

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

context:
  v: dReport
context type:
  v: variable
element:
  v: result
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/' + %obs2.id

name:
  v: reference
source:
  context:
    v: section
target:
  context:
    v: obs2
  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: section
target:
  context:
    v: obs2
  context type:
    v: variable
  element:
    v: encounter
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Encounter/' + %encounter.id

name:
  v: STatusobse
source:
  context:
    v: section
target:
  context:
    v: obs2
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: final

name:
  v: code
source:
  context:
    v: section
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: obs2
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: status
source:
  context:
    v: observation
  element:
    v: statusCode
  variable:
    v: s
rule:
  name:
    v: codeS
  source:
    context:
      v: s
    element:
      v: code
    variable:
      v: cos
  target:
    context:
      v: obs2
    context type:
      v: variable
    element:
      v: status
    transform:
      v: translate
    parameter:
      value: id
        v: cos
    parameter:
      value: string
        v: #OBSstatus
    parameter:
      value: string
        v: code

name:
  v: subSection
source:
  context:
    v: section
  element:
    v: component
  variable:
    v: component
rule:
  name:
    v: section
  source:
    context:
      v: component
    element:
      v: section
    variable:
      v: section
  rule:
    name:
      v: sectionCode
    source:
      context:
        v: section
      element:
        v: code
      condition:
        v: code = '10160-0'
    rule:
      name:
        v: entry
  rule:
    name:
      v: conditionAllergie
    source:
      context:
        v: section
      element:
        v: code
      condition:
        v: code = '48765-2'
    rule:
      name:
        v: section

v: section

v: entry

v: entry

v: creat

context:
  v: entry
element:
  v: substanceAdministration
variable:
  v: subAdmin

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

context:
  v: e11
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: e11
context type:
  v: variable
element:
  v: resource
variable:
  v: medicationstatement
transform:
  v: create
parameter:
  value: string
    v: MedicationStatement

context:
  v: medicationstatement
context type:
  v: variable
element:
  v: id
variable:
  v: uuid11
transform:
  v: uuid

context:
  v: e11
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: https://example/MedicationStatement/
parameter:
  value: id
    v: uuid11

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

context:
  v: obs2
context type:
  v: variable
element:
  v: partOf
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/MedicationStatement/' + %medicationstatement.id

name:
  v: MedicationStatement
variable:
  v: subAdmin
variable:
  v: medicationstatement
variable:
  v: patient
variable:
  v: encounter
variable:
  v: bundle

v: section

v: bundle

v: variable

v: entry

v: e4

v: e4

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

v: variable

v: resource

v: list1

v: create

value: string
  v: List

v: list1

v: variable

v: id

v: uuid4

v: uuid

v: e4

v: variable

v: fullUrl

v: append

value: id
  v: uuid4

v: request

v: variable

v: url

v: copy

value: string
  v: List

v: obs2

v: variable

v: focus

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

value: string
  v: 'https://example/List/' + %list1.id

v: reference

context:
  v: section

context:
  v: list1
context type:
  v: variable
element:
  v: subject
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: listatus

context:
  v: section

context:
  v: list1
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: string
    v: current

v: lstmod

context:
  v: section

context:
  v: list1
context type:
  v: variable
element:
  v: mode
transform:
  v: copy
parameter:
  value: string
    v: working

v: reference

context:
  v: section

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

v: entryList

context:
  v: section

context:
  v: list1
context type:
  v: variable
element:
  v: entry
variable:
  v: entryList1

name:
  v: entryAll
source:
  context:
    v: section
  element:
    v: entry
  variable:
    v: entry
rule:
  name:
    v: allergy
  source:
    context:
      v: entry
    element:
      v: act
    variable:
      v: act1
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e5
  target:
    context:
      v: e5
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e5
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: allergy
    transform:
      v: create
    parameter:
      value: string
        v: AllergyIntolerance
  target:
    context:
      v: allergy
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid5
    transform:
      v: uuid
  target:
    context:
      v: e5
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/AllergyIntolerance/
    parameter:
      value: id
        v: uuid5
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: AllergyIntolerance
  target:
    context:
      v: entryList1
    context type:
      v: variable
    element:
      v: item
    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/AllergyIntolerance/' + %allergy.id
  dependent:
    name:
      v: allergyFunction
    variable:
      v: act1
    variable:
      v: allergy
    variable:
      v: patient
    variable:
      v: encounter

name:
  v: entry
source:
  context:
    v: section
  element:
    v: entry
  variable:
    v: entry
rule:
  name:
    v: condition
  source:
    context:
      v: entry
    element:
      v: observation
  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
    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: e3
    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: uuid3
    transform:
      v: uuid
  target:
    context:
      v: e3
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Condition/
    parameter:
      value: id
        v: uuid3
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Condition
  target:
    context:
      v: obs2
    context type:
      v: variable
    element:
      v: focus
    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
  dependent:
    name:
      v: ConditionFunction
    variable:
      v: observation
    variable:
      v: condition
    variable:
      v: patient
    variable:
      v: encounter
    variable:
      v: bundle
rule:
  name:
    v: organizer
  source:
    context:
      v: entry
    element:
      v: organizer
    variable:
      v: organizer
  rule:
    name:
      v: List
    source:
      context:
        v: section
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e11
    target:
      context:
        v: e11
      context type:
        v: variable
      element:
        v: request
      variable:
        v: request
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: method
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: e11
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: list11
      transform:
        v: create

string
v: BackboneElement

string
v: POST

value: string
  v: List

context:
  v: list11
context type:
  v: variable
element:
  v: id
variable:
  v: uuid11
transform:
  v: uuid

context:
  v: e11
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: https://example/List/
parameter:
  value: id
    v: uuid11

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

context:
  v: obs2
context type:
  v: variable
element:
  v: focus
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/List/' + %list11.id

name:
  v: reference
source:
  context:
    v: section
target:
  context:
    v: list11
  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: liststat
source:
  context:
    v: section
target:
  context:
    v: list11
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: current

name:
  v: listmd
source:
  context:
    v: section
target:
  context:
    v: list11
  context type:
    v: variable
  element:
    v: mode
  transform:
    v: copy
  parameter:
    value: string
      v: working

name:
  v: reference
source:
  context:
    v: section
target:
  context:
    v: list11
  context type:
    v: variable
  element:
    v: encounter
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Encounter/' + %encounter.id

name:
  v: org
source:
  context:
    v: organizer
target:
  context:
    v: list11
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entryList2
rule:
  name:
    v: family
  source:
    context:
      v: organizer
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e12
  target:
    context:
      v: e12
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e12
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: familyMember
    transform:
      v: create
    parameter:
      value: string
        v: FamilyMemberHistory
  target:
    context:
      v: familyMember
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid12
    transform:
      v: uuid
  target:
    context:
      v: e12
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/FamilyMemberHistory/
    parameter:
      value: id
        v: uuid12
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: FamilyMemberHistory
  target:
    context:
      v: entryList2
    context type:
      v: variable
    element:
      v: item
    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/FamilyMemberHistory/' + %familyMember.id
  dependent:
    name:
      v: FamilyMemberFunction
    variable:
      v: organizer
    variable:
      v: familyMember
    variable:
      v: patient

name:
  v: PrecedentiEsamiEseguiti
source:
  context:
    v: section
  condition:
    v: code.code = '30954-2'
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e4
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: obs4
  transform:
    v: create
  parameter:
    value: string
      v: Observation
target:
  context:
    v: obs4
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid4
  transform:
    v: uuid
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Observation/
  parameter:
    value: id
      v: uuid4
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Observation
target:
  context:
    v: dReport
  context type:
    v: variable
  element:
    v: result
  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/' + %obs4.id
dependent:
  name:
    v: Observation
  variable:
    v: observation
  variable:
    v: patient
  variable:
    v: encounter
  variable:
    v: obs4
  variable:
    v: bundle

name:
  v: Diagnosi
source:
  context:
    v: section
  condition:
    v: code.code = '29548-5'
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e5
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: obs5
  transform:
    v: create
  parameter:
    value: string
      v: Observation
target:
  context:
    v: obs5
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid5
  transform:
    v: uuid
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Observation/
  parameter:
    value: id
      v: uuid5
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Observation
target:
  context:
    v: dReport
  context type:
    v: variable
  element:
    v: result
  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/' + %obs5.id
dependent:
  name:
    v: Observation
  variable:
    v: observation
  variable:
    v: patient
  variable:
    v: encounter
  variable:
    v: obs5
  variable:
    v: bundle

name:
  v: entryAct
source:
  context:
    v: src
  element:
    v: act
  variable:
    v: act
rule:
  name:
    v: Prestazioni
  source:
    context:
      v: section
    condition:
      v: code.code = '62387-6'
  target:
    context:
      v: dReport
    context type:
      v: variable
    element:
      v: encounter
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
  rule:
    name:
      v: type
    source:
      context:
        v: act
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: encounter
      context type:
        v: variable
      element:
        v: type
      variable:
        v: vvv
      transform:
        v: create
  rule:
    name:
      v: period
    source:
      context:
        v: act
      element:
        v: effectiveTime
      variable:
        v: effectiveTime
    target:
      context:
        v: encounter
      context type:
        v: variable
      element:
        v: period
      variable:
        v: period
    rule:
      name:
        v: val
  rule:
    name:
      v: proceduraMadre
    source:
      context:
        v: act
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e10
    target:
      context:
        v: e10
      context type:
        v: variable
      element:
        v: request
      variable:
        v: request
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: method
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: e10
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: procedureRes
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: procedureRes
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid10
      transform:
        v: uuid
    target:
      context:
        v: e10
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: encounter
      context type:
        v: variable
      element:
        v: reasonReference
      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
    rule:
      name:
        v: reference

v: effectiveTime

v: period

v: variable

v: start

v: start

v: create

value: string
  v: dateTime

v: TSDateTime

v: effectiveTime

v: start

string
v: BackboneElement

string
v: POST

string
v: Procedure

id
v: uuid10

string
v: Procedure

string
v: Reference

string
v: 'https://example/Procedure/' + %procedureRes.id

v: act

v: procedureRes

v: variable

v: subject

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

context:
  v: act

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

name:
  v: status1
source:
  context:
    v: act
  element:
    v: statusCode
  variable:
    v: vvv
target:
  context:
    v: procedureRes
  context type:
    v: variable
  element:
    v: status
  variable:
    v: vvv
  transform:
    v: create

name:
  v: status2
source:
  context:
    v: act
  condition:
    v: statusCode.exists().not()
target:
  context:
    v: procedureRes
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: unknown

name:
  v: Relationship
source:
  context:
    v: act
  element:
    v: entryRelationship
  variable:
    v: entryRel
rule:
  name:
    v: procedurePrestazioni
  source:
    context:
      v: entryRel
    element:
      v: procedure
    variable:
      v: proc
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e9
  target:
    context:
      v: e9
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e9
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: procedure2
    transform:
      v: create
    parameter:
      value: string
        v: Procedure
  target:
    context:
      v: procedure2
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid9
    transform:
      v: uuid
  target:
    context:
      v: e9
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Procedure/
    parameter:
      value: id
        v: uuid9
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Procedure
  target:
    context:
      v: procedureRes
    context type:
      v: variable
    element:
      v: partOf
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Procedure/' + %procedure2.id
  dependent:
    name:
      v: Procedure
    variable:
      v: proc
    variable:
      v: patient
    variable:
      v: encounter
    variable:
      v: procedure2
    variable:
      v: bundle
rule:
  name:
    v: farmacPrestazioni
  source:
    context:
      v: entryRel
    element:
      v: substanceAdministration
    variable:
      v: subAdmin
  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: medAdmin
    transform:
      v: create
    parameter:
      value: string
        v: MedicationAdministration

context:
  v: medAdmin
context type:
  v: variable
element:
  v: id
variable:
  v: uuid8
transform:
  v: uuid

context:
  v: e8
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: https://example/MedicationAdministration/
parameter:
  value: id
    v: uuid8

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

context:
  v: procedureRes
context type:
  v: variable
element:
  v: partOf
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/MedicationAdministration/' + %medAdmin.id

name:
  v: MedicationAdministration
variable:
  v: subAdmin
variable:
  v: patient
variable:
  v: encounter
variable:
  v: medAdmin
variable:
  v: bundle

name:
  v: osservazioniPrestazioni
source:
  context:
    v: entryRel
  element:
    v: observation
  variable:
    v: entryRobs
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e7
target:
  context:
    v: e7
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e7
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: obs7
  transform:
    v: create
  parameter:
    value: string
      v: Observation
target:
  context:
    v: obs7
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid7
  transform:
    v: uuid
target:
  context:
    v: e7
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Observation/
  parameter:
    value: id
      v: uuid7
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Observation
target:
  context:
    v: procedureRes
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Observation/' + %obs7.id
dependent:
  name:
    v: ObservationPrest
  variable:
    v: entryRobs
  variable:
    v: patient
  variable:
    v: encounter
  variable:
    v: obs7
  variable:
    v: bundle

name:
  v: procedureGenerichePrestazioni
source:
  context:
    v: entryRel
  element:
    v: act
  variable:
    v: act2
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e6
target:
  context:
    v: e6
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e6
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: procedure3
  transform:
    v: create
  parameter:
    value: string
      v: Procedure
target:
  context:
    v: procedure3
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid6
  transform:
    v: uuid
target:
  context:
    v: e6
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Procedure/
  parameter:
    value: id
      v: uuid6
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Procedure
target:
  context:
    v: procedureRes
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: reference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: reference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Procedure/' + %procedure3.id
dependent:
  name:
    v: Procedure
  variable:
    v: act2
  variable:
    v: patient
  variable:
    v: encounter
  variable:
    v: procedure3
  variable:
    v: bundle

name:
  v: Followup
source:
  context:
    v: section
  condition:
    v: code.code = '80615-8'
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e12
target:
  context:
    v: e12
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e12
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: obs12
  transform:
    v: create
  parameter:
    value: string
      v: Observation
target:
  context:
    v: obs12
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid12
  transform:
    v: uuid
target:
  context:
    v: e12
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Observation/
  parameter:
    value: id
      v: uuid12
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Observation
target:
  context:
    v: dReport
  context type:
    v: variable
  element:
    v: result
  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/' + %obs12.id
dependent:
  name:
    v: Observation
  variable:
    v: act
  variable:
    v: patient
  variable:
    v: encounter
  variable:
    v: obs12
  variable:
    v: bundle

name:
  v: substanceadmin
source:
  context:
    v: src
  element:
    v: substanceAdministration
  variable:
    v: substanceadmin
rule:
  name:
    v: TerapiaFarmacologicaConsigliata
  source:
    context:
      v: section
    condition:
      v: code.code = '93341-6'
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e6
  target:
    context:
      v: e6
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e6
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: medre1
    transform:
      v: create
    parameter:
      value: string
        v: MedicationRequest
  target:
    context:
      v: medre1
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid6
    transform:
      v: uuid
  target:
    context:
      v: e6
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/MedicationRequest/
    parameter:
      value: id
        v: uuid6
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: MedicationRequest
  target:
    context:
      v: dReport
    context type:
      v: variable
    element:
      v: basedOn
    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/MedicationRequest/' + %medre1.id
  dependent:
    name:
      v: MedicationRequest
    variable:
      v: substanceadmin
    variable:
      v: patient
    variable:
      v: encounter
    variable:
      v: medre1
    variable:
      v: bundle
documentation:
  v: src.substanceAdministration

name:
  v: whereCond
source:
  context:
    v: section
  condition:
    v: section.entry.exists().not()
rule:
  name:
    v: allergyAct
  source:
    context:
      v: section
    condition:
      v: (code.code = '48765-2')
  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: 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: e2
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: obs1
    transform:
      v: create
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: obs1
    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/Observation/
    parameter:
      value: id
        v: uuid2
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: dReport
    context type:
      v: variable
    element:
      v: result
    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/' + %obs1.id
  rule:
    name:
      v: reference
    source:
      context:
        v: section
    target:
      context:
        v: obs1
      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: section
    target:
      context:
        v: obs1
      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: STatusobse
    source:
      context:
        v: section
    target:
      context:
        v: obs1
      context type:
        v: variable
      element:
        v: status
      transform:
        v: copy

string
v: Reference

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

string
v: Reference

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

value: string
  v: final

name:
  v: code
source:
  context:
    v: section
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: obs1
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: status
source:
  context:
    v: section
  element:
    v: statusCode
  variable:
    v: s
rule:
  name:
    v: codeS
  source:
    context:
      v: s
    element:
      v: code
    variable:
      v: cos
  target:
    context:
      v: obs1
    context type:
      v: variable
    element:
      v: status
    transform:
      v: translate
    parameter:
      value: id
        v: cos
    parameter:
      value: string
        v: #OBSstatus
    parameter:
      value: string
        v: code

name:
  v: allergytext
source:
  context:
    v: section
  element:
    v: text
  variable:
    v: text
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e5
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
  transform:
    v: create
  parameter:
    value: string
      v: BackboneElement
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: method
  transform:
    v: copy
  parameter:
    value: string
      v: POST
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: allergy
  transform:
    v: create
  parameter:
    value: string
      v: AllergyIntolerance
target:
  context:
    v: allergy
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid5
  transform:
    v: uuid
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/AllergyIntolerance/
  parameter:
    value: id
      v: uuid5
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: AllergyIntolerance
target:
  context:
    v: obs1
  context type:
    v: variable
  element:
    v: focus
  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/AllergyIntolerance/' + %allergy.id
rule:
  name:
    v: reference
  source:
    context:
      v: section
  target:
    context:
      v: allergy
    context type:
      v: variable
    element:
      v: patient
    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: section
  target:
    context:
      v: allergy
    context type:
      v: variable
    element:
      v: encounter
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: status
  source:
    context:
      v: section
  target:
    context:
      v: allergy
    context type:
      v: variable
    element:
      v: clinicalStatus
    variable:
      v: clinicalStatus

name:
  v: coding
source:
  context:
    v: section
target:
  context:
    v: clinicalStatus
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding
  transform:
    v: create
  parameter:
    value: string
      v: Coding
rule:
  name:
    v: code
  source:
    context:
      v: section
  target:
    context:
      v: coding
    context type:
      v: variable
    element:
      v: code
    transform:
      v: copy
    parameter:
      value: string
        v: active
rule:
  name:
    v: system
  source:
    context:
      v: section
  target:
    context:
      v: coding
    context type:
      v: variable
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical

name:
  v: narrative
source:
  context:
    v: text
target:
  context:
    v: allergy
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: note
  source:
    context:
      v: text
    variable:
      v: t
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    variable:
      v: textNote
    transform:
      v: create
    parameter:
      value: string
        v: string
  dependent:
    name:
      v: EDstring
    variable:
      v: t
    variable:
      v: textNote

name:
  v: MedicationRequest
source:
  context:
    v: section
  condition:
    v: (code.code = '93341-6')
rule:
  name:
    v: txtsec
  source:
    context:
      v: section
    element:
      v: text
    variable:
      v: text
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e13
  target:
    context:
      v: e13
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e13
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: obs13
    transform:
      v: create
    parameter:
      value: string
        v: MedicationRequest
  target:
    context:
      v: obs13
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid13
    transform:
      v: uuid
  target:
    context:
      v: e13
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/MedicationRequest/
    parameter:
      value: id
        v: uuid13
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: MedicationRequest
  target:
    context:
      v: dReport
    context type:
      v: variable
    element:
      v: basedOn
    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/MedicationRequest/' + %obs13.id
  rule:
    name:
      v: reference
    source:
      context:
        v: section
    target:
      context:
        v: obs13
      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: section
    target:
      context:
        v: obs13
      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: intent
    source:
      context:
        v: section
    target:
      context:
        v: obs13
      context type:
        v: variable
      element:
        v: intent

string
v: Reference

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

string
v: Reference

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

v: copy

value: string
  v: order

name:
  v: st
source:
  context:
    v: section
  condition:
    v: statusCode.exists().not()
target:
  context:
    v: obs13
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: unknown

name:
  v: note
source:
  context:
    v: text
target:
  context:
    v: obs13
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: note
  source:
    context:
      v: text
    variable:
      v: t
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    variable:
      v: textNote
    transform:
      v: create
    parameter:
      value: string
        v: string
  dependent:
    name:
      v: EDstring
    variable:
      v: t
    variable:
      v: textNote

name:
  v: code
source:
  context:
    v: section
target:
  context:
    v: obs13
  context type:
    v: variable
  element:
    v: medication
  variable:
    v: code
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: string
  source:
    context:
      v: section
  target:
    context:
      v: code
    context type:
      v: variable
    element:
      v: text
    transform:
      v: copy
    parameter:
      value: string
        v: string

name:
  v: NonConclusion
source:
  context:
    v: section
  condition:
    v: (code.code = '55110-1').not() and (code.code = '93341-6').not() and (code.code = '48765-2').not()
rule:
  name:
    v: txtsec
  source:
    context:
      v: section
    element:
      v: text
    variable:
      v: text
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e13
  target:
    context:
      v: e13
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e13
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: obs13
    transform:
      v: create
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: obs13
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid13
    transform:
      v: uuid
  target:
    context:
      v: e13
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Observation/
    parameter:
      value: id
        v: uuid13
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: dReport
    context type:
      v: variable
    element:
      v: result
    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/' + %obs13.id
  rule:
    name:
      v: reference
    source:
      context:
        v: section
    target:
      context:
        v: obs13
      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: section
    target:
      context:
        v: obs13
      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: obsst
    source:
      context:
        v: section
    target:
      context:
        v: obs13
      context type:
        v: variable
      element:
        v: status

string
v: Reference

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

string
v: Reference

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

v: copy

value: string
  v: preliminary

name:
  v: obscde
source:
  context:
    v: section
  element:
    v: code
  variable:
    v: vvv
target:
  context:
    v: obs13
  context type:
    v: variable
  element:
    v: code
  variable:
    v: vvv
  transform:
    v: create

name:
  v: statusS
source:
  context:
    v: section
target:
  context:
    v: obs13
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: final

name:
  v: narrative
source:
  context:
    v: text
target:
  context:
    v: obs13
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: note
  source:
    context:
      v: text
    variable:
      v: t
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    variable:
      v: textNote
    transform:
      v: create
    parameter:
      value: string
        v: string
  dependent:
    name:
      v: EDstring
    variable:
      v: t
    variable:
      v: textNote

name:
  v: conclusion
source:
  context:
    v: section
  condition:
    v: (code.code = '55110-1')
rule:
  name:
    v: conc
  source:
    context:
      v: section
    element:
      v: text
    variable:
      v: t
  target:
    context:
      v: dReport
    context type:
      v: variable
    element:
      v: conclusion
    variable:
      v: textConclusion
    transform:
      v: create
    parameter:
      value: string
        v: string
  dependent:
    name:
      v: EDstring
    variable:
      v: t
    variable:
      v: textConclusion

name:
  v: Observation
type mode:
  v: none
input:
  name:
    v: cda
  type:
    v: observation
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: ob
  type:
    v: Observation
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: reference
  source:
    context:
      v: cda
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Patient/' + %patient.id
rule:
  name:
    v: reference
  source:
    context:
      v: cda
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: encounter
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: code
  source:
    context:
      v: cda
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: code
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: Stats
  source:
    context:
      v: cda
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final
rule:
  name:
    v: value
  source:
    context:
      v: cda
    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
  documentation:
    v: value datatype
rule:
  name:
    v: value
  source:
    context:
      v: cda
    type:
      v: ST
    element:
      v: value
    variable:
      v: st
  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: st.dataString

name:
  v: boolean
source:
  context:
    v: cda
  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: cda
  type:
    v: CE
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: coding
  source:
    context:
      v: val
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: value
    variable:
      v: ce
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: originalText
    source:
      context:
        v: val
      element:
        v: originalText
      variable:
        v: 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: 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: qualifier

v: originalText

v: reference

v: reference

v: ce

v: variable

v: text

v: evaluate

value: string
  v: reference.value

v: val

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: val

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: val

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: translation

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: translation

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: qualifier

v: qualifier

v: value

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

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

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

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

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

name:
  v: val
source:
  context:
    v: cda
  type:
    v: CD
  element:
    v: value
  variable:
    v: val
rule:
  name:
    v: coding
  source:
    context:
      v: val
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: value
    variable:
      v: ce
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: originalText
    source:
      context:
        v: val
      element:
        v: originalText
      variable:
        v: 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: 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: qualifier

v: originalText

v: reference

v: reference

v: ce

v: variable

v: text

v: evaluate

value: string
  v: reference.value

v: val

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: val

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: val

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: code

v: code

v: coding

v: variable

v: code

v: cast

value: id
  v: code

value: string
  v: string

v: translation

v: codeSystem

v: system

v: coding

v: variable

v: system

v: translate

value: id
  v: system

value: string
  v: uri

v: translation

v: displayName

v: display

v: coding

v: variable

v: display

v: cast

value: id
  v: display

value: string
  v: string

v: translation

v: qualifier

v: qualifier

v: value

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

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

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

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

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

name:
  v: valueQuantity
source:
  context:
    v: cda
  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: value1
source:
  context:
    v: cda
  element:
    v: effectiveTime
  variable:
    v: effectiveTime
  condition:
    v: (value.exists())
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: effective
  variable:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: dateTime
dependent:
  name:
    v: TSDateTime
  variable:
    v: effectiveTime
  variable:
    v: value

name:
  v: valuePeriod
source:
  context:
    v: cda
  element:
    v: effectiveTime
  variable:
    v: effectiveTime
  condition:
    v: (low.exists())
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: effective
  variable:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: Period
dependent:
  name:
    v: IVLTSPeriod
  variable:
    v: effectiveTime
  variable:
    v: value

name:
  v: note
source:
  context:
    v: cda
  element:
    v: text
  variable:
    v: text
target:
  context:
    v: ob
  context type:
    v: variable
  element:
    v: note
  variable:
    v: note
rule:
  name:
    v: text
  source:
    context:
      v: text
    element:
      v: reference
    variable:
      v: reference
  target:
    context:
      v: note
    context type:
      v: variable
    element:
      v: text
    transform:
      v: evaluate
    parameter:
      value: string
        v: reference.value

name:
  v: status
source:
  context:
    v: cda
  element:
    v: statusCode
  variable:
    v: s
rule:
  name:
    v: codeS
  source:
    context:
      v: s
    element:
      v: code
    variable:
      v: cos
  target:
    context:
      v: ob
    context type:
      v: variable
    element:
      v: status
    transform:
      v: translate
    parameter:
      value: id
        v: cos
    parameter:
      value: string
        v: #OBSstatus
    parameter:
      value: string
        v: code

name:
  v: ConditionFunction
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: cdaElement
  mode:
    v: source
input:
  name:
    v: tgt
  type:
    v: Condition
  mode:
    v: target
input:
  name:
    v: patient
  type:
    v: patient
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: encounter
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: code
  source:
    context:
      v: src
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: category
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: reference
  source:
    context:
      v: src
  target:
    context:
      v: tgt
    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: tgt
    context type:
      v: variable
    element:
      v: encounter
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: verifstatus
  source:
    context:
      v: src
    element:
      v: statusCode
    variable:
      v: stscode
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: verificationStatus
    variable:
      v: verifstatus
  rule:
    name:
      v: coding
    source:
      context:
        v: stscode
      variable:
        v: codeS
    target:
      context:
        v: verifstatus
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: code
    rule:
      name:
        v: system
    rule:
      name:
        v: display
rule:
  name:
    v: valuePeriod
  source:
    context:
      v: src
    element:
      v: effectiveTime
    variable:
      v: effectiveTime
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: onset
    variable:
      v: value
    transform:
      v: create
    parameter:
      value: string
        v: Period
  dependent:
    name:
      v: IVLTSPeriod
    variable:
      v: effectiveTime

string
v: Coding

v: codeS

v: code

v: coding

v: variable

v: code

v: copy

value: string
  v: confirmed

v: codeS

v: coding

v: variable

v: system

v: copy

v: codeS

v: coding

v: variable

v: display

v: cast

value: string
  v: Confirmed

value: string
  v: string

v: value

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

name:
  v: entryR
source:
  context:
    v: src
  element:
    v: entryRelationship
  variable:
    v: entryRelationship
rule:
  name:
    v: EntryRelObsevation
  source:
    context:
      v: entryRelationship
    element:
      v: observation
    variable:
      v: obsentry
  rule:
    name:
      v: observation
    source:
      context:
        v: obsentry
      element:
        v: code
      condition:
        v: code = '89261-2'
    rule:
      name:
        v: observation
  rule:
    name:
      v: clinicalStatus2
    source:
      context:
        v: obsentry
      element:
        v: code
      condition:
        v: code = '33999-4'
    rule:
      name:
        v: clinicalstatus

v: obsentry

v: tgt

v: variable

v: evidence

v: evidence

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

v: create

value: string
  v: Observation

v: obsy

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

v: evidence

v: variable

v: detail

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

v: Observation

v: obsentry

v: patient

v: encounter

v: obsy

v: bundle

v: obsentry

v: value

v: value

v: tgt

v: variable

v: clinicalStatus

v: clinicalstatus

v: coding

context:
  v: value
variable:
  v: val

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

name:
  v: code
source:
  context:
    v: val
  condition:
    v: (code = 'LA9041-0')
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: string
      v: resolved

name:
  v: code
source:
  context:
    v: val
  condition:
    v: (code = 'LA18632-2')
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: string
      v: inactive

name:
  v: code
source:
  context:
    v: val
  condition:
    v: (code = 'LA16666-2')
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: string
      v: active

name:
  v: system
source:
  context:
    v: val
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: string
      v: http://terminology.hl7.org/CodeSystem/condition-clinical

name:
  v: display
source:
  context:
    v: val
  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

v: text

context:
  v: obsentry
element:
  v: text
variable:
  v: text

name:
  v: text
source:
  context:
    v: text
  element:
    v: reference
  variable:
    v: reference
target:
  context:
    v: clinicalstatus
  context type:
    v: variable
  element:
    v: text
  transform:
    v: evaluate
  parameter:
    value: string
      v: reference.value

name:
  v: Procedure
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: procedure
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: tgt
  type:
    v: Procedure
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: reference
  source:
    context:
      v: src
  target:
    context:
      v: tgt
    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: tgt
    context type:
      v: variable
    element:
      v: encounter
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: status1
  source:
    context:
      v: src
    element:
      v: statusCode
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: status
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: status2
  source:
    context:
      v: src
    condition:
      v: statusCode.exists().not()
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: unknown
rule:
  name:
    v: id
  source:
    context:
      v: src
    element:
      v: id
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: vvv
    transform:
      v: create
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: value1
  source:
    context:
      v: src
    element:
      v: effectiveTime
    variable:
      v: effectiveTime
    condition:
      v: (value.exists())
  target:
    context:
      v: tgt
    context type:
      v: variable

v: performed

v: value

v: create

value: string
  v: dateTime

name:
  v: TSDateTime
variable:
  v: effectiveTime
variable:
  v: value

name:
  v: valuePeriod
source:
  context:
    v: src
  element:
    v: effectiveTime
  variable:
    v: effectiveTime
  condition:
    v: (low.exists())
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: performed
  variable:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: Period
dependent:
  name:
    v: IVLTSPeriod
  variable:
    v: effectiveTime
  variable:
    v: value

name:
  v: methodCode
source:
  context:
    v: src
  element:
    v: methodCode
  variable:
    v: methodCode
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: extension
  variable:
    v: ext1
dependent:
  name:
    v: ITMethodExt
  variable:
    v: methodCode
  variable:
    v: ext1

name:
  v: participant
source:
  context:
    v: src
  element:
    v: participant
  variable:
    v: participant
rule:
  name:
    v: participantRole
  source:
    context:
      v: participant
    element:
      v: participantRole
    variable:
      v: participantRole
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: performer
    variable:
      v: performer
  rule:
    name:
      v: device
    source:
      context:
        v: participantRole
      element:
        v: playingDevice
      variable:
        v: device
    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: 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: e2
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: deviceRes
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: deviceRes
      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
      parameter:
        value: id
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: performer
      context type:
        v: variable
      element:
        v: actor
      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: manufacturer
    rule:
      name:
        v: code

string
v: BackboneElement

string
v: POST

string
v: Device

id
v: uuid2

string
v: Device

string
v: Reference

string
v: 'https://example/Device/' + %deviceRes.id

v: device

v: manufacturerModelName

v: manufacturerModelName

v: manuf

context:
  v: manufacturerModelName
element:
  v: displayName
variable:
  v: displayName

context:
  v: deviceRes
context type:
  v: variable
element:
  v: manufacturer
transform:
  v: cast
parameter:
  value: id
    v: displayName
parameter:
  value: string
    v: string

v: device

v: code

v: vvv

v: deviceRes

v: variable

v: type

v: vvv

v: create

name:
  v: entryRelProcedure
source:
  context:
    v: src
  element:
    v: entryRelationship
  variable:
    v: entryR
rule:
  name:
    v: Parametri
  source:
    context:
      v: entryR
    element:
      v: observation
    variable:
      v: observation
  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
    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: e3
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: obs1
    transform:
      v: create
    parameter:
      value: string
        v: Observation
  target:
    context:
      v: obs1
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid3
    transform:
      v: uuid
  target:
    context:
      v: e3
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/Observation/
    parameter:
      value: id
        v: uuid3
  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: partOf
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Observation/' + %obs1.id
  dependent:
    name:
      v: Observation
    variable:
      v: observation
    variable:
      v: patient
    variable:
      v: encounter
    variable:
      v: obs1
    variable:
      v: bundle
rule:
  name:
    v: act
  source:
    context:
      v: entryR
    element:
      v: act
    variable:
      v: act
  rule:
    name:
      v: note
    source:
      context:
        v: act
      element:
        v: text
      variable:
        v: text
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: note
      variable:
        v: note
    rule:
      name:
        v: text

v: text

v: reference

v: reference

v: note

v: variable

v: text

v: evaluate

value: string
  v: reference.value

name:
  v: ITMethodExt
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: ext
  mode:
    v: target
rule:
  name:
    v: url
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: http://hl7.org/fhir/StructureDefinition/procedure-method
rule:
  name:
    v: value
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: value
    variable:
      v: value
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  dependent:
    name:
      v: CECodeableConcept
    variable:
      v: src
    variable:
      v: value

name:
  v: MedicationAdministration
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: substanceAdministration
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: encounter
  type:
    v: Encounter
  mode:
    v: target
input:
  name:
    v: tgt
  type:
    v: MedicationAdministration
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: reference
  source:
    context:
      v: src
  target:
    context:
      v: tgt
    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: tgt
    context type:
      v: variable
    element:
      v: context
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Encounter/' + %encounter.id
rule:
  name:
    v: status1
  source:
    context:
      v: src
    element:
      v: statusCode
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: status
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: status2
  source:
    context:
      v: src
    condition:
      v: statusCode.exists().not()
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: unknown
rule:
  name:
    v: id
  source:
    context:
      v: src
    element:
      v: id
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: value1
  source:
    context:
      v: src
    element:
      v: effectiveTime
    variable:
      v: effectiveTime
    condition:
      v: (value.exists())
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: effective
    variable:
      v: value
    transform:
      v: create
    parameter:
      value: string
        v: dateTime
  dependent:
    name:
      v: TSDateTime
    variable:
      v: effectiveTime
    variable:
      v: value
rule:
  name:
    v: valuePeriod

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

context:
  v: tgt
context type:
  v: variable
element:
  v: effective
variable:
  v: value
transform:
  v: create
parameter:
  value: string
    v: Period

name:
  v: IVLTSPeriod
variable:
  v: effectiveTime
variable:
  v: value

name:
  v: dosage
source:
  context:
    v: src
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: dosage
  variable:
    v: dosage
rule:
  name:
    v: route
  source:
    context:
      v: src
    element:
      v: routeCode
    variable:
      v: vvv
  target:
    context:
      v: dosage
    context type:
      v: variable
    element:
      v: route
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: repQ
  source:
    context:
      v: src
    element:
      v: repeatNumber
    variable:
      v: repeatNumber
  target:
    context:
      v: dosage
    context type:
      v: variable
    element:
      v: rate
    variable:
      v: value
    transform:
      v: create
    parameter:
      value: string
        v: SimpleQuantity
  dependent:
    name:
      v: PQQuantity
    variable:
      v: repeatNumber
    variable:
      v: value
rule:
  name:
    v: site
  source:
    context:
      v: src
    element:
      v: approachSiteCode
    variable:
      v: vvv
  target:
    context:
      v: dosage
    context type:
      v: variable
    element:
      v: site
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: site
  source:
    context:
      v: src
    element:
      v: targetSiteCode
    variable:
      v: vvv
  target:
    context:
      v: dosage
    context type:
      v: variable
    element:
      v: site
    variable:
      v: vvv
    transform:
      v: create

name:
  v: medication
source:
  context:
    v: src
  element:
    v: consumable
  variable:
    v: consumable
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: medication
  transform:
    v: create
  parameter:
    value: string
      v: Medication
target:
  context:
    v: medication
  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/Medication/
  parameter:
    value: id
      v: uuid1
target:
  context:
    v: request
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: Medication
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: medication
  variable:
    v: medref
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: medref
  context type:
    v: variable