cda2fhirHeader
type: StructureMap
node role: treeRoot
id:
  v: cda2fhirHeader
text:
  status:
    v: generated
  div: map "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader" = "cda2fhirHeader" 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/Section" alias Section as queried uses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as queried uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as produced uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Encounter" alias Encounter as produced uses "http://hl7.org/fhir/StructureDefinition/Person" alias Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as produced uses "http://hl7.org/fhir/StructureDefinition/Specimen" alias Specimen as produced uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as produced uses "http://hl7.org/fhir/cda/StructureDefinition/HealthCareFacility" alias HealthCareFacility as queried imports "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes" group CdaToBundle(source cda : ClinicalDocument, target bundle : Bundle) { cda -> bundle.entry as e, e.request = create('BackboneElement') as request, request.method = 'POST', e.resource = create('Composition') as composition, composition.id = uuid() as uuid1, e.fullUrl = append('https://example/Composition/', uuid1), request.url = 'Composition', bundle.entry as e2, e2.request …
url:
  v: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader
version:
  v: 0.1.0
name:
  v: cda2fhirHeader
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/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/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  mode:
    v: target
  alias:
    v: Bundle
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
  mode:
    v: produced
  alias:
    v: Composition
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  mode:
    v: produced
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter
  mode:
    v: produced
  alias:
    v: Encounter
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Person
    link: http://hl7.org/fhir/StructureDefinition/Person
  mode:
    v: produced
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  mode:
    v: produced
  alias:
    v: Practitioner
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Specimen
    link: http://hl7.org/fhir/StructureDefinition/Specimen
  mode:
    v: produced
  alias:
    v: Specimen
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  mode:
    v: produced
  alias:
    v: Organization
structure:
  url:
    v: http://hl7.org/fhir/cda/StructureDefinition/HealthCareFacility
    link: http://hl7.org/fhir/cda/StructureDefinition/HealthCareFacility
  mode:
    v: queried
  alias:
    v: HealthCareFacility
import:
  v: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes
  link: http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes
group:
  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

v: variable

v: request

v: request

v: create

value: string
  v: BackboneElement

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

context:
  v: e
context type:
  v: variable
element:
  v: resource
variable:
  v: composition
transform:
  v: create
parameter:
  value: string
    v: Composition

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

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

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

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

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

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

context:
  v: e2
context type:
  v: variable
element:
  v: resource
variable:
  v: patient
transform:
  v: create
parameter:
  value: string
    v: Patient

context:
  v: patient
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/Patient/
parameter:
  value: id
    v: uuid2

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

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

context:
  v: request
context type:
  v: variable
element:
  v: method
transform:
  v: copy
parameter:
  value: string
    v: 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: uuid3

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

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

name:
  v: patient
source:
  context:
    v: cda
  element:
    v: recordTarget
  variable:
    v: recordTarget
rule:
  name:
    v: recPat
  source:
    context:
      v: recordTarget
    element:
      v: patientRole
    variable:
      v: patient
  rule:
    name:
      v: record
    source:
      context:
        v: patient
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: patient
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: value
    rule:
      name:
        v: assigningAuthorityName
      documentation:
        v: r -> requestPAT.url = append('Patient?identifier=',ext) "UUID";

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

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

name:
  v: ClinicalDocumentComposition
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: tgt
  type:
    v: Composition
  mode:
    v: target
input:
  name:
    v: patientResource
  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
input:
  name:
    v: DocumentReference
  type:
    v: DocumentReference
  mode:
    v: target
rule:
  name:
    v: languageCode
  source:
    context:
      v: src
    element:
      v: languageCode
    variable:
      v: vvv
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: language
    variable:
      v: vvv
    transform:
      v: create
rule:
  name:
    v: status
  source:
    context:
      v: src
  target:
    context:
      v: DocumentReference
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: current
rule:
  name:
    v: content
  source:
    context:
      v: src
  target:
    context:
      v: DocumentReference
    context type:
      v: variable
    element:
      v: content
    variable:
      v: content
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  rule:
    name:
      v: comp
    source:
      context:
        v: src
    target:
      context:
        v: content
      context type:
        v: variable
      element:
        v: attachment
      variable:
        v: attachment
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: attachment
      context type:
        v: variable
      element:
        v: title
      transform:
        v: copy
      parameter:
        value: string
rule:
  name:
    v: context
  source:
    context:
      v: src
  target:
    context:
      v: DocumentReference
    context type:
      v: variable
    element:
      v: context
    variable:
      v: context
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  rule:
    name:
      v: comp
    source:
      context:
        v: src
    target:
      context:
        v: context
      context type:
        v: variable
      element:
        v: related
      variable:
        v: referenceComp
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: referenceComp
      context type:
        v: variable
      element:
        v: reference
      transform:
        v: evaluate
      parameter:
        value: string
rule:
  name:
    v: identifier
  source:
    context:
      v: src
    element:
      v: id
    variable:
      v: vvv
    condition:
      v: src.setId.exists().not()
  target:
    context:
      v: tgt
    context type:
      v: variable

string
v: Attachment

string
v: string

string
v: Reference

string
v: 'https://example/Composition/' + %tgt.id

v: identifier

v: vvv

v: create

name:
  v: identifier
source:
  context:
    v: src
  element:
    v: setId
  variable:
    v: vvv
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: vvv
  transform:
    v: create

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

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

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

name:
  v: title
source:
  context:
    v: src
  condition:
    v: src.title.exists().not()
rule:
  name:
    v: display
  source:
    context:
      v: src
    element:
      v: code
    variable:
      v: code
  rule:
    name:
      v: displayName
    source:
      context:
        v: code
      element:
        v: displayName
      variable:
        v: display
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: title
      transform:
        v: cast
      parameter:
        value: id
      parameter:
        value: string

id
v: display

string
v: string

name:
  v: effectiveTime
source:
  context:
    v: src
  element:
    v: effectiveTime
  variable:
    v: effectiveTime
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: date
  variable:
    v: value
  transform:
    v: create
  parameter:
    value: string
      v: dateTime
dependent:
  name:
    v: TSDateTime
  variable:
    v: effectiveTime
  variable:
    v: value

name:
  v: versionNumber
source:
  context:
    v: src
  element:
    v: versionNumber
  variable:
    v: versionNumber
  condition:
    v: (value > 1)
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: extension
  variable:
    v: ext2
dependent:
  name:
    v: ChExtEprVersionNumber
  variable:
    v: versionNumber
  variable:
    v: ext2

name:
  v: confidentialityCode
source:
  context:
    v: src
  element:
    v: confidentialityCode
  variable:
    v: vvv
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: confidentiality
  variable:
    v: vvv
  transform:
    v: create

name:
  v: patientRole
source:
  context:
    v: src
  element:
    v: recordTarget
  variable:
    v: recordTarget
rule:
  name:
    v: subject
  source:
    context:
      v: recordTarget
    element:
      v: patientRole
    variable:
      v: patient
  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/' + %patientResource.id
  dependent:
    name:
      v: ClinicalDocumentPatientRole
    variable:
      v: patient
    variable:
      v: patientResource
    variable:
      v: bundle
rule:
  name:
    v: patientRole
  source:
    context:
      v: recordTarget
    element:
      v: patientRole
    variable:
      v: patient
  target:
    context:
      v: DocumentReference
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: reference1
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference1
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: string
        v: 'https://example/Patient/' + %patientResource.id

name:
  v: srcAuthor
source:
  context:
    v: src
  element:
    v: author
  variable:
    v: srcAuthor
rule:
  name:
    v: time
  source:
    context:
      v: srcAuthor
    element:
      v: time
    variable:
      v: time
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: date
rule:
  name:
    v: assignedAuthor
  source:
    context:
      v: srcAuthor
    element:
      v: assignedAuthor
    variable:
      v: assignedAuthor
  rule:
    name:
      v: OIDCF
    source:
      context:
        v: assignedAuthor
      element:
        v: id
      variable:
        v: id
      condition:
        v: (root != '2.16.840.1.113883.2.9.6.3.2')
    rule:
      name:
        v: ParcatitionerROL
    documentation:
      v: Codice Fiscale
  rule:
    name:
      v: oidPartitaIVA
    source:
      context:
        v: assignedAuthor
      element:
        v: id
      variable:
        v: id
      condition:
        v: (root = '2.16.840.1.113883.2.9.6.3.2')
    rule:
      name:
        v: Device
    documentation:
      v: Partita IVA
  rule:
    name:
      v: NullFlavor
    source:
      context:
        v: assignedAuthor
      element:
        v: id
      variable:
        v: id
      condition:
        v: nullFlavor.exists()
    rule:
      name:
        v: Device
    documentation:
      v: ID nullFlavor
rule:
  name:
    v: DataEnter
  source:
    context:
      v: src
    element:
      v: dataEnterer
    variable:
      v: dataEnt
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e6
  target:
    context:
      v: e6
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e6
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: practitionerRole
    transform:
      v: create
    parameter:
      value: string
        v: PractitionerRole
  target:
    context:
      v: practitionerRole
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid1
    transform:
      v: uuid
  target:
    context:
      v: e6
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/PractitionerRole/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: PractitionerRole
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: author
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable

v: assignedAuthor

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

v: create

value: string
  v: PractitionerRole

v: practitionerRole

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

v: tgt

v: variable

v: author

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

v: ASSAUth

context:
  v: assignedAuthor

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

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

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

context:
  v: e2
context type:
  v: variable
element:
  v: resource
variable:
  v: practitioner
transform:
  v: create
parameter:
  value: string
    v: Practitioner

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

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

string
v: ClinicalDocument/author

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

name:
  v: identifier
source:
  context:
    v: assignedAuthor
  element:
    v: id
  variable:
    v: id
target:
  context:
    v: practitioner
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: identifier
rule:
  name:
    v: root1
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: system
    transform:
      v: translate
    parameter:
      value: id
        v: r
    parameter:
      value: string
        v: http://hl7.org/fhir/ConceptMap/special-oid2uri
    parameter:
      value: string
        v: uri
rule:
  name:
    v: extension
  source:
    context:
      v: id
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: id
        v: ext
rule:
  name:
    v: assigningAuthorityName
  source:
    context:
      v: id
    element:
      v: assigningAuthorityName
    variable:
      v: s
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: assigner
    variable:
      v: a
  target:
    context:
      v: a
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: s
  documentation:
    v: then {
rule:
  name:
    v: r
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  rule:
    name:
      v: aut
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid2
      transform:
        v: evaluate
      parameter:
        value: string
    target:
      context:
        v: e2
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
    target:
      context:
        v: practitionerRole
      context type:
        v: variable
      element:
        v: practitioner
      variable:
        v: reference
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: reference
      context type:
        v: variable
      element:
        v: reference
      transform:
        v: evaluate
      parameter:
        value: string

string
v: r + '-' + ext

id
v: uuid2

string
v: Reference

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

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

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

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

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

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

id
v: date

integer
v: 10

name:
  v: refAuth
source:
  context:
    v: assignedAuthor
target:
  context:
    v: DocumentReference
  context type:
    v: variable
  element:
    v: author
  variable:
    v: referenceAuth
  transform:
    v: create
  parameter:
    value: string
      v: Reference
target:
  context:
    v: referenceAuth
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: string
      v: 'https://example/Practitioner/' + %practitioner.id

v: assignedAuthor.code as codice -> practitionerRole.code as code2 then CECodeableConcept(codice,code2);

v: representedOrganization

context:
  v: assignedAuthor
element:
  v: representedOrganization
variable:
  v: representedOrganization

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

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

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

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

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

string
v: Organization?identifier=

id
v: ext

string
v: r + '-' + ext

id
v: uuid3

string
v: Reference

id
v: uuid3

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

string
v: ClinicalDocument/author/representedOrganization

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

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

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

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

string
v: Coding

v: OrgPartOf

v: coding

v: variable

v: system

v: copy

v: OrgPartOf

v: coding

v: variable

v: code

v: copy

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

id
v: r

string
v: uri

id
v: ext

v: OrgPartOf

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

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

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

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

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

string
v: Coding

v: wholeOrgan

v: coding

v: variable

v: system

v: copy

v: wholeOrgan

v: coding

v: variable

v: code

v: copy

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

id
v: r

string
v: uri

id
v: ext

v: wholeOrgan

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

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

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

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

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

v: assignedAuthor

v: bundle

v: variable

v: entry

v: e6bis3

v: e6bis3

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

v: variable

v: resource

v: device

v: create

value: string
  v: Device

v: device

v: variable

v: id

v: uuid6bis3

v: uuid

v: e6bis3

v: variable

v: fullUrl

v: append

value: id
  v: uuid6bis3

v: request

v: variable

v: url

v: copy

value: string
  v: Device

v: tgt

v: variable

v: author

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

v: OrgPartitaIVA

context:
  v: assignedAuthor

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

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

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

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

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

string
v: ClinicalDocument/AuthorPartitaIVA

name:
  v: identifier
source:
  context:
    v: assignedAuthor
  element:
    v: id
  variable:
    v: id
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: identifier
rule:
  name:
    v: root1
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: system
    transform:
      v: translate
    parameter:
      value: id
        v: r
    parameter:
      value: string
        v: http://hl7.org/fhir/ConceptMap/special-oid2uri
    parameter:
      value: string
        v: uri
rule:
  name:
    v: ext
  source:
    context:
      v: id
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: id
        v: ext
  rule:
    name:
      v: UUID
    source:
      context:
        v: assignedAuthor
    target:
      context:
        v: request
      context type:
        v: variable
      element:
        v: url
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
rule:
  name:
    v: assigningAuthorityName
  source:
    context:
      v: id
    element:
      v: assigningAuthorityName
    variable:
      v: s
  target:
    context:
      v: identifier
    context type:
      v: variable
    element:
      v: assigner
    variable:
      v: a
  target:
    context:
      v: a
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: s
rule:
  name:
    v: r
  source:
    context:
      v: id
    element:
      v: root
    variable:
      v: r
  rule:
    name:
      v: extension
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: organization
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid2
      transform:
        v: evaluate
      parameter:
        value: string
    target:
      context:
        v: e251
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: string
      parameter:
        value: id
    target:
      context:
        v: device
      context type:
        v: variable
      element:
        v: owner
      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

string
v: Organization?identifier=

id
v: ext

string
v: r + '-' + ext

id
v: uuid2

string
v: Reference

string
v: 'https://example/Organization/' + %organization.id

v: assignedAuthor

v: assignedAuthoringDevice

v: assignedAuthoringDevice

v: bundle

v: variable

v: entry

v: e6bis

v: e6bis

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

v: variable

v: resource

v: device

v: create

value: string
  v: Device

v: device

v: variable

v: id

v: uuid6bis

v: uuid

v: e6bis

v: variable

v: fullUrl

v: append

value: id
  v: uuid6bis

v: request

v: variable

v: url

v: copy

value: string
  v: Device

v: tgt

v: variable

v: author

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

v: code

context:
  v: assignedAuthoringDevice
element:
  v: code
variable:
  v: vvv

context:
  v: device
context type:
  v: variable
element:
  v: type
variable:
  v: vvv
transform:
  v: create

v: assignedAuthoringDevice.templateId -> device.identifier;

v: manufacturer

context:
  v: assignedAuthoringDevice
element:
  v: manufacturerModelName
variable:
  v: manufacturerModelName

name:
  v: displayRule
source:
  context:
    v: manufacturerModelName
  variable:
    v: m
target:
  context:
    v: device
  context type:
    v: variable
  element:
    v: manufacturer
  transform:
    v: evaluate
  parameter:
    value: string
      v: m.displayName

v: deviceName

context:
  v: assignedAuthoringDevice
element:
  v: softwareName
variable:
  v: softwareName

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

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

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

v: reference

v: evaluate

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

name:
  v: time
source:
  context:
    v: dataEnt
  element:
    v: time
  variable:
    v: time
target:
  context:
    v: tgt
  context type:
    v: variable
  element:
    v: date

name:
  v: AssignedEntity
source:
  context:
    v: dataEnt
  element:
    v: assignedEntity
  variable:
    v: assignedEntity
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: PUT
target:
  context:
    v: e7
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: practitioner
  transform:
    v: create
  parameter:
    value: string
      v: Practitioner
rule:
  name:
    v: meta
  source:
    context:
      v: assignedEntity
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: meta
  rule:
    name:
      v: coding
    source:
      context:
        v: assignedEntity
    target:
      context:
        v: meta
      context type:
        v: variable
      element:
        v: tag
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: system
    rule:
      name:
        v: code
rule:
  name:
    v: code
  source:
    context:
      v: assignedEntity
    element:
      v: code
    variable:
      v: codice
  target:
    context:
      v: practitionerRole
    context type:
      v: variable
    element:
      v: code
    variable:
      v: code2
  dependent:
    name:
      v: CECodeableConcept
    variable:
      v: codice
    variable:
      v: code2
rule:
  name:
    v: identifier
  source:
    context:
      v: assignedEntity
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: identifier
    variable:
      v: identifier
  rule:
    name:
      v: root1
    source:
      context:
        v: id
      element:
        v: root
      variable:
        v: r
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: system
      transform:
        v: translate
      parameter:
        value: id
      parameter:
        value: string
      parameter:
        value: string
  rule:
    name:
      v: extension
    source:
      context:
        v: id
      element:
        v: extension
      variable:
        v: ext
    target:
      context:
        v: identifier
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: assigningAuthorityName
    source:
      context:
        v: id
      element:
        v: assigningAuthorityName
      variable:
        v: s
    target:
      context:
        v: identifier
      context type:
        v: variable

string
v: Coding

v: assignedEntity

v: coding

v: variable

v: system

v: copy

v: assignedEntity

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/dataEnterer

id
v: r

string
v: uri

id
v: ext

v: assigner

v: a

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

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

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

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

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

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

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

id
v: date

integer
v: 10

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

string
v: Coding

v: representedOrganization

v: coding

v: variable

v: system

v: copy

v: representedOrganization

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/dataEnterer/representedOrganization

id
v: r

string
v: uri

id
v: ext

v: representedOrganization

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

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

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

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

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

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

string
v: Coding

v: OrgPartOf

v: coding

v: variable

v: system

v: copy

v: OrgPartOf

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/dataEnterer/representedOrganization/asOrganizationPartOf

id
v: r

string
v: uri

id
v: ext

v: OrgPartOf

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

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

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

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

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

string
v: Coding

v: wholeOrgan

v: coding

v: variable

v: system

v: copy

v: wholeOrgan

v: coding

v: variable

v: code

v: copy

value: string
  v: ClinicalDocument/dataEnterer/representedOrganization/asOrganizationPartOf/wholeOrganization

id
v: r

string
v: uri

id
v: ext

v: wholeOrgan

v: request

v: variable

v: url

v: append

value: string
  v: Organization?identifier=

value: id
  v: ext

id
v: s

v: r

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

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

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

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

v: START DATA ENTER

v: START AUTHOR

name:
  v: inform
source:
  context:
    v: src
  element:
    v: informant
  variable:
    v: informant
rule:
  name:
    v: informant
  source:
    context:
      v: informant
    element:
      v: assignedEntity
    variable:
      v: assignedEntity
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e11
  target:
    context:
      v: e11
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
  target:
    context:
      v: e11
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: practitionerRole
    transform:
      v: create
    parameter:
      value: string
        v: PractitionerRole
  target:
    context:
      v: practitionerRole
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid1
    transform:
      v: uuid
  target:
    context:
      v: e11
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/PractitionerRole/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: PractitionerRole
  rule:
    name:
      v: attester
    source:
      context:
        v: informant
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: attester
      variable:
        v: attester
    rule:
      name:
        v: mode
    rule:
      name:
        v: reference
    rule:
      name:
        v: code
    rule:
      name:
        v: assignedEntity
documentation:
  v: START INFORMANT 1

v: informant

v: attester

v: variable

v: mode

v: copy

value: string
  v: professional

v: informant

v: attester

v: variable

v: party

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

v: assignedEntity

v: code

v: vvv

v: practitionerRole

v: variable

v: code

v: vvv

v: create

v: assignedEntity

v: entity

v: bundle

v: variable

v: entry

v: e12

v: e12

v: variable

v: request

v: request

v: create

value: string
  v: BackboneElement

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: e12

v: variable

v: resource

v: practitioner

v: create

value: string
  v: Practitioner

v: meta

context:
  v: entity

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

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

v: identifier

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

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

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

name:
  v: extension
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: identifier
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: id
      v: ext

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

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

v: 2.16.840.1.113883.2.9.4.3.2

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

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

v: diverso

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

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

v: addr

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

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

v: telecom

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

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

v: person

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

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

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

v: organization

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

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

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

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

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

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

string
v: ClinicalDocument/informant/representedOrganization

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

string
v: Organization?identifier=

id
v: ext

string
v: r + '-' + ext

id
v: uuid3

string
v: Reference

string
v: 'https://example/Organization/' + %organization.id

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

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

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

name:
  v: qualification
source:
  context:
    v: representedOrganization
  element:
    v: asOrganizationPartOf
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: partOf
  variable:
    v: partOf
rule:
  name:
    v: partOf
  source:
    context:
      v: representedOrganization
    element:
      v: asOrganizationPartOf
    variable:
      v: organizationPartOf
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e14
  target:
    context:
      v: e14
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: PUT
  target:
    context:
      v: e14
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: organization1
    transform:
      v: create
    parameter:
      value: string
        v: Organization
  rule:
    name:
      v: meta
    source:
      context:
        v: organizationPartOf
    target:
      context:
        v: organization1
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
  rule:
    name:
      v: identifier
    source:
      context:
        v: organizationPartOf
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: organization1
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: root1
    rule:
      name:
        v: ext
    rule:
      name:
        v: assigningAuthorityName
    rule:
      name:
        v: r
  rule:
    name:
      v: code
    source:
      context:
        v: organizationPartOf
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: organization1
      context type:
        v: variable
      element:
        v: type
      variable:
        v: vvv
      transform:
        v: create
  rule:
    name:
      v: statusCode
    source:
      context:
        v: organizationPartOf
      element:
        v: statusCode
      variable:
        v: status
      condition:
        v: (code = 'active')
    target:
      context:
        v: organization1
      context type:
        v: variable
      element:
        v: active
      transform:
        v: create
      parameter:
        value: string
    target:
      context:
        v: organization1
      context type:
        v: variable
      element:
        v: active
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: asOrganizationPartOf
    source:
      context:
        v: organizationPartOf
      element:
        v: wholeOrganization
    target:
      context:
        v: organization1
      context type:
        v: variable
      element:
        v: partOf
      variable:
        v: partOf1
    rule:
      name:
        v: wholeOrganization

v: organizationPartOf

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: organizationPartOf

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

v: code

context:
  v: organizationPartOf

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: ClinicalDocument/informant/representedOrganization/asOrganizationPartOf

v: id

v: root

v: r

v: identifier

v: variable

v: system

v: translate

value: id
  v: r

value: string
  v: uri

v: id

v: extension

v: ext

v: identifier

v: variable

v: value

v: copy

value: id
  v: ext

v: UUID

context:
  v: organizationPartOf

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

v: id

v: assigningAuthorityName

v: s

v: identifier

v: variable

v: assigner

v: a

v: a

v: variable

v: display

v: copy

value: id
  v: s

v: id

v: root

v: r

v: extension

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

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

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

context:
  v: organization
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/Organization/' + %organization1.id

string
v: boolean

string
v: true

v: organizationPartOf

v: wholeOrganization

v: wholeOrganization

v: bundle

v: variable

v: entry

v: e15

v: e15

v: variable

v: request

v: request

v: create

value: string
  v: BackboneElement

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: e15

v: variable

v: resource

v: organization2

v: create

value: string
  v: Organization

v: meta

context:
  v: wholeOrganization

context:
  v: organization2
context type:
  v: variable
element:
  v: meta
variable:
  v: meta

name:
  v: coding
source:
  context:
    v: wholeOrganization
target:
  context:
    v: meta
  context type:
    v: variable
  element:
    v: tag
  variable:
    v: coding
  transform:
    v: create
  parameter:
    value: string
      v: Coding
rule:
  name:
    v: system
  source:
    context:
      v: wholeOrganization
  target:
    context:
      v: coding
    context type:
      v: variable
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: string
        v: http://algoritmodiscoring
rule:
  name:
    v: code
  source:
    context:
      v: wholeOrganization
  target:
    context:
      v: coding
    context type:
      v: variable
    element:
      v: code
    transform:
      v: copy
    parameter:
      value: string
        v: ClinicalDocument/informant/representedOrganization/asOrganizationPartOf/wholeOrganization

v: identifier

context:
  v: wholeOrganization
element:
  v: id
variable:
  v: id

context:
  v: organization2
context type:
  v: variable
element:
  v: identifier
variable:
  v: identifier

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

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

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

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

v: name

context:
  v: wholeOrganization
element:
  v: name
variable:
  v: v

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

v: telecom

context:
  v: wholeOrganization
element:
  v: telecom
variable:
  v: vvv

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

v: addr

context:
  v: wholeOrganization
element:
  v: addr
variable:
  v: vvv

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

name:
  v: inform2
source:
  context:
    v: src
  element:
    v: informant
  variable:
    v: informant
rule:
  name:
    v: informant
  source:
    context:
      v: informant
    element:
      v: relatedEntity
    variable:
      v: related
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e16
  target:
    context:
      v: e16
    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: e16
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: relatedPerson
    transform:
      v: create
    parameter:
      value: string
        v: RelatedPerson
  target:
    context:
      v: relatedPerson
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid1
    transform:
      v: uuid
  target:
    context:
      v: e16
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: https://example/RelatedPerson/
    parameter:
      value: id
        v: uuid1
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: RelatedPerson
  rule:
    name:
      v: relatedPerson
    source:
      context:
        v: informant
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: attester
      variable:
        v: attester
    rule:
      name:
        v: mode
    rule:
      name:
        v: reference
    rule:
      name:
        v: relatedPerson1
documentation:
  v: START INFORMANT 2

v: informant

v: attester

v: variable

v: mode

v: copy

value: string
  v: professional

v: informant

v: attester

v: variable

v: party

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

value: string
  v: 'https://example/RelatedPerson/' + %relatedPerson.id

v: related

v: relatedPerson

v: Person

v: code

context:
  v: related
element:
  v: code
variable:
  v: vvv

context:
  v: relatedPerson
context type:
  v: variable
element:
  v: relationship
variable:
  v: vvv
transform:
  v: create

v: telecom

context:
  v: related
element:
  v: telecom
variable:
  v: vvv

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

v: addr

context:
  v: related
element:
  v: addr
variable:
  v: vvv

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

v: name

context:
  v: Person
element:
  v: name
variable:
  v: vvv

context:
  v: relatedPerson
context type:
  v: variable
element:
  v: name
variable:
  v: vvv
transform:
  v: create

v: birthinformant

context:
  v: related
element:
  v: birthTime
variable:
  v: date

name:
  v: valueD
source:
  context:
    v: date
  element:
    v: value
  variable:
    v: value
target:
  context:
    v: relatedPerson
  context type:
    v: variable
  element:
    v: birthDate
  transform:
    v: truncate
  parameter:
    value: id
      v: value
  parameter:
    value: integer
      v: 10

v: reference

context:
  v: related

context:
  v: relatedPerson
context type:
  v: variable
element:
  v: patient
variable:
  v: reference
transform:
  v: create
parameter:
  value: string
    v: Reference

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

name:
  v: custodian
source:
  context:
    v: src
  element:
    v: custodian
  variable:
    v: custodian
rule:
  name:
    v: organization
  source:
    context:
      v: custodian
    element:
      v: assignedCustodian
    variable:
      v: assignedCustodian
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e17
  target:
    context:
      v: e17
    context type:
      v: variable
    element:
      v: request
    variable:
      v: request
    transform:
      v: create
    parameter:
      value: string
        v: BackboneElement
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: PUT
  target:
    context:
      v: e17
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: Organization
    transform:
      v: create
    parameter:
      value: string
        v: Organization
  rule:
    name:
      v: meta
    source:
      context:
        v: assignedCustodian
    target:
      context:
        v: Organization
      context type:
        v: variable
      element:
        v: meta
      variable:
        v: meta
    rule:
      name:
        v: coding
  rule:
    name:
      v: representedCustodianOrganization
    source:
      context:
        v: assignedCustodian
      element:
        v: representedCustodianOrganization
      variable:
        v: representedCustodianOrganization
    rule:
      name:
        v: identifier
    rule:
      name:
        v: RefCustodian
    rule:
      name:
        v: custodian1
documentation:
  v: START CUSTODIAN

v: assignedCustodian

v: meta

v: variable

v: tag

v: coding

v: create

value: string
  v: Coding

v: system

context:
  v: assignedCustodian

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

v: code

context:
  v: assignedCustodian

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

v: representedCustodianOrganization

v: id

v: id

v: Organization

v: variable

v: identifier

v: identifier

v: root1

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

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

v: ext

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

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

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

v: assigningAuthorityName

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

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

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

v: r

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

name:
  v: extension
source:
  context:
    v: id
  element:
    v: extension
  variable:
    v: ext
target:
  context:
    v: Organization
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid
  transform:
    v: evaluate
  parameter:
    value: string
      v: r + '-' + ext
target:
  context:
    v: e17
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: string
      v: https://example/Organization/
  parameter:
    value: id
      v: uuid

v: assignedCustodian

v: DocumentReference

v: variable

v: custodian

v: referenceCU

v: create

value: string
  v: Reference

v: referenceCU

v: variable

v: reference

v: evaluate

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

v: representedCustodianOrganization

v: tgt

v: variable

v: custodian

v: reference

v: create

value: string
  v: Reference

v: reference

v: variable

v: reference

v: evaluate

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

v: CustodianOrganization

v: representedCustodianOrganization

v: Organization

name:
  v: informationRecipent
source:
  context:
    v: src
  element:
    v: informationRecipient
  variable:
    v: informationRecipient
rule:
  name:
    v: intendedRecipent
  source:
    context:
      v: informationRecipient
    element:
      v: intendedRecipient
    variable:
      v: intendedRecipient
  rule:
    name:
      v: attesterOrg
    source:
      context:
        v: intendedRecipient
      element:
        v: informationRecipient
      variable:
        v: informationRecipient2
    rule:
      name:
        v: intendedRecipienPract

v: informationRecipient

v: tgt

v: variable

v: attester

v: attester

v: mode

context:
  v: informationRecipient2

context:
  v: attester
context type:
  v: variable
element:
  v: mode
transform:
  v: copy
parameter:
  value: string
    v: professional

v: PersonRecipient

context:
  v: informationRecipient2

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

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

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

context:
  v: e19
context type:
  v: variable
element:
  v: resource
variable:
  v: practitioner
transform:
  v: create
parameter:
  value: string
    v: Practitioner

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