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 - LAB - 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 "cda2fhirLabReport"] ; # 
  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/cda2fhirLabReport&quot; = &quot;cda2fhirLabReport&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/OrganizationPartOf&quot; alias OrganizationPartOf as queried\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/Organization&quot; alias rapresentedOrganization 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/cda/StructureDefinition/AD&quot; alias AD as source\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/Procedure&quot; alias Procedure as produced\nuses &quot;http://hl7.org/fhir/StructureDefinition/Organization&quot; alias Organization as produced\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/Act&quot; alias Act as produced\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ&quot; alias IVL_PQ as source\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/PQ&quot; alias PQ as source\nuses &quot;http://hl7.org/fhir/StructureDefinition/SimpleQuantity&quot; alias SimpleQuantity as target\nuses &quot;http://hl7.org/fhir/cda/StructureDefinition/Organizer&quot; alias Organizer as source\n\nimports &quot;http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes&quot;\nimports &quot;http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader&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 e6,  e6.request = create('BackboneElement') as request,  request.method = 'POST',  e6.resource = create('DocumentReference') as DocumentReference,  DocumentReference.id = uuid() as uuid6,  e6.fullUrl = append('https://example/DocumentReference/', uuid6),  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 ext1 -&gt; identifier.value = ext1 &quot;value&quot;;\n          id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n        } &quot;idfr&quot;;\n        patient.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') or (root = '2.16.840.1.113883.2.9.4.3.7') or (root = '2.16.840.1.113883.2.9.4.3.3') or (root = '2.16.840.1.113883.2.9.4.3.17') or (root = '2.16.840.1.113883.2.9.4.3.18') or (root = '2.16.840.1.113883.2.9.2.10.4.1.1') or (root = '2.16.840.1.113883.2.9.2.20.4.1.1') or (root = '2.16.840.1.113883.2.9.2.30.4.1.1') or (root = '2.16.840.1.113883.2.9.2.41.4.1.1') or (root = '2.16.840.1.113883.2.9.2.42.4.1.1') or (root = '2.16.840.1.113883.2.9.2.50.4.1.1') or (root = '2.16.840.1.113883.2.9.2.60.4.1.1') or (root = '2.16.840.1.113883.2.9.2.70.4.1.1') or (root = '2.16.840.1.113883.2.9.2.80.4.1.1') or (root = '2.16.840.1.113883.2.9.2.90.4.1.1') or (root = '2.16.840.1.113883.2.9.2.100.4.1.1') or (root = '2.16.840.1.113883.2.9.2.110.4.1.1') or (root = '2.16.840.1.113883.2.9.2.120.4.1.1') or (root = '2.16.840.1.113883.2.9.2.130.4.1.1') or (root = '2.16.840.1.113883.2.9.2.140.4.1.1') or (root = '2.16.840.1.113883.2.9.2.150.4.1.1') or (root = '2.16.840.1.113883.2.9.2.160.4.1.1') or (root = '2.16.840.1.113883.2.9.2.170.4.1.1') or (root = '2.16.840.1.113883.2.9.2.180.4.1.1') or (root = '2.16.840.1.113883.2.9.2.190.4.1.1') or (root = '2.16.840.1.113883.2.9.2.200.4.1.1') or (root = '2.16.840.1.113883.2.9.2.10.4.1') or (root = '2.16.840.1.113883.2.9.2.20.4.1') or (root = '2.16.840.1.113883.2.9.2.30.4.1') or (root = '2.16.840.1.113883.2.9.2.41.4.1') or (root = '2.16.840.1.113883.2.9.2.42.4.1') or (root = '2.16.840.1.113883.2.9.2.50.4.1') or (root = '2.16.840.1.113883.2.9.2.60.4.1') or (root = '2.16.840.1.113883.2.9.2.70.4.1') or (root = '2.16.840.1.113883.2.9.2.80.4.1') or (root = '2.16.840.1.113883.2.9.2.90.4.1') or (root = '2.16.840.1.113883.2.9.2.100.4.1') or (root = '2.16.840.1.113883.2.9.2.110.4.1') or (root = '2.16.840.1.113883.2.9.2.120.4.1') or (root = '2.16.840.1.113883.2.9.2.130.4.1') or (root = '2.16.840.1.113883.2.9.2.140.4.1') or (root = '2.16.840.1.113883.2.9.2.150.4.1') or (root = '2.16.840.1.113883.2.9.2.160.4.1') or (root = '2.16.840.1.113883.2.9.2.170.4.1') or (root = '2.16.840.1.113883.2.9.2.180.4.1') or (root = '2.16.840.1.113883.2.9.2.190.4.1') or (root = '2.16.840.1.113883.2.9.2.200.4.1') or (root = '2.16.840.1.113883.2.9.4.3.15') then {\n          id.extension as ext -&gt; requestPAT.url = append('Patient?identifier=', ext) &quot;UUID&quot;;\n        } &quot;ext&quot;;\n      } &quot;record&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  cda.component as component then {\n    component.structuredBody as body then {\n      body.component as component then {\n        component.section as srcSection then {\n          srcSection.code -&gt; composition.section as tgtSection then ClinicalDocumentSection(cda, srcSection, patient, tgtSection, bundle, encounter, documentreference);\n        };\n      };\n    } &quot;body&quot;;\n  };\n}\n\ngroup ClinicalDocumentSection(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter, target documentreference : DocumentReference) {\n  src.title as t -&gt; tgt.title = (t.dataString);\n  src.code -&gt; tgt.code;\n  src.text as cdaText -&gt; tgt.text as fhirText then {\n    cdaText -&gt; fhirText.status = 'generated' &quot;narrativeStatus&quot;;\n    cdaText as t -&gt; fhirText.div = t &quot;narrativeText&quot;;\n  } &quot;cdaText&quot;;\n  src.entry as entry1 -&gt;  bundle.entry as e1,  e1.request = create('BackboneElement') as request,  request.method = 'POST',  e1.resource = create('DiagnosticReport') as DiagnosticReport,  DiagnosticReport.id = uuid() as uuid1,  e1.fullUrl = append('https://example/DiagnosticReport/', uuid1),  request.url = 'DiagnosticReport',  tgt.entry = create('Reference') as reference,  reference.reference = ('https://example/DiagnosticReport/' + %DiagnosticReport.id) then {\n    entry1.act as act1 then Act(act1, patient, DiagnosticReport, enc, bundle);\n  };\n  src.component as component then {\n    component.section as sec -&gt; tgt.section as tgtSection then ClinicalDocumentSection(cda, sec, patient, tgtSection, bundle, enc, documentreference);\n  };\n}\n\ngroup Observation(source obs : Observation, target patient : Patient, target encounter : Encounter, target ob : Observation, target bundle : Bundle) {\n  obs -&gt;  ob.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n  obs -&gt;  ob.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n  obs.code -&gt; ob.code;\n  obs.statusCode as statusc where (code = 'completed') -&gt; ob.status = 'final';\n  obs.statusCode as statusc where (code = 'active') -&gt; ob.status = 'registered';\n  obs.statusCode as statusc where (code = 'aborted') -&gt; ob.status = 'cancelled';\n  obs.statusCode as statusc where (code = 'suspended') -&gt; ob.status = 'partial';\n  obs.effectiveTime as effectiveTime -&gt; ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;value2&quot;;\n  obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n    obs.effectiveTime as eff -&gt; ob.effective = create('Period') as period then IVLTSPeriod(eff, period);\n  } &quot;where&quot;;\n  obs.interpretationCode -&gt; ob.interpretation;\n  obs.methodCode -&gt; ob.method;\n  obs.value : INT as int -&gt; ob.value = (int.value);\n  obs.value : BL as boolean -&gt; ob.value = (boolean.value) &quot;boolean&quot;;\n  obs.value : CE as val then {\n    val -&gt; ob.value = create('CodeableConcept') as ce then {\n      val.originalText as originalText then {\n        originalText.reference as reference -&gt; ce.text = reference;\n      } &quot;originltext&quot;;\n      val -&gt; ce.coding as coding then {\n        val.code as code -&gt; coding.code = cast(code, 'string');\n        val.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        val.displayName as display -&gt; coding.display = cast(display, 'string');\n        val.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n      } &quot;code&quot;;\n      val.translation as translation -&gt; ce.coding as coding then {\n        translation.code as code -&gt; coding.code = cast(code, 'string');\n        translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        translation.displayName as display -&gt; coding.display = cast(display, 'string');\n        translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n        translation.qualifier as qualifier then {\n          qualifier.value as value -&gt; ce.coding as coding then {\n            value.code as code -&gt; coding.code = cast(code, 'string');\n            value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n            value.displayName as display -&gt; coding.display = cast(display, 'string');\n            value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n          };\n        };\n      };\n    } &quot;coding&quot;;\n  } &quot;val&quot;;\n  obs.value : CD as val then {\n    val -&gt; ob.value = create('CodeableConcept') as ce then {\n      val.originalText as originalText then {\n        originalText.reference as reference -&gt; ce.text = reference;\n      } &quot;originltext&quot;;\n      val -&gt; ce.coding as coding then {\n        val.code as code -&gt; coding.code = cast(code, 'string');\n        val.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        val.displayName as display -&gt; coding.display = cast(display, 'string');\n        val.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n      } &quot;code&quot;;\n      val.translation as translation -&gt; ce.coding as coding then {\n        translation.code as code -&gt; coding.code = cast(code, 'string');\n        translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        translation.displayName as display -&gt; coding.display = cast(display, 'string');\n        translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n        translation.qualifier as qualifier then {\n          qualifier.value as value -&gt; ce.coding as coding then {\n            value.code as code -&gt; coding.code = cast(code, 'string');\n            value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n            value.displayName as display -&gt; coding.display = cast(display, 'string');\n            value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n          };\n        };\n      };\n    } &quot;coding&quot;;\n  } &quot;val&quot;;\n  obs.value : PQ as val then {\n    val -&gt; ob.value = create('Quantity') as quantity then {\n      val.value as value -&gt; quantity.value = value;\n      val.unit as unit -&gt; quantity.unit = unit;\n    } &quot;quantity&quot;;\n  } &quot;valueQuantity&quot;;\n  obs.value : ST as value -&gt;  ob.value = create('string'),  ob.value = (value.dataString);\n  // Note e commenti\n  obs.entryRelationship as entryRelationship then {\n    entryRelationship.act as act then {\n      act.text as text then {\n        text.reference as reference -&gt; ob.note as note then {\n          reference -&gt; note.text = (reference.value) &quot;reference&quot;;\n        };\n      };\n    } &quot;Act&quot;;\n  };\n  // subject\n  obs.subject as sbj then {\n    sbj.relatedSubject as relatedSubj -&gt; patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n  };\n  // performer\n  obs.performer as performer -&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' then {\n    performer -&gt;  ob.performer = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n      performer.assignedEntity as entity then {\n        entity.code -&gt; practitionerRole.code;\n        entity -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.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/body/observation/performer' &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 then {\n              entity -&gt; request.url = append('Practitioner?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;  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;performer&quot;;\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);\n            } &quot;birth&quot;;\n          } &quot;name&quot;;\n          // organization\n          entity.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 -&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/body/observation/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,  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.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,  e4.resource = create('Organization') as organization1,  request.method = 'PUT' 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/body/observation/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,  e4.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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 e5,  e5.request = create('BackboneElement') as request,  request.method = 'PUT',  e5.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/body/observation/performer/representedOrganization/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,  e5.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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;practitioner&quot;;\n      } &quot;entity&quot;;\n    } &quot;practitionerRole&quot;;\n  };\n  // author\n  obs.author as srcAuthor -&gt;  bundle.entry as e6,  e6.request = create('BackboneElement') as request,  request.method = 'POST',  e6.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid6,  e6.fullUrl = append('https://example/PractitionerRole/', uuid6),  request.url = 'PractitionerRole',  ob.performer = create('Reference') as referenceaut,  referenceaut.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n    srcAuthor.assignedAuthor as assignedAuthor then {\n      assignedAuthor.code as codice -&gt; practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n      assignedAuthor -&gt;  bundle.entry as e7,  e7.request = create('BackboneElement') as request,  request.method = 'PUT',  e7.resource = create('Practitioner') as practitioner,  practitioner.id = uuid() as uuid7 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/body/observation/author' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\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 then {\n            assignedAuthor -&gt; request.url = append('Practitioner?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;  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;aut&quot;;\n          } &quot;r&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        } &quot;identifier&quot;;\n        assignedAuthor.addr -&gt; practitioner.address;\n        assignedAuthor.telecom -&gt; practitioner.telecom;\n        // person\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      } &quot;ASSAUth&quot;;\n      // organization\n      assignedAuthor.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/body/observation/author/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;org&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/body/observation/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,  e9.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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/body/observation/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 uuid4,  e10.fullUrl = append('https://example/Organization/', uuid4),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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      // device\n      assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -&gt;  bundle.entry as e11,  e11.request = create('BackboneElement') as request,  request.method = 'POST',  e11.resource = create('Device') as device,  device.id = uuid() as uuid11,  e11.fullUrl = append('https://example/Device/', uuid11),  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    };\n  };\n  // participant person\n  obs.participant as participant where (typeCode != 'DEV') -&gt;  ob.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n    participant -&gt; encounter.participant as FhirParticipant then {\n      participant as p -&gt; FhirParticipant.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    } &quot;fhirParticipant&quot;;\n    participant.participantRole as participantRole -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid12,  e12.fullUrl = append('https://example/PractitionerRole/', uuid12),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant1,  participant1.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/Practitioner/' + %practitionerRole.id) then {\n      // participant.time -&gt; participant1.period;\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then {\n        time1 -&gt; period.start = create('dateTime') as start then TSDateTime(time1, start) &quot;val&quot;;\n      };\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n      participant.functionCode -&gt; practitionerRole.code;\n      // non mappa i 2 precedenti\n      participantRole -&gt;  bundle.entry as e13,  e13.request = create('BackboneElement') as request,  request.method = 'PUT',  e13.resource = create('Practitioner') as practitioner then {\n        participantRole -&gt; practitioner.meta as meta then {\n          participantRole -&gt; meta.tag = create('Coding') as coding then {\n            participantRole -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            participantRole -&gt; coding.code = 'ClinicalDocument/body/observation/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        participantRole.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 then {\n            participantRole -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid4,  e13.fullUrl = append('https://example/Practitioner/', uuid4),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;org&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        participantRole.code -&gt; practitionerRole.code;\n        participantRole.addr -&gt; practitioner.address;\n        participantRole.telecom -&gt; practitioner.telecom;\n        participantRole.playingEntity as playingEntity then {\n          playingEntity.name -&gt; practitioner.name;\n          playingEntity.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n      } &quot;practitioner&quot;;\n    } &quot;partRole&quot;;\n  } &quot;participantEncounter&quot;;\n  // participant device\n  obs.participant as devParticipant where (typeCode = 'DEV') -&gt;  bundle.entry as e14,  e14.request = create('BackboneElement') as request,  request.method = 'POST',  e14.resource = create('Device') as device,  device.id = uuid() as uuid14,  e14.fullUrl = append('https://example/Device/', uuid14),  request.url = 'Device',  ob.device = create('Reference') as reference,  reference.reference = ('https://example/Device/' + %device.id) then {\n    devParticipant.participantRole as participantRoleDev then {\n      participantRoleDev.playingDevice as playingDevice then {\n        playingDevice.code -&gt; device.type;\n        playingDevice.manufacturerModelName as manufacturerModelName then {\n          manufacturerModelName as m -&gt; device.manufacturer = (m.displayName) &quot;displayRule&quot;;\n        } &quot;manufacturer&quot;;\n        playingDevice.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      };\n    } &quot;participantRoleDev&quot;;\n  } &quot;devParticipant&quot;;\n  // observationMedia\n  obs.entryRelationship as er then {\n    er.observationMedia as obsMedia -&gt;  bundle.entry as e15,  e15.request = create('BackboneElement') as request,  request.method = 'POST',  e15.resource = create('Media') as media1,  media1.id = uuid() as uuid15,  e15.fullUrl = append('https://example/Media/', uuid15),  request.url = 'Media',  ob.derivedFrom = create('Reference') as reference,  reference.reference = ('https://example/Media/' + %media1.id) then {\n      obsMedia -&gt; media1.content = create('Attachment') as Attachment then {\n        obsMedia -&gt; media1.status = 'unknown' &quot;status&quot;;\n        obsMedia.value as valueMedia then {\n          valueMedia.mediaType as type -&gt; Attachment.contentType = type &quot;type&quot;;\n          valueMedia -&gt; Attachment.data = (valueMedia.dataBase64Binary) &quot;data&quot;;\n        } &quot;valuemedia&quot;;\n      } &quot;Attachment&quot;;\n    } &quot;media&quot;;\n  } &quot;observationMedia&quot;;\n  // referenceRange\n  obs.referenceRange as refRange -&gt; ob.referenceRange = create('BackboneElement') as ref then {\n    refRange.observationRange as obsRange then {\n      obsRange.value : ST as value -&gt;  ref.text = create('string'),  ref.text = (value.dataString);\n      obsRange -&gt; ref.low = create('Quantity') as Low then {\n        obsRange.value : IVL_PQ as v then {\n          v.low as l1 then {\n            l1.value as decValue -&gt; Low.value = decValue;\n            l1.unit as Unit -&gt; Low.unit = Unit;\n          } &quot;decValue&quot;;\n          v -&gt; ref.high = create('Quantity') as high then {\n            v.high as h1 then {\n              h1.value as decValue1 -&gt; high.value = decValue1;\n              h1.unit as Unit1 -&gt; high.unit = Unit1;\n            } &quot;decValue&quot;;\n          } &quot;high&quot;;\n        } &quot;IVL-PQ&quot;;\n        obsRange.interpretationCode -&gt; ref.type;\n        obsRange.precondition as precondition then {\n          precondition.criterion as criterion then {\n            criterion.code -&gt; ref.appliesTo &quot;appliesTo&quot;;\n            criterion.value : IVL_PQ as v then {\n              v.high as l1 then {\n                l1 -&gt; ref.age = create('Quantity') as age then {\n                  l1 -&gt; age.high as high then {\n                    l1.value as decValue -&gt; high.value = decValue;\n                    l1.unit as Unit1 -&gt; high.unit = Unit1;\n                  } &quot;high&quot;;\n                } &quot;age&quot;;\n              } &quot;low&quot;;\n            } &quot;v&quot;;\n          };\n        };\n      } &quot;obsRange&quot;;\n    } &quot;refRange&quot;;\n  } &quot;ref&quot;;\n}\n\ngroup Observation2(source obs : Observation, target patient : Patient, target encounter : Encounter, target ob : Observation, target bundle : Bundle, source cda : Act, target specimenp : Specimen) {\n  obs -&gt;  ob.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n  obs -&gt;  ob.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n  obs.code -&gt; ob.code;\n  obs.statusCode as statusc where (code = 'completed') -&gt; ob.status = 'final';\n  obs.statusCode as statusc where (code = 'active') -&gt; ob.status = 'registered';\n  obs.statusCode as statusc where (code = 'aborted') -&gt; ob.status = 'cancelled';\n  obs.statusCode as statusc where (code = 'suspended') -&gt; ob.status = 'partial';\n  obs.effectiveTime as effectiveTime -&gt; ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;value2&quot;;\n  obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n    obs.effectiveTime as eff -&gt; ob.effective = create('Period') as period then IVLTSPeriod(eff, period);\n  } &quot;where&quot;;\n  obs.interpretationCode -&gt; ob.interpretation;\n  obs.methodCode -&gt; ob.method;\n  obs.value : INT as int -&gt; ob.value = (int.value);\n  obs.value : BL as boolean -&gt; ob.value = (boolean.value) &quot;boolean&quot;;\n  obs.value : CE as val then {\n    val -&gt; ob.value = create('CodeableConcept') as ce then {\n      val.originalText as originalText then {\n        originalText.reference as reference -&gt; ce.text = reference;\n      } &quot;originltext&quot;;\n      val -&gt; ce.coding as coding then {\n        val.code as code -&gt; coding.code = cast(code, 'string');\n        val.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        val.displayName as display -&gt; coding.display = cast(display, 'string');\n        val.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n      } &quot;code&quot;;\n      val.translation as translation -&gt; ce.coding as coding then {\n        translation.code as code -&gt; coding.code = cast(code, 'string');\n        translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        translation.displayName as display -&gt; coding.display = cast(display, 'string');\n        translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n        translation.qualifier as qualifier then {\n          qualifier.value as value -&gt; ce.coding as coding then {\n            value.code as code -&gt; coding.code = cast(code, 'string');\n            value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n            value.displayName as display -&gt; coding.display = cast(display, 'string');\n            value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n          };\n        };\n      };\n    } &quot;coding&quot;;\n  } &quot;val&quot;;\n  obs.value : PQ as val then {\n    val -&gt; ob.value = create('Quantity') as quantity then {\n      val.value as value -&gt; quantity.value = value;\n      val.unit as unit -&gt; quantity.unit = unit;\n    } &quot;quantity&quot;;\n  } &quot;valueQuantity&quot;;\n  obs.value : ST as value -&gt;  ob.value = create('string'),  ob.value = (value.dataString);\n  // Note e commenti\n  obs.entryRelationship as entryRelationship then {\n    entryRelationship.act as act then {\n      act.text as text then {\n        text.reference as reference -&gt; ob.note as note then {\n          reference -&gt; note.text = (reference.value) &quot;reference&quot;;\n        };\n      };\n    } &quot;Act&quot;;\n  };\n  // subject\n  obs.subject as sbj then {\n    sbj.relatedSubject as relatedSubj -&gt; patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n  };\n  cda where cda.entryRelationship.act.exists() then {\n    // specimen\n    obs.specimen as spmn then {\n      spmn.specimenRole as specimenRole then {\n        specimenRole.id as id then {\n          id.extension as extobs then {\n            cda.entryRelationship as entryRelationship then {\n              entryRelationship.act as a then {\n                a.specimen as sp then {\n                  sp.specimenRole as spr then {\n                    spr.id where (extension = extobs) -&gt;  bundle.entry as e4o,  e4o.request = create('BackboneElement') as request,  request.method = 'POST',  e4o.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4o,  e4o.fullUrl = append('https://example/Specimen/', uuid4o),  request.url = 'Specimen',  ob.specimen = create('Reference') as reference,  reference.reference = ('https://example/Specimen/' + %specimen.id) then {\n                      spr -&gt;  specimen.parent = create('Reference') as reference,  reference.reference = ('https://example/Specimen/' + %specimenp.id) &quot;reference&quot;;\n                      spr.id -&gt; specimen.identifier;\n                      specimenRole.specimenPlayingEntity as spent then {\n                        spent.code -&gt; specimen.type;\n                      } &quot;ent&quot;;\n                      spr.specimenPlayingEntity as specimenPlayingEntity then {\n                        specimenPlayingEntity.code -&gt; specimen.type;\n                      };\n                      a -&gt; specimen.collection = create('BackboneElement') as collection then {\n                        a.effectiveTime as effectivetime -&gt; collection.collected = create('dateTime') as value then TSDateTime(effectivetime, value) &quot;value&quot;;\n                        a where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n                          a.effectiveTime as eff -&gt; collection.collected = create('Period') as period then IVLTSPeriod(eff, period);\n                        } &quot;where&quot;;\n                        a.participant as participant -&gt;  bundle.entry as e10,  e10.request = create('BackboneElement') as request,  request.method = 'PUT',  e10.resource = create('Practitioner') as practitioner,  practitioner.id = uuid() as uuid11,  e10.fullUrl = append('https://example/Practitioner/', uuid11),  collection.collector = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) then {\n                          participant.participantRole as participantRole then {\n                            participantRole -&gt; practitioner.meta as meta then {\n                              participantRole -&gt; meta.tag = create('Coding') as coding then {\n                                participantRole -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n                                participantRole -&gt; coding.code = 'ClinicalDocument/body/act/participant' &quot;code&quot;;\n                              } &quot;coding&quot;;\n                            } &quot;meta&quot;;\n                            participantRole.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 then {\n                                participantRole -&gt; request.url = append('Practitioner?identifier=', ext) &quot;UUID&quot;;\n                              } &quot;ext&quot;;\n                              id.assigningAuthorityName as s -&gt;  identifier.assigner as a,  a.display = s;\n                            } &quot;identifier&quot;;\n                            participantRole.addr -&gt; practitioner.address;\n                            participantRole.playingEntity as playingEntity then {\n                              playingEntity.name -&gt; practitioner.name;\n                            };\n                          };\n                        };\n                      } &quot;collection&quot;;\n                    } &quot;cont&quot;;\n                  } &quot;spr&quot;;\n                } &quot;sp&quot;;\n              } &quot;a&quot;;\n            } &quot;en&quot;;\n          } &quot;extobs&quot;;\n        };\n      };\n    };\n  } &quot;conditionactexists&quot;;\n  cda where cda.entryRelationship.act.exists().not() and (obs.specimen.specimenRole.specimenPlayingEntity.code.code != specimenp.type.coding.code) then {\n    obs.specimen as spmn -&gt;  bundle.entry as e4o,  e4o.request = create('BackboneElement') as request,  request.method = 'POST',  e4o.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4o,  e4o.fullUrl = append('https://example/Specimen/', uuid4o),  request.url = 'Specimen',  ob.specimen = create('Reference') as reference,  reference.reference = ('https://example/Specimen/' + %specimen.id) then {\n      spmn.specimenRole as specimenRole then {\n        specimenRole.id -&gt; specimen.identifier;\n        specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n          specimenPlayingEntity.code -&gt; specimen.type;\n        };\n      };\n    };\n  } &quot;wherenotexists&quot;;\n  // performer\n  obs.performer as performer -&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' then {\n    performer -&gt;  ob.performer = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n      performer.assignedEntity as entity then {\n        entity.code -&gt; practitionerRole.code;\n        entity -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.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/body/observation/performer' &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 then {\n              entity -&gt; request.url = append('Practitioner?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;  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;performer&quot;;\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);\n            } &quot;birth&quot;;\n          } &quot;name&quot;;\n          // organization\n          entity.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 -&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/body/observation/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,  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.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,  e4.resource = create('Organization') as organization1,  request.method = 'PUT' 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/body/observation/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,  e4.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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 e5,  e5.request = create('BackboneElement') as request,  request.method = 'PUT',  e5.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/body/observation/performer/representedOrganization/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,  e5.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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;practitioner&quot;;\n      } &quot;entity&quot;;\n    } &quot;practitionerRole&quot;;\n  };\n  // author\n  obs.author as srcAuthor -&gt;  bundle.entry as e6,  e6.request = create('BackboneElement') as request,  request.method = 'POST',  e6.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid6,  e6.fullUrl = append('https://example/PractitionerRole/', uuid6),  request.url = 'PractitionerRole',  ob.performer = create('Reference') as referenceaut,  referenceaut.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n    srcAuthor.assignedAuthor as assignedAuthor then {\n      assignedAuthor.code as codice -&gt; practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n      assignedAuthor -&gt;  bundle.entry as e7,  e7.request = create('BackboneElement') as request,  request.method = 'PUT',  e7.resource = create('Practitioner') as practitioner,  practitioner.id = uuid() as uuid7 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/body/observation/author' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\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 then {\n            assignedAuthor -&gt; request.url = append('Practitioner?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;  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;aut&quot;;\n          } &quot;r&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        } &quot;identifier&quot;;\n        assignedAuthor.addr -&gt; practitioner.address;\n        assignedAuthor.telecom -&gt; practitioner.telecom;\n        // person\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      } &quot;ASSAUth&quot;;\n      // organization\n      assignedAuthor.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/body/observation/author/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;org&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/body/observation/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,  e9.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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/body/observation/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 uuid4,  e10.fullUrl = append('https://example/Organization/', uuid4),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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      // device\n      assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -&gt;  bundle.entry as e11,  e11.request = create('BackboneElement') as request,  request.method = 'POST',  e11.resource = create('Device') as device,  device.id = uuid() as uuid11,  e11.fullUrl = append('https://example/Device/', uuid11),  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    };\n  };\n  // participant person\n  obs.participant as participant where (typeCode != 'DEV') -&gt;  ob.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n    participant -&gt; encounter.participant as FhirParticipant then {\n      participant as p -&gt; FhirParticipant.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    } &quot;fhirParticipant&quot;;\n    participant.participantRole as participantRole -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid12,  e12.fullUrl = append('https://example/PractitionerRole/', uuid12),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant1,  participant1.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/Practitioner/' + %practitionerRole.id) then {\n      // participant.time -&gt; participant1.period;\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then {\n        time1 -&gt; period.start = create('dateTime') as start then TSDateTime(time1, start) &quot;val&quot;;\n      };\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n      participant.functionCode -&gt; practitionerRole.code;\n      // non mappa i 2 precedenti\n      participantRole -&gt;  bundle.entry as e13,  e13.request = create('BackboneElement') as request,  request.method = 'PUT',  e13.resource = create('Practitioner') as practitioner then {\n        participantRole -&gt; practitioner.meta as meta then {\n          participantRole -&gt; meta.tag = create('Coding') as coding then {\n            participantRole -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            participantRole -&gt; coding.code = 'ClinicalDocument/body/observation/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        participantRole.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 then {\n            participantRole -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid4,  e13.fullUrl = append('https://example/Practitioner/', uuid4),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;org&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        participantRole.code -&gt; practitionerRole.code;\n        participantRole.addr -&gt; practitioner.address;\n        participantRole.telecom -&gt; practitioner.telecom;\n        participantRole.playingEntity as playingEntity then {\n          playingEntity.name -&gt; practitioner.name;\n          playingEntity.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n      } &quot;practitioner&quot;;\n    } &quot;partRole&quot;;\n  } &quot;participantEncounter&quot;;\n  // participant device\n  obs.participant as devParticipant where (typeCode = 'DEV') -&gt;  bundle.entry as e14,  e14.request = create('BackboneElement') as request,  request.method = 'POST',  e14.resource = create('Device') as device,  device.id = uuid() as uuid14,  e14.fullUrl = append('https://example/Device/', uuid14),  request.url = 'Device',  ob.device = create('Reference') as reference,  reference.reference = ('https://example/Device/' + %device.id) then {\n    devParticipant.participantRole as participantRoleDev then {\n      participantRoleDev.playingDevice as playingDevice then {\n        playingDevice.code -&gt; device.type;\n        playingDevice.manufacturerModelName as manufacturerModelName then {\n          manufacturerModelName as m -&gt; device.manufacturer = (m.displayName) &quot;displayRule&quot;;\n        } &quot;manufacturer&quot;;\n        playingDevice.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      };\n    } &quot;participantRoleDev&quot;;\n  } &quot;devParticipant&quot;;\n  // observationMedia\n  obs.entryRelationship as er then {\n    er.observationMedia as obsMedia -&gt;  bundle.entry as e15,  e15.request = create('BackboneElement') as request,  request.method = 'POST',  e15.resource = create('Media') as media1,  media1.id = uuid() as uuid15,  e15.fullUrl = append('https://example/Media/', uuid15),  request.url = 'Media',  ob.derivedFrom = create('Reference') as reference,  reference.reference = ('https://example/Media/' + %media1.id) then {\n      obsMedia -&gt; media1.content = create('Attachment') as Attachment then {\n        obsMedia -&gt; media1.status = 'unknown' &quot;status&quot;;\n        obsMedia.value as valueMedia then {\n          valueMedia.mediaType as type -&gt; Attachment.contentType = type &quot;type&quot;;\n          valueMedia -&gt; Attachment.data = (valueMedia.dataBase64Binary) &quot;data&quot;;\n        } &quot;valuemedia&quot;;\n      } &quot;Attachment&quot;;\n    } &quot;media&quot;;\n  } &quot;observationMedia&quot;;\n  // referenceRange\n  obs.referenceRange as refRange -&gt; ob.referenceRange = create('BackboneElement') as ref then {\n    refRange.observationRange as obsRange then {\n      obsRange.value : ST as value -&gt;  ref.text = create('string'),  ref.text = (value.dataString);\n      obsRange -&gt; ref.low = create('Quantity') as Low then {\n        obsRange.value : IVL_PQ as v then {\n          v.low as l1 then {\n            l1.value as decValue -&gt; Low.value = decValue;\n            l1.unit as Unit -&gt; Low.unit = Unit;\n          } &quot;decValue&quot;;\n          v -&gt; ref.high = create('Quantity') as high then {\n            v.high as h1 then {\n              h1.value as decValue1 -&gt; high.value = decValue1;\n              h1.unit as Unit1 -&gt; high.unit = Unit1;\n            } &quot;decValue&quot;;\n          } &quot;high&quot;;\n        } &quot;IVL-PQ&quot;;\n        obsRange.interpretationCode -&gt; ref.type;\n        obsRange.precondition as precondition then {\n          precondition.criterion as criterion then {\n            criterion.code -&gt; ref.appliesTo &quot;appliesTo&quot;;\n            criterion.value : IVL_PQ as v then {\n              v.high as l1 then {\n                l1 -&gt; ref.age = create('Quantity') as age then {\n                  l1 -&gt; age.high as high then {\n                    l1.value as decValue -&gt; high.value = decValue;\n                    l1.unit as Unit1 -&gt; high.unit = Unit1;\n                  } &quot;high&quot;;\n                } &quot;age&quot;;\n              } &quot;low&quot;;\n            } &quot;v&quot;;\n          };\n        };\n      } &quot;obsRange&quot;;\n    } &quot;refRange&quot;;\n  } &quot;ref&quot;;\n}\n\ngroup Observation3(source obs : Observation, target patient : Patient, target encounter : Encounter, target ob : Observation, target bundle : Bundle, source cda : Act) {\n  obs -&gt;  ob.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n  obs -&gt;  ob.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n  obs.code -&gt; ob.code;\n  obs.statusCode as statusc where (code = 'completed') -&gt; ob.status = 'final';\n  obs.statusCode as statusc where (code = 'active') -&gt; ob.status = 'registered';\n  obs.statusCode as statusc where (code = 'aborted') -&gt; ob.status = 'cancelled';\n  obs.statusCode as statusc where (code = 'suspended') -&gt; ob.status = 'partial';\n  obs.effectiveTime as effectiveTime -&gt; ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;value2&quot;;\n  obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n    obs.effectiveTime as eff -&gt; ob.effective = create('Period') as period then IVLTSPeriod(eff, period);\n  } &quot;where&quot;;\n  obs.interpretationCode -&gt; ob.interpretation;\n  obs.methodCode -&gt; ob.method;\n  obs.value : INT as int -&gt; ob.value = (int.value);\n  obs.value : BL as boolean -&gt; ob.value = (boolean.value) &quot;boolean&quot;;\n  obs.value : CE as val then {\n    val -&gt; ob.value = create('CodeableConcept') as ce then {\n      val.originalText as originalText then {\n        originalText.reference as reference -&gt; ce.text = reference;\n      } &quot;originltext&quot;;\n      val -&gt; ce.coding as coding then {\n        val.code as code -&gt; coding.code = cast(code, 'string');\n        val.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        val.displayName as display -&gt; coding.display = cast(display, 'string');\n        val.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n      } &quot;code&quot;;\n      val.translation as translation -&gt; ce.coding as coding then {\n        translation.code as code -&gt; coding.code = cast(code, 'string');\n        translation.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n        translation.displayName as display -&gt; coding.display = cast(display, 'string');\n        translation.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n        translation.qualifier as qualifier then {\n          qualifier.value as value -&gt; ce.coding as coding then {\n            value.code as code -&gt; coding.code = cast(code, 'string');\n            value.codeSystem as system -&gt; coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n            value.displayName as display -&gt; coding.display = cast(display, 'string');\n            value.codeSystemVersion as version -&gt; coding.version = cast(version, 'string');\n          };\n        };\n      };\n    } &quot;coding&quot;;\n  } &quot;val&quot;;\n  obs.value : PQ as val then {\n    val -&gt; ob.value = create('Quantity') as quantity then {\n      val.value as value -&gt; quantity.value = value;\n      val.unit as unit -&gt; quantity.unit = unit;\n    } &quot;quantity&quot;;\n  } &quot;valueQuantity&quot;;\n  obs.value : ST as value -&gt;  ob.value = create('string'),  ob.value = (value.dataString);\n  // Note e commenti\n  obs.entryRelationship as entryRelationship then {\n    entryRelationship.act as act then {\n      act.text as text then {\n        text.reference as reference -&gt; ob.note as note then {\n          reference -&gt; note.text = (reference.value) &quot;reference&quot;;\n        };\n      };\n    } &quot;Act&quot;;\n  };\n  // subject\n  obs.subject as sbj then {\n    sbj.relatedSubject as relatedSubj -&gt; patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n  };\n  // specimen\n  obs.specimen as spmn -&gt;  bundle.entry as e4o,  e4o.request = create('BackboneElement') as request,  request.method = 'POST',  e4o.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4o,  e4o.fullUrl = append('https://example/Specimen/', uuid4o),  request.url = 'Specimen',  ob.specimen = create('Reference') as reference,  reference.reference = ('https://example/Specimen/' + %specimen.id) then {\n    spmn.specimenRole as specimenRole then {\n      specimenRole.id as id -&gt; specimen.identifier;\n      specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n        specimenPlayingEntity.code -&gt; specimen.type;\n      };\n    };\n  };\n  // performer\n  obs.performer as performer -&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' then {\n    performer -&gt;  ob.performer = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n      performer.assignedEntity as entity then {\n        entity.code -&gt; practitionerRole.code;\n        entity -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.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/body/observation/performer' &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 then {\n              entity -&gt; request.url = append('Practitioner?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;  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;performer&quot;;\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);\n            } &quot;birth&quot;;\n          } &quot;name&quot;;\n          // organization\n          entity.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 -&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/body/observation/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,  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.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,  e4.resource = create('Organization') as organization1,  request.method = 'PUT' 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/body/observation/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,  e4.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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 e5,  e5.request = create('BackboneElement') as request,  request.method = 'PUT',  e5.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/body/observation/performer/representedOrganization/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,  e5.fullUrl = append('https://example/Organization/', uuid5),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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;practitioner&quot;;\n      } &quot;entity&quot;;\n    } &quot;practitionerRole&quot;;\n  };\n  // author\n  obs.author as srcAuthor -&gt;  bundle.entry as e6,  e6.request = create('BackboneElement') as request,  request.method = 'POST',  e6.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid6,  e6.fullUrl = append('https://example/PractitionerRole/', uuid6),  request.url = 'PractitionerRole',  ob.performer = create('Reference') as referenceaut,  referenceaut.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n    srcAuthor.assignedAuthor as assignedAuthor then {\n      assignedAuthor.code as codice -&gt; practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n      assignedAuthor -&gt;  bundle.entry as e7,  e7.request = create('BackboneElement') as request,  request.method = 'PUT',  e7.resource = create('Practitioner') as practitioner,  practitioner.id = uuid() as uuid7 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/body/observation/author' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\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 then {\n            assignedAuthor -&gt; request.url = append('Practitioner?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;  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;aut&quot;;\n          } &quot;r&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        } &quot;identifier&quot;;\n        assignedAuthor.addr -&gt; practitioner.address;\n        assignedAuthor.telecom -&gt; practitioner.telecom;\n        // person\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      } &quot;ASSAUth&quot;;\n      // organization\n      assignedAuthor.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/body/observation/author/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;org&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/body/observation/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,  e9.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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/body/observation/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 uuid4,  e10.fullUrl = append('https://example/Organization/', uuid4),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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      // device\n      assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -&gt;  bundle.entry as e11,  e11.request = create('BackboneElement') as request,  request.method = 'POST',  e11.resource = create('Device') as device,  device.id = uuid() as uuid11,  e11.fullUrl = append('https://example/Device/', uuid11),  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    };\n  };\n  // participant person\n  obs.participant as participant where (typeCode != 'DEV') -&gt;  ob.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n    participant -&gt; encounter.participant as FhirParticipant then {\n      participant as p -&gt; FhirParticipant.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    } &quot;fhirParticipant&quot;;\n    participant.participantRole as participantRole -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid12,  e12.fullUrl = append('https://example/PractitionerRole/', uuid12),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant1,  participant1.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/Practitioner/' + %practitionerRole.id) then {\n      // participant.time -&gt; participant1.period;\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then {\n        time1 -&gt; period.start = create('dateTime') as start then TSDateTime(time1, start) &quot;val&quot;;\n      };\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n      participant.functionCode -&gt; practitionerRole.code;\n      // non mappa i 2 precedenti\n      participantRole -&gt;  bundle.entry as e13,  e13.request = create('BackboneElement') as request,  request.method = 'PUT',  e13.resource = create('Practitioner') as practitioner then {\n        participantRole -&gt; practitioner.meta as meta then {\n          participantRole -&gt; meta.tag = create('Coding') as coding then {\n            participantRole -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            participantRole -&gt; coding.code = 'ClinicalDocument/body/observation/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        participantRole.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 then {\n            participantRole -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid4,  e13.fullUrl = append('https://example/Practitioner/', uuid4),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;org&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        participantRole.code -&gt; practitionerRole.code;\n        participantRole.addr -&gt; practitioner.address;\n        participantRole.telecom -&gt; practitioner.telecom;\n        participantRole.playingEntity as playingEntity then {\n          playingEntity.name -&gt; practitioner.name;\n          playingEntity.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n      } &quot;practitioner&quot;;\n    } &quot;partRole&quot;;\n  } &quot;participantEncounter&quot;;\n  // participant device\n  obs.participant as devParticipant where (typeCode = 'DEV') -&gt;  bundle.entry as e14,  e14.request = create('BackboneElement') as request,  request.method = 'POST',  e14.resource = create('Device') as device,  device.id = uuid() as uuid14,  e14.fullUrl = append('https://example/Device/', uuid14),  request.url = 'Device',  ob.device = create('Reference') as reference,  reference.reference = ('https://example/Device/' + %device.id) then {\n    devParticipant.participantRole as participantRoleDev then {\n      participantRoleDev.playingDevice as playingDevice then {\n        playingDevice.code -&gt; device.type;\n        playingDevice.manufacturerModelName as manufacturerModelName then {\n          manufacturerModelName as m -&gt; device.manufacturer = (m.displayName) &quot;displayRule&quot;;\n        } &quot;manufacturer&quot;;\n        playingDevice.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      };\n    } &quot;participantRoleDev&quot;;\n  } &quot;devParticipant&quot;;\n  // observationMedia\n  obs.entryRelationship as er then {\n    er.observationMedia as obsMedia -&gt;  bundle.entry as e15,  e15.request = create('BackboneElement') as request,  request.method = 'POST',  e15.resource = create('Media') as media1,  media1.id = uuid() as uuid15,  e15.fullUrl = append('https://example/Media/', uuid15),  request.url = 'Media',  ob.derivedFrom = create('Reference') as reference,  reference.reference = ('https://example/Media/' + %media1.id) then {\n      obsMedia -&gt; media1.content = create('Attachment') as Attachment then {\n        obsMedia -&gt; media1.status = 'unknown' &quot;status&quot;;\n        obsMedia.value as valueMedia then {\n          valueMedia.mediaType as type -&gt; Attachment.contentType = type &quot;type&quot;;\n          valueMedia -&gt; Attachment.data = (valueMedia.dataBase64Binary) &quot;data&quot;;\n        } &quot;valuemedia&quot;;\n      } &quot;Attachment&quot;;\n    } &quot;media&quot;;\n  } &quot;observationMedia&quot;;\n  // referenceRange\n  obs.referenceRange as refRange -&gt; ob.referenceRange = create('BackboneElement') as ref then {\n    refRange.observationRange as obsRange then {\n      obsRange.value : ST as value -&gt;  ref.text = create('string'),  ref.text = (value.dataString);\n      obsRange -&gt; ref.low = create('Quantity') as Low then {\n        obsRange.value : IVL_PQ as v then {\n          v.low as l1 then {\n            l1.value as decValue -&gt; Low.value = decValue;\n            l1.unit as Unit -&gt; Low.unit = Unit;\n          } &quot;decValue&quot;;\n          v -&gt; ref.high = create('Quantity') as high then {\n            v.high as h1 then {\n              h1.value as decValue1 -&gt; high.value = decValue1;\n              h1.unit as Unit1 -&gt; high.unit = Unit1;\n            } &quot;decValue&quot;;\n          } &quot;high&quot;;\n        } &quot;IVLPQ&quot;;\n        obsRange.interpretationCode -&gt; ref.type;\n        obsRange.precondition as precondition then {\n          precondition.criterion as criterion then {\n            criterion.code -&gt; ref.appliesTo &quot;appliesTo&quot;;\n            criterion.value : IVL_PQ as v then {\n              v.high as l1 then {\n                l1 -&gt; ref.age = create('Quantity') as age then {\n                  l1 -&gt; age.high as high then {\n                    l1.value as decValue -&gt; high.value = decValue;\n                    l1.unit as Unit1 -&gt; high.unit = Unit1;\n                  } &quot;high&quot;;\n                } &quot;age&quot;;\n              } &quot;low&quot;;\n            } &quot;v&quot;;\n          };\n        };\n      } &quot;obsRange&quot;;\n    } &quot;refRange&quot;;\n  } &quot;ref&quot;;\n}\n\ngroup Act(source cda : Act, target pat : Patient, target ac : DiagnosticReport, target enc : Encounter, target bundle : Bundle) {\n  cda.code -&gt; ac.code;\n  cda where cda.statusCode.exists().not() then {\n    cda -&gt; ac.status = 'final' &quot;statuscode&quot;;\n  } &quot;status&quot;;\n  cda.statusCode as statusc where (code = 'completed') -&gt; ac.status = 'final';\n  cda.statusCode as statusc where (code = 'active') -&gt; ac.status = 'registered';\n  cda.statusCode as statusc where (code = 'aborted') -&gt; ac.status = 'cancelled';\n  cda.statusCode as statusc where (code = 'suspended') -&gt; ac.status = 'partial';\n  cda.effectiveTime as effectiveTime -&gt; ac.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;value3&quot;;\n  cda where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n    cda.effectiveTime as eff -&gt; ac.effective = create('Period') as period then IVLTSPeriod(eff, period);\n  } &quot;where&quot;;\n  cda -&gt;  ac.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %pat.id) &quot;reference&quot;;\n  cda -&gt;  ac.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %enc.id) &quot;reference&quot;;\n  // specimen\n  cda where cda.specimen.exists() then {\n    cda.specimen as src -&gt;  bundle.entry as e4,  e4.request = create('BackboneElement') as request,  request.method = 'POST',  e4.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4,  e4.fullUrl = append('https://example/Specimen/', uuid4),  request.url = 'Specimen',  ac.specimen = create('Reference') as reference,  reference.reference = ('https://example/Specimen/' + %specimen.id) then {\n      src.specimenRole as specimenRole then {\n        specimenRole.id -&gt; specimen.identifier;\n        specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n          specimenPlayingEntity.code -&gt; specimen.type;\n        };\n      } &quot;SpecimenRole&quot;;\n      src -&gt;  specimen.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n      cda.entryRelationship as entryRelationship then {\n        entryRelationship.observation as observation then {\n          observation -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('Observation') as obs,  obs.id = uuid() as uuid13,  e12.fullUrl = append('https://example/Observation/', uuid13),  request.url = 'Observation',  ac.result = create('Reference') as reference,  reference.reference = ('https://example/Observation/' + %obs.id) then {\n            observation then Observation2(observation, pat, enc, obs, bundle, cda, specimen) &quot;ORG&quot;;\n            // procedure\n            cda.entryRelationship as entryRelationship1 then {\n              entryRelationship1.procedure as proc -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'POST',  e5.resource = create('Procedure') as procedure,  procedure.id = uuid() as uuid5,  e5.fullUrl = append('https://example/Procedure/', uuid5),  request.url = 'Procedure',  obs.partOf = create('Reference') as reference,  reference.reference = ('https://example/Procedure/' + %procedure.id) then {\n                proc -&gt;  procedure.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n                proc -&gt;  procedure.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n                proc where proc.statusCode.exists().not() then {\n                  proc -&gt; procedure.status = 'unknown' &quot;statuscode&quot;;\n                } &quot;status&quot;;\n                proc.statusCode as statusc where (code = 'completed') -&gt; procedure.status = 'completed';\n                proc.statusCode as statusc where (code = 'active') -&gt; procedure.status = 'in-progress';\n                proc.statusCode as statusc where (code = 'aborted') -&gt; procedure.status = 'stopped';\n                proc.statusCode as statusc where (code = 'suspended') -&gt; procedure.status = 'on-hold';\n                proc.statusCode as statusc where (code = 'cancelled') -&gt; procedure.status = 'not-done';\n                proc.statusCode as statusc where (code = 'held') -&gt; procedure.status = 'on-hold';\n                proc.statusCode as statusc where (code = 'new') -&gt; procedure.status = 'preparation';\n                proc.statusCode as statusc where (code = 'obsolete') -&gt; procedure.status = 'entered-in-error';\n                proc.statusCode as statusc where (code = 'nullified') -&gt; procedure.status = 'unknown';\n                proc.effectiveTime as effectiveTime -&gt; procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;datetime&quot;;\n                proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n                  proc.effectiveTime as eff -&gt; procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n                } &quot;where&quot;;\n                proc.targetSiteCode -&gt; procedure.bodySite;\n              };\n            } &quot;entryRelationshipprocedure&quot;;\n          } &quot;obs&quot;;\n        };\n        entryRelationship.organizer as organizer then {\n          organizer -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('Observation') as obs,  obs.id = uuid() as uuid13,  e12.fullUrl = append('https://example/Observation/', uuid13),  request.url = 'Observation',  ac.result = create('Reference') as reference,  reference.reference = ('https://example/Observation/' + %obs.id) then {\n            organizer then Organizer(cda, organizer, pat, enc, obs, bundle) &quot;ORG&quot;;\n            // procedure\n            cda.entryRelationship as entryRelationship1 then {\n              entryRelationship1.procedure as proc -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'POST',  e5.resource = create('Procedure') as procedure,  procedure.id = uuid() as uuid5,  e5.fullUrl = append('https://example/Procedure/', uuid5),  request.url = 'Procedure',  obs.partOf = create('Reference') as reference,  reference.reference = ('https://example/Procedure/' + %procedure.id) then {\n                proc -&gt;  procedure.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n                proc -&gt;  procedure.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n                proc where proc.statusCode.exists().not() then {\n                  proc -&gt; procedure.status = 'unknown' &quot;statuscode&quot;;\n                } &quot;status&quot;;\n                proc.statusCode as statusc where (code = 'completed') -&gt; procedure.status = 'completed';\n                proc.statusCode as statusc where (code = 'active') -&gt; procedure.status = 'in-progress';\n                proc.statusCode as statusc where (code = 'aborted') -&gt; procedure.status = 'stopped';\n                proc.statusCode as statusc where (code = 'suspended') -&gt; procedure.status = 'on-hold';\n                proc.statusCode as statusc where (code = 'cancelled') -&gt; procedure.status = 'not-done';\n                proc.statusCode as statusc where (code = 'held') -&gt; procedure.status = 'on-hold';\n                proc.statusCode as statusc where (code = 'new') -&gt; procedure.status = 'preparation';\n                proc.statusCode as statusc where (code = 'obsolete') -&gt; procedure.status = 'entered-in-error';\n                proc.statusCode as statusc where (code = 'nullified') -&gt; procedure.status = 'unknown';\n                proc.effectiveTime as effectiveTime -&gt; procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;datetime&quot;;\n                proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n                  proc.effectiveTime as eff -&gt; procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n                } &quot;where&quot;;\n                proc.targetSiteCode -&gt; procedure.bodySite;\n              } &quot;pbservation&quot;;\n            } &quot;entryRelationshiprocedure&quot;;\n          } &quot;Organizer&quot;;\n        };\n      } &quot;entryRelationshipobservation&quot;;\n    };\n  } &quot;exist&quot;;\n  cda where cda.specimen.exists().not() then {\n    // cda -&gt; bundle.entry as e4, e4.request = create('BackboneElement') as request, request.method = 'POST', e4.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4,  e4.fullUrl = append('https://example/Specimen/', uuid4), request.url = 'Specimen' then {\n    cda.entryRelationship as entryRelationship then {\n      entryRelationship.observation as observation then {\n        observation -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('Observation') as obs,  obs.id = uuid() as uuid13,  e12.fullUrl = append('https://example/Observation/', uuid13),  request.url = 'Observation',  ac.result = create('Reference') as reference,  reference.reference = ('https://example/Observation/' + %obs.id) then {\n          observation then Observation3(observation, pat, enc, obs, bundle, cda) &quot;ORG&quot;;\n          // procedure\n          cda.entryRelationship as entryRelationship1 then {\n            entryRelationship1.procedure as proc -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'POST',  e5.resource = create('Procedure') as procedure,  procedure.id = uuid() as uuid5,  e5.fullUrl = append('https://example/Procedure/', uuid5),  request.url = 'Procedure',  obs.partOf = create('Reference') as reference,  reference.reference = ('https://example/Procedure/' + %procedure.id) then {\n              proc -&gt;  procedure.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n              proc -&gt;  procedure.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n              proc where proc.statusCode.exists().not() then {\n                proc -&gt; procedure.status = 'unknown' &quot;statuscode&quot;;\n              } &quot;status&quot;;\n              proc.statusCode as statusc where (code = 'completed') -&gt; procedure.status = 'completed';\n              proc.statusCode as statusc where (code = 'active') -&gt; procedure.status = 'in-progress';\n              proc.statusCode as statusc where (code = 'aborted') -&gt; procedure.status = 'stopped';\n              proc.statusCode as statusc where (code = 'suspended') -&gt; procedure.status = 'on-hold';\n              proc.statusCode as statusc where (code = 'cancelled') -&gt; procedure.status = 'not-done';\n              proc.statusCode as statusc where (code = 'held') -&gt; procedure.status = 'on-hold';\n              proc.statusCode as statusc where (code = 'new') -&gt; procedure.status = 'preparation';\n              proc.statusCode as statusc where (code = 'obsolete') -&gt; procedure.status = 'entered-in-error';\n              proc.statusCode as statusc where (code = 'nullified') -&gt; procedure.status = 'unknown';\n              proc.effectiveTime as effectiveTime -&gt; procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;datetime&quot;;\n              proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n                proc.effectiveTime as eff -&gt; procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n              } &quot;where&quot;;\n              proc.targetSiteCode -&gt; procedure.bodySite;\n            };\n          } &quot;entryRelationshipprocedure&quot;;\n        } &quot;obs&quot;;\n      };\n      entryRelationship.organizer as organizer then {\n        organizer -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('Observation') as obs,  obs.id = uuid() as uuid13,  e12.fullUrl = append('https://example/Observation/', uuid13),  request.url = 'Observation',  ac.result = create('Reference') as reference,  reference.reference = ('https://example/Observation/' + %obs.id) then {\n          organizer then Organizer(cda, organizer, pat, enc, obs, bundle) &quot;ORG&quot;;\n          // procedure\n          cda.entryRelationship as entryRelationship1 then {\n            entryRelationship1.procedure as proc -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'POST',  e5.resource = create('Procedure') as procedure,  procedure.id = uuid() as uuid5,  e5.fullUrl = append('https://example/Procedure/', uuid5),  request.url = 'Procedure',  obs.partOf = create('Reference') as reference,  reference.reference = ('https://example/Procedure/' + %procedure.id) then {\n              proc -&gt;  procedure.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n              proc -&gt;  procedure.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n              proc where proc.statusCode.exists().not() then {\n                proc -&gt; procedure.status = 'unknown' &quot;statuscode&quot;;\n              } &quot;status&quot;;\n              proc.statusCode as statusc where (code = 'completed') -&gt; procedure.status = 'completed';\n              proc.statusCode as statusc where (code = 'active') -&gt; procedure.status = 'in-progress';\n              proc.statusCode as statusc where (code = 'aborted') -&gt; procedure.status = 'stopped';\n              proc.statusCode as statusc where (code = 'suspended') -&gt; procedure.status = 'on-hold';\n              proc.statusCode as statusc where (code = 'cancelled') -&gt; procedure.status = 'not-done';\n              proc.statusCode as statusc where (code = 'held') -&gt; procedure.status = 'on-hold';\n              proc.statusCode as statusc where (code = 'new') -&gt; procedure.status = 'preparation';\n              proc.statusCode as statusc where (code = 'obsolete') -&gt; procedure.status = 'entered-in-error';\n              proc.statusCode as statusc where (code = 'nullified') -&gt; procedure.status = 'unknown';\n              proc.effectiveTime as effectiveTime -&gt; procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;datetime&quot;;\n              proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n                proc.effectiveTime as eff -&gt; procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n              } &quot;where&quot;;\n              proc.targetSiteCode -&gt; procedure.bodySite;\n            } &quot;pbservation&quot;;\n          } &quot;entryRelationshiprocedure&quot;;\n        } &quot;Organizer&quot;;\n      };\n    } &quot;entryRelationshipobservation&quot;;\n  } &quot;existnot&quot;;\n  // PARTICIPANT\n  cda.participant as part where (typeCode != 'DEV') -&gt; enc.participant as participant then {\n    part -&gt; participant.type as type then {\n      part -&gt; type.coding as coding then {\n        part -&gt; coding.code = (part.typeCode) &quot;codice&quot;;\n        part -&gt; coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' &quot;system&quot;;\n      } &quot;codeType&quot;;\n    } &quot;type&quot;;\n    part.participantRole as participantRole -&gt; participant.individual = create('Reference') as reference then {\n      participantRole -&gt;  bundle.entry as e,  e.request = create('BackboneElement') as request,  request.method = 'PUT',  e.resource = create('Practitioner') as practitioner then {\n        part.time as time1 -&gt; participant.period = create('Period') as period then {\n          time1 -&gt; period.start = create('dateTime') as start then TSDateTime(time1, start) &quot;val&quot;;\n        };\n        part.time as time1 -&gt; participant.period = create('Period') as period then IVLTSPeriod(time1, period);\n        participantRole -&gt; practitioner.meta as meta then {\n          participantRole -&gt; meta.tag = create('Coding') as coding then {\n            participantRole -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            participantRole -&gt; coding.code = 'ClinicalDocument/body/act/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        participantRole.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 then {\n            participantRole -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid4,  e.fullUrl = append('https://example/Practitioner/', uuid4),  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;org&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        participantRole.addr -&gt; practitioner.address;\n        participantRole.playingEntity as playingEntity then {\n          playingEntity.name -&gt; practitioner.name;\n        };\n      } &quot;participanRoleBund&quot;;\n    };\n  };\n  // PERFORMER\n  cda.performer as performer -&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',  ac.performer = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n    performer.assignedEntity as assignedEntity then {\n      assignedEntity.code as codice -&gt; practitionerRole.code;\n      assignedEntity -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.resource = create('Practitioner') as practitioner then {\n        assignedEntity.code -&gt; practitionerRole.code;\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/body/act/performer' &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 then {\n            assignedEntity -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid4,  e2.fullUrl = append('https://example/Practitioner/', uuid4),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;pra&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&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        } &quot;name&quot;;\n      } &quot;ASSAUth&quot;;\n      assignedEntity.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 -&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/body/act/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 uuid2,  e3.fullUrl = append('https://example/Organization/', uuid2),  practitionerRole.organization = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid2) &quot;org&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 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/body/act/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 uuid3,  organization1.id = uuid() as uuid3,  e4.fullUrl = append('https://example/Organization/', uuid3),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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            OrgPartOf -&gt; organization2.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/body/act/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;org&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;performer&quot;;\n  };\n  // AUTHOR\n  cda.author as srcAuthor -&gt;  bundle.entry as e5,  e5.request = create('BackboneElement') as request,  request.method = 'POST',  e5.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid6,  e5.fullUrl = append('https://example/PractitionerRole/', uuid6),  request.url = 'PractitionerRole',  ac.performer = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n    srcAuthor.assignedAuthor as assignedAuthor then {\n      assignedAuthor.code as codice -&gt; practitionerRole.code;\n      assignedAuthor -&gt;  bundle.entry as e7,  e7.request = create('BackboneElement') as request,  request.method = 'PUT',  e7.resource = create('Practitioner') as practitioner then {\n        srcAuthor.functionCode -&gt; practitionerRole.code;\n        assignedAuthor.code -&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/body/act/author' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\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 then {\n            assignedAuthor -&gt; request.url = append('Practitioner?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;  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;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        // person\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      } &quot;ASSAUth&quot;;\n      // organization\n      assignedAuthor.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/body/act/author/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 uuid8,  e8.fullUrl = append('https://example/Organization/', uuid8),  practitionerRole.organization = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid8) &quot;org&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/body/act/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 uuid9,  e9.fullUrl = append('https://example/Organization/', uuid9),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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/body/act/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 uuid10,  e10.fullUrl = append('https://example/Organization/', uuid10),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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;author&quot;;\n  };\n  // &lt;!--entryRelationship per la gestione delle note e commenti--&gt;\n  cda.entryRelationship as entryRelationship then {\n    entryRelationship.act as act then {\n      act.text as text then {\n        text.reference as reference -&gt; ac.conclusion = (reference.value);\n      };\n    } &quot;Act&quot;;\n  };\n}\n\ngroup Organizer(source cda : Act, source org : Organizer, target patient : Patient, target encounter : Encounter, target observation : Observation, target bundle : Bundle) {\n  org -&gt;  observation.subject = create('Reference') as reference,  reference.reference = ('https://example/Patient/' + %patient.id) &quot;reference&quot;;\n  org -&gt;  observation.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) &quot;reference&quot;;\n  org.code -&gt; observation.code;\n  org where org.code.exists().not() then {\n    cda.code -&gt; observation.code;\n  } &quot;act&quot;;\n  org.statusCode as statusc where (code = 'completed') -&gt; observation.status = 'final';\n  org.statusCode as statusc where (code = 'active') -&gt; observation.status = 'registered';\n  org.statusCode as statusc where (code = 'aborted') -&gt; observation.status = 'cancelled';\n  org.statusCode as statusc where (code = 'suspended') -&gt; observation.status = 'partial';\n  org.effectiveTime as effectiveTime -&gt; observation.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) &quot;value2&quot;;\n  org where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n    org.effectiveTime as eff -&gt; observation.effective = create('Period') as period then IVLTSPeriod(eff, period);\n  } &quot;where&quot;;\n  // specimen\n  org.specimen as spmn -&gt;  bundle.entry as e4o,  e4o.request = create('BackboneElement') as request,  request.method = 'POST',  e4o.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4o,  e4o.fullUrl = append('https://example/Specimen/', uuid4o),  request.url = 'Specimen',  observation.specimen = create('Reference') as reference,  reference.reference = ('https://example/Specimen/' + %specimen.id) then {\n    spmn.specimenRole as specimenRole then {\n      specimenRole.id as id -&gt; specimen.identifier;\n      specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n        specimenPlayingEntity.code -&gt; specimen.type;\n      };\n    };\n  };\n  // subject\n  org.subject as sbj then {\n    sbj.relatedSubject as relatedSubj -&gt; patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n  };\n  // performer\n  org.performer as performer -&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' then {\n    performer -&gt;  observation.performer = create('Reference') as reference,  reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n      performer.assignedEntity as entity then {\n        entity.code -&gt; practitionerRole.code;\n        entity -&gt;  bundle.entry as e2,  e2.request = create('BackboneElement') as request,  request.method = 'PUT',  e2.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/body/organizer/performer' &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 then {\n              entity -&gt; request.url = append('Practitioner?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;  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          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);\n            } &quot;birth&quot;;\n          } &quot;name&quot;;\n          entity.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 -&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/body/organizer/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,  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.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/body/organizer/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,  e4.fullUrl = append('https://example/Organization/', uuid4),  organization.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization1.id) &quot;org&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 e5,  e5.request = create('BackboneElement') as request,  request.method = 'PUT',  e5.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/body/organizer/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 uuid4,  e5.fullUrl = append('https://example/Organization/', uuid4),  organization1.partOf = create('Reference') as reference,  reference.reference = ('https://example/Organization/' + %organization2.id) &quot;org&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;practitioner&quot;;\n      } &quot;entity&quot;;\n    } &quot;practitionerRole&quot;;\n  };\n  // author\n  org.author as srcAuthor -&gt;  bundle.entry as e6,  e6.request = create('BackboneElement') as request,  request.method = 'POST',  e6.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid6,  e6.fullUrl = append('https://example/PractitionerRole/', uuid6),  request.url = 'PractitionerRole',  observation.performer = create('Reference') as referenceaut,  referenceaut.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n    // srcAuthor.time as time -&gt; tgt.date;\n    srcAuthor.assignedAuthor as assignedAuthor then {\n      assignedAuthor.code as codice -&gt; practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n      assignedAuthor -&gt;  bundle.entry as e7,  e7.request = create('BackboneElement') as request,  request.method = 'PUT',  e7.resource = create('Practitioner') as practitioner then {\n        srcAuthor.functionCode -&gt; practitionerRole.code;\n        // assignedAuthor.code -&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/body/organizer/author' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\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 then {\n            assignedAuthor -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid7,  e7.fullUrl = append('https://example/Practitioner/', uuid7),  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        // person\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      } &quot;ASSAUth&quot;;\n      // organization\n      assignedAuthor.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/body/organizer/author/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 uuid8,  e8.fullUrl = append('https://example/Organization/', uuid8),  practitionerRole.organization = create('Reference') as referenceOrg,  referenceOrg.reference = append('https://example/Organization/', uuid8) &quot;aut&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/body/organizer/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 uuid9,  e9.fullUrl = append('https://example/Organization/', uuid9),  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 e10,  e10.request = create('BackboneElement') as request,  request.method = 'PUT',  e10.resource = create('Organization') as organization2 then {\n            OrgPartOf -&gt; organization2.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/body/organizer/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 uuid10,  e10.fullUrl = append('https://example/Organization/', uuid10),  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      // device\n      assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -&gt;  bundle.entry as e11,  e11.request = create('BackboneElement') as request,  request.method = 'POST',  e11.resource = create('Device') as device,  device.id = uuid() as uuid11,  e11.fullUrl = append('https://example/Device/', uuid11),  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    };\n  };\n  // participant person\n  org.participant as participant where (typeCode != 'DEV') -&gt;  observation.encounter = create('Reference') as reference,  reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n    participant -&gt; encounter.participant as FhirParticipant then {\n      participant as p -&gt; FhirParticipant.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    } &quot;fhirParticipant&quot;;\n    participant.participantRole as participantRole -&gt;  bundle.entry as e12,  e12.request = create('BackboneElement') as request,  request.method = 'POST',  e12.resource = create('PractitionerRole') as practitionerRole,  practitionerRole.id = uuid() as uuid12,  e12.fullUrl = append('https://example/PractitionerRole/', uuid12),  request.url = 'PractitionerRole',  encounter.participant = create('BackboneElement') as participant1 then {\n      // participant.time -&gt; participant1.period;\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then {\n        time1 -&gt; period.start = create('dateTime') as start then TSDateTime(time1, start) &quot;val&quot;;\n      };\n      participant.time as time1 -&gt; participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n      participant.functionCode -&gt; practitionerRole.code;\n      // non mappa i 2 precedenti\n      participantRole -&gt;  bundle.entry as e13,  e13.request = create('BackboneElement') as request,  request.method = 'PUT',  e13.resource = create('Practitioner') as practitioner then {\n        participantRole -&gt;  participant1.individual = create('Reference') as referencepart,  referencepart.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) &quot;par&quot;;\n        participantRole -&gt; practitioner.meta as meta then {\n          participantRole -&gt; meta.tag = create('Coding') as coding then {\n            participantRole -&gt; coding.system = 'http://algoritmodiscoring' &quot;system&quot;;\n            participantRole -&gt; coding.code = 'ClinicalDocument/body/organizer/participant' &quot;code&quot;;\n          } &quot;coding&quot;;\n        } &quot;meta&quot;;\n        participantRole.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 then {\n            participantRole -&gt; request.url = append('Practitioner?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;  practitioner.id = (r + '-' + ext) as uuid2,  e13.fullUrl = append('https://example/Practitioner/', uuid2),  practitionerRole.practitioner = create('Reference') as reference,  reference.reference = ('https://example/Practitioner/' + %practitioner.id) &quot;part&quot;;\n          } &quot;r&quot;;\n        } &quot;identifier&quot;;\n        participantRole.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        participantRole.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        participantRole.code -&gt; practitionerRole.code;\n        participantRole.addr -&gt; practitioner.address;\n        participantRole.telecom -&gt; practitioner.telecom;\n        participantRole.playingEntity as playingEntity then {\n          playingEntity.name -&gt; practitioner.name;\n          playingEntity.birthTime as birthTime then {\n            birthTime.value as date -&gt; practitioner.birthDate = truncate(date, 10);\n          } &quot;birth&quot;;\n        } &quot;name&quot;;\n      } &quot;practitioner&quot;;\n    } &quot;partRole&quot;;\n  } &quot;participantEncounter&quot;;\n  // participant device\n  org.participant as devParticipant where (typeCode = 'DEV') -&gt;  bundle.entry as e14,  e14.request = create('BackboneElement') as request,  request.method = 'POST',  e14.resource = create('Device') as device,  device.id = uuid() as uuid14,  e14.fullUrl = append('https://example/Device/', uuid14),  request.url = 'Device',  observation.device = create('Reference') as reference,  reference.reference = ('https://example/Device/' + %device.id) then {\n    devParticipant.participantRole as participantRoleDev then {\n      participantRoleDev.playingDevice as playingDevice then {\n        playingDevice.code -&gt; device.type;\n        playingDevice.manufacturerModelName as manufacturerModelName then {\n          manufacturerModelName as m -&gt; device.manufacturer = (m.displayName) &quot;displayRule&quot;;\n        } &quot;manufacturer&quot;;\n        playingDevice.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      };\n    } &quot;participantRoleDev&quot;;\n  } &quot;devParticipant&quot;;\n  org.component as component then {\n    component.observation as observation -&gt;  bundle.entry as e,  e.request = create('BackboneElement') as request,  request.method = 'POST',  e.resource = create('Observation') as observationhasmember,  observationhasmember.id = uuid() as uuid2,  e.fullUrl = append('https://example/Observation/', uuid2),  request.url = 'Observation',  observation.hasMember = create('Reference') as reference,  reference.reference = ('https://example/Observation/' + %observationhasmember.id) then Observation(observation, patient, encounter, observationhasmember, bundle) &quot;OBS&quot;;\n  } &quot;componentobservation&quot;;\n  org.component as component then {\n    component.organizer as organizer -&gt;  bundle.entry as e1,  e1.request = create('BackboneElement') as request,  request.method = 'POST',  e1.resource = create('Observation') as observationorganizer,  observationorganizer.id = uuid() as uuid3,  e1.fullUrl = append('https://example/Observation/', uuid3),  request.url = 'Observation',  observation.hasMember = create('Reference') as reference,  reference.reference = ('https://example/Observation/' + %observationorganizer.id) then {\n      organizer then Organizer(cda, organizer, patient, encounter, observationorganizer, bundle) &quot;ORG&quot;;\n    };\n  } &quot;componentorganizer&quot;;\n  // observationMedia\n  org.component as component then {\n    component.observationMedia as obsMedia -&gt;  bundle.entry as e15,  e15.request = create('BackboneElement') as request,  request.method = 'POST',  e15.resource = create('Media') as media1,  media1.id = uuid() as uuid15,  e15.fullUrl = append('https://example/Media/', uuid15),  request.url = 'Media',  observation.derivedFrom = create('Reference') as reference,  reference.reference = ('https://example/Media/' + %media1.id) then {\n      obsMedia -&gt; media1.content = create('Attachment') as Attachment then {\n        obsMedia -&gt; media1.status = 'unknown' &quot;status&quot;;\n        obsMedia.value as valueMedia then {\n          valueMedia.mediaType as type -&gt; Attachment.contentType = type &quot;type&quot;;\n          valueMedia -&gt; Attachment.data = (valueMedia.dataBase64Binary) &quot;data&quot;;\n        } &quot;valuemedia&quot;;\n      } &quot;Attachment&quot;;\n    } &quot;obsmedia&quot;;\n  };\n  // note\n  org.component as component then {\n    component.act as act then {\n      act.text as text then {\n        text.reference as reference -&gt; observation.note as note then {\n          reference -&gt; note.text = (reference.value) &quot;reference&quot;;\n        } &quot;note&quot;;\n      };\n    } &quot;componentact&quot;;\n  };\n}\n\ngroup ExtSubjectAnimal(source src : relatedSubject, target ext : Extension) {\n  src -&gt; ext.url = 'http://hl7.org/fhir/StructureDefinition/patient-animal' &quot;url&quot;;\n  src.code as code -&gt;  ext.extension as ext,  ext.url = 'species',  ext.value = create('CodeableConcept') as code1 then CECodeableConcept(code, code1);\n}\n\n</pre>\n      </div>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirLabReport"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "cda2fhirLabReport"] ; # 
  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/OrganizationPartOf"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/OrganizationPartOf>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "OrganizationPartOf" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/Organization"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Organization>     ] ;
