CDA to FHIR Maps
0.1.0 - ci-build IT

CDA to FHIR Maps - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: CDA to FHIR - Header - TTL Representation

Draft as of 2024-04-11

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "cda2fhirHeader"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n         <pre>map &quot;http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader&quot; = &quot;cda2fhirHeader&quot;\n\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument&quot; alias ClinicalDocument as source\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor&quot; alias AssignedAuthor as queried\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity&quot; alias AssignedEntity as queried\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity&quot; alias AssociatedEntity as queried\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization&quot; alias CustodianOrganization as queried\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/Section&quot; alias Section as queried\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/PatientRole&quot; alias PatientRole as queried\nuses &quot;http://hl7.org/fhir/StructureDefinition/Bundle&quot; alias Bundle as target\nuses &quot;http://hl7.org/fhir/StructureDefinition/Composition&quot; alias Composition as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Patient&quot; alias Patient as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Encounter&quot; alias Encounter as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Person&quot; alias Patient as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Practitioner&quot; alias Practitioner as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Specimen&quot; alias Specimen as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Organization&quot; alias Organization as produced\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/HealthCareFacility&quot; alias HealthCareFacility as queried\n\nimports &quot;http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes&quot;\n\ngroup CdaToBundle(source cda : ClinicalDocument, target bundle : Bundle) {\n  cda -&gt;  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 = create('BackboneElement') as requestPAT,  requestPAT.method = 'PUT',  e2.resource = create('Patient') as patient,  patient.id = uuid() as uuid2,  e2.fullUrl = append('https://example/Patient/', uuid2),  bundle.entry as e3,  e3.request = create('BackboneElement') as request,  request.method = 'POST',  e3.resource = create('Encounter') as encounter,  encounter.id = uuid() as uuid3,  e3.fullUrl = append('https://example/Encounter/', uuid3),  request.url = 'Encounter',  bundle.entry as e4,  e4.request = create('BackboneElement') as request,  request.method = 'POST',  e4.resource = create('DocumentReference') as DocumentReference,  DocumentReference.id = uuid() as uuid4,  e4.fullUrl = append('https://example/DocumentReference/', uuid3),  request.url = 'DocumentReference' then {\n    cda then ClinicalDocumentToBundle(cda, patient, composition, encounter, bundle, DocumentReference) &quot;cdatobundle&quot;;\n    cda.recordTarget as recordTarget then {\n      recordTarget.patientRole as patient then {\n        patient.id as id -&gt; patient.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext &quot;value&quot;;\n          // r -&gt; requestPAT.url = append('Patient?identifier=',ext) &quot;UUID&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n        } &quot;record&quot;;\n      } &quot;recPat&quot;;\n    } &quot;patient&quot;;\n  } &quot;ClinicalDocumentToBody&quot;;\n}\n\ngroup ClinicalDocumentToBundle(source cda : ClinicalDocument, target patient : Patient, target composition : Composition, target encounter : Encounter, target bundle : Bundle, target DocumentReference : DocumentReference) {\n  cda -&gt; bundle.id = uuid() &quot;id&quot;;\n  cda.id -&gt; bundle.identifier &quot;identifier&quot;;\n  cda -&gt; bundle.type = 'transaction' &quot;type&quot;;\n  cda -&gt; bundle.timestamp = (timestamp.now()) &quot;date&quot;;\n  cda then ClinicalDocumentComposition(cda, composition, patient, encounter, bundle, DocumentReference) &quot;composition&quot;;\n}\n\ngroup ClinicalDocumentComposition(source src : ClinicalDocument, target tgt : Composition, target patientResource : Patient, target encounter : Encounter, target bundle : Bundle, target DocumentReference : DocumentReference) {\n  src.languageCode -&gt; tgt.language;\n  src -&gt; DocumentReference.status = 'current' &quot;status&quot;;\n  src -&gt; DocumentReference.content = create('BackboneElement') as content then {\n    src -&gt;  content.attachment = create('Attachment') as attachment,  attachment.title = 'string' &quot;comp&quot;;\n  } &quot;content&quot;;\n  src -&gt; DocumentReference.context = create('BackboneElement') as context then {\n    src -&gt;  context.related = create('Reference') as referenceComp,  referenceComp.reference = ('https://example/Composition/' + %tgt.id) &quot;comp&quot;;\n  } &quot;context&quot;;\n  src.id where src.setId.exists().not() -&gt; tgt.identifier &quot;identifier&quot;;\n  src.setId -&gt; tgt.identifier &quot;identifier&quot;;\n  src -&gt; tgt.status = 'final' &quot;status&quot;;\n  src.code -&gt; tgt.type;\n  src.title as t -&gt; tgt.title = (t.dataString);\n  src where src.title.exists().not() then {\n    src.code as code then {\n      code.displayName as display -&gt; tgt.title = cast(display, 'string');\n    } &quot;display&quot;;\n  } &quot;title&quot;;\n  src.effectiveTime as effectiveTime -&gt; tgt.date = create('dateTime') as value then TSDateTime(effectiveTime, value);\n  src.versionNumber as versionNumber where (value &gt; 1) -&gt; tgt.extension as ext2 then ChExtEprVersionNumber(versionNumber, ext2);\n  src.confidentialityCode -&gt; tgt.confidentiality;\n  src.recordTarget as recordTarget then {\n    recordTarget.patientRole as patient -&gt;  tgt.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patientResource.id) then ClinicalDocumentPatientRole(patient, patientResource, bundle) &quot;subject&quot;;\n    recordTarget.patientRole as patient -&gt;  DocumentReference.subject = create('Reference') as reference1,  reference1.reference = ('https://example/Patient/' + %patientResource.id);\n  } &quot;patientRole&quot;;\n  // START AUTHOR\n  src.author as srcAuthor then {\n    srcAuthor.time as time -&gt; tgt.date;\n    srcAuthor.assignedAuthor as assignedAuthor then {\n      // Codice Fiscale\n      assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.6.3.2') then {\n        assignedAuthor -&gt;  bundle.entry as e1,  e1.request = create('BackboneElement') as request,  request.method = 'POST',  e1.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e1.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole',  tgt.author = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n          // assignedAuthor.code as codice -&gt; practitionerRole.code as code2 then CECodeableConcept(codice,code2);\n          assignedAuthor -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.resource = create('Practitioner') as practitioner then {\n            srcAuthor.functionCode -&gt; practitionerRole.code;\n            assignedAuthor -&gt; practitioner.meta as meta then {\n              assignedAuthor -&gt; meta.tag = create('Coding') as coding then {\n                assignedAuthor -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                assignedAuthor -&gt; coding.code = 'ClinicalDocument/author' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            assignedAuthor.code -&gt; practitionerRole.code;\n            assignedAuthor.id as id -&gt; practitioner.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext;\n              // then {\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e2.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;aut&quot;;\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n              id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n            } &quot;2&quot;;\n            assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n              id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n            } &quot;diverso&quot;;\n            assignedAuthor.addr -&gt; practitioner.address;\n            assignedAuthor.telecom -&gt; practitioner.telecom;\n            assignedAuthor.assignedPerson as person then {\n              person.name -&gt; practitioner.name;\n              person.birthTime as birthTime then {\n                birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n              } &quot;birth&quot;;\n            } &quot;name&quot;;\n            assignedAuthor -&gt;  DocumentReference.author = create('Reference') as referenceAuth,  referenceAuth.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;refAuth&quot;;\n          } &quot;ASSAUth&quot;;\n          assignedAuthor.representedOrganization as representedOrganization -&gt;  bundle.entry as e3,  e3.request = create('BackboneElement') as request,  request.method = 'PUT',  e3.resource = create('Organization') as organization then {\n            representedOrganization.id as id -&gt; organization.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                representedOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e3.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid3) &quot;aut&quot;;\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            representedOrganization -&gt; organization.meta as meta then {\n              representedOrganization -&gt; meta.tag = create('Coding') as coding then {\n                representedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                representedOrganization -&gt; coding.code = 'ClinicalDocument/author/representedOrganization' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            representedOrganization.name as v -&gt; organization.name = (v.other);\n            representedOrganization.telecom -&gt; organization.telecom;\n            representedOrganization.addr -&gt; organization.address;\n            representedOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e4,  e4.request = create('BackboneElement') as request,  request.method = 'PUT',  e4.resource = create('Organization') as organization1 then {\n              OrgPartOf -&gt; organization1.meta as meta then {\n                OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                  OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  OrgPartOf -&gt; coding.code = 'ClinicalDocument/author/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e4.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;aut&quot;;\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              OrgPartOf.code -&gt; organization1.type;\n              OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = 'true';\n              OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e10bis,  e10bis.request = create('BackboneElement') as request,  request.method = 'PUT',  e10bis.resource = create('Organization') as organization2 then {\n                wholeOrgan -&gt; organization2.meta as meta then {\n                  wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                    wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                    wholeOrgan -&gt; coding.code = 'ClinicalDocument/author/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                  } &quot;coding&quot;;\n                } &quot;meta&quot;;\n                wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n                  id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                  id.extension as ext -&gt; identifier.value = ext then {\n                    wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                  } &quot;ext&quot;;\n                  id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                  id.root as r then {\n                    id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid5,  e10bis.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;aut&quot;;\n                  } &quot;r&quot;;\n                } &quot;identifier&quot;;\n                wholeOrgan.name as v -&gt; organization2.name = (v.other);\n                wholeOrgan.telecom -&gt; organization2.telecom;\n                wholeOrgan.addr -&gt; organization2.address;\n              };\n            } &quot;OrgPartOf&quot;;\n          };\n        } &quot;ParcatitionerROL&quot;;\n      } &quot;OIDCF&quot;;\n      // Partita IVA\n      assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.6.3.2') then {\n        assignedAuthor -&gt;  bundle.entry as e6bis3,  e6bis3.request = create('BackboneElement') as request,  request.method = 'POST',  e6bis3.resource = create('Device') as device,  device.id = uuid() as uuid6bis3,  e6bis3.fullUrl = append('https://example/Device/', uuid6bis3),  request.url = 'Device',  tgt.author = create('Reference') as reference,  reference.reference = ('https://example/Device/' + %device.id) then {\n          assignedAuthor -&gt;  bundle.entry as e251,  e251.request = create('BackboneElement') as request,  request.method = 'PUT',  e251.resource = create('Organization') as organization then {\n            assignedAuthor -&gt; organization.meta as meta then {\n              assignedAuthor -&gt; meta.tag = create('Coding') as coding then {\n                assignedAuthor -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                assignedAuthor -&gt; coding.code = 'ClinicalDocument/AuthorPartitaIVA' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            assignedAuthor.id as id -&gt; organization.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                assignedAuthor -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid2,  e251.fullUrl = append('https://example/Organization/', uuid2),  device.owner = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n          } &quot;OrgPartitaIVA&quot;;\n        } &quot;Device&quot;;\n      } &quot;oidPartitaIVA&quot;;\n      // ID nullFlavor\n      assignedAuthor.id as id where nullFlavor.exists() then {\n        assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -&gt;  bundle.entry as e6bis,  e6bis.request = create('BackboneElement') as request,  request.method = 'POST',  e6bis.resource = create('Device') as device,  device.id = uuid() as uuid6bis,  e6bis.fullUrl = append('https://example/Device/', uuid6bis),  request.url = 'Device',  tgt.author = create('Reference') as reference,  reference.reference = ('https://example/Device' + %device.id) then {\n          // assignedAuthoringDevice.templateId -&gt; device.identifier;\n          assignedAuthoringDevice.code -&gt; device.type;\n          assignedAuthoringDevice.manufacturerModelName as manufacturerModelName then {\n            manufacturerModelName as m -&gt; device.manufacturer = (m.displayName) &quot;displayRule&quot;;\n          } &quot;manufacturer&quot;;\n          assignedAuthoringDevice.softwareName as softwareName -&gt; device.deviceName as deviceName then {\n            softwareName -&gt; deviceName.type = 'other' &quot;typeName&quot;;\n            softwareName as s -&gt; deviceName.name = (s.displayName) &quot;name&quot;;\n          } &quot;deviceName&quot;;\n        } &quot;Device&quot;;\n      } &quot;NullFlavor&quot;;\n    };\n    // START DATA ENTER\n    src.dataEnterer as dataEnt -&gt;  bundle.entry as e6,  e6.request = create('BackboneElement') as request,  request.method = 'POST',  e6.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e6.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole',  tgt.author = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n      dataEnt.time as time -&gt; tgt.date;\n      dataEnt.assignedEntity as assignedEntity -&gt;  bundle.entry as e7,  e7.request = create('BackboneElement') as request,  request.method = 'PUT',  e7.resource = create('Practitioner') as practitioner then {\n        assignedEntity -&gt; practitioner.meta as meta then {\n          assignedEntity -&gt; meta.tag = create('Coding') as coding then {\n            assignedEntity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            assignedEntity -&gt; coding.code = 'ClinicalDocument/dataEnterer' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        assignedEntity.code as codice -&gt; practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n        assignedEntity.id as id -&gt; practitioner.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e7.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;dataenterer&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        assignedEntity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;2&quot;;\n        assignedEntity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;diverso&quot;;\n        assignedEntity.addr -&gt; practitioner.address;\n        assignedEntity.telecom -&gt; practitioner.telecom;\n        assignedEntity.assignedPerson as person then {\n          person.name -&gt; practitioner.name;\n          person.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n          } &quot;birth&quot;;\n        };\n        assignedEntity.representedOrganization as representedOrganization -&gt;  bundle.entry as e8,  e8.request = create('BackboneElement') as request,  request.method = 'PUT',  e8.resource = create('Organization') as organization then {\n          representedOrganization -&gt; organization.meta as meta then {\n            representedOrganization -&gt; meta.tag = create('Coding') as coding then {\n              representedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              representedOrganization -&gt; coding.code = 'ClinicalDocument/dataEnterer/representedOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          representedOrganization.id as id -&gt; organization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              representedOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e8.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid3) &quot;dataenterer&quot;;\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          representedOrganization.name as v -&gt; organization.name = (v.other);\n          representedOrganization.telecom -&gt; organization.telecom;\n          representedOrganization.addr -&gt; organization.address;\n          representedOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e9,  e9.request = create('BackboneElement') as request,  request.method = 'PUT',  e9.resource = create('Organization') as organization1 then {\n            OrgPartOf -&gt; organization1.meta as meta then {\n              OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                OrgPartOf -&gt; coding.code = 'ClinicalDocument/dataEnterer/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e9.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;dataenterer&quot;;\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            OrgPartOf.code -&gt; organization1.type;\n            OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = 'true';\n            OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e10,  e10.request = create('BackboneElement') as request,  request.method = 'PUT',  e10.resource = create('Organization') as organization2 then {\n              wholeOrgan -&gt; organization2.meta as meta then {\n                wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                  wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeOrgan -&gt; coding.code = 'ClinicalDocument/dataEnterer/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid5,  e10.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;dataenterer&quot;;\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeOrgan.name as v -&gt; organization2.name = (v.other);\n              wholeOrgan.telecom -&gt; organization2.telecom;\n              wholeOrgan.addr -&gt; organization2.address;\n            };\n          };\n        } &quot;RepresentedOrganization&quot;;\n      } &quot;AssignedEntity&quot;;\n    } &quot;DataEnter&quot;;\n  } &quot;srcAuthor&quot;;\n  // START INFORMANT 1\n  src.informant as informant then {\n    informant.assignedEntity as assignedEntity -&gt;  bundle.entry as e11,  e11.request = create('BackboneElement') as request,  request.method = 'POST',  e11.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e11.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole' then {\n      informant -&gt; tgt.attester as attester then {\n        informant -&gt; attester.mode = 'professional' &quot;mode&quot;;\n        informant -&gt;  attester.party = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) &quot;reference&quot;;\n        assignedEntity.code -&gt; practitionerRole.code;\n        assignedEntity as entity -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'PUT',  e12.resource = create('Practitioner') as practitioner then {\n          entity -&gt; practitioner.meta as meta then {\n            entity -&gt; meta.tag = create('Coding') as coding then {\n              entity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              entity -&gt; coding.code = 'ClinicalDocument/informant' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          entity.id as id -&gt; practitioner.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e12.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;dataenterer&quot;;\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          assignedEntity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n            id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n          } &quot;2&quot;;\n          assignedEntity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n            id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n          } &quot;diverso&quot;;\n          entity.addr -&gt; practitioner.address;\n          entity.telecom -&gt; practitioner.telecom;\n          entity.assignedPerson as person then {\n            person.name -&gt; practitioner.name;\n            person.birthTime as birthTime then {\n              birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n            } &quot;birth&quot;;\n          } &quot;person&quot;;\n          entity.representedOrganization as representedOrganization -&gt;  bundle.entry as e13,  e13.request = create('BackboneElement') as request,  request.method = 'PUT',  e13.resource = create('Organization') as organization then {\n            representedOrganization -&gt; organization.meta as meta then {\n              representedOrganization -&gt; meta.tag = create('Coding') as coding then {\n                representedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                representedOrganization -&gt; coding.code = 'ClinicalDocument/informant/representedOrganization' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            representedOrganization.id as id -&gt; organization.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                representedOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e13.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            representedOrganization.name as v -&gt; organization.name = (v.other);\n            representedOrganization.telecom -&gt; organization.telecom;\n            representedOrganization.addr -&gt; organization.address;\n            representedOrganization.asOrganizationPartOf -&gt; organization.partOf as partOf then {\n              representedOrganization.asOrganizationPartOf as organizationPartOf -&gt;  bundle.entry as e14,  e14.request = create('BackboneElement') as request,  request.method = 'PUT',  e14.resource = create('Organization') as organization1 then {\n                organizationPartOf -&gt; organization1.meta as meta then {\n                  organizationPartOf -&gt; meta.tag = create('Coding') as coding then {\n                    organizationPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                    organizationPartOf -&gt; coding.code = 'ClinicalDocument/informant/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n                  } &quot;coding&quot;;\n                } &quot;meta&quot;;\n                organizationPartOf.id as id -&gt; organization1.identifier as identifier then {\n                  id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                  id.extension as ext -&gt; identifier.value = ext then {\n                    organizationPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                  } &quot;ext&quot;;\n                  id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                  id.root as r then {\n                    id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e14.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id);\n                  } &quot;r&quot;;\n                } &quot;identifier&quot;;\n                organizationPartOf.code -&gt; organization1.type;\n                organizationPartOf.statusCode as status where (code = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = 'true';\n                organizationPartOf.wholeOrganization -&gt; organization1.partOf as partOf1 then {\n                  organizationPartOf.wholeOrganization as wholeOrganization -&gt;  bundle.entry as e15,  e15.request = create('BackboneElement') as request,  request.method = 'PUT',  e15.resource = create('Organization') as organization2 then {\n                    wholeOrganization -&gt; organization2.meta as meta then {\n                      wholeOrganization -&gt; meta.tag = create('Coding') as coding then {\n                        wholeOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                        wholeOrganization -&gt; coding.code = 'ClinicalDocument/informant/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                      } &quot;coding&quot;;\n                    } &quot;meta&quot;;\n                    wholeOrganization.id as id -&gt; organization2.identifier as identifier then {\n                      id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                      id.extension as ext -&gt; identifier.value = ext then {\n                        wholeOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                      } &quot;ext&quot;;\n                      id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                      id.root as r then {\n                        id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid5,  e15.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n                      } &quot;r&quot;;\n                    } &quot;identifier&quot;;\n                    wholeOrganization.name as v -&gt; organization2.name = (v.other);\n                    wholeOrganization.telecom -&gt; organization2.telecom;\n                    wholeOrganization.addr -&gt; organization2.address;\n                  };\n                } &quot;asOrganizationPartOf&quot;;\n              } &quot;partOf&quot;;\n            } &quot;qualification&quot;;\n          } &quot;organization&quot;;\n        } &quot;assignedEntity&quot;;\n      } &quot;attester&quot;;\n    } &quot;informant&quot;;\n  } &quot;inform&quot;;\n  // START INFORMANT 2\n  src.informant as informant then {\n    informant.relatedEntity as related -&gt;  bundle.entry as e16,  e16.request = create('BackboneElement') as request,  request.method = 'POST',  e16.resource = create('RelatedPerson') as relatedPerson,  relatedPerson.id = uuid() as uuid1,  e16.fullUrl = append('https://example/RelatedPerson/', uuid1),  request.url = 'RelatedPerson' then {\n      informant -&gt; tgt.attester as attester then {\n        informant -&gt; attester.mode = 'professional' &quot;mode&quot;;\n        informant -&gt;  attester.party = create('Reference') as reference,  reference.reference = ('https://example/RelatedPerson/' + %relatedPerson.id) &quot;reference&quot;;\n        related.relatedPerson as Person then {\n          related.code -&gt; relatedPerson.relationship;\n          related.telecom -&gt; relatedPerson.telecom;\n          related.addr -&gt; relatedPerson.address;\n          Person.name -&gt; relatedPerson.name;\n          related.birthTime as date then {\n            date.value as value -&gt; relatedPerson.birthDate = truncate(value, 10) &quot;valueD&quot;;\n          } &quot;birthinformant&quot;;\n          related -&gt;  relatedPerson.patient = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patientResource.id) &quot;reference&quot;;\n        } &quot;relatedPerson1&quot;;\n      } &quot;relatedPerson&quot;;\n    } &quot;informant&quot;;\n  } &quot;inform2&quot;;\n  // START CUSTODIAN\n  src.custodian as custodian then {\n    custodian.assignedCustodian as assignedCustodian -&gt;  bundle.entry as e17,  e17.request = create('BackboneElement') as request,  request.method = 'PUT',  e17.resource = create('Organization') as Organization then {\n      assignedCustodian -&gt; Organization.meta as meta then {\n        assignedCustodian -&gt; meta.tag = create('Coding') as coding then {\n          assignedCustodian -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n          assignedCustodian -&gt; coding.code = 'ClinicalDocument/custodian' &quot;code&quot;;\n        } &quot;coding&quot;;\n      } &quot;meta&quot;;\n      assignedCustodian.representedCustodianOrganization as representedCustodianOrganization then {\n        representedCustodianOrganization.id as id -&gt; Organization.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext then {\n            representedCustodianOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n          } &quot;ext&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  Organization.id = (r + '-' + ext) as uuid,  e17.fullUrl = append('https://example/Organization/', uuid);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        assignedCustodian -&gt;  DocumentReference.custodian = create('Reference') as referenceCU,  referenceCU.reference = ('https://example/Organization/' + %Organization.id) &quot;RefCustodian&quot;;\n        representedCustodianOrganization -&gt;  tgt.custodian = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %Organization.id) then CustodianOrganization(representedCustodianOrganization, Organization) &quot;custodian1&quot;;\n      };\n    } &quot;organization&quot;;\n  };\n  // START INFORMATION RECIPIENT\n  src.informationRecipient as informationRecipient then {\n    informationRecipient.intendedRecipient as intendedRecipient then {\n      intendedRecipient.informationRecipient as informationRecipient2 then {\n        informationRecipient -&gt; tgt.attester as attester then {\n          informationRecipient2 -&gt; attester.mode = 'professional' &quot;mode&quot;;\n          informationRecipient2 -&gt;  bundle.entry as e19,  e19.request = create('BackboneElement') as request,  request.method = 'PUT',  e19.resource = create('Practitioner') as practitioner then {\n            informationRecipient2 -&gt; practitioner.meta as meta then {\n              informationRecipient2 -&gt; meta.tag = create('Coding') as coding then {\n                informationRecipient2 -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                informationRecipient2 -&gt; coding.code = 'ClinicalDocument/informationRecipient' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            intendedRecipient.id as id -&gt; practitioner.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e19.fullUrl = append('https://example/Practitioner/', uuid2),  attester.party = create('Reference') as reference1,  reference1.reference = ('https://example/Practitioner/' + %practitioner.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            intendedRecipient.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n              id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n            } &quot;2&quot;;\n            intendedRecipient.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n              id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n            } &quot;diverso&quot;;\n            intendedRecipient.addr -&gt; practitioner.address;\n            intendedRecipient.telecom -&gt; practitioner.telecom;\n            informationRecipient2.name -&gt; practitioner.name;\n            informationRecipient2.birthTime as bt then {\n              bt.value as v -&gt; practitioner.birthDate = (v.date);\n            } &quot;date&quot;;\n          } &quot;PersonRecipient&quot;;\n        } &quot;intendedRecipienPract&quot;;\n      } &quot;attesterOrg&quot;;\n      intendedRecipient.receivedOrganization as receivedOrganization then {\n        informationRecipient -&gt; tgt.attester as attester then {\n          receivedOrganization -&gt; attester.mode = 'official' &quot;mode&quot;;\n          receivedOrganization -&gt;  bundle.entry as e20,  e20.request = create('BackboneElement') as request,  request.method = 'PUT',  e20.resource = create('Organization') as organization then {\n            receivedOrganization -&gt; organization.meta as meta then {\n              receivedOrganization -&gt; meta.tag = create('Coding') as coding then {\n                receivedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                receivedOrganization -&gt; coding.code = 'ClinicalDocument/informationRecipient/receivedOrganization' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            receivedOrganization.id as id -&gt; organization.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                receivedOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e20.fullUrl = append('https://example/Organization/', uuid3),  attester.party = create('Reference') as reference2,  reference2.reference = ('https://example/Organization/' + %organization.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            receivedOrganization.name as v -&gt; organization.name = (v.other);\n            receivedOrganization.telecom -&gt; organization.telecom;\n            receivedOrganization.addr -&gt; organization.address;\n            receivedOrganization.asOrganizationPartOf as asOrganizationPartOf -&gt;  bundle.entry as e21,  e21.request = create('BackboneElement') as request,  request.method = 'PUT',  e21.resource = create('Organization') as organization2,  organization2.id = uuid() as uuid4,  e21.fullUrl = append('https://example/Organization', uuid4),  organization.partOf = create('Reference') as referenceor,  referenceor.reference = ('https://example/Organization' + %organization2.id) then {\n              asOrganizationPartOf -&gt; organization2.meta as meta then {\n                asOrganizationPartOf -&gt; meta.tag = create('Coding') as coding then {\n                  asOrganizationPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  asOrganizationPartOf -&gt; coding.code = 'ClinicalDocument/informationRecipient/receivedOrganization/asOrganizationPartOf' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              asOrganizationPartOf.id as id -&gt; organization2.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  asOrganizationPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid4,  e21.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as referenceor,  referenceor.reference = ('https://example/Organization/' + %organization2.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              asOrganizationPartOf.code -&gt; organization2.type;\n              asOrganizationPartOf.statusCode as status where (value = 'active') -&gt;  organization2.active = create('boolean'),  organization2.active = 'true';\n              asOrganizationPartOf.wholeOrganization as wholeOrganization3 -&gt;  bundle.entry as e22,  e22.request = create('BackboneElement') as request,  request.method = 'PUT',  e22.resource = create('Organization') as organization3 then {\n                wholeOrganization3 -&gt; organization3.meta as meta then {\n                  wholeOrganization3 -&gt; meta.tag = create('Coding') as coding then {\n                    wholeOrganization3 -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                    wholeOrganization3 -&gt; coding.code = 'ClinicalDocument/informationRecipient/receivedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                  } &quot;coding&quot;;\n                } &quot;meta&quot;;\n                wholeOrganization3.id as id -&gt; organization3.identifier as identifier then {\n                  id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                  id.extension as ext -&gt; identifier.value = ext then {\n                    wholeOrganization3 -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                  } &quot;ext&quot;;\n                  id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                  id.root as r then {\n                    id.extension as ext -&gt;  organization3.id = (r + '-' + ext) as uuid5,  e22.fullUrl = append('https://example/Organization/', uuid5),  organization2.partOf = create('Reference') as referenceor,  referenceor.reference = ('https://example/Organization/' + %organization3.id);\n                  } &quot;r&quot;;\n                } &quot;identifier&quot;;\n                wholeOrganization3.name as v -&gt; organization3.name = (v.other);\n                wholeOrganization3.telecom -&gt; organization3.telecom;\n                wholeOrganization3.addr -&gt; organization3.address;\n              };\n            };\n          } &quot;receivedOrganization&quot;;\n        } &quot;intendedRecipienOrg&quot;;\n      } &quot;attesterOrg&quot;;\n    } &quot;intendedRecipent&quot;;\n  } &quot;informationRecipent&quot;;\n  // START Legal Authenticator\n  src.legalAuthenticator as legalAuth then {\n    legalAuth -&gt; tgt.attester as attester then {\n      legalAuth.assignedEntity as entity then {\n        // Codice Fiscale\n        entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') -&gt;  bundle.entry as e23,  e23.request = create('BackboneElement') as request,  request.method = 'POST',  e23.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid,  e23.fullUrl = append('https://example/PractitionerRole/', uuid),  request.url = 'PractitionerRole' then {\n          legalAuth -&gt; attester.mode = 'legal' &quot;mode&quot;;\n          legalAuth.time -&gt; attester.time;\n          legalAuth -&gt;  attester.party = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n            entity -&gt;  bundle.entry as e24,  e24.request = create('BackboneElement') as request,  request.method = 'PUT',  e24.resource = create('Practitioner') as practitioner then {\n              entity -&gt; practitioner.meta as meta then {\n                entity -&gt; meta.tag = create('Coding') as coding then {\n                  entity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  entity -&gt; coding.code = 'ClinicalDocument/legalAuthenticator' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              entity.id as id -&gt; practitioner.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid1,  e24.fullUrl = append('https://example/Practitioner/', uuid1),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n                id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n              } &quot;2&quot;;\n              entity.addr -&gt; practitioner.address;\n              entity.telecom -&gt; practitioner.telecom;\n              entity.assignedPerson as person then {\n                person.name -&gt; practitioner.name;\n                person.birthTime as birthTime then {\n                  birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n                } &quot;birth&quot;;\n              } &quot;person&quot;;\n            } &quot;practitioner&quot;;\n            entity.code -&gt; practitionerRole.code;\n            entity.representedOrganization as rapresentedOrg -&gt;  bundle.entry as e25,  e25.request = create('BackboneElement') as request,  request.method = 'PUT',  e25.resource = create('Organization') as organization then {\n              rapresentedOrg -&gt; organization.meta as meta then {\n                rapresentedOrg -&gt; meta.tag = create('Coding') as coding then {\n                  rapresentedOrg -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  rapresentedOrg -&gt; coding.code = 'ClinicalDocument/legalAuthenticator/representedOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              rapresentedOrg.id as id -&gt; organization.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  rapresentedOrg -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid2,  e25.fullUrl = append('https://example/Organization/', uuid2),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              rapresentedOrg.name as v -&gt; organization.name = (v.other);\n              rapresentedOrg.telecom -&gt; organization.telecom;\n              rapresentedOrg.addr -&gt; organization.address;\n              rapresentedOrg.asOrganizationPartOf as asOrgPartOf then {\n                asOrgPartOf as asOrgPartOf1 -&gt;  bundle.entry as e26,  e26.request = create('BackboneElement') as request,  request.method = 'PUT',  e26.resource = create('Organization') as asorganization then {\n                  asOrgPartOf1 -&gt; asorganization.meta as meta then {\n                    asOrgPartOf1 -&gt; meta.tag = create('Coding') as coding then {\n                      asOrgPartOf1 -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                      asOrgPartOf1 -&gt; coding.code = 'ClinicalDocument/legalAuthenticator/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n                    } &quot;coding&quot;;\n                  } &quot;meta&quot;;\n                  asOrgPartOf1.id as id -&gt; asorganization.identifier as identifier then {\n                    id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                    id.extension as ext -&gt; identifier.value = ext then {\n                      asOrgPartOf1 -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                    } &quot;ext&quot;;\n                    id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                    id.root as r then {\n                      id.extension as ext -&gt;  asorganization.id = (r + '-' + ext) as uuid2,  e26.fullUrl = append('https://example/Organization/', uuid2),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %asorganization.id);\n                    } &quot;r&quot;;\n                  } &quot;identifier&quot;;\n                  asOrgPartOf1.code -&gt; asorganization.type;\n                  asOrgPartOf1.statusCode as status where (code = 'active') -&gt;  asorganization.active = create('boolean'),  asorganization.active = true;\n                  asOrgPartOf1.wholeOrganization as wholeOrg then {\n                    wholeOrg as wholeOrg1 -&gt;  bundle.entry as e27,  e27.request = create('BackboneElement') as request,  request.method = 'PUT',  e27.resource = create('Organization') as wholeorganization,  wholeorganization.id = uuid() as uuid4,  e27.fullUrl = append('https://example/Organization/', uuid4),  asorganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %wholeorganization.id) then {\n                      wholeOrg1 -&gt; wholeorganization.meta as meta then {\n                        wholeOrg1 -&gt; meta.tag = create('Coding') as coding then {\n                          wholeOrg1 -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                          wholeOrg1 -&gt; coding.code = 'ClinicalDocument/legalAuthenticator/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                        } &quot;coding&quot;;\n                      } &quot;meta&quot;;\n                      wholeOrg1.id as id -&gt; wholeorganization.identifier as identifier then {\n                        id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                        id.extension as ext -&gt; identifier.value = ext then {\n                          wholeOrg1 -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                        } &quot;ext&quot;;\n                        id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                        id.root as r then {\n                          id.extension as ext -&gt;  wholeorganization.id = (r + '-' + ext) as uuid4,  e27.fullUrl = append('https://example/Organization/', uuid4),  asorganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %wholeorganization.id);\n                        } &quot;r&quot;;\n                      } &quot;identifier&quot;;\n                      wholeOrg1.name as v -&gt; wholeorganization.name = (v.other);\n                      wholeOrg1.telecom -&gt; wholeorganization.telecom;\n                      wholeOrg1.addr -&gt; wholeorganization.address;\n                    } &quot;wholeOrg1&quot;;\n                  } &quot;wholeOrg&quot;;\n                } &quot;asOrgPO&quot;;\n              } &quot;asOrgID&quot;;\n            } &quot;LAOrganiz&quot;;\n          } &quot;PractitionerLegal&quot;;\n        } &quot;PractitionerROLlegal&quot;;\n        // Partita IVA\n        entity.id as id where (root = '2.16.840.1.113883.2.9.6.3.2') -&gt;  bundle.entry as e251,  e251.request = create('BackboneElement') as request,  request.method = 'PUT',  e251.resource = create('Organization') as organization then {\n          entity -&gt; attester.mode = 'official' &quot;mode&quot;;\n          entity -&gt; organization.meta as meta then {\n            entity -&gt; meta.tag = create('Coding') as coding then {\n              entity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              entity -&gt; coding.code = 'ClinicalDocument/legalAuthenticatorPartitaIVA' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          entity.id as id -&gt; organization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              entity -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid2,  e251.fullUrl = append('https://example/Organization/', uuid2),  attester.party = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n        } &quot;OrgPartitaIVA&quot;;\n      } &quot;entity&quot;;\n    } &quot;legalAuth&quot;;\n  } &quot;LegalAuthenticator&quot;;\n  // START Authenticator\n  src.authenticator as Auth -&gt;  bundle.entry as e28,  e28.request = create('BackboneElement') as request,  request.method = 'POST',  e28.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e28.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole' then {\n    Auth -&gt; tgt.attester as attester then {\n      Auth.time -&gt; attester.time;\n      Auth -&gt; attester.mode = 'professional' &quot;mode&quot;;\n      Auth.assignedEntity as entity -&gt;  attester.party = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n        entity.code -&gt; practitionerRole.code;\n        entity -&gt;  bundle.entry as e29,  e29.request = create('BackboneElement') as request,  request.method = 'PUT',  e29.resource = create('Practitioner') as practitioner,  practitioner.id = uuid() as uuid2,  e29.fullUrl = append('https://example/Practitioner', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner' + %practitioner.id) then {\n          entity -&gt; practitioner.meta as meta then {\n            entity -&gt; meta.tag = create('Coding') as coding then {\n              entity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              entity -&gt; coding.code = 'ClinicalDocument/authenticator' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          entity.id as id -&gt; practitioner.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e29.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n            id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n          } &quot;2&quot;;\n          entity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n            id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n          } &quot;diverso&quot;;\n          entity.addr -&gt; practitioner.address &quot;address&quot;;\n          entity.telecom -&gt; practitioner.telecom;\n          entity.assignedPerson as person then {\n            person.name -&gt; practitioner.name &quot;personName&quot;;\n            person.birthTime as birthTime then {\n              birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimeauth&quot;;\n            } &quot;birth&quot;;\n          } &quot;person&quot;;\n        } &quot;practitioner&quot;;\n        entity.representedOrganization as reporganization -&gt;  bundle.entry as e30,  e30.request = create('BackboneElement') as request,  request.method = 'PUT',  e30.resource = create('Organization') as organization then {\n          reporganization -&gt; organization.meta as meta then {\n            reporganization -&gt; meta.tag = create('Coding') as coding then {\n              reporganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              reporganization -&gt; coding.code = 'ClinicalDocument/authenticator/representedOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          reporganization.id as id -&gt; organization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              reporganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e30.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          reporganization.name as v -&gt; organization.name = (v.other);\n          reporganization.telecom -&gt; organization.telecom;\n          reporganization.addr -&gt; organization.address;\n          reporganization.asOrganizationPartOf as organizationpartof -&gt;  bundle.entry as e31,  e31.request = create('BackboneElement') as request,  request.method = 'PUT',  e31.resource = create('Organization') as asOrganizationpartof then {\n            organizationpartof -&gt; asOrganizationpartof.meta as meta then {\n              organizationpartof -&gt; meta.tag = create('Coding') as coding then {\n                organizationpartof -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                organizationpartof -&gt; coding.code = 'ClinicalDocument/authenticator/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            organizationpartof.id as id -&gt; asOrganizationpartof.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                organizationpartof -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  asOrganizationpartof.id = (r + '-' + ext) as uuid4,  e31.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %asOrganizationpartof.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            organizationpartof.code -&gt; asOrganizationpartof.type;\n            organizationpartof.statusCode as status where (code = 'active') -&gt;  asOrganizationpartof.active = create('boolean'),  asOsrganizationpartof.active = 'true';\n            organizationpartof.wholeOrganization as wholeorg -&gt;  bundle.entry as e32,  e32.request = create('BackboneElement') as request,  request.method = 'PUT',  e32.resource = create('Organization') as wholeOrganization,  wholeOrganization.id = uuid() as uuid5,  e32.fullUrl = append('https://example/Organization/', uuid5),  asOrganizationpartof.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %wholeOrganization.id) then {\n              wholeorg -&gt; wholeOrganization.meta as meta then {\n                wholeorg -&gt; meta.tag = create('Coding') as coding then {\n                  wholeorg -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeorg -&gt; coding.code = 'ClinicalDocument/authenticator/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeorg.id as id -&gt; wholeOrganization.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeorg -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  wholeOrganization.id = (r + '-' + ext) as uuid5,  e32.fullUrl = append('https://example/Organization/', uuid5),  asOrganizationpartof.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %wholeOrganization.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeorg.name as v -&gt; wholeOrganization.name = (v.other);\n              wholeorg.telecom -&gt; wholeOrganization.telecom;\n              wholeorg.addr -&gt; wholeOrganization.address;\n            } &quot;wholeorg&quot;;\n          } &quot;organizationpartof&quot;;\n        } &quot;reporganization&quot;;\n      } &quot;entity&quot;;\n    } &quot;attester&quot;;\n  } &quot;Auth&quot;;\n  // PARTICIPANT\n  src.participant as participant where (typeCode != 'IND') then {\n    participant.associatedEntity as associetedEntity -&gt;  bundle.entry as e313,  e313.request = create('BackboneElement') as request,  request.method = 'POST',  e313.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e313.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant1 then {\n      // participant.time as time-&gt;participant1.period as period ,period.start=(time.value);\n      participant -&gt; participant1.period = create('Period') as period then {\n        participant.time as time -&gt; period.start = create('dateTime') as start then TSDateTime(time, start);\n      } &quot;period&quot;;\n      participant as p -&gt; participant1.type as type then {\n        p -&gt; type.coding as coding then {\n          p -&gt; coding.code = (p.typeCode) &quot;codice&quot;;\n          p -&gt; coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' &quot;system&quot;;\n        } &quot;codeType&quot;;\n      } &quot;type&quot;;\n      participant -&gt;  participant1.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) &quot;par&quot;;\n      participant.functionCode -&gt; practitionerRole.code;\n      associetedEntity -&gt;  bundle.entry as e33,  e33.request = create('BackboneElement') as request,  request.method = 'PUT',  e33.resource = create('Practitioner') as practitioner then {\n        associetedEntity -&gt; practitioner.meta as meta then {\n          associetedEntity -&gt; meta.tag = create('Coding') as coding then {\n            associetedEntity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            associetedEntity -&gt; coding.code = 'ClinicalDocument/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        associetedEntity.id as id -&gt; practitioner.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e33.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        associetedEntity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;2&quot;;\n        associetedEntity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;diverso&quot;;\n        associetedEntity.code -&gt; practitionerRole.code;\n        associetedEntity.addr -&gt; practitioner.address;\n        associetedEntity.telecom -&gt; practitioner.telecom;\n        associetedEntity.associatedPerson as associatedperson then {\n          associatedperson.name -&gt; practitioner.name;\n          associatedperson.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n        associetedEntity.scopingOrganization as scopingOrganization -&gt;  bundle.entry as e34,  e34.request = create('BackboneElement') as request,  request.method = 'PUT',  e34.resource = create('Organization') as organization then {\n          scopingOrganization -&gt; organization.meta as meta then {\n            scopingOrganization -&gt; meta.tag = create('Coding') as coding then {\n              scopingOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              scopingOrganization -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          scopingOrganization.id as id -&gt; organization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              scopingOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e34.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          scopingOrganization.name as v -&gt; organization.name = (v.other);\n          scopingOrganization.telecom -&gt; organization.telecom;\n          scopingOrganization.addr -&gt; organization.address;\n          scopingOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e35,  e35.request = create('BackboneElement') as request,  request.method = 'PUT',  e35.resource = create('Organization') as organization1 then {\n            OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n              OrgPartOf -&gt; organization1.meta as meta then {\n                OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                  OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  OrgPartOf -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e35.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            OrgPartOf.code -&gt; organization1.type;\n            OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = true;\n            OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e36,  e36.request = create('BackboneElement') as request,  request.method = 'PUT',  e36.resource = create('Organization') as organization2 then {\n              wholeOrgan -&gt; organization2.meta as meta then {\n                wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                  wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeOrgan -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid5,  e36.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeOrgan.name as v -&gt; organization2.name = (v.other);\n              wholeOrgan.telecom -&gt; organization2.telecom;\n              wholeOrgan.addr -&gt; organization2.address;\n            } &quot;wholeOrgan&quot;;\n          } &quot;OrgPartOf&quot;;\n        };\n      } &quot;associetedEntity&quot;;\n    } &quot;Participant1&quot;;\n  };\n  src.participant as participant where (typeCode = 'IND') then {\n    participant.associatedEntity as associetedEntity where (classCode = 'PROV') -&gt;  bundle.entry as e313,  e313.request = create('BackboneElement') as request,  request.method = 'POST',  e313.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e313.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant2 then {\n      // participant.time as time-&gt;participant2.period as period, period.start=(time.value);\n      participant -&gt; participant2.period = create('Period') as period then {\n        participant.time as time -&gt; period.start = create('dateTime') as start then TSDateTime(time, start);\n      } &quot;period&quot;;\n      participant as p -&gt; participant2.type as type then {\n        p -&gt; type.coding as coding then {\n          p -&gt; coding.code = (p.typeCode) &quot;codice&quot;;\n          p -&gt; coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' &quot;system&quot;;\n        } &quot;codeType&quot;;\n      } &quot;type&quot;;\n      participant -&gt;  participant2.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) &quot;par&quot;;\n      participant.functionCode -&gt; practitionerRole.code;\n      associetedEntity -&gt;  bundle.entry as e33,  e33.request = create('BackboneElement') as request,  request.method = 'PUT',  e33.resource = create('Practitioner') as practitioner then {\n        associetedEntity -&gt; practitioner.meta as meta then {\n          associetedEntity -&gt; meta.tag = create('Coding') as coding then {\n            associetedEntity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            associetedEntity -&gt; coding.code = 'ClinicalDocument/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        associetedEntity.id as id -&gt; practitioner.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e33.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        associetedEntity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;2&quot;;\n        associetedEntity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;diverso&quot;;\n        associetedEntity.code -&gt; practitionerRole.code;\n        associetedEntity.addr -&gt; practitioner.address;\n        associetedEntity.telecom -&gt; practitioner.telecom;\n        associetedEntity.associatedPerson as associatedperson then {\n          associatedperson.name -&gt; practitioner.name;\n          associatedperson.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n        associetedEntity.scopingOrganization as scopingOrganization -&gt;  bundle.entry as e34,  e34.request = create('BackboneElement') as request,  request.method = 'PUT',  e34.resource = create('Organization') as organization then {\n          scopingOrganization -&gt; organization.meta as meta then {\n            scopingOrganization -&gt; meta.tag = create('Coding') as coding then {\n              scopingOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              scopingOrganization -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          scopingOrganization.id as id -&gt; organization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              scopingOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e34.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          scopingOrganization.name as v -&gt; organization.name = (v.other);\n          scopingOrganization.telecom -&gt; organization.telecom;\n          scopingOrganization.addr -&gt; organization.address;\n          scopingOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e35,  e35.request = create('BackboneElement') as request,  request.method = 'PUT',  e35.resource = create('Organization') as organization1 then {\n            OrgPartOf -&gt; organization1.meta as meta then {\n              OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                OrgPartOf -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e35.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            OrgPartOf.code -&gt; organization1.type;\n            OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = true;\n            OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e36,  e36.request = create('BackboneElement') as request,  request.method = 'PUT',  e36.resource = create('Organization') as organization2 then {\n              wholeOrgan -&gt; organization2.meta as meta then {\n                wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                  wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeOrgan -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid5,  e36.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeOrgan.name as v -&gt; organization2.name = (v.other);\n              wholeOrgan.telecom -&gt; organization2.telecom;\n              wholeOrgan.addr -&gt; organization2.address;\n            } &quot;wholeOrgan&quot;;\n          } &quot;OrgPartOf&quot;;\n        };\n      } &quot;associetedEntity&quot;;\n    } &quot;Participant2&quot;;\n    participant.associatedEntity as associetedEntity where (classCode = 'NOK') or (classCode = 'ECON') or (classCode = 'CAREGIVER') then {\n      associetedEntity -&gt;  bundle.entry as e3131,  e3131.request = create('BackboneElement') as request,  request.method = 'POST',  e3131.resource = create('RelatedPerson') as RelatedPerson,  RelatedPerson.id = uuid() as uuid1,  e3131.fullUrl = append('https://example/RelatedPerson/', uuid1),  request.url = 'RelatedPerson' then {\n        associetedEntity -&gt; patientResource.link as link then {\n          associetedEntity -&gt; link.type = 'refer' &quot;type&quot;;\n          associetedEntity -&gt;  link.other = create('Reference') as reference,  reference.reference = ('https://example/RelatedPerson/' + %RelatedPerson.id) &quot;reference&quot;;\n          associetedEntity.id -&gt; RelatedPerson.identifier;\n          associetedEntity -&gt;  RelatedPerson.patient = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patientResource.id) &quot;reference&quot;;\n          associetedEntity.code -&gt; RelatedPerson.relationship;\n          associetedEntity.telecom -&gt; RelatedPerson.telecom;\n          associetedEntity.associatedPerson as associatedperson then {\n            associatedperson.name -&gt; RelatedPerson.name;\n          };\n        } &quot;link&quot;;\n      } &quot;participant3&quot;;\n    } &quot;WHERE&quot;;\n    // START PARTICIPANT GUAR\n    participant.associatedEntity as associetedentity where (classCode = 'GUAR') then {\n      associetedentity.scopingOrganization as representedOrganization -&gt;  bundle.entry as e37,  e37.request = create('BackboneElement') as request,  request.method = 'PUT',  e37.resource = create('Organization') as organization then {\n        representedOrganization -&gt; organization.meta as meta then {\n          representedOrganization -&gt; meta.tag = create('Coding') as coding then {\n            representedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            representedOrganization -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        associetedentity.code -&gt; organization.type;\n        associetedentity.scopingOrganization as scopingOrganization then {\n          associetedentity.id as id -&gt; organization.identifier as identifier then {\n            participant.time as time then {\n              time.high as high -&gt; identifier.period as period then {\n                high -&gt; period.end = (high.value) &quot;periodend&quot;;\n              } &quot;period&quot;;\n            };\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              associetedentity -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid1,  e37.fullUrl = append('https://example/Organization/', uuid1),  patientResource.generalPractitioner = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid1);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          scopingOrganization.name as v -&gt; organization.name = (v.other);\n          scopingOrganization.telecom -&gt; organization.telecom;\n          scopingOrganization.addr -&gt; organization.address;\n          scopingOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e38,  e38.request = create('BackboneElement') as request,  request.method = 'PUT',  e38.resource = create('Organization') as organizationPOF then {\n            OrgPartOf -&gt; organizationPOF.meta as meta then {\n              OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                OrgPartOf -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            OrgPartOf.id as id -&gt; organizationPOF.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organizationPOF.id = (r + '-' + ext) as uuid2,  e38.fullUrl = append('https://example/Organization/', uuid2),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organizationPOF.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            OrgPartOf.code -&gt; organizationPOF.type;\n            OrgPartOf.statusCode as status where (value = 'active') -&gt;  organizationPOF.active = create('boolean'),  organizationPOF.active = 'true';\n            OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e39,  e39.request = create('BackboneElement') as request,  request.method = 'PUT',  e39.resource = create('Organization') as organizationW then {\n              wholeOrgan -&gt; organizationW.meta as meta then {\n                wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                  wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeOrgan -&gt; coding.code = 'ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeOrgan.id as id -&gt; organizationW.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organizationW.id = (r + '-' + ext) as uuid3,  e39.fullUrl = append('https://example/Organization/', uuid3),  organizationPOF.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organizationW.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeOrgan.name as v -&gt; organizationW.name = (v.other);\n              wholeOrgan.telecom -&gt; organizationW.telecom;\n              wholeOrgan.addr -&gt; organizationW.address;\n            } &quot;wholeOrgan&quot;;\n          } &quot;OrgPartOf&quot;;\n        };\n      } &quot;associetedEntity&quot;;\n    } &quot;repOrg&quot;;\n  };\n  src.inFulfillmentOf as inFulfillmentOf then {\n    inFulfillmentOf.order as order -&gt;  bundle.entry as e40,  e40.request = create('BackboneElement') as request,  request.method = 'POST',  e40.resource = create('ServiceRequest') as serviceRequest,  serviceRequest.id = uuid() as uuid1,  e40.fullUrl = append('https://example/ServiceRequest/', uuid1),  request.url = 'ServiceRequest',  encounter.basedOn = create('Reference') as reference,  reference.reference = ('https://example/ServiceRequest/' + %serviceRequest.id) then {\n      order.id -&gt; serviceRequest.identifier;\n      order -&gt; serviceRequest.status = 'active' &quot;status&quot;;\n      order -&gt; serviceRequest.intent = 'order' &quot;intent&quot;;\n      order -&gt;  serviceRequest.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patientResource.id) &quot;reference&quot;;\n      order -&gt;  serviceRequest.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n      order.code -&gt; serviceRequest.code;\n      order.priorityCode as priorityCode then {\n        priorityCode.code as v -&gt; serviceRequest.priority = translate(v, '#priority', 'code') &quot;priority&quot;;\n      };\n    };\n  };\n  src.documentationOf as docOf then {\n    docOf.serviceEvent as serviceEvent -&gt; tgt.event as event then {\n      serviceEvent.code -&gt; event.code &quot;eventCode&quot;;\n      serviceEvent.effectiveTime as effectiveTime then {\n        effectiveTime -&gt; event.period = create('Period') as period then IVLTSPeriod(effectiveTime, period) &quot;period&quot;;\n      } &quot;eventDT&quot;;\n      serviceEvent.effectiveTime as effectivetime1 -&gt; event.period = create('Period') as period then {\n        effectivetime1 -&gt; period.start = create('dateTime') as start then TSDateTime(effectivetime1, start) &quot;val&quot;;\n      } &quot;efft&quot;;\n      serviceEvent.performer as performer -&gt;  bundle.entry as e41,  e41.request = create('BackboneElement') as request,  request.method = 'POST',  e41.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e41.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole' then {\n        performer -&gt;  event.detail = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n          performer.assignedEntity as assignedEntity -&gt;  bundle.entry as e42,  e42.request = create('BackboneElement') as request,  request.method = 'PUT',  e42.resource = create('Practitioner') as practitioner then {\n            assignedEntity -&gt; practitioner.meta as meta then {\n              assignedEntity -&gt; meta.tag = create('Coding') as coding then {\n                assignedEntity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                assignedEntity -&gt; coding.code = 'ClinicalDocument/documentationOf/serviceEvent/performer' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            performer.functionCode -&gt; practitionerRole.code;\n            assignedEntity.code -&gt; practitionerRole.code;\n            assignedEntity.id as id -&gt; practitioner.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e42.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            assignedEntity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n              id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n            } &quot;2&quot;;\n            assignedEntity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n              id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n            } &quot;diverso&quot;;\n            assignedEntity.addr -&gt; practitioner.address;\n            assignedEntity.telecom -&gt; practitioner.telecom;\n            assignedEntity.assignedPerson as person then {\n              person.name -&gt; practitioner.name;\n              person.birthTime as birthTime then {\n                birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n              } &quot;birth&quot;;\n            } &quot;name&quot;;\n            assignedEntity.representedOrganization as representedOrganization -&gt;  bundle.entry as e8,  e8.request = create('BackboneElement') as request,  request.method = 'PUT',  e8.resource = create('Organization') as organization then {\n              representedOrganization -&gt; organization.meta as meta then {\n                representedOrganization -&gt; meta.tag = create('Coding') as coding then {\n                  representedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  representedOrganization -&gt; coding.code = 'ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              representedOrganization.id as id -&gt; organization.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  representedOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e8.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid3);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              representedOrganization.name as v -&gt; organization.name = (v.other);\n              representedOrganization.telecom -&gt; organization.telecom;\n              representedOrganization.addr -&gt; organization.address;\n              representedOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e9,  e9.request = create('BackboneElement') as request,  request.method = 'PUT',  e9.resource = create('Organization') as organization1 then {\n                OrgPartOf -&gt; organization1.meta as meta then {\n                  OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                    OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                    OrgPartOf -&gt; coding.code = 'ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n                  } &quot;coding&quot;;\n                } &quot;meta&quot;;\n                OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n                  id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                  id.extension as ext -&gt; identifier.value = ext then {\n                    OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                  } &quot;ext&quot;;\n                  id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                  id.root as r then {\n                    id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e9.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id);\n                  } &quot;r&quot;;\n                } &quot;identifier&quot;;\n                OrgPartOf.code -&gt; organization1.type;\n                OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = 'true';\n                OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e10,  e10.request = create('BackboneElement') as request,  request.method = 'PUT',  e10.resource = create('Organization') as organization2 then {\n                  wholeOrgan -&gt; organization2.meta as meta then {\n                    wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                      wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                      wholeOrgan -&gt; coding.code = 'ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                    } &quot;coding&quot;;\n                  } &quot;meta&quot;;\n                  wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n                    id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                    id.extension as ext -&gt; identifier.value = ext then {\n                      wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                    } &quot;ext&quot;;\n                    id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                    id.root as r then {\n                      id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid5,  e10.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n                    } &quot;r&quot;;\n                  } &quot;identifier&quot;;\n                  wholeOrgan.name as v -&gt; organization2.name = (v.other);\n                  wholeOrgan.telecom -&gt; organization2.telecom;\n                  wholeOrgan.addr -&gt; organization2.address;\n                };\n              };\n            } &quot;RepresentedOrganization&quot;;\n          } &quot;AssignedEntity&quot;;\n        } &quot;performer&quot;;\n      } &quot;docOf&quot;;\n    };\n  };\n  src where src.componentOf.exists().not() -&gt;  tgt.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then ClinicalDocumentEncounter(src, bundle, encounter, patientResource) &quot;encounterExist&quot;;\n  src.componentOf as comp then {\n    comp where comp.encompassingEncounter.exists().not() -&gt;  tgt.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then ClinicalDocumentEncounter(srcEnc, bundle, encounter, patientResource) &quot;enc&quot;;\n    comp.encompassingEncounter as srcEnc -&gt;  tgt.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then ClinicalDocumentEncounter(srcEnc, bundle, encounter, patientResource);\n  } &quot;encompassingEncounter&quot;;\n}\n\ngroup ClinicalDocumentRelatesTo(source src : parentDocument, target tgt : composition) {\n  src.id -&gt; tgt.identifier;\n  src.code -&gt; tgt.type;\n  src.setId -&gt; tgt.identifier;\n  src.versionNumber as vNumber -&gt; tgt.extension as ext then ChExtEprVersionNumber(vNumber, ext) &quot;versionNumberEXT&quot;;\n}\n\ngroup EXTbirthplace(source src : AD, target ext : Extension) {\n  src -&gt; ext.url = 'http://hl7.org/fhir/StructureDefinition/patient-birthPlace' &quot;url&quot;;\n  src -&gt; ext.value = create('Address') as value then ADAddress(src, value) &quot;value&quot;;\n}\n\ngroup ClinicalDocumentPatientRole(source src : PatientRole, target tgt : Patient, target bundle : Bundle) {\n  src.addr -&gt; tgt.address;\n  src.telecom -&gt; tgt.telecom;\n  src.patient as patient then {\n    patient.name -&gt; tgt.name;\n    patient.administrativeGenderCode as gender then {\n      gender.code as v -&gt; tgt.gender = translate(v, '#cm-v3-administrative-gender', 'code') &quot;gender&quot;;\n    } &quot;gender&quot;;\n    patient.birthTime as birthTime then {\n      birthTime.value as date -&gt; tgt.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n    } &quot;birth&quot;;\n    patient.deceasedInd as deceased where (value = 'false') -&gt;  tgt.deceased = create('boolean'),  tgt.deceased = false &quot;deceasedBL&quot;;\n    patient.deceasedInd as deceased where (value = 'true') then {\n      patient.deceasedTime as Time -&gt; tgt.deceased = create('dateTime') as deceasedTime then TSDateTime(Time, deceasedTime);\n    };\n    patient.deceasedTime as Timet where Timet.empty() -&gt;  tgt.deceased = create('boolean'),  tgt.deceased = true &quot;deceasedBL&quot;;\n    patient.maritalStatusCode -&gt; tgt.maritalStatus &quot;maritalStatus&quot;;\n    patient.guardian as guardian then {\n      guardian.guardianPerson as person -&gt;  bundle.entry as e,  e.request = create('BackboneElement') as request,  request.method = 'POST',  e.resource = create('RelatedPerson') as relatedPerson,  relatedPerson.id = uuid() as uuid1,  e.fullUrl = append('https://example/RelatedPerson/', uuid1),  request.url = 'RelatedPerson' then {\n        person.name -&gt; relatedPerson.name;\n        person.birthTime as birthTime then {\n          birthTime.value as date -&gt; relatedPerson.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n        } &quot;birth&quot;;\n        person -&gt;  relatedPerson.patient = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %tgt.id) &quot;reference&quot;;\n        person -&gt; tgt.link as link then {\n          person -&gt; link.type = 'refer' &quot;type&quot;;\n          person -&gt;  link.other = create('Reference') as reference,  reference.reference = ('https://example/RelatedPerson/' + %relatedPerson.id) &quot;reference&quot;;\n          guardian.addr -&gt; relatedPerson.address;\n          guardian.telecom -&gt; relatedPerson.telecom;\n          guardian.id -&gt; relatedPerson.identifier;\n          guardian.code -&gt; relatedPerson.relationship;\n        } &quot;person&quot;;\n      };\n      guardian.guardianOrganization as guardianorg -&gt;  bundle.entry as e1,  e1.request = create('BackboneElement') as request,  request.method = 'PUT',  e1.resource = create('Organization') as organizationcontact then {\n        guardianorg -&gt; organizationcontact.meta as meta then {\n          guardianorg -&gt; meta.tag = create('Coding') as coding then {\n            guardianorg -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            guardianorg -&gt; coding.code = 'ClinicalDocument/recordTarget/PatientRole/patient/guardian/guardianOrganization' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        guardianorg -&gt; tgt.contact as contact then {\n          guardianorg -&gt;  contact.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organizationcontact.id) &quot;OrganizationContact&quot;;\n          guardianorg.id as id -&gt; organizationcontact.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              guardianorg -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organizationcontact.id = (r + '-' + ext) as uuid2,  e1.fullUrl = append('https://example/Organization/', uuid2);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          guardianorg.name as v -&gt; organizationcontact.name = (v.other);\n          guardianorg.telecom -&gt; organizationcontact.telecom;\n          guardianorg.addr -&gt; organizationcontact.address;\n          guardianorg.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.resource = create('Organization') as organizationpartOf then {\n            OrgPartOf -&gt; organizationpartOf.meta as meta then {\n              OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                OrgPartOf -&gt; coding.code = 'ClinicalDocument/recordTarget/PatientRole/patient/guardian/guardianOrganization/asOrganizationPartOf' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            OrgPartOf -&gt;  organizationcontact.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organizationpartOf.id) &quot;asorganization&quot;;\n            OrgPartOf.id as id -&gt; organizationpartOf.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organizationpartOf.id = (r + '-' + ext) as uuid3,  e2.fullUrl = append('https://example/Organization/', uuid3);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            OrgPartOf.code -&gt; organizationpartOf.type;\n            OrgPartOf.statusCode as status where (value = 'active') -&gt; organizationpartOf.active = 'true';\n            OrgPartOf.wholeOrganization as wholeORG -&gt;  bundle.entry as e3,  e3.request = create('BackboneElement') as request,  request.method = 'PUT',  e3.resource = create('Organization') as WholeOrganization then {\n              wholeORG -&gt; WholeOrganization.meta as meta then {\n                wholeORG -&gt; meta.tag = create('Coding') as coding then {\n                  wholeORG -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeORG -&gt; coding.code = 'ClinicalDocument/recordTarget/PatientRole/patient/guardian/guardianOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeORG -&gt;  organizationpartOf.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %WholeOrganization.id) &quot;asOrganization&quot;;\n              wholeORG.id as id -&gt; WholeOrganization.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeORG -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  WholeOrganization.id = (r + '-' + ext) as uuid4,  e3.fullUrl = append('https://example/Organization/', uuid4);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeORG.name as v -&gt; WholeOrganization.name = (v.other);\n              wholeORG.telecom -&gt; WholeOrganization.telecom;\n              wholeORG.addr -&gt; WholeOrganization.address;\n            } &quot;WholeOrganization&quot;;\n          } &quot;OrganizationPartOf&quot;;\n        } &quot;contact&quot;;\n      } &quot;guardianorganization&quot;;\n    };\n    patient.birthplace as birthplace then {\n      birthplace.place as place then {\n        place.addr as address -&gt; tgt.extension as ext1 then EXTbirthplace(address, ext1) &quot;birthplace&quot;;\n      };\n    };\n    src.providerOrganization as org -&gt;  bundle.entry as e4,  e4.request = create('BackboneElement') as request,  request.method = 'PUT',  e4.resource = create('Organization') as providerorganization then {\n      org -&gt; providerorganization.meta as meta then {\n        org -&gt; meta.tag = create('Coding') as coding then {\n          org -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n          org -&gt; coding.code = 'ClinicalDocument/recordTarget/PatientRole/patient/providerOrganization' &quot;code&quot;;\n        } &quot;coding&quot;;\n      } &quot;meta&quot;;\n      org.id as id -&gt; providerorganization.identifier as identifier then {\n        id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n        id.extension as ext -&gt; identifier.value = ext then {\n          org -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n        } &quot;ext&quot;;\n        id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n        id.root as r then {\n          id.extension as ext -&gt;  providerorganization.id = (r + '-' + ext) as uuid5,  e4.fullUrl = append('https://example/Organization/', uuid5),  tgt.managingOrganization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %providerorganization.id) &quot;reference&quot;;\n        } &quot;r&quot;;\n      } &quot;identifier&quot;;\n      org.name as v -&gt; providerorganization.name = (v.other);\n      org.telecom -&gt; providerorganization.telecom;\n      org.addr -&gt; providerorganization.address;\n      org.asOrganizationPartOf as OrgPartOfProvider -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'PUT',  e5.resource = create('Organization') as organizationpartOfprovider then {\n        OrgPartOfProvider -&gt; organizationpartOfprovider.meta as meta then {\n          OrgPartOfProvider -&gt; meta.tag = create('Coding') as coding then {\n            OrgPartOfProvider -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            OrgPartOfProvider -&gt; coding.code = 'ClinicalDocument/recordTarget/PatientRole/patient/providerOrganization/asOrganizationPartOf' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        OrgPartOfProvider.id as id -&gt; organizationpartOfprovider.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext then {\n            OrgPartOfProvider -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n          } &quot;ext&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  organizationpartOfprovider.id = (r + '-' + ext) as uuid6,  e5.fullUrl = append('https://example/Organization/', uuid6),  providerorganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organizationpartOfprovider.id) &quot;asorganization&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        OrgPartOfProvider.code -&gt; organizationpartOfprovider.type;\n        OrgPartOfProvider.statusCode as status where (value = 'active') -&gt; organizationpartOfprovider.active = 'true';\n        OrgPartOfProvider.wholeOrganization as wholeORGproveder -&gt;  bundle.entry as e6,  e6.request = create('BackboneElement') as request,  request.method = 'PUT',  e6.resource = create('Organization') as WholeOrganizationprovider then {\n          wholeORGproveder -&gt; WholeOrganizationprovider.meta as meta then {\n            wholeORGproveder -&gt; meta.tag = create('Coding') as coding then {\n              wholeORGproveder -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              wholeORGproveder -&gt; coding.code = 'ClinicalDocument/recordTarget/PatientRole/patient/providerOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          wholeORGproveder -&gt;  organizationpartOfprovider.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %WholeOrganizationprovider.id) &quot;asOrganization&quot;;\n          wholeORGproveder.id as id -&gt; WholeOrganizationprovider.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              wholeORGproveder -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  WholeOrganizationprovider.id = (r + '-' + ext) as uuid7,  e6.fullUrl = append('https://example/Organization/', uuid7);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          wholeORGproveder.name as v -&gt; WholeOrganizationprovider.name = (v.other);\n          wholeORGproveder.telecom -&gt; WholeOrganizationprovider.telecom;\n          wholeORGproveder.addr -&gt; WholeOrganizationprovider.address;\n        } &quot;wholeOrganizationprovider&quot;;\n      } &quot;OrganizationPartOfprovider&quot;;\n    } &quot;organization&quot;;\n  };\n}\n\ngroup CustodianOrganization(source src : CustodianOrganization, target tgt : Organization) {\n  src.name as v -&gt; tgt.name = (v.other);\n  src.telecom -&gt; tgt.telecom;\n  src.addr -&gt; tgt.address;\n}\n\ngroup ClinicalDocumentEncounter(source src : EncompassingEncounter, target bundle : Bundle, target encounter : Encounter, target patient : Patient) {\n  src.id -&gt; encounter.identifier;\n  src.code as code1 -&gt; encounter.class = create('Coding') as coding then {\n    code1.code as code -&gt; coding.code = cast(code, 'string');\n    code1.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n    code1.displayName as display -&gt; coding.display = cast(display, 'string');\n  } &quot;class&quot;;\n  src where src.code.exists().not() -&gt; encounter.class = create('Coding') as coding then {\n    src -&gt; coding.code = 'AMB' &quot;code&quot;;\n    src -&gt; coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode' &quot;codeS&quot;;\n    src -&gt; coding.display = 'ambulatory' &quot;display&quot;;\n  } &quot;NonCodeclass&quot;;\n  src -&gt;  encounter.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n  src -&gt; encounter.status = 'finished' &quot;status&quot;;\n  // effectiveTime=period\n  src where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n    src.effectiveTime as eff -&gt; encounter.period = create('Period') as period then IVLTSPeriod(eff, period);\n  } &quot;where&quot;;\n  // effectiveTime = time-stamp\n  src where effectiveTime.low.exists().not() or effectiveTime.high.exists().not() then {\n    src.effectiveTime as effectivetime1 -&gt; encounter.period = create('Period') as period then {\n      effectivetime1 -&gt; period.start = create('dateTime') as start then TSDateTime(effectivetime1, start) &quot;val&quot;;\n    } &quot;efft&quot;;\n  } &quot;where&quot;;\n  // src.effectiveTime as effectivetime1 -&gt; encounter.period as period, period.start=(effectivetime1.value);\n  src.dischargeDispositionCode as dischargeDispositionCode then {\n    dischargeDispositionCode -&gt; encounter.hospitalization as hospitalization then {\n      dischargeDispositionCode -&gt; hospitalization.dischargeDisposition &quot;disDisp&quot;;\n    } &quot;disposition&quot;;\n  } &quot;discharge&quot;;\n  src.responsibleParty as responsibleParty -&gt; encounter.participant as participant then {\n    responsibleParty.assignedEntity as entity -&gt;  bundle.entry as e,  e.request = create('BackboneElement') as request,  request.method = 'POST',  e.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole',  participant.individual = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n      entity.code -&gt; practitionerRole.code;\n      entity -&gt;  bundle.entry as e1,  e1.request = create('BackboneElement') as request,  request.method = 'PUT',  e1.resource = create('Practitioner') as practitioner then {\n        entity -&gt; practitioner.meta as meta then {\n          entity -&gt; meta.tag = create('Coding') as coding then {\n            entity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            entity -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        entity.id as id -&gt; practitioner.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e1.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;2&quot;;\n        entity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;diverso&quot;;\n        entity.addr -&gt; practitioner.address;\n        entity.telecom -&gt; practitioner.telecom;\n        entity.assignedPerson as person then {\n          person.name -&gt; practitioner.name;\n          person.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimeENC&quot;;\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n      } &quot;practitioner&quot;;\n      entity.representedOrganization as raporg -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.resource = create('Organization') as rapresentedorganization then {\n        raporg -&gt; rapresentedorganization.meta as meta then {\n          raporg -&gt; meta.tag = create('Coding') as coding then {\n            raporg -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            raporg -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty/representedOrganization' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        // raporg.id -&gt; rapresentedorganization.identifier;\n        raporg.id as id -&gt; rapresentedorganization.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext then {\n            raporg -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n          } &quot;ext&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  rapresentedorganization.id = (r + '-' + ext) as uuid3,  e2.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %rapresentedorganization.id);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        raporg.name as v -&gt; rapresentedorganization.name = (v.other);\n        raporg.telecom -&gt; rapresentedorganization.telecom;\n        raporg.addr -&gt; rapresentedorganization.address;\n        raporg.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e3,  e3.request = create('BackboneElement') as request,  request.method = 'PUT',  e3.resource = create('Organization') as organization1,  organization1.id = uuid() as uuid4,  e3.fullUrl = append('https://example/Organization/', uuid4),  rapresentedorganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) then {\n          // OrgPartOf.id -&gt; organization1.identifier;\n          OrgPartOf -&gt; organization1.meta as meta then {\n            OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n              OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              OrgPartOf -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e3.fullUrl = append('https://example/Organization/', uuid4),  rapresentedorganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          OrgPartOf.code -&gt; organization1.type;\n          OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = true;\n          OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e4,  e4.request = create('BackboneElement') as request,  request.method = 'PUT',  e4.resource = create('Organization') as organization2 then {\n            // wholeOrgan.id -&gt; organization2.identifier;\n            wholeOrgan -&gt; organization2.meta as meta then {\n              wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                wholeOrgan -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty/representedOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n              } &quot;coding&quot;;\n            } &quot;meta&quot;;\n            wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid5,  e4.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            wholeOrgan.name as v -&gt; organization2.name = (v.other);\n            wholeOrgan.telecom -&gt; organization2.telecom;\n            wholeOrgan.addr -&gt; organization2.address;\n          } &quot;wholeOrgan&quot;;\n        } &quot;OrgPartOf&quot;;\n      } &quot;organization&quot;;\n    } &quot;entity&quot;;\n  } &quot;particpant&quot;;\n  src.encounterParticipant as participant then {\n    participant.assignedEntity as assignedEntity -&gt;  bundle.entry as e313,  e313.request = create('BackboneElement') as request,  request.method = 'POST',  e313.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid1,  e313.fullUrl = append('https://example/PractitionerRole/', uuid1),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant1 then {\n      // participant.time as time-&gt;participant1.period as period ,period.start=(time.value);\n      participant -&gt; participant1.period = create('Period') as period then {\n        participant.time as time -&gt; period.start = create('dateTime') as start then TSDateTime(time, start);\n      } &quot;period&quot;;\n      participant as p -&gt; participant1.type as type then {\n        p -&gt; type.coding as coding then {\n          p -&gt; coding.code = (p.typeCode) &quot;codice&quot;;\n          p -&gt; coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' &quot;system&quot;;\n        } &quot;codeType&quot;;\n      } &quot;type&quot;;\n      participant -&gt;  participant1.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) &quot;par&quot;;\n      participant.functionCode -&gt; practitionerRole.code;\n      assignedEntity -&gt;  bundle.entry as e33,  e33.request = create('BackboneElement') as request,  request.method = 'PUT',  e33.resource = create('Practitioner') as practitioner then {\n        assignedEntity -&gt; practitioner.meta as meta then {\n          assignedEntity -&gt; meta.tag = create('Coding') as coding then {\n            assignedEntity -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            assignedEntity -&gt; coding.code = 'ClinicalDocument/encounterParticipant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        assignedEntity.id as id -&gt; practitioner.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  practitioner.id = (r + '-' + ext) as uuid2,  e33.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        assignedEntity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;2&quot;;\n        assignedEntity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n          id.extension as ext -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n        } &quot;diverso&quot;;\n        assignedEntity.code -&gt; practitionerRole.code;\n        assignedEntity.addr -&gt; practitioner.address;\n        assignedEntity.telecom -&gt; practitioner.telecom;\n        assignedEntity.associatedPerson as assignedPerson then {\n          assignedPerson.name -&gt; practitioner.name;\n          assignedPerson.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10) &quot;birthTimelegal&quot;;\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n        assignedEntity.representedOrganization as representedOrganization -&gt;  bundle.entry as e34,  e34.request = create('BackboneElement') as request,  request.method = 'PUT',  e34.resource = create('Organization') as organization then {\n          representedOrganization -&gt; organization.meta as meta then {\n            representedOrganization -&gt; meta.tag = create('Coding') as coding then {\n              representedOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              representedOrganization -&gt; coding.code = 'ClinicalDocument/encounterParticipant/scopingOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          representedOrganization.id as id -&gt; organization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              representedOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  organization.id = (r + '-' + ext) as uuid3,  e34.fullUrl = append('https://example/Organization/', uuid3),  practitionerRole.organization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          representedOrganization.name as v -&gt; organization.name = (v.other);\n          representedOrganization.telecom -&gt; organization.telecom;\n          representedOrganization.addr -&gt; organization.address;\n          representedOrganization.asOrganizationPartOf as OrgPartOf -&gt;  bundle.entry as e35,  e35.request = create('BackboneElement') as request,  request.method = 'PUT',  e35.resource = create('Organization') as organization1 then {\n            OrgPartOf.id as id -&gt; organization1.identifier as identifier then {\n              OrgPartOf -&gt; organization1.meta as meta then {\n                OrgPartOf -&gt; meta.tag = create('Coding') as coding then {\n                  OrgPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  OrgPartOf -&gt; coding.code = 'ClinicalDocument/encounterParticipant/scopingOrganization/asOrganizationPartOf' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n              id.extension as ext -&gt; identifier.value = ext then {\n                OrgPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n              } &quot;ext&quot;;\n              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n              id.root as r then {\n                id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid4,  e35.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id);\n              } &quot;r&quot;;\n            } &quot;identifier&quot;;\n            OrgPartOf.code -&gt; organization1.type;\n            OrgPartOf.statusCode as status where (value = 'active') -&gt;  organization1.active = create('boolean'),  organization1.active = true;\n            OrgPartOf.wholeOrganization as wholeOrgan -&gt;  bundle.entry as e36,  e36.request = create('BackboneElement') as request,  request.method = 'PUT',  e36.resource = create('Organization') as organization2 then {\n              wholeOrgan -&gt; organization2.meta as meta then {\n                wholeOrgan -&gt; meta.tag = create('Coding') as coding then {\n                  wholeOrgan -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  wholeOrgan -&gt; coding.code = 'ClinicalDocument/encounterParticipant/scopingOrganization/asOrganizationPartOf/wholeOrganization' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              wholeOrgan.id as id -&gt; organization2.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  wholeOrgan -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  organization1.id = (r + '-' + ext) as uuid5,  e36.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              wholeOrgan.name as v -&gt; organization2.name = (v.other);\n              wholeOrgan.telecom -&gt; organization2.telecom;\n              wholeOrgan.addr -&gt; organization2.address;\n            } &quot;wholeOrgan&quot;;\n          } &quot;OrgPartOf&quot;;\n        };\n      } &quot;assignedEntity&quot;;\n    } &quot;Participant&quot;;\n  };\n  src.location as Location then {\n    Location.healthCareFacility as HCF -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'PUT',  e5.resource = create('Location') as loc then {\n      HCF -&gt; loc.meta as meta then {\n        HCF -&gt; meta.tag = create('Coding') as coding then {\n          HCF -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n          HCF -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility' &quot;code&quot;;\n        } &quot;coding&quot;;\n      } &quot;meta&quot;;\n      HCF -&gt; encounter.location as locations then {\n        HCF.id as id -&gt; loc.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext then {\n            HCF -&gt; request.url = append('Location?identifier=', ext) &quot;UUID&quot;;\n          } &quot;ext&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  loc.id = (r + '-' + ext) as uuid6,  e5.fullUrl = append('https://example/Location/', uuid6),  locations.location = create('Reference') as reference,  reference.reference = ('https://example/Location/' + %loc.id) &quot;locc&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        HCF.code -&gt; loc.type;\n        HCF.location as srcLocation then {\n          srcLocation.name as v -&gt; loc.name = (v.other);\n          srcLocation.addr -&gt; loc.address;\n        } &quot;location2&quot;;\n        HCF.serviceProviderOrganization as servProvOrg -&gt;  bundle.entry as e,  e.request = create('BackboneElement') as request,  request.method = 'PUT',  e.resource = create('Organization') as serviceProviderOrganization then {\n          servProvOrg -&gt; serviceProviderOrganization.meta as meta then {\n            servProvOrg -&gt; meta.tag = create('Coding') as coding then {\n              servProvOrg -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n              servProvOrg -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility/serviceProviderOrganization' &quot;code&quot;;\n            } &quot;coding&quot;;\n          } &quot;meta&quot;;\n          servProvOrg.id as id -&gt; serviceProviderOrganization.identifier as identifier then {\n            id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n            id.extension as ext -&gt; identifier.value = ext then {\n              servProvOrg -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n            } &quot;ext&quot;;\n            id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n            id.root as r then {\n              id.extension as ext -&gt;  serviceProviderOrganization.id = (r + '-' + ext) as uuid,  e.fullUrl = append('https://example/Organization/', uuid),  loc.managingOrganization = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %serviceProviderOrganization.id);\n            } &quot;r&quot;;\n          } &quot;identifier&quot;;\n          servProvOrg.name as v -&gt; serviceProviderOrganization.name = (v.other);\n          servProvOrg.telecom -&gt; serviceProviderOrganization.telecom;\n          servProvOrg.addr -&gt; serviceProviderOrganization.address;\n          servProvOrg.asOrganizationPartOf as asOrgPartOf then {\n            asOrgPartOf as asOrgPartOf1 -&gt;  bundle.entry as e1,  e1.request = create('BackboneElement') as request,  request.method = 'PUT',  e1.resource = create('Organization') as asorganization then {\n              asOrgPartOf1 -&gt; asorganization.meta as meta then {\n                asOrgPartOf1 -&gt; meta.tag = create('Coding') as coding then {\n                  asOrgPartOf1 -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                  asOrgPartOf1 -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility/serviceProviderOrganization/asOrganizationPartOf' &quot;code&quot;;\n                } &quot;coding&quot;;\n              } &quot;meta&quot;;\n              asOrgPartOf1.id as id -&gt; asorganization.identifier as identifier then {\n                id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                id.extension as ext -&gt; identifier.value = ext then {\n                  asOrgPartOf1 -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                } &quot;ext&quot;;\n                id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                id.root as r then {\n                  id.extension as ext -&gt;  asorganization.id = (r + '-' + ext) as uuid1,  e1.fullUrl = append('https://example/Organization/', uuid1),  serviceProviderOrganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %asorganization.id);\n                } &quot;r&quot;;\n              } &quot;identifier&quot;;\n              asOrgPartOf1.code -&gt; asorganization.type;\n              asOrgPartOf1.statusCode as status where (code = 'active') -&gt;  asorganization.active = create('boolean'),  asorganization.active = 'true';\n              asOrgPartOf1.wholeOrganization as wholeOrg then {\n                wholeOrg as wholeOrg1 -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.resource = create('Organization') as wholeorganization then {\n                  wholeOrg1 -&gt; wholeorganization.meta as meta then {\n                    wholeOrg1 -&gt; meta.tag = create('Coding') as coding then {\n                      wholeOrg1 -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                      wholeOrg1 -&gt; coding.code = 'ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility/serviceProviderOrganization/asOrganizationPartOf' &quot;code&quot;;\n                    } &quot;coding&quot;;\n                  } &quot;meta&quot;;\n                  wholeOrg1.id as id -&gt; asorganization.identifier as identifier then {\n                    id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n                    id.extension as ext -&gt; identifier.value = ext then {\n                      wholeOrg1 -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n                    } &quot;ext&quot;;\n                    id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                    id.root as r then {\n                      id.extension as ext -&gt;  wholeorganization.id = (r + '-' + ext) as uuid2,  e2.fullUrl = append('https://example/Organization/', uuid2),  asorganization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %wholeorganization.id);\n                    } &quot;r&quot;;\n                  } &quot;identifier&quot;;\n                  wholeOrg1.name as v -&gt; wholeorganization.name = (v.other);\n                  wholeOrg1.telecom -&gt; wholeorganization.telecom;\n                  wholeOrg1.addr -&gt; wholeorganization.address;\n                } &quot;wholeOrg1&quot;;\n              } &quot;wholeOrg&quot;;\n            } &quot;OrganizationPartOfprovider&quot;;\n          } &quot;asOrg1&quot;;\n        } &quot;SPO&quot;;\n      } &quot;hcf&quot;;\n    } &quot;location1&quot;;\n  };\n}\n\ngroup ClinicalDocumentationOf(source src : representedOrganization, target tgt : organization, target bundle : Bundle) {\n  src.name -&gt; tgt.name;\n  src.telecom -&gt; tgt.telecom;\n  src.addr -&gt; tgt.address;\n  src.asOrganizationPartOf as asOrganizationPartOf then {\n    asOrganizationPartOf -&gt;  bundle.entry as e,  e.request = create('BackboneElement') as request,  request.method = 'PUT',  e.resource = create('Organization') as organization2 then {\n      asOrganizationPartOf -&gt; organization2.meta as meta then {\n        asOrganizationPartOf -&gt; meta.tag = create('Coding') as coding then {\n          asOrganizationPartOf -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n          asOrganizationPartOf -&gt; coding.code = 'ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n        } &quot;coding&quot;;\n      } &quot;meta&quot;;\n      asOrganizationPartOf.id as id -&gt; organization2.identifier as identifier then {\n        id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n        id.extension as ext -&gt; identifier.value = ext then {\n          asOrganizationPartOf -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n        } &quot;ext&quot;;\n        id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n        id.root as r then {\n          id.extension as ext -&gt;  organization2.id = (r + '-' + ext) as uuid,  e.fullUrl = append('https://example/Organization/', uuid),  tgt.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id);\n        } &quot;r&quot;;\n      } &quot;identifier&quot;;\n      asOrganizationPartOf.code -&gt; organization2.type;\n      asOrganizationPartOf.statusCode where (value = 'active') -&gt; organization2.active = 'true';\n      asOrganizationPartOf.wholeOrganization as wholeOrganization -&gt;  bundle.entry as e3,  e3.request = create('BackboneElement') as request,  request.method = 'PUT',  e3.resource = create('Organization') as organization3 then {\n        wholeOrganization -&gt; organization3.meta as meta then {\n          wholeOrganization -&gt; meta.tag = create('Coding') as coding then {\n            wholeOrganization -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            wholeOrganization -&gt; coding.code = 'ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        wholeOrganization.id as id -&gt; organization3.identifier as identifier then {\n          id.root as r -&gt; identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') &quot;root1&quot;;\n          id.extension as ext -&gt; identifier.value = ext then {\n            wholeOrganization -&gt; request.url = append('Organization?identifier=', ext) &quot;UUID&quot;;\n          } &quot;ext&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n          id.root as r then {\n            id.extension as ext -&gt;  organization3.id = (r + '-' + ext) as uuid1,  e.fullUrl = append('https://example/Organization/', uuid1),  organization2.partOf = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid1);\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        wholeOrganization.id -&gt; organization3.identifier;\n        wholeOrganization.name -&gt; organization3.name;\n        wholeOrganization.telecom -&gt; organization3.telecom;\n        wholeOrganization.addr -&gt; organization3.address;\n      };\n    } &quot;organizationPartOf&quot;;\n  } &quot;creation&quot;;\n}\n\ngroup ChExtEprVersionNumber(source src : INT, target ext : Extension) {\n  src -&gt; ext.url = 'http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber' &quot;url&quot;;\n  src.value as v -&gt; ext.value = cast(v, 'string');\n}\n\ngroup ClinicalDocumentOrganization(source src : CustodianOrganization, target tgt : Organization) {\n  src.id -&gt; tgt.identifier;\n  src.name as v -&gt; tgt.name = (v.other);\n  src.telecom -&gt; tgt.telecom;\n  src.addr -&gt; tgt.address;\n}\n\n</pre>\n      </div>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "cda2fhirHeader"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2024-04-11T15:38:19+02:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 Italy"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 Italy" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://hl7.it" ]     ] )
  ] ) ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "IT" ] ;
