CdaFrToBundle
type: StructureMap
node role: treeRoot
id:
  v: CdaFrToBundle
text:
  status:
    v: generated
  div:
    v: Narratif généré : StructureMap CdaFrToBundle #xD; map "https://interop.esante.gouv.fr/ig/fhir/mappingcdafhir/StructureMap/CdaFrToBundle" = "CdaFrToBundle"#xD; #xD; // Mapping de CDAFr vers FHIR Bundle (A partir des sources de Oliver Egger)#xD; #xD; uses "http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source#xD; uses "http://hl7.org/cda/stds/core/StructureDefinition/Section" alias Section as source#xD; uses "http://hl7.org/cda/stds/core/StructureDefinition/PatientRole" alias PatientRole as source#xD; uses "http://hl7.org/cda/stds/core/StructureDefinition/DataEnterer" alias DataEnterer as source#xD; uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Person" alias Person as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as target#xD; uses "http://hl7.org/fhir/StructureDefinition/PractitionerRole" alias PractitionerRole as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as target#xD; #xD; imports "https://interop.esante.gouv.fr/ig/fhir/mappingcdafhir/StructureMap/CdaToFHIRTypes"#xD; imports "https://interop.esante.gouv.fr/ig/fhir/mappingcdafhir/StructureMap/CdaToBundle"#xD; #xD; // _________________________ Document Level Template _________________________#xD; // source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14#xD; // target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-document.html#xD; group CdaFrToBundle(source cda : ClinicalDocument, target bundle : Bundle) {#xD; cda -> bundle.entry as e, e.resource = create('Composition') as composition, composition.id = uuid() as uuid, e.fullUrl = append('urn:uuid:', uuid),…
url:
  v: https://interop.esante.gouv.fr/ig/fhir/mappingcdafhir/StructureMap/CdaFrToBundle
  l: CdaFrToBundle
version:
  v: 0.1.0
name:
  v: CdaFrToBundle
title:
  v: Mapping de CDAFr vers FHIR Bundle (A partir des sources de Oliver Egger)
status:
  v: draft
date:
  v: 2026-02-09T11:09:38+00:00
publisher:
  v: Agence du Numérique en Santé (ANS) - 2-10 Rue d'Oradour-sur-Glane, 75015 Paris
contact:
  name:
    v: Agence du Numérique en Santé (ANS) - 2-10 Rue d'Oradour-sur-Glane, 75015 Paris
  telecom:
    system:
      v: url
    value:
      v: https://esante.gouv.fr
description:
  v: Mapping de CDAFr vers FHIR Bundle (A partir des sources de Oliver Egger)
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: FR
    display:
      v: FRANCE
structure:
  url:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument
    l: ClinicalDocument
  mode:
    v: source
  alias:
    v: ClinicalDocument
structure:
  url:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Section
    l: Section
  mode:
    v: source
  alias:
    v: Section
structure:
  url:
    v: http://hl7.org/cda/stds/core/StructureDefinition/PatientRole
    l: PatientRole
  mode:
    v: source
  alias:
    v: PatientRole
structure:
  url:
    v: http://hl7.org/cda/stds/core/StructureDefinition/DataEnterer
    l: DataEnterer
  mode:
    v: source
  alias:
    v: DataEnterer
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Bundle
    l: Bundle
  mode:
    v: target
  alias:
    v: Bundle
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Composition
    l: Composition
  mode:
    v: target
  alias:
    v: Composition
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  mode:
    v: target
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Person
    l: Person
  mode:
    v: target
  alias:
    v: Person
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  mode:
    v: target
  alias:
    v: Practitioner
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  mode:
    v: target
  alias:
    v: PractitionerRole
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
  mode:
    v: target
  alias:
    v: Organization
import:
  v: https://interop.esante.gouv.fr/ig/fhir/mappingcdafhir/StructureMap/CdaToFHIRTypes
  l: CdaToFHIRTypes
import:
  v: https://interop.esante.gouv.fr/ig/fhir/mappingcdafhir/StructureMap/CdaToBundle
  l: CdaToBundle
group:
  name:
    v: CdaFrToBundle
  type mode:
    v: none
  documentation:
    v: _________________________ Document Level Template _________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-document.html
  input:
    name:
      v: cda
    type:
      v: ClinicalDocument
    mode:
      v: source
  input:
    name:
      v: bundle
    type:
      v: Bundle
    mode:
      v: target
  rule:
    name:
      v: ClinicalDocumentToBody
    source:
      context:
        v: cda
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: composition
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: composition
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid
      transform:
        v: uuid
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: fullUrl