fhir:mode [ fhir:v "queried" ] ;
fhir:alias [ fhir:v "rapresentedOrganization" ]
  ] [
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/cda/StructureDefinition/AD"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/AD>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "AD" ]
  ] [
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/Procedure"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Procedure" ]
  ] [
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/Act"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Act>     ] ;
fhir:mode [ fhir:v "produced" ] ;
fhir:alias [ fhir:v "Act" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "IVL_PQ" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/PQ"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/PQ>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "PQ" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/SimpleQuantity>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "SimpleQuantity" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/cda/StructureDefinition/Organizer"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Organizer>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "Organizer" ]
  ] ) ; # 
  fhir:import ( [
fhir:v "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes"^^xsd:anyURI ;
fhir:link <http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes>
  ] [
fhir:v "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader"^^xsd:anyURI ;
fhir:link <http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader>
  ] ) ; # 
  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 "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 "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 "uuid6" ] ;
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/DocumentReference/" ]         ] [
fhir:value [ fhir:v "uuid6" ]         ] )       ] [
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 "record" ] ;
          ( fhir:source [
fhir:context [ fhir:v "recordTarget" ] ;
fhir:element [ fhir:v "patientRole" ] ;
fhir:variable [ fhir:v "patient" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "idfr" ] ;
            ( 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 "ext1" ]               ] ) ;
              ( 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 "ext1" ]                 ] )               ] )             ] [
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 "ext" ] ;
            ( fhir:source [
fhir:context [ fhir:v "patient" ] ;
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') or (root = '2.16.840.1.113883.2.9.4.3.7') or (root = '2.16.840.1.113883.2.9.4.3.3') or (root = '2.16.840.1.113883.2.9.4.3.17') or (root = '2.16.840.1.113883.2.9.4.3.18') or (root = '2.16.840.1.113883.2.9.2.10.4.1.1') or (root = '2.16.840.1.113883.2.9.2.20.4.1.1') or (root = '2.16.840.1.113883.2.9.2.30.4.1.1') or (root = '2.16.840.1.113883.2.9.2.41.4.1.1') or (root = '2.16.840.1.113883.2.9.2.42.4.1.1') or (root = '2.16.840.1.113883.2.9.2.50.4.1.1') or (root = '2.16.840.1.113883.2.9.2.60.4.1.1') or (root = '2.16.840.1.113883.2.9.2.70.4.1.1') or (root = '2.16.840.1.113883.2.9.2.80.4.1.1') or (root = '2.16.840.1.113883.2.9.2.90.4.1.1') or (root = '2.16.840.1.113883.2.9.2.100.4.1.1') or (root = '2.16.840.1.113883.2.9.2.110.4.1.1') or (root = '2.16.840.1.113883.2.9.2.120.4.1.1') or (root = '2.16.840.1.113883.2.9.2.130.4.1.1') or (root = '2.16.840.1.113883.2.9.2.140.4.1.1') or (root = '2.16.840.1.113883.2.9.2.150.4.1.1') or (root = '2.16.840.1.113883.2.9.2.160.4.1.1') or (root = '2.16.840.1.113883.2.9.2.170.4.1.1') or (root = '2.16.840.1.113883.2.9.2.180.4.1.1') or (root = '2.16.840.1.113883.2.9.2.190.4.1.1') or (root = '2.16.840.1.113883.2.9.2.200.4.1.1') or (root = '2.16.840.1.113883.2.9.2.10.4.1') or (root = '2.16.840.1.113883.2.9.2.20.4.1') or (root = '2.16.840.1.113883.2.9.2.30.4.1') or (root = '2.16.840.1.113883.2.9.2.41.4.1') or (root = '2.16.840.1.113883.2.9.2.42.4.1') or (root = '2.16.840.1.113883.2.9.2.50.4.1') or (root = '2.16.840.1.113883.2.9.2.60.4.1') or (root = '2.16.840.1.113883.2.9.2.70.4.1') or (root = '2.16.840.1.113883.2.9.2.80.4.1') or (root = '2.16.840.1.113883.2.9.2.90.4.1') or (root = '2.16.840.1.113883.2.9.2.100.4.1') or (root = '2.16.840.1.113883.2.9.2.110.4.1') or (root = '2.16.840.1.113883.2.9.2.120.4.1') or (root = '2.16.840.1.113883.2.9.2.130.4.1') or (root = '2.16.840.1.113883.2.9.2.140.4.1') or (root = '2.16.840.1.113883.2.9.2.150.4.1') or (root = '2.16.840.1.113883.2.9.2.160.4.1') or (root = '2.16.840.1.113883.2.9.2.170.4.1') or (root = '2.16.840.1.113883.2.9.2.180.4.1') or (root = '2.16.840.1.113883.2.9.2.190.4.1') or (root = '2.16.840.1.113883.2.9.2.200.4.1') or (root = '2.16.840.1.113883.2.9.4.3.15')" ]             ] ) ;
            ( 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 "requestPAT" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "url" ] ;
fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Patient?identifier=" ]                 ] [
fhir:value [ fhir:v "ext" ]                 ] )               ] )             ] )           ] )         ] )       ] )     ] )
  ] [
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 "component" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "body" ] ;
        ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "structuredBody" ] ;