fhir:display [ fhir:v "Italy" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "ClinicalDocument" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "AssignedAuthor" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "AssignedEntity" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "AssociatedEntity" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "CustodianOrganization" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/Section"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Section>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "Section" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/PatientRole"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/PatientRole>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "PatientRole" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "Bundle" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Composition"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Composition>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Composition" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Patient" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Encounter" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Person"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Person>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Patient" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Practitioner" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Specimen"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Specimen>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Specimen" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Organization" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/HealthCareFacility"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/HealthCareFacility>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "HealthCareFacility" ]
  ] ) ; # 
  fhir:import ( [
fhir:v "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes"^^xsd:anyURI ;
fhir:link <http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes>
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "CdaToBundle" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "cda" ] ;
fhir:type [ fhir:v "ClinicalDocument" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "ClinicalDocumentToBody" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e" ]       ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "POST" ]         ] )       ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "composition" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Composition" ]         ] )       ] [
fhir:context [ fhir:v "composition" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Composition/" ]         ] [
fhir:value [ fhir:v "uuid1" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Composition" ]         ] )       ] [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e2" ]       ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "requestPAT" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] [
fhir:context [ fhir:v "requestPAT" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]         ] )       ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "patient" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Patient" ]         ] )       ] [
fhir:context [ fhir:v "patient" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Patient/" ]         ] [
fhir:value [ fhir:v "uuid2" ]         ] )       ] [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e3" ]       ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "POST" ]         ] )       ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "encounter" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Encounter" ]         ] )       ] [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Encounter/" ]         ] [
fhir:value [ fhir:v "uuid3" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Encounter" ]         ] )       ] [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4" ]       ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "POST" ]         ] )       ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "DocumentReference" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "DocumentReference" ]         ] )       ] [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/DocumentReference/" ]         ] [
fhir:value [ fhir:v "uuid3" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "DocumentReference" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "cdatobundle" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentToBundle" ] ;
          ( fhir:variable [ fhir:v "cda" ] [ fhir:v "patient" ] [ fhir:v "composition" ] [ fhir:v "encounter" ] [ fhir:v "bundle" ] [ fhir:v "DocumentReference" ] )         ] )       ] [
fhir:name [ fhir:v "patient" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "recordTarget" ] ;
fhir:variable [ fhir:v "recordTarget" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "recPat" ] ;
          ( fhir:source [
fhir:context [ fhir:v "recordTarget" ] ;
fhir:element [ fhir:v "patientRole" ] ;
fhir:variable [ fhir:v "patient" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "record" ] ;
            ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "patient" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "value" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] ) ;
fhir:documentation [ fhir:v "r -> requestPAT.url = append('Patient?identifier=',ext) \"UUID\";" ]             ] )           ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentToBundle" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "cda" ] ;
fhir:type [ fhir:v "ClinicalDocument" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "patient" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "composition" ] ;
fhir:type [ fhir:v "Composition" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "encounter" ] ;
fhir:type [ fhir:v "Encounter" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "DocumentReference" ] ;
fhir:type [ fhir:v "DocumentReference" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:transform [ fhir:v "uuid" ]       ] )     ] [
fhir:name [ fhir:v "identifier" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "type" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "transaction" ]         ] )       ] )     ] [
fhir:name [ fhir:v "date" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "timestamp" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "timestamp.now()" ]         ] )       ] )     ] [
fhir:name [ fhir:v "composition" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentComposition" ] ;
        ( fhir:variable [ fhir:v "cda" ] [ fhir:v "composition" ] [ fhir:v "patient" ] [ fhir:v "encounter" ] [ fhir:v "bundle" ] [ fhir:v "DocumentReference" ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentComposition" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "ClinicalDocument" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Composition" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "patientResource" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "encounter" ] ;
fhir:type [ fhir:v "Encounter" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "DocumentReference" ] ;
fhir:type [ fhir:v "DocumentReference" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "languageCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "languageCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "language" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "status" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "current" ]         ] )       ] )     ] [
fhir:name [ fhir:v "content" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "content" ] ;
fhir:variable [ fhir:v "content" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "comp" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "content" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attachment" ] ;
fhir:variable [ fhir:v "attachment" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Attachment" ]           ] )         ] [
fhir:context [ fhir:v "attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "title" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "string" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "context" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "context" ] ;
fhir:variable [ fhir:v "context" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "comp" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "context" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "related" ] ;
fhir:variable [ fhir:v "referenceComp" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "referenceComp" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Composition/' + %tgt.id" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "identifier" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:condition [ fhir:v "src.setId.exists().not()" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "identifier" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "setId" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "status" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "final" ]         ] )       ] )     ] [
fhir:name [ fhir:v "code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "title" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "title" ] ;
fhir:variable [ fhir:v "t" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "title" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "t.dataString" ]         ] )       ] )     ] [
fhir:name [ fhir:v "title" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:condition [ fhir:v "src.title.exists().not()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "display" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "displayName" ] ;
          ( fhir:source [
fhir:context [ fhir:v "code" ] ;
fhir:element [ fhir:v "displayName" ] ;
fhir:variable [ fhir:v "display" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "title" ] ;
fhir:transform [ fhir:v "cast" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "display" ]             ] [
fhir:value [ fhir:v "string" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "effectiveTime" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "date" ] ;
fhir:variable [ fhir:v "value" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]         ] )       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
        ( fhir:variable [ fhir:v "effectiveTime" ] [ fhir:v "value" ] )       ] )     ] [
fhir:name [ fhir:v "versionNumber" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "versionNumber" ] ;
fhir:variable [ fhir:v "versionNumber" ] ;
fhir:condition [ fhir:v "(value > 1)" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext2" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ChExtEprVersionNumber" ] ;
        ( fhir:variable [ fhir:v "versionNumber" ] [ fhir:v "ext2" ] )       ] )     ] [
fhir:name [ fhir:v "confidentialityCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "confidentialityCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "confidentiality" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "patientRole" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "recordTarget" ] ;
fhir:variable [ fhir:v "recordTarget" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "subject" ] ;
        ( fhir:source [
fhir:context [ fhir:v "recordTarget" ] ;
fhir:element [ fhir:v "patientRole" ] ;
fhir:variable [ fhir:v "patient" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %patientResource.id" ]           ] )         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentPatientRole" ] ;
          ( fhir:variable [ fhir:v "patient" ] [ fhir:v "patientResource" ] [ fhir:v "bundle" ] )         ] )       ] [
fhir:name [ fhir:v "patientRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "recordTarget" ] ;
fhir:element [ fhir:v "patientRole" ] ;
fhir:variable [ fhir:v "patient" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "reference1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %patientResource.id" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "srcAuthor" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "srcAuthor" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "date" ]         ] )       ] [
fhir:name [ fhir:v "assignedAuthor" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "assignedAuthor" ] ;
fhir:variable [ fhir:v "assignedAuthor" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "OIDCF" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.6.3.2')" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "ParcatitionerROL" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e1" ]             ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "POST" ]               ] )             ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]               ] )             ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]               ] [
fhir:value [ fhir:v "uuid1" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]               ] )             ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "ASSAUth" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e2" ]               ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "functionCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "functionCode" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/author" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] ) ;
fhir:documentation [ fhir:v "then {" ]                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "aut" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                       ] [
fhir:value [ fhir:v "uuid2" ]                       ] )                     ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "diverso" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "birth" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "date" ]                       ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "refAuth" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "referenceAuth" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "referenceAuth" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                   ] )                 ] )               ] ) ;
fhir:documentation [ fhir:v "assignedAuthor.code as codice -> practitionerRole.code as code2 then CECodeableConcept(codice,code2);" ]             ] [
fhir:name [ fhir:v "representedOrganization" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "representedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e3" ]               ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "aut" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid3" ]                       ] )                     ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "referenceOrg" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "referenceOrg" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid3" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/author/representedOrganization" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "OrgPartOf" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4" ]                 ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/author/representedOrganization/asOrganizationPartOf" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "aut" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid4" ]                         ] )                       ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                     ] )                   ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "true" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "wholeOrganization" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e10bis" ]                   ] [
fhir:context [ fhir:v "e10bis" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                     ] )                   ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                     ] )                   ] [
fhir:context [ fhir:v "e10bis" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "code" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/author/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "identifier" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r" ]                         ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                         ] [
fhir:value [ fhir:v "uri" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "ext" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                           ] [
fhir:value [ fhir:v "ext" ]                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                       ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "s" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "r" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "aut" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                           ] )                         ] [
fhir:context [ fhir:v "e10bis" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                           ] [
fhir:value [ fhir:v "uuid5" ]                           ] )                         ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                           ] )                         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "name" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "telecom" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] [
fhir:name [ fhir:v "addr" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] )                 ] )               ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "Codice Fiscale" ]         ] [
fhir:name [ fhir:v "oidPartitaIVA" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.6.3.2')" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "Device" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e6bis3" ]             ] [
fhir:context [ fhir:v "e6bis3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "POST" ]               ] )             ] [
fhir:context [ fhir:v "e6bis3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "device" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Device" ]               ] )             ] [
fhir:context [ fhir:v "device" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid6bis3" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
fhir:context [ fhir:v "e6bis3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "https://example/Device/" ]               ] [
fhir:value [ fhir:v "uuid6bis3" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Device" ]               ] )             ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Device/' + %device.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "OrgPartitaIVA" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e251" ]               ] [
fhir:context [ fhir:v "e251" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e251" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/AuthorPartitaIVA" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e251" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid2" ]                       ] )                     ] [
fhir:context [ fhir:v "device" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "owner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "Partita IVA" ]         ] [
fhir:name [ fhir:v "NullFlavor" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "nullFlavor.exists()" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "Device" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
fhir:element [ fhir:v "assignedAuthoringDevice" ] ;
fhir:variable [ fhir:v "assignedAuthoringDevice" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e6bis" ]             ] [
fhir:context [ fhir:v "e6bis" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "POST" ]               ] )             ] [
fhir:context [ fhir:v "e6bis" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "device" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Device" ]               ] )             ] [
fhir:context [ fhir:v "device" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid6bis" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
fhir:context [ fhir:v "e6bis" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "https://example/Device/" ]               ] [
fhir:value [ fhir:v "uuid6bis" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Device" ]               ] )             ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Device' + %device.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "device" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] ) ;
fhir:documentation [ fhir:v "assignedAuthoringDevice.templateId -> device.identifier;" ]             ] [
fhir:name [ fhir:v "manufacturer" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "manufacturerModelName" ] ;
fhir:variable [ fhir:v "manufacturerModelName" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "displayRule" ] ;
                ( fhir:source [
fhir:context [ fhir:v "manufacturerModelName" ] ;
fhir:variable [ fhir:v "m" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "device" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "manufacturer" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "m.displayName" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "deviceName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "softwareName" ] ;
fhir:variable [ fhir:v "softwareName" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "device" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "deviceName" ] ;
fhir:variable [ fhir:v "deviceName" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "typeName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "softwareName" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "deviceName" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "other" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "softwareName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "deviceName" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s.displayName" ]                   ] )                 ] )               ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "ID nullFlavor" ]         ] )       ] [
fhir:name [ fhir:v "DataEnter" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "dataEnterer" ] ;
fhir:variable [ fhir:v "dataEnt" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e6" ]         ] [
fhir:context [ fhir:v "e6" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e6" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e6" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "dataEnt" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "date" ]           ] )         ] [
fhir:name [ fhir:v "AssignedEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "dataEnt" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "assignedEntity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e7" ]           ] [
fhir:context [ fhir:v "e7" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e7" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/dataEnterer" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "codice" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code2" ]             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "CECodeableConcept" ] ;
              ( fhir:variable [ fhir:v "codice" ] [ fhir:v "code2" ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "extension" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "dataenterer" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e7" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid2" ]                   ] )                 ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "diverso" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "assignedPerson" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "birth" ] ;
              ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "date" ]                   ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "RepresentedOrganization" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "representedOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e8" ]             ] [
fhir:context [ fhir:v "e8" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e8" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/dataEnterer/representedOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "dataenterer" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e8" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "referenceOrg" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "referenceOrg" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "asOrganizationPartOf" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e9" ]               ] [
fhir:context [ fhir:v "e9" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e9" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/dataEnterer/representedOrganization/asOrganizationPartOf" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "dataenterer" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e9" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid4" ]                       ] )                     ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                   ] )                 ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "wholeOrganization" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e10" ]                 ] [
fhir:context [ fhir:v "e10" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e10" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/dataEnterer/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "dataenterer" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e10" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid5" ]                         ] )                       ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] ) ;
fhir:documentation [ fhir:v "START DATA ENTER" ]       ] ) ;
fhir:documentation [ fhir:v "START AUTHOR" ]     ] [
fhir:name [ fhir:v "inform" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "informant" ] ;
fhir:variable [ fhir:v "informant" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "informant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "informant" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "assignedEntity" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e11" ]         ] [
fhir:context [ fhir:v "e11" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e11" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e11" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "attester" ] ;
          ( fhir:source [
fhir:context [ fhir:v "informant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attester" ] ;
fhir:variable [ fhir:v "attester" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "mode" ] ;
            ( fhir:source [
fhir:context [ fhir:v "informant" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "professional" ]               ] )             ] )           ] [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "informant" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "assignedEntity" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e12" ]             ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informant" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "dataenterer" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                     ] [
fhir:value [ fhir:v "uuid2" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "diverso" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "person" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "birth" ] ;
                ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "date" ]                     ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "organization" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "representedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e13" ]               ] [
fhir:context [ fhir:v "e13" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e13" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informant/representedOrganization" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e13" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid3" ]                       ] )                     ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "qualification" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "partOf" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "partOf" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "organizationPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e14" ]                   ] [
fhir:context [ fhir:v "e14" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                     ] )                   ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                     ] )                   ] [
fhir:context [ fhir:v "e14" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "code" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informant/representedOrganization/asOrganizationPartOf" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "identifier" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r" ]                         ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                         ] [
fhir:value [ fhir:v "uri" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "ext" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                           ] [
fhir:value [ fhir:v "ext" ]                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                       ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "s" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "r" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                           ] )                         ] [
fhir:context [ fhir:v "e14" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                           ] [
fhir:value [ fhir:v "uuid4" ]                           ] )                         ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                           ] )                         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                       ] )                     ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "true" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "asOrganizationPartOf" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "partOf1" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "wholeOrganization" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "organizationPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrganization" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e15" ]                       ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                         ] )                       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                         ] )                       ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                             ] )                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                               ] )                             ] )                           ] [
fhir:name [ fhir:v "code" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informant/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                               ] )                             ] )                           ] )                         ] )                       ] [
fhir:name [ fhir:v "identifier" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "r" ]                             ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                             ] [
fhir:value [ fhir:v "uri" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "ext" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                             ] )                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                               ] [
fhir:value [ fhir:v "ext" ]                               ] )                             ] )                           ] )                         ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                           ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "s" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "r" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                               ] )                             ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                               ] [
fhir:value [ fhir:v "uuid5" ]                               ] )                             ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                               ] )                             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                               ] )                             ] )                           ] )                         ] )                       ] [
fhir:name [ fhir:v "name" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "telecom" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                         ] )                       ] [
fhir:name [ fhir:v "addr" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                         ] )                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "START INFORMANT 1" ]     ] [
fhir:name [ fhir:v "inform2" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "informant" ] ;
fhir:variable [ fhir:v "informant" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "informant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "informant" ] ;
fhir:element [ fhir:v "relatedEntity" ] ;
fhir:variable [ fhir:v "related" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e16" ]         ] [
fhir:context [ fhir:v "e16" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e16" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "relatedPerson" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "RelatedPerson" ]           ] )         ] [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e16" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/RelatedPerson/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "RelatedPerson" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "relatedPerson" ] ;
          ( fhir:source [
fhir:context [ fhir:v "informant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attester" ] ;
fhir:variable [ fhir:v "attester" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "mode" ] ;
            ( fhir:source [
fhir:context [ fhir:v "informant" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "professional" ]               ] )             ] )           ] [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "informant" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/RelatedPerson/' + %relatedPerson.id" ]               ] )             ] )           ] [
fhir:name [ fhir:v "relatedPerson1" ] ;
            ( fhir:source [
fhir:context [ fhir:v "related" ] ;
fhir:element [ fhir:v "relatedPerson" ] ;
fhir:variable [ fhir:v "Person" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "related" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "relationship" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "related" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "related" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "Person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "birthinformant" ] ;
              ( fhir:source [
fhir:context [ fhir:v "related" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "date" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "valueD" ] ;
                ( fhir:source [
fhir:context [ fhir:v "date" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "value" ]                   ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "related" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %patientResource.id" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "START INFORMANT 2" ]     ] [
fhir:name [ fhir:v "custodian" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "custodian" ] ;
fhir:variable [ fhir:v "custodian" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "organization" ] ;
        ( fhir:source [
fhir:context [ fhir:v "custodian" ] ;
fhir:element [ fhir:v "assignedCustodian" ] ;
fhir:variable [ fhir:v "assignedCustodian" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e17" ]         ] [
fhir:context [ fhir:v "e17" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]           ] )         ] [
fhir:context [ fhir:v "e17" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "Organization" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedCustodian" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "Organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedCustodian" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedCustodian" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedCustodian" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/custodian" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "representedCustodianOrganization" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedCustodian" ] ;
fhir:element [ fhir:v "representedCustodianOrganization" ] ;
fhir:variable [ fhir:v "representedCustodianOrganization" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "representedCustodianOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "Organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "ext" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedCustodianOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e17" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                   ] [
fhir:value [ fhir:v "uuid" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "RefCustodian" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedCustodian" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "DocumentReference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "custodian" ] ;
fhir:variable [ fhir:v "referenceCU" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "referenceCU" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %Organization.id" ]               ] )             ] )           ] [
fhir:name [ fhir:v "custodian1" ] ;
            ( fhir:source [
fhir:context [ fhir:v "representedCustodianOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "custodian" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %Organization.id" ]               ] )             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "CustodianOrganization" ] ;
              ( fhir:variable [ fhir:v "representedCustodianOrganization" ] [ fhir:v "Organization" ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "START CUSTODIAN" ]     ] [
fhir:name [ fhir:v "informationRecipent" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "informationRecipient" ] ;
fhir:variable [ fhir:v "informationRecipient" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "intendedRecipent" ] ;
        ( fhir:source [
fhir:context [ fhir:v "informationRecipient" ] ;
fhir:element [ fhir:v "intendedRecipient" ] ;
fhir:variable [ fhir:v "intendedRecipient" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "attesterOrg" ] ;
          ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "informationRecipient" ] ;
fhir:variable [ fhir:v "informationRecipient2" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "intendedRecipienPract" ] ;
            ( fhir:source [
fhir:context [ fhir:v "informationRecipient" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attester" ] ;
fhir:variable [ fhir:v "attester" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "mode" ] ;
              ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "professional" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "PersonRecipient" ] ;
              ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e19" ]               ] [
fhir:context [ fhir:v "e19" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e19" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informationRecipient" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e19" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                       ] [
fhir:value [ fhir:v "uuid2" ]                       ] )                     ] [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference1" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
                ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "diverso" ] ;
                ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "date" ] ;
                ( fhir:source [
fhir:context [ fhir:v "informationRecipient2" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "bt" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "bt" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.date" ]                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "attesterOrg" ] ;
          ( fhir:source [
fhir:context [ fhir:v "intendedRecipient" ] ;
fhir:element [ fhir:v "receivedOrganization" ] ;
fhir:variable [ fhir:v "receivedOrganization" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "intendedRecipienOrg" ] ;
            ( fhir:source [
fhir:context [ fhir:v "informationRecipient" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attester" ] ;
fhir:variable [ fhir:v "attester" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "mode" ] ;
              ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "official" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "receivedOrganization" ] ;
              ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e20" ]               ] [
fhir:context [ fhir:v "e20" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e20" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informationRecipient/receivedOrganization" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e20" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid3" ]                       ] )                     ] [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference2" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "asOrganizationPartOf" ] ;
                ( fhir:source [
fhir:context [ fhir:v "receivedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "asOrganizationPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e21" ]                 ] [
fhir:context [ fhir:v "e21" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e21" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "uuid" ]                 ] [
fhir:context [ fhir:v "e21" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization" ]                   ] [
fhir:value [ fhir:v "uuid4" ]                   ] )                 ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "referenceor" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "referenceor" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization' + %organization2.id" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informationRecipient/receivedOrganization/asOrganizationPartOf" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e21" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid4" ]                         ] )                       ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "referenceor" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "referenceor" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                     ] )                   ] [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "true" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "wholeOrganization" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrganization3" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e22" ]                   ] [
fhir:context [ fhir:v "e22" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                     ] )                   ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                     ] )                   ] [
fhir:context [ fhir:v "e22" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization3" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "code" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/informationRecipient/receivedOrganization/asOrganizationPartOf/wholeOrganization" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "identifier" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r" ]                         ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                         ] [
fhir:value [ fhir:v "uri" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "ext" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                           ] [
fhir:value [ fhir:v "ext" ]                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                       ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "s" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "r" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                           ] )                         ] [
fhir:context [ fhir:v "e22" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                           ] [
fhir:value [ fhir:v "uuid5" ]                           ] )                         ] [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "referenceor" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                           ] )                         ] [
fhir:context [ fhir:v "referenceor" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization3.id" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "name" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "telecom" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] [
fhir:name [ fhir:v "addr" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrganization3" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "START INFORMATION RECIPIENT" ]     ] [
fhir:name [ fhir:v "LegalAuthenticator" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "legalAuthenticator" ] ;
fhir:variable [ fhir:v "legalAuth" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "legalAuth" ] ;
        ( fhir:source [
fhir:context [ fhir:v "legalAuth" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attester" ] ;
fhir:variable [ fhir:v "attester" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "entity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "legalAuth" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "PractitionerROLlegal" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e23" ]             ] [
fhir:context [ fhir:v "e23" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "POST" ]               ] )             ] [
fhir:context [ fhir:v "e23" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]               ] )             ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
fhir:context [ fhir:v "e23" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]               ] [
fhir:value [ fhir:v "uuid" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "mode" ] ;
              ( fhir:source [
fhir:context [ fhir:v "legalAuth" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "legal" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "time" ] ;
              ( fhir:source [
fhir:context [ fhir:v "legalAuth" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "PractitionerLegal" ] ;
              ( fhir:source [
fhir:context [ fhir:v "legalAuth" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "practitioner" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e24" ]                 ] [
fhir:context [ fhir:v "e24" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e24" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "entity" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "entity" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "entity" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/legalAuthenticator" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e24" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                         ] [
fhir:value [ fhir:v "uuid1" ]                         ] )                       ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "person" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] [
fhir:name [ fhir:v "birth" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "date" ]                         ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                         ] )                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "LAOrganiz" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "rapresentedOrg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e25" ]                 ] [
fhir:context [ fhir:v "e25" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e25" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/legalAuthenticator/representedOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e25" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid2" ]                         ] )                       ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "asOrgID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "rapresentedOrg" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "asOrgPartOf" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "asOrgPO" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf" ] ;
fhir:variable [ fhir:v "asOrgPartOf1" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e26" ]                     ] [
fhir:context [ fhir:v "e26" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                       ] )                     ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                       ] )                     ] [
fhir:context [ fhir:v "e26" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "asorganization" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "code" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/legalAuthenticator/representedOrganization/asOrganizationPartOf" ]                             ] )                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "identifier" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r" ]                           ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                           ] [
fhir:value [ fhir:v "uri" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "ext" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                             ] [
fhir:value [ fhir:v "ext" ]                             ] )                           ] )                         ] )                       ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                         ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "s" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "r" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                             ] )                           ] [
fhir:context [ fhir:v "e26" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                             ] [
fhir:value [ fhir:v "uuid2" ]                             ] )                           ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                             ] )                           ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %asorganization.id" ]                             ] )                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                       ] )                     ] [
fhir:name [ fhir:v "statusCode" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                         ] )                       ] [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "true"^^xsd:boolean ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "wholeOrg" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrg" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "wholeOrg1" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrg" ] ;
fhir:variable [ fhir:v "wholeOrg1" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e27" ]                         ] [
fhir:context [ fhir:v "e27" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                           ] )                         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                           ] )                         ] [
fhir:context [ fhir:v "e27" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "wholeorganization" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                           ] )                         ] [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "uuid" ]                         ] [
fhir:context [ fhir:v "e27" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                           ] [
fhir:value [ fhir:v "uuid4" ]                           ] )                         ] [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                           ] )                         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %wholeorganization.id" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                               ] )                             ] ) ;
                            ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                              ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                               ] ) ;
                              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                                 ] )                               ] )                             ] [
fhir:name [ fhir:v "code" ] ;
                              ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                               ] ) ;
                              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/legalAuthenticator/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                                 ] )                               ] )                             ] )                           ] )                         ] [
fhir:name [ fhir:v "identifier" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "r" ]                               ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                               ] [
fhir:value [ fhir:v "uri" ]                               ] )                             ] )                           ] [
fhir:name [ fhir:v "ext" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                               ] )                             ] ) ;
                            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                              ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                               ] ) ;
                              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                                 ] [
fhir:value [ fhir:v "ext" ]                                 ] )                               ] )                             ] )                           ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                             ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                              ( fhir:parameter [
fhir:value [ fhir:v "s" ]                               ] )                             ] )                           ] [
fhir:name [ fhir:v "r" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                             ] ) ;
                            ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                               ] ) ;
                              ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                                 ] )                               ] [
fhir:context [ fhir:v "e27" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                                 ] [
fhir:value [ fhir:v "uuid4" ]                                 ] )                               ] [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                                 ] )                               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %wholeorganization.id" ]                                 ] )                               ] )                             ] )                           ] )                         ] [
fhir:name [ fhir:v "name" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "telecom" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                           ] )                         ] [
fhir:name [ fhir:v "addr" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                           ] )                         ] )                       ] )                     ] )                   ] )                 ] )               ] )             ] ) ;
fhir:documentation [ fhir:v "Codice Fiscale" ]           ] [
fhir:name [ fhir:v "OrgPartitaIVA" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.6.3.2')" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e251" ]             ] [
fhir:context [ fhir:v "e251" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e251" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "mode" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "official" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/legalAuthenticatorPartitaIVA" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e251" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid2" ]                     ] )                   ] [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                     ] )                   ] )                 ] )               ] )             ] ) ;
fhir:documentation [ fhir:v "Partita IVA" ]           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "START Legal Authenticator" ]     ] [
fhir:name [ fhir:v "Auth" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "authenticator" ] ;
fhir:variable [ fhir:v "Auth" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e28" ]       ] [
fhir:context [ fhir:v "e28" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "POST" ]         ] )       ] [
fhir:context [ fhir:v "e28" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]         ] )       ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e28" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]         ] [
fhir:value [ fhir:v "uuid1" ]         ] )       ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "attester" ] ;
        ( fhir:source [
fhir:context [ fhir:v "Auth" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "attester" ] ;
fhir:variable [ fhir:v "attester" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "Auth" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "mode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "Auth" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "mode" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "professional" ]             ] )           ] )         ] [
fhir:name [ fhir:v "entity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "Auth" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "attester" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "party" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]             ] )           ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "practitioner" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e29" ]             ] [
fhir:context [ fhir:v "e29" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e29" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]               ] )             ] [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
fhir:context [ fhir:v "e29" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner" ]               ] [
fhir:value [ fhir:v "uuid2" ]               ] )             ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner' + %practitioner.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/authenticator" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e29" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                     ] [
fhir:value [ fhir:v "uuid2" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "diverso" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "address" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "person" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "personName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "birth" ] ;
                ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "birthTimeauth" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "date" ]                     ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                     ] )                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "reporganization" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "reporganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e30" ]             ] [
fhir:context [ fhir:v "e30" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e30" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reporganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "reporganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "reporganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "reporganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/authenticator/representedOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reporganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "reporganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e30" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reporganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reporganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reporganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "organizationpartof" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reporganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "organizationpartof" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e31" ]               ] [
fhir:context [ fhir:v "e31" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e31" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "asOrganizationpartof" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/authenticator/representedOrganization/asOrganizationPartOf" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e31" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid4" ]                       ] )                     ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %asOrganizationpartof.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                   ] )                 ] [
fhir:context [ fhir:v "asOsrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "wholeorg" ] ;
                ( fhir:source [
fhir:context [ fhir:v "organizationpartof" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeorg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e32" ]                 ] [
fhir:context [ fhir:v "e32" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e32" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "wholeOrganization" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "uuid" ]                 ] [
fhir:context [ fhir:v "e32" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                   ] [
fhir:value [ fhir:v "uuid5" ]                   ] )                 ] [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %wholeOrganization.id" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeorg" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeorg" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeorg" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeorg" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/authenticator/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeorg" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeorg" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e32" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid5" ]                         ] )                       ] [
fhir:context [ fhir:v "asOrganizationpartof" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %wholeOrganization.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeorg" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeorg" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeorg" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "START Authenticator" ]     ] [
fhir:name [ fhir:v "participant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ] ;
fhir:condition [ fhir:v "(typeCode != 'IND')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Participant1" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "associatedEntity" ] ;
fhir:variable [ fhir:v "associetedEntity" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e313" ]         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "period" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Period" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "start" ] ;
fhir:variable [ fhir:v "start" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]               ] )             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
              ( fhir:variable [ fhir:v "time" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time as time->participant1.period as period ,period.start=(time.value);" ]         ] [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "type" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "codeType" ] ;
            ( fhir:source [
fhir:context [ fhir:v "p" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "type" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "codice" ] ;
              ( fhir:source [
fhir:context [ fhir:v "p" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "p.typeCode" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "p" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "par" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "individual" ] ;
fhir:variable [ fhir:v "referencepart" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]             ] )           ] [
fhir:context [ fhir:v "referencepart" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]             ] )           ] )         ] [
fhir:name [ fhir:v "functionCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "functionCode" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "associetedEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e33" ]           ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "extension" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid2" ]                   ] )                 ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "diverso" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "associatedPerson" ] ;
fhir:variable [ fhir:v "associatedperson" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associatedperson" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "birth" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associatedperson" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
                ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "date" ]                   ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "scopingOrganization" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "scopingOrganization" ] ;
fhir:variable [ fhir:v "scopingOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e34" ]             ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "OrgPartOf" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e35" ]               ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid4" ]                       ] )                     ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                   ] )                 ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true"^^xsd:boolean ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "wholeOrgan" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e36" ]                 ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid5" ]                         ] )                       ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "PARTICIPANT" ]     ] [
fhir:name [ fhir:v "participant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ] ;
fhir:condition [ fhir:v "(typeCode = 'IND')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Participant2" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "associatedEntity" ] ;
fhir:variable [ fhir:v "associetedEntity" ] ;
fhir:condition [ fhir:v "(classCode = 'PROV')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e313" ]         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant2" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "period" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Period" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "start" ] ;
fhir:variable [ fhir:v "start" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]               ] )             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
              ( fhir:variable [ fhir:v "time" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time as time->participant2.period as period, period.start=(time.value);" ]         ] [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "type" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "codeType" ] ;
            ( fhir:source [
fhir:context [ fhir:v "p" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "type" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "codice" ] ;
              ( fhir:source [
fhir:context [ fhir:v "p" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "p.typeCode" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "p" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "par" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "individual" ] ;
fhir:variable [ fhir:v "referencepart" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]             ] )           ] [
fhir:context [ fhir:v "referencepart" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]             ] )           ] )         ] [
fhir:name [ fhir:v "functionCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "functionCode" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "associetedEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e33" ]           ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "extension" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid2" ]                   ] )                 ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "diverso" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "associatedPerson" ] ;
fhir:variable [ fhir:v "associatedperson" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associatedperson" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "birth" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associatedperson" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
                ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "date" ]                   ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "scopingOrganization" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "scopingOrganization" ] ;