String
v: Composition

v: append

value: String
  v: urn:uuid:

value: Id
  v: uuid

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

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: urn:uuid:
parameter:
  value: Id
    v: uuid2

name:
  v: ClinicalDocumentFrToBundle
variable:
  v: cda
variable:
  v: patient
variable:
  v: composition
variable:
  v: bundle

name:
  v: SectionOriginalRepresentation
extends:
  v: ClinicalDocumentSection
type mode:
  v: none
documentation:
  v: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-document.html group ClinicalDocumentFrToBundle(source cda : ClinicalDocument, target patient : Patient, target composition : Composition, target bundle : Bundle) extends ClinicalDocumentToBundle { cda then ClinicalDocumentCompositionFr(cda, composition, patient, bundle) "composition"; cda.component as component then { component.structuredBody as body then { body.component as component then { component.section as srcSection where (templateId.where(root='2.16.756.5.30.1.1.10.3.2')) -> composition.section as tgtSection then ClinicalDocumentSection(cda, srcSection, patient, tgtSection, bundle); component.section as srcSection where (templateId.where(root='2.16.756.5.30.1.1.10.3.45')) -> composition.section as tgtSection then SectionOriginalRepresentation(cda, srcSection, patient, tgtSection, bundle); } "component"; } "body"; } "component"; } _________________________ Section Level Templates _________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-composition-definitions.html#Composition.section TODO: not excplicitly modeled in CH-Core
input:
  name:
    v: cda
  type:
    v: ClinicalDocument
  mode:
    v: source
input:
  name:
    v: src
  type:
    v: Section
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: cdaEntry
  source:
    context:
      v: src
    element:
      v: entry
    variable:
      v: cdaEntry
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: binary
    transform:
      v: create
    parameter:
      value: String
        v: Binary
  target:
    context:
      v: binary
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid
    transform:
      v: uuid
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: fullUrl
    variable:
      v: urnuuid
    transform:
      v: append
    parameter:
      value: String
        v: urn:uuid:
    parameter:
      value: Id
        v: uuid
  target:
    context:
      v: tgt
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: reference
    transform:
      v: create
    parameter:
      value: String
        v: Reference
  target:
    context:
      v: reference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: copy
    parameter:
      value: Id
        v: urnuuid
  rule:
    name:
      v: observationMedia
    source:
      context:
        v: cdaEntry
      element:
        v: observationMedia
      variable:
        v: observationMedia
    rule:
      name:
        v: observationMedia
    rule:
      name:
        v: narrativeLink

v: observationMedia

v: ObservationMedia

v: observationMedia

v: binary

v: observationMedia

v: ID

v: value

v: reference

v: variable

v: extension

v: ext

v: NarrativeLink

v: value

v: ext

name:
  v: ObservationMedia
type mode:
  v: none
documentation:
  v: _________________________ Entry Level Templates ________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.4.83 TODO: not excplicitly modeled in CH-Core
input:
  name:
    v: observationMedia
  mode:
    v: source
input:
  name:
    v: binary
  type:
    v: Binary
  mode:
    v: target
rule:
  name:
    v: value
  source:
    context:
      v: observationMedia
    element:
      v: value
    variable:
      v: value
  rule:
    name:
      v: contentType
    source:
      context:
        v: value
      element:
        v: mediaType
      variable:
        v: mediaType
    target:
      context:
        v: binary
      context type:
        v: variable
      element:
        v: contentType
      transform:
        v: copy
      parameter:
        value: Id
  rule:
    name:
      v: dataString
    source:
      context:
        v: value
    target:
      context:
        v: binary
      context type:
        v: variable
      element:
        v: data
      transform:
        v: evaluate
      parameter:
        value: String
rule:
  name:
    v: languageCode
  source:
    context:
      v: observationMedia
    element:
      v: languageCode
    variable:
      v: languageCode
  rule:
    name:
      v: lang
    source:
      context:
        v: languageCode
      element:
        v: code
      variable:
        v: lang
    target:
      context:
        v: binary
      context type:
        v: variable
      element:
        v: language
      transform:
        v: copy
      parameter:
        value: Id

Id
v: mediaType

String
v: value.dataBase64Binary

Id
v: lang

name:
  v: ChExtEprConfidentialityCode
type mode:
  v: none