fhir:variable [ fhir:v "body" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "component" ] ;
          ( fhir:source [
fhir:context [ fhir:v "body" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "section" ] ;
            ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "section" ] ;
fhir:variable [ fhir:v "srcSection" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "srcSection" ] ;
fhir:element [ fhir:v "code" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "composition" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "section" ] ;
fhir:variable [ fhir:v "tgtSection" ]               ] ) ;
              ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentSection" ] ;
                ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] [ fhir:v "documentreference" ] )               ] )             ] )           ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ClinicalDocumentSection" ] ;
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 "src" ] ;
fhir:type [ fhir:v "Section" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "patient" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "enc" ] ;
fhir:type [ fhir:v "Encounter" ] ;
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 "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 "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 "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "cdaText" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "cdaText" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "fhirText" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "narrativeStatus" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cdaText" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "fhirText" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "generated" ]           ] )         ] )       ] [
fhir:name [ fhir:v "narrativeText" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cdaText" ] ;
fhir:variable [ fhir:v "t" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "fhirText" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "div" ] ;
fhir:transform [ fhir:v "copy" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "t" ]           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "entry" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "entry1" ]       ] ) ;
      ( 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 "DiagnosticReport" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "DiagnosticReport" ]         ] )       ] [
fhir:context [ fhir:v "DiagnosticReport" ] ;
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/DiagnosticReport/" ]         ] [
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 "DiagnosticReport" ]         ] )       ] [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
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/DiagnosticReport/' + %DiagnosticReport.id" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "act" ] ;
        ( fhir:source [
fhir:context [ fhir:v "entry1" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "act1" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "Act" ] ;
          ( fhir:variable [ fhir:v "act1" ] [ fhir:v "patient" ] [ fhir:v "DiagnosticReport" ] [ fhir:v "enc" ] [ fhir:v "bundle" ] )         ] )       ] )     ] [
fhir:name [ fhir:v "component" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "section" ] ;
        ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "section" ] ;