fhir:variable [ fhir:v "scopingOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e34" ]             ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "OrgPartOf" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e35" ]               ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid4" ]                       ] )                     ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                   ] )                 ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true"^^xsd:boolean ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "wholeOrgan" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e36" ]                 ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid5" ]                         ] )                       ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "WHERE" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "associatedEntity" ] ;
fhir:variable [ fhir:v "associetedEntity" ] ;
fhir:condition [ fhir:v "(classCode = 'NOK') or (classCode = 'ECON') or (classCode = 'CAREGIVER')" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "participant3" ] ;
          ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e3131" ]           ] [
fhir:context [ fhir:v "e3131" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "POST" ]             ] )           ] [
fhir:context [ fhir:v "e3131" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "RelatedPerson" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "RelatedPerson" ]             ] )           ] [
fhir:context [ fhir:v "RelatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]           ] [
fhir:context [ fhir:v "e3131" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "https://example/RelatedPerson/" ]             ] [
fhir:value [ fhir:v "uuid1" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "RelatedPerson" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "link" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "patientResource" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "link" ] ;
fhir:variable [ fhir:v "link" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "link" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "refer" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "link" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "other" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/RelatedPerson/' + %RelatedPerson.id" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "id" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "RelatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "RelatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %patientResource.id" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "RelatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "relationship" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "RelatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "associatedPerson" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedEntity" ] ;
fhir:element [ fhir:v "associatedPerson" ] ;
fhir:variable [ fhir:v "associatedperson" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "associatedperson" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "RelatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] )             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "repOrg" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "associatedEntity" ] ;
fhir:variable [ fhir:v "associetedentity" ] ;
fhir:condition [ fhir:v "(classCode = 'GUAR')" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "associetedEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "associetedentity" ] ;
fhir:element [ fhir:v "scopingOrganization" ] ;
fhir:variable [ fhir:v "representedOrganization" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e37" ]           ] [
fhir:context [ fhir:v "e37" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e37" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedentity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "scopingOrganization" ] ;
            ( fhir:source [
fhir:context [ fhir:v "associetedentity" ] ;
fhir:element [ fhir:v "scopingOrganization" ] ;
fhir:variable [ fhir:v "scopingOrganization" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "associetedentity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
                ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "period" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "time" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "periodend" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "high" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "end" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "high.value" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "associetedentity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e37" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid1" ]                     ] )                   ] [
fhir:context [ fhir:v "patientResource" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "generalPractitioner" ] ;
fhir:variable [ fhir:v "referenceOrg" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "referenceOrg" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid1" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "OrgPartOf" ] ;
              ( fhir:source [
fhir:context [ fhir:v "scopingOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e38" ]               ] [
fhir:context [ fhir:v "e38" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e38" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organizationPOF" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e38" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid2" ]                       ] )                     ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organizationPOF.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                   ] )                 ] [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "wholeOrgan" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e39" ]                 ] [
fhir:context [ fhir:v "e39" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e39" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organizationW" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationW" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/participant/scopingOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationW" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organizationW" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e39" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid3" ]                         ] )                       ] [
fhir:context [ fhir:v "organizationPOF" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organizationW.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationW" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationW" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationW" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] ) ;
fhir:documentation [ fhir:v "START PARTICIPANT GUAR" ]       ] )     ] [
fhir:name [ fhir:v "inFulfillmentOf" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "inFulfillmentOf" ] ;
fhir:variable [ fhir:v "inFulfillmentOf" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "order" ] ;
        ( fhir:source [
fhir:context [ fhir:v "inFulfillmentOf" ] ;
fhir:element [ fhir:v "order" ] ;
fhir:variable [ fhir:v "order" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e40" ]         ] [
fhir:context [ fhir:v "e40" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e40" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "serviceRequest" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "ServiceRequest" ]           ] )         ] [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e40" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/ServiceRequest/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "ServiceRequest" ]           ] )         ] [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "basedOn" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/ServiceRequest/' + %serviceRequest.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "status" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "active" ]             ] )           ] )         ] [
fhir:name [ fhir:v "intent" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "intent" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "order" ]             ] )           ] )         ] [
fhir:name [ fhir:v "reference" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]             ] )           ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %patientResource.id" ]             ] )           ] )         ] [
fhir:name [ fhir:v "reference" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]             ] )           ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Encounter/' + %encounter.id" ]             ] )           ] )         ] [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "priorityCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "order" ] ;
fhir:element [ fhir:v "priorityCode" ] ;
fhir:variable [ fhir:v "priorityCode" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "priority" ] ;
            ( fhir:source [
fhir:context [ fhir:v "priorityCode" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "v" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "serviceRequest" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "priority" ] ;
fhir:transform [ fhir:v "translate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "v" ]               ] [
fhir:value [ fhir:v "#priority" ]               ] [
fhir:value [ fhir:v "code" ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "documentationOf" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "documentationOf" ] ;
fhir:variable [ fhir:v "docOf" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "serviceEvent" ] ;
        ( fhir:source [
fhir:context [ fhir:v "docOf" ] ;
fhir:element [ fhir:v "serviceEvent" ] ;
fhir:variable [ fhir:v "serviceEvent" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "event" ] ;
fhir:variable [ fhir:v "event" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "eventCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "serviceEvent" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "event" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "eventDT" ] ;
          ( fhir:source [
fhir:context [ fhir:v "serviceEvent" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "period" ] ;
            ( fhir:source [
fhir:context [ fhir:v "effectiveTime" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "event" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Period" ]               ] )             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "IVLTSPeriod" ] ;
              ( fhir:variable [ fhir:v "effectiveTime" ] [ fhir:v "period" ] )             ] )           ] )         ] [
fhir:name [ fhir:v "efft" ] ;
          ( fhir:source [
fhir:context [ fhir:v "serviceEvent" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectivetime1" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "event" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Period" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "val" ] ;
            ( fhir:source [
fhir:context [ fhir:v "effectivetime1" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "start" ] ;
fhir:variable [ fhir:v "start" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]               ] )             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
              ( fhir:variable [ fhir:v "effectivetime1" ] [ fhir:v "start" ] )             ] )           ] )         ] [
fhir:name [ fhir:v "docOf" ] ;
          ( fhir:source [
fhir:context [ fhir:v "serviceEvent" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "performer" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e41" ]           ] [
fhir:context [ fhir:v "e41" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "POST" ]             ] )           ] [
fhir:context [ fhir:v "e41" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]             ] )           ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]           ] [
fhir:context [ fhir:v "e41" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]             ] [
fhir:value [ fhir:v "uuid1" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "performer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "performer" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "event" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "detail" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "AssignedEntity" ] ;
              ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "assignedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e42" ]               ] [
fhir:context [ fhir:v "e42" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e42" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/documentationOf/serviceEvent/performer" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "functionCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "functionCode" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e42" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                       ] [
fhir:value [ fhir:v "uuid2" ]                       ] )                     ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "diverso" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "birth" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "date" ]                       ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "RepresentedOrganization" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e8" ]                 ] [
fhir:context [ fhir:v "e8" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e8" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e8" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid3" ]                         ] )                       ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "referenceOrg" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "referenceOrg" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid3" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "asOrganizationPartOf" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e9" ]                   ] [
fhir:context [ fhir:v "e9" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                     ] )                   ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                     ] )                   ] [
fhir:context [ fhir:v "e9" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "code" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "identifier" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r" ]                         ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                         ] [
fhir:value [ fhir:v "uri" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "ext" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                         ] )                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                           ] [
fhir:value [ fhir:v "ext" ]                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                       ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "s" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "r" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                           ] )                         ] [
fhir:context [ fhir:v "e9" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                           ] [
fhir:value [ fhir:v "uuid4" ]                           ] )                         ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                           ] )                         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                           ] )                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                       ] )                     ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "true" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "wholeOrganization" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e10" ]                     ] [
fhir:context [ fhir:v "e10" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                       ] )                     ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                       ] )                     ] [
fhir:context [ fhir:v "e10" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "code" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                             ] )                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "identifier" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r" ]                           ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                           ] [
fhir:value [ fhir:v "uri" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "ext" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                             ] [
fhir:value [ fhir:v "ext" ]                             ] )                           ] )                         ] )                       ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                         ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "s" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "r" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                             ] )                           ] [
fhir:context [ fhir:v "e10" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                             ] [
fhir:value [ fhir:v "uuid5" ]                             ] )                           ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                             ] )                           ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                             ] )                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "name" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "telecom" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                       ] )                     ] [
fhir:name [ fhir:v "addr" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "encounterExist" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:condition [ fhir:v "src.componentOf.exists().not()" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]         ] )       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Encounter/' + %encounter.id" ]         ] )       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentEncounter" ] ;
        ( fhir:variable [ fhir:v "src" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] [ fhir:v "patientResource" ] )       ] )     ] [
fhir:name [ fhir:v "encompassingEncounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "componentOf" ] ;
fhir:variable [ fhir:v "comp" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "enc" ] ;
        ( fhir:source [
fhir:context [ fhir:v "comp" ] ;
fhir:condition [ fhir:v "comp.encompassingEncounter.exists().not()" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Encounter/' + %encounter.id" ]           ] )         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentEncounter" ] ;
          ( fhir:variable [ fhir:v "srcEnc" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] [ fhir:v "patientResource" ] )         ] )       ] [
fhir:name [ fhir:v "encompassingEncounter" ] ;
        ( fhir:source [
fhir:context [ fhir:v "comp" ] ;
fhir:element [ fhir:v "encompassingEncounter" ] ;
fhir:variable [ fhir:v "srcEnc" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "encounter" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Encounter/' + %encounter.id" ]           ] )         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentEncounter" ] ;
          ( fhir:variable [ fhir:v "srcEnc" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] [ fhir:v "patientResource" ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentRelatesTo" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "parentDocument" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "composition" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "setId" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "setId" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "versionNumberEXT" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "versionNumber" ] ;
fhir:variable [ fhir:v "vNumber" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ChExtEprVersionNumber" ] ;
        ( fhir:variable [ fhir:v "vNumber" ] [ fhir:v "ext" ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "EXTbirthplace" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "AD" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "ext" ] ;
fhir:type [ fhir:v "Extension" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "url" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ext" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "http://hl7.org/fhir/StructureDefinition/patient-birthPlace" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ext" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Address" ]         ] )       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ADAddress" ] ;
        ( fhir:variable [ fhir:v "src" ] [ fhir:v "value" ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentPatientRole" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "PatientRole" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "addr" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "telecom" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "patient" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:variable [ fhir:v "patient" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]         ] )       ] [
fhir:name [ fhir:v "gender" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "administrativeGenderCode" ] ;
fhir:variable [ fhir:v "gender" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "gender" ] ;
          ( fhir:source [
fhir:context [ fhir:v "gender" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "v" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "gender" ] ;
fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "v" ]             ] [
fhir:value [ fhir:v "#cm-v3-administrative-gender" ]             ] [
fhir:value [ fhir:v "code" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "birth" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
          ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "date" ]             ] [
fhir:value [ fhir:v "10"^^xsd:integer ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "deceasedBL" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "deceasedInd" ] ;
fhir:variable [ fhir:v "deceased" ] ;
fhir:condition [ fhir:v "(value = 'false')" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "deceased" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]           ] )         ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "deceased" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "false"^^xsd:boolean ]           ] )         ] )       ] [
fhir:name [ fhir:v "deceasedInd" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "deceasedInd" ] ;
fhir:variable [ fhir:v "deceased" ] ;
fhir:condition [ fhir:v "(value = 'true')" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "deceasedTime" ] ;
          ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "deceasedTime" ] ;
fhir:variable [ fhir:v "Time" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "deceased" ] ;
fhir:variable [ fhir:v "deceasedTime" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]             ] )           ] ) ;
          ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
            ( fhir:variable [ fhir:v "Time" ] [ fhir:v "deceasedTime" ] )           ] )         ] )       ] [
fhir:name [ fhir:v "deceasedBL" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "deceasedTime" ] ;
fhir:variable [ fhir:v "Timet" ] ;
fhir:condition [ fhir:v "Timet.empty()" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "deceased" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]           ] )         ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "deceased" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "true"^^xsd:boolean ]           ] )         ] )       ] [
fhir:name [ fhir:v "maritalStatus" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "maritalStatusCode" ] ;
fhir:variable [ fhir:v "vvv" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "maritalStatus" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]         ] )       ] [
fhir:name [ fhir:v "guardian" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "guardian" ] ;
fhir:variable [ fhir:v "guardian" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "guardianPerson" ] ;
          ( fhir:source [
fhir:context [ fhir:v "guardian" ] ;
fhir:element [ fhir:v "guardianPerson" ] ;
fhir:variable [ fhir:v "person" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e" ]           ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "POST" ]             ] )           ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "relatedPerson" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "RelatedPerson" ]             ] )           ] [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]           ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "https://example/RelatedPerson/" ]             ] [
fhir:value [ fhir:v "uuid1" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "RelatedPerson" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "birth" ] ;
            ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
              ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "date" ]                 ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "person" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %tgt.id" ]               ] )             ] )           ] [
fhir:name [ fhir:v "person" ] ;
            ( fhir:source [
fhir:context [ fhir:v "person" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "link" ] ;
fhir:variable [ fhir:v "link" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
              ( fhir:source [
fhir:context [ fhir:v "person" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "link" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "refer" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "person" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "link" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "other" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/RelatedPerson/' + %relatedPerson.id" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardian" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardian" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "id" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardian" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardian" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "relatedPerson" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "relationship" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "guardianorganization" ] ;
          ( fhir:source [
fhir:context [ fhir:v "guardian" ] ;
fhir:element [ fhir:v "guardianOrganization" ] ;
fhir:variable [ fhir:v "guardianorg" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e1" ]           ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organizationcontact" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/recordTarget/PatientRole/patient/guardian/guardianOrganization" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "contact" ] ;
            ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "contact" ] ;
fhir:variable [ fhir:v "contact" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "OrganizationContact" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "contact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organizationcontact.id" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "guardianorg" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid2" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "OrganizationPartOf" ] ;
              ( fhir:source [
fhir:context [ fhir:v "guardianorg" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e2" ]               ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organizationpartOf" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationpartOf" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/recordTarget/PatientRole/patient/guardian/guardianOrganization/asOrganizationPartOf" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "asorganization" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationcontact" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organizationpartOf.id" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationpartOf" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organizationpartOf" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid3" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationpartOf" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationpartOf" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "WholeOrganization" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeORG" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e3" ]                 ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "WholeOrganization" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORG" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "WholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeORG" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeORG" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeORG" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/recordTarget/PatientRole/patient/guardian/guardianOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "asOrganization" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORG" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organizationpartOf" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %WholeOrganization.id" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORG" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "WholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeORG" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "WholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid4" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORG" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "WholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORG" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "WholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORG" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "WholeOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "birthplace" ] ;
        ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
fhir:element [ fhir:v "birthplace" ] ;
fhir:variable [ fhir:v "birthplace" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "place" ] ;
          ( fhir:source [
fhir:context [ fhir:v "birthplace" ] ;
fhir:element [ fhir:v "place" ] ;
fhir:variable [ fhir:v "place" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "birthplace" ] ;
            ( fhir:source [
fhir:context [ fhir:v "place" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "address" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext1" ]             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "EXTbirthplace" ] ;
              ( fhir:variable [ fhir:v "address" ] [ fhir:v "ext1" ] )             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "organization" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "providerOrganization" ] ;
fhir:variable [ fhir:v "org" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4" ]         ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]           ] )         ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "providerorganization" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
          ( fhir:source [
fhir:context [ fhir:v "org" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
            ( fhir:source [
fhir:context [ fhir:v "org" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "org" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "org" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/recordTarget/PatientRole/patient/providerOrganization" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "identifier" ] ;
          ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "r" ]               ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]               ] [
fhir:value [ fhir:v "uri" ]               ] )             ] )           ] [
fhir:name [ fhir:v "ext" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "ext" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "org" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]             ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "s" ]               ] )             ] )           ] [
fhir:name [ fhir:v "r" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                 ] )               ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                 ] [
fhir:value [ fhir:v "uuid5" ]                 ] )               ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "managingOrganization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %providerorganization.id" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "name" ] ;
          ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]             ] )           ] )         ] [
fhir:name [ fhir:v "telecom" ] ;
          ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "addr" ] ;
          ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "OrganizationPartOfprovider" ] ;
          ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOfProvider" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e5" ]           ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organizationpartOfprovider" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organizationpartOfprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/recordTarget/PatientRole/patient/providerOrganization/asOrganizationPartOf" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organizationpartOfprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "ext" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "asorganization" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organizationpartOfprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid6" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                   ] [
fhir:value [ fhir:v "uuid6" ]                   ] )                 ] [
fhir:context [ fhir:v "providerorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organizationpartOfprovider.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organizationpartOfprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "statusCode" ] ;
            ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organizationpartOfprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "true" ]               ] )             ] )           ] [
fhir:name [ fhir:v "wholeOrganizationprovider" ] ;
            ( fhir:source [
fhir:context [ fhir:v "OrgPartOfProvider" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeORGproveder" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e6" ]             ] [
fhir:context [ fhir:v "e6" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e6" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "WholeOrganizationprovider" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "WholeOrganizationprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/recordTarget/PatientRole/patient/providerOrganization/asOrganizationPartOf/wholeOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "asOrganization" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organizationpartOfprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %WholeOrganizationprovider.id" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "WholeOrganizationprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "WholeOrganizationprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid7" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e6" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid7" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "WholeOrganizationprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "WholeOrganizationprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeORGproveder" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "WholeOrganizationprovider" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] )           ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "CustodianOrganization" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "CustodianOrganization" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Organization" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]         ] )       ] )     ] [
fhir:name [ fhir:v "telecom" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "addr" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentEncounter" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "EncompassingEncounter" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "encounter" ] ;
fhir:type [ fhir:v "Encounter" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "patient" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "class" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code1" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "class" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
        ( fhir:source [
fhir:context [ fhir:v "code1" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "cast" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "code" ]           ] [
fhir:value [ fhir:v "string" ]           ] )         ] )       ] [
fhir:name [ fhir:v "codeSystem" ] ;
        ( fhir:source [
fhir:context [ fhir:v "code1" ] ;
fhir:element [ fhir:v "codeSystem" ] ;
fhir:variable [ fhir:v "system" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "system" ]           ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]           ] [
fhir:value [ fhir:v "uri" ]           ] )         ] )       ] [
fhir:name [ fhir:v "displayName" ] ;
        ( fhir:source [
fhir:context [ fhir:v "code1" ] ;
fhir:element [ fhir:v "displayName" ] ;
fhir:variable [ fhir:v "display" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "cast" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "display" ]           ] [
fhir:value [ fhir:v "string" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "NonCodeclass" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:condition [ fhir:v "src.code.exists().not()" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "class" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "AMB" ]           ] )         ] )       ] [
fhir:name [ fhir:v "codeS" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode" ]           ] )         ] )       ] [
fhir:name [ fhir:v "display" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "ambulatory" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]         ] )       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Patient/' + %patient.id" ]         ] )       ] )     ] [
fhir:name [ fhir:v "status" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "finished" ]         ] )       ] )     ] [
fhir:name [ fhir:v "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Period" ]           ] )         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "IVLTSPeriod" ] ;
          ( fhir:variable [ fhir:v "eff" ] [ fhir:v "period" ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "effectiveTime=period" ]     ] [
fhir:name [ fhir:v "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists().not() or effectiveTime.high.exists().not()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "efft" ] ;
        ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectivetime1" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Period" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "val" ] ;
          ( fhir:source [
fhir:context [ fhir:v "effectivetime1" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "start" ] ;
fhir:variable [ fhir:v "start" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]             ] )           ] ) ;
          ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
            ( fhir:variable [ fhir:v "effectivetime1" ] [ fhir:v "start" ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "effectiveTime = time-stamp" ]     ] [
fhir:name [ fhir:v "discharge" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "dischargeDispositionCode" ] ;
fhir:variable [ fhir:v "dischargeDispositionCode" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "disposition" ] ;
        ( fhir:source [
fhir:context [ fhir:v "dischargeDispositionCode" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "hospitalization" ] ;
fhir:variable [ fhir:v "hospitalization" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "disDisp" ] ;
          ( fhir:source [
fhir:context [ fhir:v "dischargeDispositionCode" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "hospitalization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "dischargeDisposition" ]           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "src.effectiveTime as effectivetime1 -> encounter.period as period, period.start=(effectivetime1.value);" ]     ] [
fhir:name [ fhir:v "particpant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "responsibleParty" ] ;
fhir:variable [ fhir:v "responsibleParty" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "entity" ] ;
        ( fhir:source [
fhir:context [ fhir:v "responsibleParty" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e" ]         ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "participant" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "individual" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]           ] )         ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "practitioner" ] ;
          ( fhir:source [
fhir:context [ fhir:v "entity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e1" ]           ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "entity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "extension" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid2" ]                   ] )                 ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "diverso" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "assignedPerson" ] ;
fhir:variable [ fhir:v "person" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "birth" ] ;
              ( fhir:source [
fhir:context [ fhir:v "person" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "birthTimeENC" ] ;
                ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "date" ]                   ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                   ] )                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "organization" ] ;
          ( fhir:source [
fhir:context [ fhir:v "entity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "raporg" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e2" ]           ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "rapresentedorganization" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "raporg" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "raporg" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "raporg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "raporg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty/representedOrganization" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "raporg" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "ext" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "raporg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                   ] [
fhir:value [ fhir:v "uuid3" ]                   ] )                 ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %rapresentedorganization.id" ]                   ] )                 ] )               ] )             ] ) ;
fhir:documentation [ fhir:v "raporg.id -> rapresentedorganization.identifier;" ]           ] [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "raporg" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]               ] )             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "raporg" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "raporg" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "OrgPartOf" ] ;
            ( fhir:source [
fhir:context [ fhir:v "raporg" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e3" ]             ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]               ] [
fhir:value [ fhir:v "uuid4" ]               ] )             ] [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]               ] )             ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty/representedOrganization/asOrganizationPartOf" ]                     ] )                   ] )                 ] )               ] ) ;
fhir:documentation [ fhir:v "OrgPartOf.id -> organization1.identifier;" ]             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid4" ]                     ] )                   ] [
fhir:context [ fhir:v "rapresentedorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "statusCode" ] ;
              ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                 ] )               ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "true"^^xsd:boolean ]                 ] )               ] )             ] [
fhir:name [ fhir:v "wholeOrgan" ] ;
              ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4" ]               ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "code" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/responsibleParty/representedOrganization/asOrganizationPartOf/wholeOrganization" ]                       ] )                     ] )                   ] )                 ] ) ;