documentation:
  v: _________________________ Header Level Templates _________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-confidentialitycode.html
input:
  name:
    v: src
  type:
    v: CE
  mode:
    v: source
input:
  name:
    v: ext
  type:
    v: Extension
  mode:
    v: target
rule:
  name:
    v: url
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode
rule:
  name:
    v: code
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: value
    variable:
      v: value
    transform:
      v: create
    parameter:
      value: String
        v: CodeableConcept
  dependent:
    name:
      v: CECodeableConcept
    variable:
      v: src
    variable:
      v: value

name:
  v: ChExtEprInformationRecipient
type mode:
  v: none
documentation:
  v: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-informationrecipient.html
input:
  name:
    v: src
  type:
    v: IntendedRecipient
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: ext
  type:
    v: Extension
  mode:
    v: target
rule:
  name:
    v: url
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient
rule:
  name:
    v: value
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: value
    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: 'urn:uuid:' + %patient.id
rule:
  name:
    v: address
  source:
    context:
      v: src
    element:
      v: addr
    variable:
      v: addr
  target:
    context:
      v: patient
    context type:
      v: variable
    element:
      v: address
    variable:
      v: address
  dependent:
    name:
      v: ADAddress
    variable:
      v: addr
    variable:
      v: address
rule:
  name:
    v: informationRecipient
  source:
    context:
      v: src
    element:
      v: informationRecipient
    variable:
      v: informationRecipient
  rule:
    name:
      v: name
    source:
      context:
        v: informationRecipient
      element:
        v: name
      variable:
        v: cdaname
    target:
      context:
        v: patient
      context type:
        v: variable
      element:
        v: name
      variable:
        v: fhirname
    dependent:
      name:
        v: ENHumanName
      variable:
        v: cdaname
      variable:
        v: fhirname

name:
  v: ChExtEprInformationRecipientOrganization
type mode:
  v: none
documentation:
  v: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-informationrecipient.html
input:
  name:
    v: src
  type:
    v: IntendedRecipient
  mode:
    v: source
input:
  name:
    v: organization
  type:
    v: Organization
  mode:
    v: target
input:
  name:
    v: ext
  type:
    v: Extension
  mode:
    v: target
rule:
  name:
    v: url
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient
rule:
  name:
    v: value
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: value
    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: 'urn:uuid:' + %organization.id
rule:
  name:
    v: organization
  source:
    context:
      v: src
    element:
      v: receivedOrganization
    variable:
      v: receivedOrganization
  dependent:
    name:
      v: ClinicalDocumentOrganization
    variable:
      v: receivedOrganization
    variable:
      v: organization

name:
  v: ChExtEprDataEnterer
type mode:
  v: none
documentation:
  v: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?section=templates&id=2.16.756.5.30.1.1.10.2.7 target: http://build.fhir.org/ig/hl7ch/ch-core/StructureDefinition-ch-ext-epr-dataenterer.html
input:
  name:
    v: src
  type:
    v: DataEnterer
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: practitionerRole
  type:
    v: PractitionerRole
  mode:
    v: target
input:
  name:
    v: ext
  type:
    v: Extension
  mode:
    v: target
rule:
  name:
    v: url
  source:
    context:
      v: src
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer
rule:
  name:
    v: PractitionerRole
  source:
    context:
      v: src
    element:
      v: assignedEntity
    variable:
      v: assignedEntity
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: extension
    variable:
      v: ext
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: enterer
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: value
    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: 'urn:uuid:' + %practitionerRole.id
rule:
  name:
    v: time
  source:
    context:
      v: src
    element:
      v: time
    variable:
      v: time
  target:
    context:
      v: ext
    context type:
      v: variable
    element:
      v: extension
    variable:
      v: exttime
  dependent:
    name:
      v: ChExtEprTime
    variable:
      v: time
    variable:
      v: exttime
rule:
  name:
    v: assignedEntity
  source:
    context:
      v: src
    element:
      v: assignedEntity
    variable:
      v: assignedEntity
  rule:
    name:
      v: Practitioner
    source:
      context:
        v: assignedEntity
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: practitioner
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid
      transform:
        v: uuid
    target:
      context:
        v: e
      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

String
v: Practitioner

String
v: urn:uuid:

Id
v: uuid

v: reference

v: create

value: String
  v: Reference

context:
  v: reference
context type:
  v: variable
element:
  v: reference
transform:
  v: append
parameter:
  value: String
    v: urn:uuid:
parameter:
  value: Id
    v: uuid

name:
  v: ClinicalDocumentEntityPractitioner
variable:
  v: assignedEntity
variable:
  v: practitioner

name:
  v: Organization
source:
  context:
    v: assignedEntity
  element:
    v: representedOrganization
  variable:
    v: representedOrganization
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e
target:
  context:
    v: e
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: organization
  transform:
    v: create
  parameter:
    value: String
      v: Organization
target:
  context:
    v: organization
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid2
  transform:
    v: uuid
target:
  context:
    v: e
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: String
      v: urn:uuid:
  parameter:
    value: Id
      v: uuid2
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: urn:uuid:
  parameter:
    value: Id
      v: uuid2
dependent:
  name:
    v: ClinicalDocumentOrganization
  variable:
    v: representedOrganization
  variable:
    v: organization

name:
  v: ClinicalDocumentCompositionFr
type mode:
  v: none
documentation:
  v: // _________________________ Template Type not specified ___________________ // source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 // target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-composition-epr.html
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: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: confidentialityCode
  source:
    context:
      v: src
    element:
      v: confidentialityCode
    variable:
      v: confidentialityCode
  rule:
    name:
      v: confCode
    source:
      context:
        v: confidentialityCode
      element:
        v: code
      variable:
        v: v
      condition:
        v: ('http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.confidentialityCode'.resolve().compose.include.concept.where($this.code = src.confidentialityCode.code).exists())
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: confidentiality
      variable:
        v: fhirconf
      transform:
        v: translate
      parameter:
        value: Id
      parameter:
        value: String
      parameter:
        value: String
    target:
      context:
        v: fhirconf
      context type:
        v: variable
      element:
        v: extension
      variable:
        v: ext
    dependent:
      name:
        v: ChExtEprConfidentialityCode
      variable:
        v: confidentialityCode
      variable:
        v: ext
rule:
  name:
    v: entry
  source:
    context:
      v: src
    element:
      v: informationRecipient
    variable:
      v: informationRecipient
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e
  rule:
    name:
      v: informationRecipient
    source:
      context:
        v: informationRecipient
      element:
        v: intendedRecipient
      variable:
        v: intendedRecipient
      condition:
        v: $this.receivedOrganization.exists() = false
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: recipient
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: recipient
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid
      transform:
        v: uuid
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: append
      parameter:
        value: String
      parameter:
        value: Id
    target:
      context:
        v: tgt
      context type:
        v: variable
      element:
        v: extension
      variable:
        v: ext
    dependent:
      name:
        v: ChExtEprInformationRecipient
      variable:
        v: intendedRecipient
      variable:
        v: recipient
      variable:
        v: ext
  rule:
    name:
      v: intendedRecipientAsOrganization
    source:
      context:
        v: informationRecipient
      element:
        v: intendedRecipient
      variable:
        v: intendedRecipient
    rule:
      name:
        v: informationRecipientOrganization
rule:
  name:
    v: dataEnterer
  source:
    context:
      v: src
    element:
      v: dataEnterer
    variable:
      v: dataEnterer
  target:
    context:
      v: bundle
    context type:
      v: variable

Id
v: v

String
v: code

String
v: Patient

String
v: urn:uuid:

Id
v: uuid

v: intendedRecipient

v: receivedOrganization

v: e

v: variable

v: resource

v: recipient

v: create

value: String
  v: Organization

v: recipient

v: variable

v: id

v: uuid2

v: uuid

v: e

v: variable

v: fullUrl

v: append

value: String
  v: urn:uuid:

value: Id
  v: uuid2

v: tgt

v: variable

v: extension

v: ext

v: ChExtEprInformationRecipientOrganization

v: intendedRecipient

v: recipient

v: ext

v: entry

v: e

context:
  v: e
context type:
  v: variable
element:
  v: resource
variable:
  v: practitionerRole
transform:
  v: create
parameter:
  value: String
    v: PractitionerRole

context:
  v: practitionerRole
context type:
  v: variable
element:
  v: id
variable:
  v: uuid
transform:
  v: uuid

context:
  v: e
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: String
    v: urn:uuid:
parameter:
  value: Id
    v: uuid

context:
  v: tgt
context type:
  v: variable
element:
  v: extension
variable:
  v: ext

name:
  v: ChExtEprDataEnterer
variable:
  v: dataEnterer
variable:
  v: bundle
variable:
  v: practitionerRole
variable:
  v: ext