fhir:variable [ fhir:v "sec" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "section" ] ;
fhir:variable [ fhir:v "tgtSection" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ClinicalDocumentSection" ] ;
          ( fhir:variable [ fhir:v "cda" ] [ fhir:v "sec" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "enc" ] [ fhir:v "documentreference" ] )         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "Observation" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "obs" ] ;
fhir:type [ fhir:v "Observation" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "patient" ] ;
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 "ob" ] ;
fhir:type [ fhir:v "Observation" ] ;
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 "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "obs" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "registered" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "cancelled" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "partial" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value2" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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 "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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:name [ fhir:v "interpretationCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "interpretationCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "interpretation" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "methodCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "methodCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "INT" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "int" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "int.value" ]         ] )       ] )     ] [
fhir:name [ fhir:v "boolean" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "BL" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "boolean" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "boolean.value" ]         ] )       ] )     ] [
fhir:name [ fhir:v "val" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "CE" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "ce" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "CodeableConcept" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "originltext" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "originalText" ] ;
fhir:variable [ fhir:v "originalText" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "originalText" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "reference" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
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 "val" ] ;
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 "val" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "translation" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "translation" ] ;
fhir:variable [ fhir:v "translation" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
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 "translation" ] ;
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 "translation" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] [
fhir:name [ fhir:v "qualifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "qualifier" ] ;
fhir:variable [ fhir:v "qualifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
              ( fhir:source [
fhir:context [ fhir:v "qualifier" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
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 "value" ] ;
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 "value" ] ;
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 "codeSystemVersion" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "version" ]                   ] [
fhir:value [ fhir:v "string" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "val" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "CD" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "ce" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "CodeableConcept" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "originltext" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "originalText" ] ;
fhir:variable [ fhir:v "originalText" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "originalText" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "reference" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
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 "val" ] ;
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 "val" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "translation" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "translation" ] ;
fhir:variable [ fhir:v "translation" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
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 "translation" ] ;
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 "translation" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] [
fhir:name [ fhir:v "qualifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "qualifier" ] ;
fhir:variable [ fhir:v "qualifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
              ( fhir:source [
fhir:context [ fhir:v "qualifier" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
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 "value" ] ;
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 "value" ] ;
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 "codeSystemVersion" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "version" ]                   ] [
fhir:value [ fhir:v "string" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "valueQuantity" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "quantity" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "quantity" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "quantity" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "value" ]             ] )           ] )         ] [
fhir:name [ fhir:v "unit" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "unit" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "quantity" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "unit" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "ST" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "string" ]         ] )       ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "value.dataString" ]         ] )       ] )     ] [
fhir:name [ fhir:v "entryRelationship" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Act" ] ;
        ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "act" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
fhir:context [ fhir:v "act" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "text" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "text" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "note" ] ;
fhir:variable [ fhir:v "note" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reference" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "note" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "reference.value" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "Note e commenti" ]     ] [
fhir:name [ fhir:v "subject" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "sbj" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "relatedSubject" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sbj" ] ;
fhir:element [ fhir:v "relatedSubject" ] ;
fhir:variable [ fhir:v "relatedSubj" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "patient" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension2" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ExtSubjectAnimal" ] ;
          ( fhir:variable [ fhir:v "relatedSubj" ] [ fhir:v "extension2" ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "subject" ]     ] [
fhir:name [ fhir:v "performer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
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 "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:rule [
fhir:name [ fhir:v "practitionerRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "performer" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
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 "entity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]           ] ) ;
          ( 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 "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 "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/body/observation/performer" ]                     ] )                   ] )                 ] )               ] )             ] [
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 "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 "Practitioner?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 "performer" ] ;
                  ( 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 "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 "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 "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 "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 "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/body/observation/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 "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 "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 "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: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: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/body/observation/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 "org" ] ;
                      ( 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 "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 "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/body/observation/performer/representedOrganization/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 "org" ] ;
                        ( 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 "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 "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 "organization" ]             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "performer" ]     ] [
fhir:name [ fhir:v "author" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "srcAuthor" ]       ] ) ;
      ( 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 "uuid6" ] ;
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 "uuid6" ]         ] )       ] [
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 "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "referenceaut" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]         ] )       ] [
fhir:context [ fhir:v "referenceaut" ] ;
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 "assignedAuthor" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "assignedAuthor" ] ;
fhir:variable [ fhir:v "assignedAuthor" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
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 "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 "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:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid7" ] ;
fhir:transform [ fhir:v "uuid" ]           ] ) ;
          ( 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/body/observation/author" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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 "Practitioner?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 "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 "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:documentation [ fhir:v "person" ]           ] )         ] [
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 "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/body/observation/author/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 "org" ] ;
                ( 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 "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 "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/body/observation/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 "org" ] ;
                  ( 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/body/observation/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 "org" ] ;
                    ( 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 "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 "uuid4" ]                       ] )                     ] [
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 "organization" ]         ] [
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 "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 "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 "uuid11" ] ;
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/Device/" ]             ] [
fhir:value [ fhir:v "uuid11" ]             ] )           ] [
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 "templateId" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "templateId" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "device" ] ;
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 "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: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 "device" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "author" ]     ] [
fhir:name [ fhir:v "participantEncounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ] ;
fhir:condition [ fhir:v "(typeCode != 'DEV')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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:rule [
fhir:name [ fhir:v "fhirParticipant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "FhirParticipant" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "FhirParticipant" ] ;
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 "partRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRole" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e12" ] ;
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 "uuid12" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid12" ]           ] )         ] [
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: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/Practitioner/' + %practitionerRole.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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 "val" ] ;
            ( fhir:source [
fhir:context [ fhir:v "time1" ]             ] ) ;
            ( 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 "time1" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time -> participant1.period;" ]         ] [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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:dependent [
fhir:name [ fhir:v "IVLTSPeriod" ] ;
            ( fhir:variable [ fhir:v "time1" ] [ fhir:v "period" ] )           ] )         ] [
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 "practitioner" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRole" ]           ] ) ;
          ( 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 "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 "participantRole" ]             ] ) ;
            ( 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 "participantRole" ]               ] ) ;
              ( 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 "participantRole" ]                 ] ) ;
                ( 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 "participantRole" ]                 ] ) ;
                ( 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/body/observation/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "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 "participantRole" ]                 ] ) ;
                ( 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 "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 "org" ] ;
                ( 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 "uuid4" ] ;
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/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid4" ]                   ] )                 ] [
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 "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
fhir:element [ fhir:v "playingEntity" ] ;
fhir:variable [ fhir:v "playingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "playingEntity" ] ;
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 "playingEntity" ] ;
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:documentation [ fhir:v "non mappa i 2 precedenti" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "participant person" ]     ] [
fhir:name [ fhir:v "devParticipant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "devParticipant" ] ;
fhir:condition [ fhir:v "(typeCode = 'DEV')" ]       ] ) ;
      ( 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 "POST" ]         ] )       ] [
fhir:context [ fhir:v "e14" ] ;
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 "uuid14" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
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/Device/" ]         ] [
fhir:value [ fhir:v "uuid14" ]         ] )       ] [
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 "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "device" ] ;
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 "participantRoleDev" ] ;
        ( fhir:source [
fhir:context [ fhir:v "devParticipant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRoleDev" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "playingDevice" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRoleDev" ] ;
fhir:element [ fhir:v "playingDevice" ] ;
fhir:variable [ fhir:v "playingDevice" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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:name [ fhir:v "manufacturer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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 "playingDevice" ] ;
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 "participant device" ]     ] [
fhir:name [ fhir:v "observationMedia" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "er" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "media" ] ;
        ( fhir:source [
fhir:context [ fhir:v "er" ] ;
fhir:element [ fhir:v "observationMedia" ] ;
fhir:variable [ fhir:v "obsMedia" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "media1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Media" ]           ] )         ] [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid15" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/Media/" ]           ] [
fhir:value [ fhir:v "uuid15" ]           ] )         ] [
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 "Media" ]           ] )         ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "derivedFrom" ] ;
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/Media/' + %media1.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "Attachment" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "content" ] ;
fhir:variable [ fhir:v "Attachment" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Attachment" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "status" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]               ] )             ] )           ] [
fhir:name [ fhir:v "valuemedia" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "valueMedia" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ] ;
fhir:element [ fhir:v "mediaType" ] ;
fhir:variable [ fhir:v "type" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "contentType" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "type" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "data" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "data" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "valueMedia.dataBase64Binary" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "observationMedia" ]     ] [
fhir:name [ fhir:v "ref" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "referenceRange" ] ;
fhir:variable [ fhir:v "refRange" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "referenceRange" ] ;
fhir:variable [ fhir:v "ref" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "refRange" ] ;
        ( fhir:source [
fhir:context [ fhir:v "refRange" ] ;
fhir:element [ fhir:v "observationRange" ] ;
fhir:variable [ fhir:v "obsRange" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:type [ fhir:v "ST" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "string" ]             ] )           ] [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "value.dataString" ]             ] )           ] )         ] [
fhir:name [ fhir:v "obsRange" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsRange" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "low" ] ;
fhir:variable [ fhir:v "Low" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "IVL-PQ" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:type [ fhir:v "IVL_PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "decValue" ] ;
              ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "low" ] ;
fhir:variable [ fhir:v "l1" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Low" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "decValue" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "unit" ] ;
                ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Low" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Unit" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "high" ] ;
              ( fhir:source [
fhir:context [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "decValue" ] ;
                ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "h1" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "h1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "decValue1" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "unit" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "h1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Unit1" ]                     ] )                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "interpretationCode" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:element [ fhir:v "interpretationCode" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "precondition" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:element [ fhir:v "precondition" ] ;
fhir:variable [ fhir:v "precondition" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "criterion" ] ;
              ( fhir:source [
fhir:context [ fhir:v "precondition" ] ;
fhir:element [ fhir:v "criterion" ] ;
fhir:variable [ fhir:v "criterion" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "appliesTo" ] ;
                ( fhir:source [
fhir:context [ fhir:v "criterion" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "appliesTo" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "v" ] ;
                ( fhir:source [
fhir:context [ fhir:v "criterion" ] ;
fhir:type [ fhir:v "IVL_PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "low" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "l1" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "age" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "l1" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "age" ] ;
fhir:variable [ fhir:v "age" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "high" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "l1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "age" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "decValue" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "unit" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit1" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Unit1" ]                           ] )                         ] )                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "referenceRange" ]     ] )
  ] [
fhir:name [ fhir:v "Observation2" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "obs" ] ;
fhir:type [ fhir:v "Observation" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "patient" ] ;
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 "ob" ] ;
fhir:type [ fhir:v "Observation" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "cda" ] ;
fhir:type [ fhir:v "Act" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "specimenp" ] ;
fhir:type [ fhir:v "Specimen" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "obs" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "registered" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "cancelled" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "partial" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value2" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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 "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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:name [ fhir:v "interpretationCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "interpretationCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "interpretation" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "methodCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "methodCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "INT" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "int" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "int.value" ]         ] )       ] )     ] [
fhir:name [ fhir:v "boolean" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "BL" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "boolean" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "boolean.value" ]         ] )       ] )     ] [
fhir:name [ fhir:v "val" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "CE" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "ce" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "CodeableConcept" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "originltext" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "originalText" ] ;
fhir:variable [ fhir:v "originalText" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "originalText" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "reference" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
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 "val" ] ;
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 "val" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "translation" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "translation" ] ;
fhir:variable [ fhir:v "translation" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
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 "translation" ] ;
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 "translation" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] [
fhir:name [ fhir:v "qualifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "qualifier" ] ;
fhir:variable [ fhir:v "qualifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
              ( fhir:source [
fhir:context [ fhir:v "qualifier" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
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 "value" ] ;
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 "value" ] ;
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 "codeSystemVersion" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "version" ]                   ] [
fhir:value [ fhir:v "string" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "valueQuantity" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "quantity" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "quantity" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "quantity" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "value" ]             ] )           ] )         ] [
fhir:name [ fhir:v "unit" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "unit" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "quantity" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "unit" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "ST" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "string" ]         ] )       ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "value.dataString" ]         ] )       ] )     ] [
fhir:name [ fhir:v "entryRelationship" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Act" ] ;
        ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "act" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
fhir:context [ fhir:v "act" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "text" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "text" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "note" ] ;
fhir:variable [ fhir:v "note" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reference" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "note" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "reference.value" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "Note e commenti" ]     ] [
fhir:name [ fhir:v "subject" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "sbj" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "relatedSubject" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sbj" ] ;
fhir:element [ fhir:v "relatedSubject" ] ;
fhir:variable [ fhir:v "relatedSubj" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "patient" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension2" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ExtSubjectAnimal" ] ;
          ( fhir:variable [ fhir:v "relatedSubj" ] [ fhir:v "extension2" ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "subject" ]     ] [
fhir:name [ fhir:v "conditionactexists" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:condition [ fhir:v "cda.entryRelationship.act.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "specimen" ] ;
        ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "specimen" ] ;
fhir:variable [ fhir:v "spmn" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "specimenRole" ] ;
          ( fhir:source [
fhir:context [ fhir:v "spmn" ] ;
fhir:element [ fhir:v "specimenRole" ] ;
fhir:variable [ fhir:v "specimenRole" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "extobs" ] ;
              ( fhir:source [
fhir:context [ fhir:v "id" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extobs" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "en" ] ;
                ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "a" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "a" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "sp" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "a" ] ;
fhir:element [ fhir:v "specimen" ] ;
fhir:variable [ fhir:v "sp" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "spr" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "sp" ] ;
fhir:element [ fhir:v "specimenRole" ] ;
fhir:variable [ fhir:v "spr" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "cont" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "spr" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:condition [ fhir:v "(extension = extobs)" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4o" ]                         ] [
fhir:context [ fhir:v "e4o" ] ;
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 "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "specimen" ] ;
fhir:transform [ fhir:v "create" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Specimen" ]                           ] )                         ] [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4o" ] ;
fhir:transform [ fhir:v "uuid" ]                         ] [
fhir:context [ fhir:v "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Specimen/" ]                           ] [
fhir:value [ fhir:v "uuid4o" ]                           ] )                         ] [
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 "Specimen" ]                           ] )                         ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "specimen" ] ;
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/Specimen/' + %specimen.id" ]                           ] )                         ] ) ;
                        ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "spr" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "parent" ] ;
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/Specimen/' + %specimenp.id" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "id" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "spr" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                           ] )                         ] [
fhir:name [ fhir:v "ent" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "specimenPlayingEntity" ] ;
fhir:variable [ fhir:v "spent" ]                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "spent" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "specimenPlayingEntity" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "spr" ] ;
fhir:element [ fhir:v "specimenPlayingEntity" ] ;
fhir:variable [ fhir:v "specimenPlayingEntity" ]                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "specimenPlayingEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                             ] )                           ] )                         ] [
fhir:name [ fhir:v "collection" ] ;
                          ( fhir:source [
fhir:context [ fhir:v "a" ]                           ] ) ;
                          ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "collection" ] ;
fhir:variable [ fhir:v "collection" ] ;
fhir:transform [ fhir:v "create" ] ;
                            ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]                             ] )                           ] ) ;
                          ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "a" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectivetime" ]                             ] ) ;
                            ( fhir:target [
fhir:context [ fhir:v "collection" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "collected" ] ;
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 "where" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "a" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]                             ] ) ;
                            ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
                              ( fhir:source [
fhir:context [ fhir:v "a" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]                               ] ) ;
                              ( fhir:target [
fhir:context [ fhir:v "collection" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "collected" ] ;
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:name [ fhir:v "participant" ] ;
                            ( fhir:source [
fhir:context [ fhir:v "a" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ]                             ] ) ;
                            ( 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 "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 "uuid11" ] ;
fhir:transform [ fhir:v "uuid" ]                             ] [
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/Practitioner/" ]                               ] [
fhir:value [ fhir:v "uuid11" ]                               ] )                             ] [
fhir:context [ fhir:v "collection" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "collector" ] ;
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 "participantRole" ] ;
                              ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRole" ]                               ] ) ;
                              ( fhir:rule [
fhir:name [ fhir:v "meta" ] ;
                                ( fhir:source [
fhir:context [ fhir:v "participantRole" ]                                 ] ) ;
                                ( 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 "participantRole" ]                                   ] ) ;
                                  ( 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 "participantRole" ]                                     ] ) ;
                                    ( 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 "participantRole" ]                                     ] ) ;
                                    ( 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/body/act/participant" ]                                       ] )                                     ] )                                   ] )                                 ] )                               ] [
fhir:name [ fhir:v "identifier" ] ;
                                ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "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 "participantRole" ]                                     ] ) ;
                                    ( 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 "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 "addr" ] ;
                                ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "playingEntity" ] ;
                                ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
fhir:element [ fhir:v "playingEntity" ] ;
fhir:variable [ fhir:v "playingEntity" ]                                 ] ) ;
                                ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
                                  ( fhir:source [
fhir:context [ fhir:v "playingEntity" ] ;
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:documentation [ fhir:v "specimen" ]       ] )     ] [
fhir:name [ fhir:v "wherenotexists" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:condition [ fhir:v "cda.entryRelationship.act.exists().not() and (obs.specimen.specimenRole.specimenPlayingEntity.code.code != specimenp.type.coding.code)" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "specimen" ] ;
        ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "specimen" ] ;
fhir:variable [ fhir:v "spmn" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4o" ]         ] [
fhir:context [ fhir:v "e4o" ] ;
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 "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "specimen" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Specimen" ]           ] )         ] [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4o" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
fhir:context [ fhir:v "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "https://example/Specimen/" ]           ] [
fhir:value [ fhir:v "uuid4o" ]           ] )         ] [
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 "Specimen" ]           ] )         ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "specimen" ] ;
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/Specimen/' + %specimen.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "specimenRole" ] ;
          ( fhir:source [
fhir:context [ fhir:v "spmn" ] ;
fhir:element [ fhir:v "specimenRole" ] ;
fhir:variable [ fhir:v "specimenRole" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "specimenPlayingEntity" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "specimenPlayingEntity" ] ;
fhir:variable [ fhir:v "specimenPlayingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "specimenPlayingEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "performer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
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 "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:rule [
fhir:name [ fhir:v "practitionerRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "performer" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
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 "entity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]           ] ) ;
          ( 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 "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 "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/body/observation/performer" ]                     ] )                   ] )                 ] )               ] )             ] [
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 "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 "Practitioner?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 "performer" ] ;
                  ( 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 "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 "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 "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 "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 "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/body/observation/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 "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 "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 "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: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: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/body/observation/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 "org" ] ;
                      ( 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 "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 "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/body/observation/performer/representedOrganization/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 "org" ] ;
                        ( 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 "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 "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 "organization" ]             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "performer" ]     ] [
fhir:name [ fhir:v "author" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "srcAuthor" ]       ] ) ;
      ( 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 "uuid6" ] ;
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 "uuid6" ]         ] )       ] [
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 "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "referenceaut" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]         ] )       ] [
fhir:context [ fhir:v "referenceaut" ] ;
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 "assignedAuthor" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "assignedAuthor" ] ;
fhir:variable [ fhir:v "assignedAuthor" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
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 "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 "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:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid7" ] ;
fhir:transform [ fhir:v "uuid" ]           ] ) ;
          ( 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/body/observation/author" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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 "Practitioner?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 "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 "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:documentation [ fhir:v "person" ]           ] )         ] [
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 "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/body/observation/author/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 "org" ] ;
                ( 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 "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 "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/body/observation/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 "org" ] ;
                  ( 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/body/observation/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 "org" ] ;
                    ( 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 "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 "uuid4" ]                       ] )                     ] [
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 "organization" ]         ] [
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 "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 "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 "uuid11" ] ;
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/Device/" ]             ] [
fhir:value [ fhir:v "uuid11" ]             ] )           ] [
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 "templateId" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "templateId" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "device" ] ;
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 "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: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 "device" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "author" ]     ] [
fhir:name [ fhir:v "participantEncounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ] ;
fhir:condition [ fhir:v "(typeCode != 'DEV')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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:rule [
fhir:name [ fhir:v "fhirParticipant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "FhirParticipant" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "FhirParticipant" ] ;
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 "partRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRole" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e12" ] ;
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 "uuid12" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid12" ]           ] )         ] [
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: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/Practitioner/' + %practitionerRole.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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 "val" ] ;
            ( fhir:source [
fhir:context [ fhir:v "time1" ]             ] ) ;
            ( 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 "time1" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time -> participant1.period;" ]         ] [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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:dependent [
fhir:name [ fhir:v "IVLTSPeriod" ] ;
            ( fhir:variable [ fhir:v "time1" ] [ fhir:v "period" ] )           ] )         ] [
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 "practitioner" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRole" ]           ] ) ;
          ( 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 "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 "participantRole" ]             ] ) ;
            ( 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 "participantRole" ]               ] ) ;
              ( 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 "participantRole" ]                 ] ) ;
                ( 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 "participantRole" ]                 ] ) ;
                ( 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/body/observation/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "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 "participantRole" ]                 ] ) ;
                ( 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 "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 "org" ] ;
                ( 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 "uuid4" ] ;
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/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid4" ]                   ] )                 ] [
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 "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
fhir:element [ fhir:v "playingEntity" ] ;
fhir:variable [ fhir:v "playingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "playingEntity" ] ;
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 "playingEntity" ] ;
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:documentation [ fhir:v "non mappa i 2 precedenti" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "participant person" ]     ] [
fhir:name [ fhir:v "devParticipant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "devParticipant" ] ;
fhir:condition [ fhir:v "(typeCode = 'DEV')" ]       ] ) ;
      ( 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 "POST" ]         ] )       ] [
fhir:context [ fhir:v "e14" ] ;
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 "uuid14" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
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/Device/" ]         ] [
fhir:value [ fhir:v "uuid14" ]         ] )       ] [
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 "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "device" ] ;
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 "participantRoleDev" ] ;
        ( fhir:source [
fhir:context [ fhir:v "devParticipant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRoleDev" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "playingDevice" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRoleDev" ] ;
fhir:element [ fhir:v "playingDevice" ] ;
fhir:variable [ fhir:v "playingDevice" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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:name [ fhir:v "manufacturer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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 "playingDevice" ] ;
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 "participant device" ]     ] [
fhir:name [ fhir:v "observationMedia" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "er" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "media" ] ;
        ( fhir:source [
fhir:context [ fhir:v "er" ] ;
fhir:element [ fhir:v "observationMedia" ] ;
fhir:variable [ fhir:v "obsMedia" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "media1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Media" ]           ] )         ] [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid15" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/Media/" ]           ] [
fhir:value [ fhir:v "uuid15" ]           ] )         ] [
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 "Media" ]           ] )         ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "derivedFrom" ] ;
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/Media/' + %media1.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "Attachment" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "content" ] ;
fhir:variable [ fhir:v "Attachment" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Attachment" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "status" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]               ] )             ] )           ] [
fhir:name [ fhir:v "valuemedia" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "valueMedia" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ] ;
fhir:element [ fhir:v "mediaType" ] ;
fhir:variable [ fhir:v "type" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "contentType" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "type" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "data" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "data" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "valueMedia.dataBase64Binary" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "observationMedia" ]     ] [
fhir:name [ fhir:v "ref" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "referenceRange" ] ;
fhir:variable [ fhir:v "refRange" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "referenceRange" ] ;
fhir:variable [ fhir:v "ref" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "refRange" ] ;
        ( fhir:source [
fhir:context [ fhir:v "refRange" ] ;
fhir:element [ fhir:v "observationRange" ] ;
fhir:variable [ fhir:v "obsRange" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:type [ fhir:v "ST" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "string" ]             ] )           ] [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "value.dataString" ]             ] )           ] )         ] [
fhir:name [ fhir:v "obsRange" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsRange" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "low" ] ;
fhir:variable [ fhir:v "Low" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "IVL-PQ" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:type [ fhir:v "IVL_PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "decValue" ] ;
              ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "low" ] ;
fhir:variable [ fhir:v "l1" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Low" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "decValue" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "unit" ] ;
                ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Low" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Unit" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "high" ] ;
              ( fhir:source [
fhir:context [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "decValue" ] ;
                ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "h1" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "h1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "decValue1" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "unit" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "h1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Unit1" ]                     ] )                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "interpretationCode" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:element [ fhir:v "interpretationCode" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "precondition" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:element [ fhir:v "precondition" ] ;
fhir:variable [ fhir:v "precondition" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "criterion" ] ;
              ( fhir:source [
fhir:context [ fhir:v "precondition" ] ;
fhir:element [ fhir:v "criterion" ] ;
fhir:variable [ fhir:v "criterion" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "appliesTo" ] ;
                ( fhir:source [
fhir:context [ fhir:v "criterion" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "appliesTo" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "v" ] ;
                ( fhir:source [
fhir:context [ fhir:v "criterion" ] ;
fhir:type [ fhir:v "IVL_PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "low" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "l1" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "age" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "l1" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "age" ] ;
fhir:variable [ fhir:v "age" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "high" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "l1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "age" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "decValue" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "unit" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit1" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Unit1" ]                           ] )                         ] )                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "referenceRange" ]     ] )
  ] [
fhir:name [ fhir:v "Observation3" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "obs" ] ;
fhir:type [ fhir:v "Observation" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "patient" ] ;
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 "ob" ] ;
fhir:type [ fhir:v "Observation" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "bundle" ] ;
fhir:type [ fhir:v "Bundle" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "cda" ] ;
fhir:type [ fhir:v "Act" ] ;
fhir:mode [ fhir:v "source" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "obs" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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 "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "registered" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "cancelled" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "partial" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value2" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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 "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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:name [ fhir:v "interpretationCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "interpretationCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "interpretation" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "methodCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "methodCode" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "method" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "INT" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "int" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "int.value" ]         ] )       ] )     ] [
fhir:name [ fhir:v "boolean" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "BL" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "boolean" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "boolean.value" ]         ] )       ] )     ] [
fhir:name [ fhir:v "val" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "CE" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "coding" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "ce" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "CodeableConcept" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "originltext" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "originalText" ] ;
fhir:variable [ fhir:v "originalText" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "originalText" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "reference" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
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 "val" ] ;
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 "val" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "translation" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "translation" ] ;
fhir:variable [ fhir:v "translation" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
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 "translation" ] ;
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 "translation" ] ;
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 "codeSystemVersion" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "version" ]               ] [
fhir:value [ fhir:v "string" ]               ] )             ] )           ] [
fhir:name [ fhir:v "qualifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "translation" ] ;
fhir:element [ fhir:v "qualifier" ] ;
fhir:variable [ fhir:v "qualifier" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
              ( fhir:source [
fhir:context [ fhir:v "qualifier" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ce" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "coding" ] ;
fhir:variable [ fhir:v "coding" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
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 "value" ] ;
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 "value" ] ;
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 "codeSystemVersion" ] ;
                ( fhir:source [
fhir:context [ fhir:v "value" ] ;
fhir:element [ fhir:v "codeSystemVersion" ] ;
fhir:variable [ fhir:v "version" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "coding" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "version" ] ;
fhir:transform [ fhir:v "cast" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "version" ]                   ] [
fhir:value [ fhir:v "string" ]                   ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "valueQuantity" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "val" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "quantity" ] ;
        ( fhir:source [
fhir:context [ fhir:v "val" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "quantity" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "quantity" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "value" ]             ] )           ] )         ] [
fhir:name [ fhir:v "unit" ] ;
          ( fhir:source [
fhir:context [ fhir:v "val" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "unit" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "quantity" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "unit" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "value" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:type [ fhir:v "ST" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "string" ]         ] )       ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "value.dataString" ]         ] )       ] )     ] [
fhir:name [ fhir:v "entryRelationship" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Act" ] ;
        ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "act" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
fhir:context [ fhir:v "act" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "text" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "text" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "note" ] ;
fhir:variable [ fhir:v "note" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reference" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "note" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "reference.value" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "Note e commenti" ]     ] [
fhir:name [ fhir:v "subject" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "sbj" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "relatedSubject" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sbj" ] ;
fhir:element [ fhir:v "relatedSubject" ] ;
fhir:variable [ fhir:v "relatedSubj" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "patient" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension2" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ExtSubjectAnimal" ] ;
          ( fhir:variable [ fhir:v "relatedSubj" ] [ fhir:v "extension2" ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "subject" ]     ] [
fhir:name [ fhir:v "specimen" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "specimen" ] ;
fhir:variable [ fhir:v "spmn" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4o" ]       ] [
fhir:context [ fhir:v "e4o" ] ;
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 "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "specimen" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Specimen" ]         ] )       ] [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4o" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Specimen/" ]         ] [
fhir:value [ fhir:v "uuid4o" ]         ] )       ] [
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 "Specimen" ]         ] )       ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "specimen" ] ;
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/Specimen/' + %specimen.id" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "specimenRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "spmn" ] ;
fhir:element [ fhir:v "specimenRole" ] ;
fhir:variable [ fhir:v "specimenRole" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ]           ] )         ] [
fhir:name [ fhir:v "specimenPlayingEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "specimenPlayingEntity" ] ;
fhir:variable [ fhir:v "specimenPlayingEntity" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenPlayingEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "specimen" ]     ] [
fhir:name [ fhir:v "performer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
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 "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:rule [
fhir:name [ fhir:v "practitionerRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "performer" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
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 "entity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]           ] ) ;
          ( 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 "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 "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/body/observation/performer" ]                     ] )                   ] )                 ] )               ] )             ] [
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 "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 "Practitioner?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 "performer" ] ;
                  ( 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 "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 "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 "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 "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 "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/body/observation/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 "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 "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 "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: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: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/body/observation/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 "org" ] ;
                      ( 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 "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 "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/body/observation/performer/representedOrganization/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 "org" ] ;
                        ( 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 "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 "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 "organization" ]             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "performer" ]     ] [
fhir:name [ fhir:v "author" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "srcAuthor" ]       ] ) ;
      ( 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 "uuid6" ] ;
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 "uuid6" ]         ] )       ] [
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 "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "referenceaut" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]         ] )       ] [
fhir:context [ fhir:v "referenceaut" ] ;
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 "assignedAuthor" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "assignedAuthor" ] ;
fhir:variable [ fhir:v "assignedAuthor" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
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 "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 "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:context [ fhir:v "practitioner" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid7" ] ;
fhir:transform [ fhir:v "uuid" ]           ] ) ;
          ( 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/body/observation/author" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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 "Practitioner?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 "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 "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:documentation [ fhir:v "person" ]           ] )         ] [
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 "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/body/observation/author/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 "org" ] ;
                ( 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 "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 "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/body/observation/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 "org" ] ;
                  ( 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/body/observation/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 "org" ] ;
                    ( 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 "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 "uuid4" ]                       ] )                     ] [
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 "organization" ]         ] [
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 "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 "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 "uuid11" ] ;
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/Device/" ]             ] [
fhir:value [ fhir:v "uuid11" ]             ] )           ] [
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 "templateId" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "templateId" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "device" ] ;
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 "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: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 "device" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "author" ]     ] [
fhir:name [ fhir:v "participantEncounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ] ;
fhir:condition [ fhir:v "(typeCode != 'DEV')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
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:rule [
fhir:name [ fhir:v "fhirParticipant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "FhirParticipant" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "FhirParticipant" ] ;
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 "partRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRole" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e12" ] ;
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 "uuid12" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid12" ]           ] )         ] [
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: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/Practitioner/' + %practitionerRole.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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 "val" ] ;
            ( fhir:source [
fhir:context [ fhir:v "time1" ]             ] ) ;
            ( 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 "time1" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time -> participant1.period;" ]         ] [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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:dependent [
fhir:name [ fhir:v "IVLTSPeriod" ] ;
            ( fhir:variable [ fhir:v "time1" ] [ fhir:v "period" ] )           ] )         ] [
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 "practitioner" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRole" ]           ] ) ;
          ( 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 "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 "participantRole" ]             ] ) ;
            ( 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 "participantRole" ]               ] ) ;
              ( 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 "participantRole" ]                 ] ) ;
                ( 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 "participantRole" ]                 ] ) ;
                ( 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/body/observation/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "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 "participantRole" ]                 ] ) ;
                ( 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 "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 "org" ] ;
                ( 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 "uuid4" ] ;
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/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid4" ]                   ] )                 ] [
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 "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
fhir:element [ fhir:v "playingEntity" ] ;
fhir:variable [ fhir:v "playingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "playingEntity" ] ;
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 "playingEntity" ] ;
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:documentation [ fhir:v "non mappa i 2 precedenti" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "participant person" ]     ] [
fhir:name [ fhir:v "devParticipant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "devParticipant" ] ;
fhir:condition [ fhir:v "(typeCode = 'DEV')" ]       ] ) ;
      ( 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 "POST" ]         ] )       ] [
fhir:context [ fhir:v "e14" ] ;
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 "uuid14" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
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/Device/" ]         ] [
fhir:value [ fhir:v "uuid14" ]         ] )       ] [
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 "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "device" ] ;
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 "participantRoleDev" ] ;
        ( fhir:source [
fhir:context [ fhir:v "devParticipant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRoleDev" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "playingDevice" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRoleDev" ] ;
fhir:element [ fhir:v "playingDevice" ] ;
fhir:variable [ fhir:v "playingDevice" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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:name [ fhir:v "manufacturer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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 "playingDevice" ] ;
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 "participant device" ]     ] [
fhir:name [ fhir:v "observationMedia" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "er" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "media" ] ;
        ( fhir:source [
fhir:context [ fhir:v "er" ] ;
fhir:element [ fhir:v "observationMedia" ] ;
fhir:variable [ fhir:v "obsMedia" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "media1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Media" ]           ] )         ] [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid15" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/Media/" ]           ] [
fhir:value [ fhir:v "uuid15" ]           ] )         ] [
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 "Media" ]           ] )         ] [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "derivedFrom" ] ;
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/Media/' + %media1.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "Attachment" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "content" ] ;
fhir:variable [ fhir:v "Attachment" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Attachment" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "status" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]               ] )             ] )           ] [
fhir:name [ fhir:v "valuemedia" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "valueMedia" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ] ;
fhir:element [ fhir:v "mediaType" ] ;
fhir:variable [ fhir:v "type" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "contentType" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "type" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "data" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "data" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "valueMedia.dataBase64Binary" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "observationMedia" ]     ] [
fhir:name [ fhir:v "ref" ] ;
      ( fhir:source [
fhir:context [ fhir:v "obs" ] ;
fhir:element [ fhir:v "referenceRange" ] ;
fhir:variable [ fhir:v "refRange" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ob" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "referenceRange" ] ;
fhir:variable [ fhir:v "ref" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "BackboneElement" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "refRange" ] ;
        ( fhir:source [
fhir:context [ fhir:v "refRange" ] ;
fhir:element [ fhir:v "observationRange" ] ;
fhir:variable [ fhir:v "obsRange" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:type [ fhir:v "ST" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "value" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "string" ]             ] )           ] [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "value.dataString" ]             ] )           ] )         ] [
fhir:name [ fhir:v "obsRange" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsRange" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "low" ] ;
fhir:variable [ fhir:v "Low" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "IVLPQ" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:type [ fhir:v "IVL_PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "decValue" ] ;
              ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "low" ] ;
fhir:variable [ fhir:v "l1" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Low" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "decValue" ]                   ] )                 ] )               ] [
fhir:name [ fhir:v "unit" ] ;
                ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "Low" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Unit" ]                   ] )                 ] )               ] )             ] [
fhir:name [ fhir:v "high" ] ;
              ( fhir:source [
fhir:context [ fhir:v "v" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "decValue" ] ;
                ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "h1" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "h1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "decValue1" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "unit" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "h1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit1" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Unit1" ]                     ] )                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "interpretationCode" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:element [ fhir:v "interpretationCode" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "precondition" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsRange" ] ;
fhir:element [ fhir:v "precondition" ] ;
fhir:variable [ fhir:v "precondition" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "criterion" ] ;
              ( fhir:source [
fhir:context [ fhir:v "precondition" ] ;
fhir:element [ fhir:v "criterion" ] ;
fhir:variable [ fhir:v "criterion" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "appliesTo" ] ;
                ( fhir:source [
fhir:context [ fhir:v "criterion" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]                 ] ) ;
                ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "appliesTo" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                 ] )               ] [
fhir:name [ fhir:v "v" ] ;
                ( fhir:source [
fhir:context [ fhir:v "criterion" ] ;
fhir:type [ fhir:v "IVL_PQ" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "v" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "low" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "v" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "l1" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "age" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "l1" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "ref" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "age" ] ;
fhir:variable [ fhir:v "age" ] ;
fhir:transform [ fhir:v "create" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "Quantity" ]                       ] )                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "high" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "l1" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "age" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "high" ] ;
fhir:variable [ fhir:v "high" ]                       ] ) ;
                      ( fhir:rule [
fhir:name [ fhir:v "value" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "decValue" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "decValue" ]                           ] )                         ] )                       ] [
fhir:name [ fhir:v "unit" ] ;
                        ( fhir:source [
fhir:context [ fhir:v "l1" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "Unit1" ]                         ] ) ;
                        ( fhir:target [
fhir:context [ fhir:v "high" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:transform [ fhir:v "copy" ] ;
                          ( fhir:parameter [
fhir:value [ fhir:v "Unit1" ]                           ] )                         ] )                       ] )                     ] )                   ] )                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "referenceRange" ]     ] )
  ] [
fhir:name [ fhir:v "Act" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "cda" ] ;
fhir:type [ fhir:v "Act" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "pat" ] ;
fhir:type [ fhir:v "Patient" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "ac" ] ;
fhir:type [ fhir:v "DiagnosticReport" ] ;
fhir:mode [ fhir:v "target" ]     ] [
fhir:name [ fhir:v "enc" ] ;
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:rule [
fhir:name [ fhir:v "code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "status" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:condition [ fhir:v "cda.statusCode.exists().not()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "statuscode" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
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 "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
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 "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "registered" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "cancelled" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "partial" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value3" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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 "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
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/' + %pat.id" ]         ] )       ] )     ] [
fhir:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
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/' + %enc.id" ]         ] )       ] )     ] [
fhir:name [ fhir:v "exist" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:condition [ fhir:v "cda.specimen.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "specimen" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "specimen" ] ;
fhir:variable [ fhir:v "src" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e4" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "specimen" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Specimen" ]           ] )         ] [
fhir:context [ fhir:v "specimen" ] ;
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/Specimen/" ]           ] [
fhir:value [ fhir:v "uuid4" ]           ] )         ] [
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 "Specimen" ]           ] )         ] [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "specimen" ] ;
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/Specimen/' + %specimen.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SpecimenRole" ] ;
          ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "specimenRole" ] ;