fhir:documentation [ fhir:v "wholeOrgan.id -> organization2.identifier;" ]               ] [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid5" ]                       ] )                     ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "name" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "telecom" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "addr" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "encounterParticipant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "encounterParticipant" ] ;
fhir:variable [ fhir:v "participant" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Participant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "assignedEntity" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e313" ]         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "POST" ]           ] )         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitionerRole" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e313" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid1" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PractitionerRole" ]           ] )         ] [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "period" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "period" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Period" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "start" ] ;
fhir:variable [ fhir:v "start" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "dateTime" ]               ] )             ] ) ;
            ( fhir:dependent [
fhir:name [ fhir:v "TSDateTime" ] ;
              ( fhir:variable [ fhir:v "time" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time as time->participant1.period as period ,period.start=(time.value);" ]         ] [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "type" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "codeType" ] ;
            ( fhir:source [
fhir:context [ fhir:v "p" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "type" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "codice" ] ;
              ( fhir:source [
fhir:context [ fhir:v "p" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "p.typeCode" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "p" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "par" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "participant1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "individual" ] ;
fhir:variable [ fhir:v "referencepart" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]             ] )           ] [
fhir:context [ fhir:v "referencepart" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/PractitionerRole/' + %practitionerRole.id" ]             ] )           ] )         ] [
fhir:name [ fhir:v "functionCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "functionCode" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "assignedEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e33" ]           ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/encounterParticipant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "extension" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e33" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid2" ]                   ] )                 ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "practitioner" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root = '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "diverso" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(root != '2.16.840.1.113883.2.9.4.3.2')" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Practitioner?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "associatedPerson" ] ;
fhir:variable [ fhir:v "assignedPerson" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedPerson" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "birth" ] ;
              ( fhir:source [
fhir:context [ fhir:v "assignedPerson" ] ;
fhir:element [ fhir:v "birthTime" ] ;
fhir:variable [ fhir:v "birthTime" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "birthTimelegal" ] ;
                ( fhir:source [
fhir:context [ fhir:v "birthTime" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "birthDate" ] ;
fhir:transform [ fhir:v "truncate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "date" ]                   ] [
fhir:value [ fhir:v "10"^^xsd:integer ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "representedOrganization" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedEntity" ] ;
fhir:element [ fhir:v "representedOrganization" ] ;
fhir:variable [ fhir:v "representedOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e34" ]             ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/encounterParticipant/scopingOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e34" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] [
fhir:context [ fhir:v "practitionerRole" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "organization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "OrgPartOf" ] ;
              ( fhir:source [
fhir:context [ fhir:v "representedOrganization" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "OrgPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e35" ]               ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                 ] )               ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                 ] )               ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization1" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/encounterParticipant/scopingOrganization/asOrganizationPartOf" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "root1" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r" ]                     ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                     ] [
fhir:value [ fhir:v "uri" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "ext" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                       ] [
fhir:value [ fhir:v "ext" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                   ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "s" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "r" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                       ] )                     ] [
fhir:context [ fhir:v "e35" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                       ] [
fhir:value [ fhir:v "uuid4" ]                       ] )                     ] [
fhir:context [ fhir:v "organization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                       ] )                     ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization1.id" ]                       ] )                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "statusCode" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                   ] )                 ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "true"^^xsd:boolean ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "wholeOrgan" ] ;
                ( fhir:source [
fhir:context [ fhir:v "OrgPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrgan" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e36" ]                 ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/encounterParticipant/scopingOrganization/asOrganizationPartOf/wholeOrganization" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e36" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid5" ]                         ] )                       ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "name" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "telecom" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "addr" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "wholeOrgan" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "location" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "location" ] ;
fhir:variable [ fhir:v "Location" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "location1" ] ;
        ( fhir:source [
fhir:context [ fhir:v "Location" ] ;
fhir:element [ fhir:v "healthCareFacility" ] ;
fhir:variable [ fhir:v "HCF" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e5" ]         ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]           ] )         ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "loc" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Location" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
          ( fhir:source [
fhir:context [ fhir:v "HCF" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
            ( fhir:source [
fhir:context [ fhir:v "HCF" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "HCF" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "HCF" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "hcf" ] ;
          ( fhir:source [
fhir:context [ fhir:v "HCF" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "location" ] ;
fhir:variable [ fhir:v "locations" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "HCF" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "ext" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "HCF" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Location?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "locc" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid6" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Location/" ]                   ] [
fhir:value [ fhir:v "uuid6" ]                   ] )                 ] [
fhir:context [ fhir:v "locations" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "location" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Location/' + %loc.id" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "HCF" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "location2" ] ;
            ( fhir:source [
fhir:context [ fhir:v "HCF" ] ;
fhir:element [ fhir:v "location" ] ;
fhir:variable [ fhir:v "srcLocation" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "srcLocation" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "srcLocation" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] )           ] [
fhir:name [ fhir:v "SPO" ] ;
            ( fhir:source [
fhir:context [ fhir:v "HCF" ] ;
fhir:element [ fhir:v "serviceProviderOrganization" ] ;
fhir:variable [ fhir:v "servProvOrg" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e" ]             ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]               ] )             ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]               ] )             ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "serviceProviderOrganization" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
              ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility/serviceProviderOrganization" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "identifier" ] ;
              ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r" ]                   ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                   ] [
fhir:value [ fhir:v "uri" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "ext" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                     ] [
fhir:value [ fhir:v "ext" ]                     ] )                   ] )                 ] )               ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                 ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "s" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "r" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid" ]                     ] )                   ] [
fhir:context [ fhir:v "loc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "managingOrganization" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                     ] )                   ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %serviceProviderOrganization.id" ]                     ] )                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "telecom" ] ;
              ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "addr" ] ;
              ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] [
fhir:name [ fhir:v "asOrg1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "servProvOrg" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "asOrgPartOf" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "OrganizationPartOfprovider" ] ;
                ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf" ] ;
fhir:variable [ fhir:v "asOrgPartOf1" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e1" ]                 ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                   ] )                 ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                   ] )                 ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "asorganization" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "code" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility/serviceProviderOrganization/asOrganizationPartOf" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "identifier" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "r" ]                       ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                       ] [
fhir:value [ fhir:v "uri" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "ext" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                         ] [
fhir:value [ fhir:v "ext" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                     ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "s" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "r" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                         ] )                       ] [
fhir:context [ fhir:v "e1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                         ] [
fhir:value [ fhir:v "uuid1" ]                         ] )                       ] [
fhir:context [ fhir:v "serviceProviderOrganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                         ] )                       ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %asorganization.id" ]                         ] )                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "code" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "status" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "boolean" ]                     ] )                   ] [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "true" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "wholeOrg" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "asOrgPartOf1" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrg" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "wholeOrg1" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "wholeOrg" ] ;
fhir:variable [ fhir:v "wholeOrg1" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e2" ]                     ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                       ] )                     ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]                       ] )                     ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "wholeorganization" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "code" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/componentOf/EncompassingEncounter/location/healthCareFacility/serviceProviderOrganization/asOrganizationPartOf" ]                             ] )                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "identifier" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "r" ]                           ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                           ] [
fhir:value [ fhir:v "uri" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "ext" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                             ] [
fhir:value [ fhir:v "ext" ]                             ] )                           ] )                         ] )                       ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]                         ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "s" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "r" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                             ] )                           ] [
fhir:context [ fhir:v "e2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                             ] [
fhir:value [ fhir:v "uuid2" ]                             ] )                           ] [
fhir:context [ fhir:v "asorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                             ] )                           ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %wholeorganization.id" ]                             ] )                           ] )                         ] )                       ] )                     ] [
fhir:name [ fhir:v "name" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]                         ] )                       ] )                     ] [
fhir:name [ fhir:v "telecom" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                       ] )                     ] [
fhir:name [ fhir:v "addr" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "wholeOrg1" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "wholeorganization" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentationOf" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "representedOrganization" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "organization" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "telecom" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "addr" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "creation" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "asOrganizationPartOf" ] ;
fhir:variable [ fhir:v "asOrganizationPartOf" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "organizationPartOf" ] ;
        ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e" ]         ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]           ] )         ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]           ] )         ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization2" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
          ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
            ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
              ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "identifier" ] ;
          ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "r" ]               ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]               ] [
fhir:value [ fhir:v "uri" ]               ] )             ] )           ] [
fhir:name [ fhir:v "ext" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "ext" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
              ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]             ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "s" ]               ] )             ] )           ] [
fhir:name [ fhir:v "r" ] ;
            ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                 ] )               ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                 ] [
fhir:value [ fhir:v "uuid" ]                 ] )               ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                 ] )               ] [
fhir:context [ fhir:v "reference" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "'https://example/Organization/' + %organization2.id" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]           ] )         ] [
fhir:name [ fhir:v "statusCode" ] ;
          ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:condition [ fhir:v "(value = 'active')" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "active" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "true" ]             ] )           ] )         ] [
fhir:name [ fhir:v "wholeOrganization" ] ;
          ( fhir:source [
fhir:context [ fhir:v "asOrganizationPartOf" ] ;
fhir:element [ fhir:v "wholeOrganization" ] ;
fhir:variable [ fhir:v "wholeOrganization" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e3" ]           ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "request" ] ;
fhir:variable [ fhir:v "request" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]             ] )           ] [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "PUT" ]             ] )           ] [
fhir:context [ fhir:v "e3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "organization3" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Organization" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "meta" ] ;
fhir:variable [ fhir:v "meta" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "meta" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "tag" ] ;
fhir:variable [ fhir:v "coding" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Coding" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "http://algoritmodiscoring" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "ClinicalDocument/documentationOf/serviceEvent/performer/representedOrganization/asOrganizationPartOf" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "identifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "root1" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "system" ] ;
fhir:transform [ fhir:v "translate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "r" ]                 ] [
fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ]                 ] [
fhir:value [ fhir:v "uri" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "ext" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "ext" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "UUID" ] ;
                ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "request" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Organization?identifier=" ]                   ] [
fhir:value [ fhir:v "ext" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "assigningAuthorityName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "assigningAuthorityName" ] ;
fhir:variable [ fhir:v "s" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "identifier" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "assigner" ] ;
fhir:variable [ fhir:v "a" ]               ] [
fhir:context [ fhir:v "a" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "display" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "s" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "r" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "root" ] ;
fhir:variable [ fhir:v "r" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "extension" ] ;
                ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid1" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                   ] )                 ] [
fhir:context [ fhir:v "e" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                   ] [
fhir:value [ fhir:v "uuid1" ]                   ] )                 ] [
fhir:context [ fhir:v "organization2" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "partOf" ] ;
fhir:variable [ fhir:v "referenceOrg" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]                   ] )                 ] [
fhir:context [ fhir:v "referenceOrg" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "https://example/Organization/" ]                   ] [
fhir:value [ fhir:v "uuid1" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "id" ] ;
            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "name" ] ;
            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "telecom" ] ;
            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "wholeOrganization" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "organization3" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ChExtEprVersionNumber" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "INT" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "ext" ] ;
fhir:type [ fhir:v "Extension" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "url" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ext" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ext" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "cast" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "string" ]         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentOrganization" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "CustodianOrganization" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "Organization" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "name" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v.other" ]         ] )       ] )     ] [
fhir:name [ fhir:v "telecom" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "telecom" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "addr" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "addr" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] )
  ] ) . #