fhir:variable [ fhir:v "specimenRole" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] [
fhir:name [ fhir:v "specimenPlayingEntity" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "specimenPlayingEntity" ] ;
fhir:variable [ fhir:v "specimenPlayingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
              ( fhir:source [
fhir:context [ fhir:v "specimenPlayingEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "reference" ] ;
          ( fhir:source [
fhir:context [ fhir:v "src" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
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 "entryRelationshipobservation" ] ;
          ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "observation" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "observation" ] ;
fhir:variable [ fhir:v "observation" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "obs" ] ;
              ( fhir:source [
fhir:context [ fhir:v "observation" ]               ] ) ;
              ( 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 "POST" ]                 ] )               ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "obs" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Observation" ]                 ] )               ] [
fhir:context [ fhir:v "obs" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid13" ] ;
fhir:transform [ fhir:v "uuid" ]               ] [
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/Observation/" ]                 ] [
fhir:value [ fhir:v "uuid13" ]                 ] )               ] [
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 "Observation" ]                 ] )               ] [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "result" ] ;
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/Observation/' + %obs.id" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "ORG" ] ;
                ( fhir:source [
fhir:context [ fhir:v "observation" ]                 ] ) ;
                ( fhir:dependent [
fhir:name [ fhir:v "Observation2" ] ;
                  ( fhir:variable [ fhir:v "observation" ] [ fhir:v "pat" ] [ fhir:v "enc" ] [ fhir:v "obs" ] [ fhir:v "bundle" ] [ fhir:v "cda" ] [ fhir:v "specimen" ] )                 ] )               ] [
fhir:name [ fhir:v "entryRelationshipprocedure" ] ;
                ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship1" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "procedure" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entryRelationship1" ] ;
fhir:element [ fhir:v "procedure" ] ;
fhir:variable [ fhir:v "proc" ]                   ] ) ;
                  ( 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 "POST" ]                     ] )                   ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "procedure" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Procedure" ]                     ] )                   ] [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "uuid" ]                   ] [
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/Procedure/" ]                     ] [
fhir:value [ fhir:v "uuid5" ]                     ] )                   ] [
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 "Procedure" ]                     ] )                   ] [
fhir:context [ fhir:v "obs" ] ;
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/Procedure/' + %procedure.id" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "reference" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "status" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "proc.statusCode.exists().not()" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "statuscode" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "proc" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "completed" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "in-progress" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "stopped" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'cancelled')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "not-done" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'held')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'new')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "preparation" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'obsolete')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "entered-in-error" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'nullified')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "datetime" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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 "where" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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:name [ fhir:v "targetSiteCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "targetSiteCode" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "bodySite" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] )                 ] ) ;
fhir:documentation [ fhir:v "procedure" ]               ] )             ] )           ] [
fhir:name [ fhir:v "organizer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "organizer" ] ;
fhir:variable [ fhir:v "organizer" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "Organizer" ] ;
              ( fhir:source [
fhir:context [ fhir:v "organizer" ]               ] ) ;
              ( 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 "POST" ]                 ] )               ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "obs" ] ;
fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "Observation" ]                 ] )               ] [
fhir:context [ fhir:v "obs" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid13" ] ;
fhir:transform [ fhir:v "uuid" ]               ] [
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/Observation/" ]                 ] [
fhir:value [ fhir:v "uuid13" ]                 ] )               ] [
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 "Observation" ]                 ] )               ] [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "result" ] ;
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/Observation/' + %obs.id" ]                 ] )               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "ORG" ] ;
                ( fhir:source [
fhir:context [ fhir:v "organizer" ]                 ] ) ;
                ( fhir:dependent [
fhir:name [ fhir:v "Organizer" ] ;
                  ( fhir:variable [ fhir:v "cda" ] [ fhir:v "organizer" ] [ fhir:v "pat" ] [ fhir:v "enc" ] [ fhir:v "obs" ] [ fhir:v "bundle" ] )                 ] )               ] [
fhir:name [ fhir:v "entryRelationshiprocedure" ] ;
                ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship1" ]                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "pbservation" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "entryRelationship1" ] ;
fhir:element [ fhir:v "procedure" ] ;
fhir:variable [ fhir:v "proc" ]                   ] ) ;
                  ( 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 "POST" ]                     ] )                   ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "procedure" ] ;
fhir:transform [ fhir:v "create" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "Procedure" ]                     ] )                   ] [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "uuid" ]                   ] [
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/Procedure/" ]                     ] [
fhir:value [ fhir:v "uuid5" ]                     ] )                   ] [
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 "Procedure" ]                     ] )                   ] [
fhir:context [ fhir:v "obs" ] ;
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/Procedure/' + %procedure.id" ]                     ] )                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "reference" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "status" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "proc.statusCode.exists().not()" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "statuscode" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "proc" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                        ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                         ] )                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "completed" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "in-progress" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "stopped" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'cancelled')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "not-done" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'held')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'new')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "preparation" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'obsolete')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "entered-in-error" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "statusCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'nullified')" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                       ] )                     ] )                   ] [
fhir:name [ fhir:v "datetime" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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 "where" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]                     ] ) ;
                    ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
                      ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]                       ] ) ;
                      ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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:name [ fhir:v "targetSiteCode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "targetSiteCode" ] ;
fhir:variable [ fhir:v "vvv" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "bodySite" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                     ] )                   ] )                 ] ) ;
fhir:documentation [ fhir:v "procedure" ]               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "specimen" ]     ] [
fhir:name [ fhir:v "existnot" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:condition [ fhir:v "cda.specimen.exists().not()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "entryRelationshipobservation" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "observation" ] ;
          ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "observation" ] ;
fhir:variable [ fhir:v "observation" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "obs" ] ;
            ( fhir:source [
fhir:context [ fhir:v "observation" ]             ] ) ;
            ( 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 "POST" ]               ] )             ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "obs" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Observation" ]               ] )             ] [
fhir:context [ fhir:v "obs" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid13" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
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/Observation/" ]               ] [
fhir:value [ fhir:v "uuid13" ]               ] )             ] [
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 "Observation" ]               ] )             ] [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "result" ] ;
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/Observation/' + %obs.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "ORG" ] ;
              ( fhir:source [
fhir:context [ fhir:v "observation" ]               ] ) ;
              ( fhir:dependent [
fhir:name [ fhir:v "Observation3" ] ;
                ( fhir:variable [ fhir:v "observation" ] [ fhir:v "pat" ] [ fhir:v "enc" ] [ fhir:v "obs" ] [ fhir:v "bundle" ] [ fhir:v "cda" ] )               ] )             ] [
fhir:name [ fhir:v "entryRelationshipprocedure" ] ;
              ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship1" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "procedure" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entryRelationship1" ] ;
fhir:element [ fhir:v "procedure" ] ;
fhir:variable [ fhir:v "proc" ]                 ] ) ;
                ( 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 "POST" ]                   ] )                 ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "procedure" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Procedure" ]                   ] )                 ] [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "uuid" ]                 ] [
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/Procedure/" ]                   ] [
fhir:value [ fhir:v "uuid5" ]                   ] )                 ] [
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 "Procedure" ]                   ] )                 ] [
fhir:context [ fhir:v "obs" ] ;
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/Procedure/' + %procedure.id" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "reference" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "status" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "proc.statusCode.exists().not()" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "statuscode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "completed" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "in-progress" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "stopped" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'cancelled')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "not-done" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'held')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'new')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "preparation" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'obsolete')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "entered-in-error" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'nullified')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "datetime" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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 "where" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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:name [ fhir:v "targetSiteCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "targetSiteCode" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "bodySite" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] ) ;
fhir:documentation [ fhir:v "procedure" ]             ] )           ] )         ] [
fhir:name [ fhir:v "organizer" ] ;
          ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "organizer" ] ;
fhir:variable [ fhir:v "organizer" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "Organizer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "organizer" ]             ] ) ;
            ( 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 "POST" ]               ] )             ] [
fhir:context [ fhir:v "e12" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "obs" ] ;
fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "Observation" ]               ] )             ] [
fhir:context [ fhir:v "obs" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid13" ] ;
fhir:transform [ fhir:v "uuid" ]             ] [
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/Observation/" ]               ] [
fhir:value [ fhir:v "uuid13" ]               ] )             ] [
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 "Observation" ]               ] )             ] [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "result" ] ;
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/Observation/' + %obs.id" ]               ] )             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "ORG" ] ;
              ( fhir:source [
fhir:context [ fhir:v "organizer" ]               ] ) ;
              ( fhir:dependent [
fhir:name [ fhir:v "Organizer" ] ;
                ( fhir:variable [ fhir:v "cda" ] [ fhir:v "organizer" ] [ fhir:v "pat" ] [ fhir:v "enc" ] [ fhir:v "obs" ] [ fhir:v "bundle" ] )               ] )             ] [
fhir:name [ fhir:v "entryRelationshiprocedure" ] ;
              ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship1" ]               ] ) ;
              ( fhir:rule [
fhir:name [ fhir:v "pbservation" ] ;
                ( fhir:source [
fhir:context [ fhir:v "entryRelationship1" ] ;
fhir:element [ fhir:v "procedure" ] ;
fhir:variable [ fhir:v "proc" ]                 ] ) ;
                ( 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 "POST" ]                   ] )                 ] [
fhir:context [ fhir:v "e5" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "procedure" ] ;
fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
fhir:value [ fhir:v "Procedure" ]                   ] )                 ] [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid5" ] ;
fhir:transform [ fhir:v "uuid" ]                 ] [
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/Procedure/" ]                   ] [
fhir:value [ fhir:v "uuid5" ]                   ] )                 ] [
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 "Procedure" ]                   ] )                 ] [
fhir:context [ fhir:v "obs" ] ;
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/Procedure/' + %procedure.id" ]                   ] )                 ] ) ;
                ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "reference" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
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 "status" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "proc.statusCode.exists().not()" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "statuscode" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                      ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                       ] )                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "completed" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "in-progress" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "stopped" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'cancelled')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "not-done" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'held')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "on-hold" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'new')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "preparation" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'obsolete')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "entered-in-error" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "statusCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'nullified')" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]                     ] )                   ] )                 ] [
fhir:name [ fhir:v "datetime" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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 "where" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]                   ] ) ;
                  ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
                    ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]                     ] ) ;
                    ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performed" ] ;
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:name [ fhir:v "targetSiteCode" ] ;
                  ( fhir:source [
fhir:context [ fhir:v "proc" ] ;
fhir:element [ fhir:v "targetSiteCode" ] ;
fhir:variable [ fhir:v "vvv" ]                   ] ) ;
                  ( fhir:target [
fhir:context [ fhir:v "procedure" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "bodySite" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]                   ] )                 ] )               ] ) ;
fhir:documentation [ fhir:v "procedure" ]             ] )           ] )         ] ) ;
fhir:documentation [ fhir:v "cda -> bundle.entry as e4, e4.request = create('BackboneElement') as request, request.method = 'POST', e4.resource = create('Specimen') as specimen,  specimen.id = uuid() as uuid4,  e4.fullUrl = append('https://example/Specimen/', uuid4), request.url = 'Specimen' then {" ]       ] )     ] [
fhir:name [ fhir:v "participant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "part" ] ;
fhir:condition [ fhir:v "(typeCode != 'DEV')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "enc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
        ( fhir:source [
fhir:context [ fhir:v "part" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "participant" ] ;
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 "part" ]           ] ) ;
          ( 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 "part" ]             ] ) ;
            ( 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 "part.typeCode" ]               ] )             ] )           ] [
fhir:name [ fhir:v "system" ] ;
            ( fhir:source [
fhir:context [ fhir:v "part" ]             ] ) ;
            ( 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 "participantRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "part" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRole" ]         ] ) ;
        ( fhir:target [
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:rule [
fhir:name [ fhir:v "participanRoleBund" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRole" ]           ] ) ;
          ( 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 "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "time" ] ;
            ( fhir:source [
fhir:context [ fhir:v "part" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "participant" ] ;
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 "time1" ]               ] ) ;
              ( 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 "time1" ] [ fhir:v "start" ] )               ] )             ] )           ] [
fhir:name [ fhir:v "time" ] ;
            ( fhir:source [
fhir:context [ fhir:v "part" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "participant" ] ;
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 "time1" ] [ fhir:v "period" ] )             ] )           ] [
fhir:name [ fhir:v "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ]             ] ) ;
            ( 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 "participantRole" ]               ] ) ;
              ( 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 "participantRole" ]                 ] ) ;
                ( 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 "participantRole" ]                 ] ) ;
                ( 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/body/act/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "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 "participantRole" ]                 ] ) ;
                ( 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 "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 "org" ] ;
                ( 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 "uuid4" ] ;
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/Practitioner/" ]                   ] [
fhir:value [ fhir:v "uuid4" ]                   ] )                 ] [
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 "addr" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "playingEntity" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
fhir:element [ fhir:v "playingEntity" ] ;
fhir:variable [ fhir:v "playingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "playingEntity" ] ;
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:documentation [ fhir:v "PARTICIPANT" ]     ] [
fhir:name [ fhir:v "performer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
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 "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 "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
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 "performer" ] ;
        ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "assignedEntity" ]         ] ) ;
        ( fhir:rule [
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:name [ fhir:v "ASSAUth" ] ;
          ( 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 "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 "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 "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/body/act/performer" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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 "assignedEntity" ]                 ] ) ;
                ( 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 "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 "pra" ] ;
                ( 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 "uuid4" ] ;
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 "uuid4" ]                   ] )                 ] [
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 "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 "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 "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 "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/body/act/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 "org" ] ;
                ( 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 "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 "uuid2" ]                   ] )                 ] [
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 "uuid2" ]                   ] )                 ] )               ] )             ] )           ] [
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/body/act/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 "org" ] ;
                  ( 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 "uuid3" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                    ( fhir:parameter [
fhir:value [ fhir:v "r + '-' + ext" ]                     ] )                   ] [
fhir:context [ fhir:v "organization1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
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/Organization/" ]                     ] [
fhir:value [ fhir:v "uuid3" ]                     ] )                   ] [
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 "OrgPartOf" ]                 ] ) ;
                ( 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 "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/body/act/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 "org" ] ;
                    ( 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 "PERFORMER" ]     ] [
fhir:name [ fhir:v "author" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "srcAuthor" ]       ] ) ;
      ( 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 "POST" ]         ] )       ] [
fhir:context [ fhir:v "e5" ] ;
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 "uuid6" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
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/PractitionerRole/" ]         ] [
fhir:value [ fhir:v "uuid6" ]         ] )       ] [
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 "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
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 "author" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "assignedAuthor" ] ;
fhir:variable [ fhir:v "assignedAuthor" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
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: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 "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 "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 "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 "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/body/act/author" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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 "Practitioner?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 "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 "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:documentation [ fhir:v "person" ]           ] )         ] [
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 "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/body/act/author/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 "org" ] ;
                ( 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 "uuid8" ] ;
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 "uuid8" ]                   ] )                 ] [
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 "uuid8" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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/body/act/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 "org" ] ;
                  ( 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 "uuid9" ] ;
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 "uuid9" ]                     ] )                   ] [
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/body/act/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 "org" ] ;
                    ( 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 "uuid10" ] ;
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 "uuid10" ]                       ] )                     ] [
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 "organization" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "AUTHOR" ]     ] [
fhir:name [ fhir:v "entryRelationship" ] ;
      ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "entryRelationship" ] ;
fhir:variable [ fhir:v "entryRelationship" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "Act" ] ;
        ( fhir:source [
fhir:context [ fhir:v "entryRelationship" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "act" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
fhir:context [ fhir:v "act" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "text" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
fhir:context [ fhir:v "text" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "ac" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "conclusion" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "reference.value" ]               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "<!--entryRelationship per la gestione delle note e commenti-->" ]     ] )
  ] [
fhir:name [ fhir:v "Organizer" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "cda" ] ;
fhir:type [ fhir:v "Act" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "org" ] ;
fhir:type [ fhir:v "Organizer" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "patient" ] ;
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 "observation" ] ;
fhir:type [ fhir:v "Observation" ] ;
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 "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
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 "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
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 "org" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] )     ] [
fhir:name [ fhir:v "act" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:condition [ fhir:v "org.code.exists().not()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
        ( fhir:source [
fhir:context [ fhir:v "cda" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'completed')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
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 "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'active')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "registered" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'aborted')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "cancelled" ]         ] )       ] )     ] [
fhir:name [ fhir:v "statusCode" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "statusCode" ] ;
fhir:variable [ fhir:v "statusc" ] ;
fhir:condition [ fhir:v "(code = 'suspended')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "partial" ]         ] )       ] )     ] [
fhir:name [ fhir:v "value2" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "effectiveTime" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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 "where" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "effectiveTime" ] ;
        ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "effectiveTime" ] ;
fhir:variable [ fhir:v "eff" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "effective" ] ;
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:name [ fhir:v "specimen" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "specimen" ] ;
fhir:variable [ fhir:v "spmn" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "bundle" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "entry" ] ;
fhir:variable [ fhir:v "e4o" ]       ] [
fhir:context [ fhir:v "e4o" ] ;
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 "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "specimen" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Specimen" ]         ] )       ] [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid4o" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
fhir:context [ fhir:v "e4o" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "fullUrl" ] ;
fhir:transform [ fhir:v "append" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "https://example/Specimen/" ]         ] [
fhir:value [ fhir:v "uuid4o" ]         ] )       ] [
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 "Specimen" ]         ] )       ] [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "specimen" ] ;
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/Specimen/' + %specimen.id" ]         ] )       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "specimenRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "spmn" ] ;
fhir:element [ fhir:v "specimenRole" ] ;
fhir:variable [ fhir:v "specimenRole" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "id" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "identifier" ]           ] )         ] [
fhir:name [ fhir:v "specimenPlayingEntity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "specimenRole" ] ;
fhir:element [ fhir:v "specimenPlayingEntity" ] ;
fhir:variable [ fhir:v "specimenPlayingEntity" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "specimenPlayingEntity" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "specimen" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "specimen" ]     ] [
fhir:name [ fhir:v "subject" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "sbj" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "relatedSubject" ] ;
        ( fhir:source [
fhir:context [ fhir:v "sbj" ] ;
fhir:element [ fhir:v "relatedSubject" ] ;
fhir:variable [ fhir:v "relatedSubj" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "patient" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "extension2" ]         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "ExtSubjectAnimal" ] ;
          ( fhir:variable [ fhir:v "relatedSubj" ] [ fhir:v "extension2" ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "subject" ]     ] [
fhir:name [ fhir:v "performer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
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 "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:rule [
fhir:name [ fhir:v "practitionerRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "performer" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
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 "entity" ] ;
          ( fhir:source [
fhir:context [ fhir:v "performer" ] ;
fhir:element [ fhir:v "assignedEntity" ] ;
fhir:variable [ fhir:v "entity" ]           ] ) ;
          ( 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 "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 "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/body/organizer/performer" ]                     ] )                   ] )                 ] )               ] )             ] [
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 "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 "Practitioner?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 "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 "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 "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 "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 "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 "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/body/organizer/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 "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 "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/body/organizer/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 "org" ] ;
                      ( 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 "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 "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/body/organizer/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 "org" ] ;
                        ( 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 "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 "uuid4" ]                           ] )                         ] [
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 "performer" ]     ] [
fhir:name [ fhir:v "author" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "author" ] ;
fhir:variable [ fhir:v "srcAuthor" ]       ] ) ;
      ( 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 "uuid6" ] ;
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 "uuid6" ]         ] )       ] [
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 "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "referenceaut" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "Reference" ]         ] )       ] [
fhir:context [ fhir:v "referenceaut" ] ;
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 "assignedAuthor" ] ;
        ( fhir:source [
fhir:context [ fhir:v "srcAuthor" ] ;
fhir:element [ fhir:v "assignedAuthor" ] ;
fhir:variable [ fhir:v "assignedAuthor" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
fhir:context [ fhir:v "assignedAuthor" ] ;
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 "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 "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 "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/body/organizer/author" ]                   ] )                 ] )               ] )             ] ) ;
fhir:documentation [ fhir:v "assignedAuthor.code -> practitionerRole.code;" ]           ] [
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 "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 "Practitioner?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 "practitioner" ] ;
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 "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 "uuid7" ]                   ] )                 ] [
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:documentation [ fhir:v "person" ]           ] )         ] [
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 "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/body/organizer/author/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 "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 "uuid8" ] ;
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 "uuid8" ]                   ] )                 ] [
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 "uuid8" ]                   ] )                 ] )               ] )             ] )           ] [
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 "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/body/organizer/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 "uuid9" ] ;
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 "uuid9" ]                     ] )                   ] [
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 "OrgPartOf" ]                 ] ) ;
                ( 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 "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/body/organizer/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 "uuid10" ] ;
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 "uuid10" ]                       ] )                     ] [
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 "organization" ]         ] [
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 "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 "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 "uuid11" ] ;
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/Device/" ]             ] [
fhir:value [ fhir:v "uuid11" ]             ] )           ] [
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 "templateId" ] ;
            ( fhir:source [
fhir:context [ fhir:v "assignedAuthoringDevice" ] ;
fhir:element [ fhir:v "templateId" ] ;
fhir:variable [ fhir:v "vvv" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "device" ] ;
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 "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: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 "device" ]         ] ) ;
fhir:documentation [ fhir:v "srcAuthor.time as time -> tgt.date;" ]       ] ) ;
fhir:documentation [ fhir:v "author" ]     ] [
fhir:name [ fhir:v "participantEncounter" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "participant" ] ;
fhir:condition [ fhir:v "(typeCode != 'DEV')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
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:rule [
fhir:name [ fhir:v "fhirParticipant" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "encounter" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "FhirParticipant" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "p" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "FhirParticipant" ] ;
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 "partRole" ] ;
        ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRole" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e12" ] ;
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 "uuid12" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/PractitionerRole/" ]           ] [
fhir:value [ fhir:v "uuid12" ]           ] )         ] [
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 "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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 "val" ] ;
            ( fhir:source [
fhir:context [ fhir:v "time1" ]             ] ) ;
            ( 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 "time1" ] [ fhir:v "start" ] )             ] )           ] ) ;
fhir:documentation [ fhir:v "participant.time -> participant1.period;" ]         ] [
fhir:name [ fhir:v "time" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participant" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "time1" ]           ] ) ;
          ( 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:dependent [
fhir:name [ fhir:v "IVLTSPeriod" ] ;
            ( fhir:variable [ fhir:v "time1" ] [ fhir:v "period" ] )           ] )         ] [
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 "practitioner" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRole" ]           ] ) ;
          ( 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 "practitioner" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Practitioner" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "par" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ]             ] ) ;
            ( 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 "meta" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ]             ] ) ;
            ( 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 "participantRole" ]               ] ) ;
              ( 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 "participantRole" ]                 ] ) ;
                ( 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 "participantRole" ]                 ] ) ;
                ( 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/body/organizer/participant" ]                   ] )                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "identifier" ] ;
            ( fhir:source [
fhir:context [ fhir:v "participantRole" ] ;
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 "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 "participantRole" ]                 ] ) ;
                ( 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 "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 "part" ] ;
                ( 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 "e13" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
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 "participantRole" ] ;
fhir:element [ fhir:v "playingEntity" ] ;
fhir:variable [ fhir:v "playingEntity" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "name" ] ;
              ( fhir:source [
fhir:context [ fhir:v "playingEntity" ] ;
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 "playingEntity" ] ;
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:documentation [ fhir:v "non mappa i 2 precedenti" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "participant person" ]     ] [
fhir:name [ fhir:v "devParticipant" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "participant" ] ;
fhir:variable [ fhir:v "devParticipant" ] ;
fhir:condition [ fhir:v "(typeCode = 'DEV')" ]       ] ) ;
      ( 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 "POST" ]         ] )       ] [
fhir:context [ fhir:v "e14" ] ;
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 "uuid14" ] ;
fhir:transform [ fhir:v "uuid" ]       ] [
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/Device/" ]         ] [
fhir:value [ fhir:v "uuid14" ]         ] )       ] [
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 "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "device" ] ;
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 "participantRoleDev" ] ;
        ( fhir:source [
fhir:context [ fhir:v "devParticipant" ] ;
fhir:element [ fhir:v "participantRole" ] ;
fhir:variable [ fhir:v "participantRoleDev" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "playingDevice" ] ;
          ( fhir:source [
fhir:context [ fhir:v "participantRoleDev" ] ;
fhir:element [ fhir:v "playingDevice" ] ;
fhir:variable [ fhir:v "playingDevice" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "code" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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:name [ fhir:v "manufacturer" ] ;
            ( fhir:source [
fhir:context [ fhir:v "playingDevice" ] ;
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 "playingDevice" ] ;
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 "participant device" ]     ] [
fhir:name [ fhir:v "componentobservation" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "OBS" ] ;
        ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "observation" ] ;
fhir:variable [ fhir:v "observation" ]         ] ) ;
        ( 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 "observationhasmember" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Observation" ]           ] )         ] [
fhir:context [ fhir:v "observationhasmember" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid2" ] ;
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/Observation/" ]           ] [
fhir:value [ fhir:v "uuid2" ]           ] )         ] [
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 "Observation" ]           ] )         ] [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "hasMember" ] ;
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/Observation/' + %observationhasmember.id" ]           ] )         ] ) ;
        ( fhir:dependent [
fhir:name [ fhir:v "Observation" ] ;
          ( fhir:variable [ fhir:v "observation" ] [ fhir:v "patient" ] [ fhir:v "encounter" ] [ fhir:v "observationhasmember" ] [ fhir:v "bundle" ] )         ] )       ] )     ] [
fhir:name [ fhir:v "componentorganizer" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "organizer" ] ;
        ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "organizer" ] ;
fhir:variable [ fhir:v "organizer" ]         ] ) ;
        ( 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 "observationorganizer" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Observation" ]           ] )         ] [
fhir:context [ fhir:v "observationorganizer" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid3" ] ;
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/Observation/" ]           ] [
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 "Observation" ]           ] )         ] [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "hasMember" ] ;
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/Observation/' + %observationorganizer.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "ORG" ] ;
          ( fhir:source [
fhir:context [ fhir:v "organizer" ]           ] ) ;
          ( fhir:dependent [
fhir:name [ fhir:v "Organizer" ] ;
            ( fhir:variable [ fhir:v "cda" ] [ fhir:v "organizer" ] [ fhir:v "patient" ] [ fhir:v "encounter" ] [ fhir:v "observationorganizer" ] [ fhir:v "bundle" ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "component" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "obsmedia" ] ;
        ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "observationMedia" ] ;
fhir:variable [ fhir:v "obsMedia" ]         ] ) ;
        ( 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 "POST" ]           ] )         ] [
fhir:context [ fhir:v "e15" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "resource" ] ;
fhir:variable [ fhir:v "media1" ] ;
fhir:transform [ fhir:v "create" ] ;
          ( fhir:parameter [
fhir:value [ fhir:v "Media" ]           ] )         ] [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "id" ] ;
fhir:variable [ fhir:v "uuid15" ] ;
fhir:transform [ fhir:v "uuid" ]         ] [
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/Media/" ]           ] [
fhir:value [ fhir:v "uuid15" ]           ] )         ] [
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 "Media" ]           ] )         ] [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "derivedFrom" ] ;
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/Media/' + %media1.id" ]           ] )         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "Attachment" ] ;
          ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "content" ] ;
fhir:variable [ fhir:v "Attachment" ] ;
fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "Attachment" ]             ] )           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "status" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "media1" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "unknown" ]               ] )             ] )           ] [
fhir:name [ fhir:v "valuemedia" ] ;
            ( fhir:source [
fhir:context [ fhir:v "obsMedia" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "valueMedia" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ] ;
fhir:element [ fhir:v "mediaType" ] ;
fhir:variable [ fhir:v "type" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "contentType" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "type" ]                 ] )               ] )             ] [
fhir:name [ fhir:v "data" ] ;
              ( fhir:source [
fhir:context [ fhir:v "valueMedia" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "Attachment" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "data" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "valueMedia.dataBase64Binary" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "observationMedia" ]     ] [
fhir:name [ fhir:v "component" ] ;
      ( fhir:source [
fhir:context [ fhir:v "org" ] ;
fhir:element [ fhir:v "component" ] ;
fhir:variable [ fhir:v "component" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "componentact" ] ;
        ( fhir:source [
fhir:context [ fhir:v "component" ] ;
fhir:element [ fhir:v "act" ] ;
fhir:variable [ fhir:v "act" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
fhir:context [ fhir:v "act" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:variable [ fhir:v "text" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "note" ] ;
            ( fhir:source [
fhir:context [ fhir:v "text" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "reference" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "observation" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "note" ] ;
fhir:variable [ fhir:v "note" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "reference" ] ;
              ( fhir:source [
fhir:context [ fhir:v "reference" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "note" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "text" ] ;
fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "reference.value" ]                 ] )               ] )             ] )           ] )         ] )       ] ) ;
fhir:documentation [ fhir:v "note" ]     ] )
  ] [
fhir:name [ fhir:v "ExtSubjectAnimal" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "relatedSubject" ] ;
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-animal" ]         ] )       ] )     ] [
fhir:name [ fhir:v "code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "code" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "ext" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "extension" ] ;
fhir:variable [ fhir:v "ext" ]       ] [
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 "species" ]         ] )       ] [
fhir:context [ fhir:v "ext" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "code1" ] ;
fhir:transform [ fhir:v "create" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "CodeableConcept" ]         ] )       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "CECodeableConcept" ] ;
        ( fhir:variable [ fhir:v "code" ] [ fhir:v "code1" ] )       ] )     ] )
  ] ) . #