CDA to FHIR Maps, published by HL7 Italy. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-it/cda2fhir/ and changes regularly. See the Directory of published versions
Draft as of 2024-09-15 |
@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 "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirLabReport" = "cda2fhirLabReport"\n\nuses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source\nuses "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor" alias AssignedAuthor as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" alias AssignedEntity as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/AssociatedEntity" alias AssociatedEntity as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization" alias CustodianOrganization as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/OrganizationPartOf" alias OrganizationPartOf as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/Organization" alias rapresentedOrganization as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/Section" alias Section as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as queried\nuses "http://hl7.org/fhir/cda/StructureDefinition/AD" alias AD as source\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target\nuses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as produced\nuses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as produced\nuses "http://hl7.org/fhir/StructureDefinition/Encounter" alias Encounter as produced\nuses "http://hl7.org/fhir/StructureDefinition/Person" alias Patient as produced\nuses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as produced\nuses "http://hl7.org/fhir/StructureDefinition/Specimen" alias Specimen as produced\nuses "http://hl7.org/fhir/StructureDefinition/Procedure" alias Procedure as produced\nuses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as produced\nuses "http://hl7.org/fhir/cda/StructureDefinition/Act" alias Act as produced\nuses "http://hl7.org/fhir/cda/StructureDefinition/IVL-PQ" alias IVL_PQ as source\nuses "http://hl7.org/fhir/cda/StructureDefinition/PQ" alias PQ as source\nuses "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" alias SimpleQuantity as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/Organizer" alias Organizer as source\n\nimports "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirDataTypes"\nimports "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirHeader"\n\ngroup CdaToBundle(source cda : ClinicalDocument, target bundle : Bundle) {\n cda -> bundle.entry as e, e.request = create('BackboneElement') as request, request.method = 'POST', e.resource = create('Composition') as composition, composition.id = uuid() as uuid1, e.fullUrl = append('https://example/Composition/', uuid1), request.url = 'Composition', bundle.entry as e2, e2.request = 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) "cdatobundle";\n cda.recordTarget as recordTarget then {\n recordTarget.patientRole as patient then {\n patient.id as id -> patient.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext1 -> identifier.value = ext1 "value";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n } "idfr";\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 -> requestPAT.url = append('Patient?identifier=', ext) "UUID";\n } "ext";\n } "record";\n } "patient";\n } "ClinicalDocumentToBody";\n}\n\ngroup ClinicalDocumentToBundle(source cda : ClinicalDocument, target patient : Patient, target composition : Composition, target encounter : Encounter, target bundle : Bundle, target documentreference : DocumentReference) {\n cda -> bundle.id = uuid() "id";\n cda.id -> bundle.identifier "identifier";\n cda -> bundle.type = 'transaction' "type";\n cda -> bundle.timestamp = (timestamp.now()) "date";\n cda then ClinicalDocumentComposition(cda, composition, patient, encounter, bundle, documentreference) "composition";\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 -> composition.section as tgtSection then ClinicalDocumentSection(cda, srcSection, patient, tgtSection, bundle, encounter, documentreference);\n };\n };\n } "body";\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 -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src.text as cdaText -> tgt.text as fhirText then {\n cdaText -> fhirText.status = 'generated' "narrativeStatus";\n cdaText as t -> fhirText.div = t "narrativeText";\n } "cdaText";\n src.entry as entry1 -> 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 -> 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 -> ob.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> ob.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n obs.code -> ob.code;\n obs.statusCode as statusc where (code = 'completed') -> ob.status = 'final';\n obs.statusCode as statusc where (code = 'active') -> ob.status = 'registered';\n obs.statusCode as statusc where (code = 'aborted') -> ob.status = 'cancelled';\n obs.statusCode as statusc where (code = 'suspended') -> ob.status = 'partial';\n obs.effectiveTime as effectiveTime -> ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2";\n obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n obs.effectiveTime as eff -> ob.effective = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n obs.interpretationCode -> ob.interpretation;\n obs.methodCode -> ob.method;\n obs.value : INT as int -> ob.value = (int.value);\n obs.value : BL as boolean -> ob.value = (boolean.value) "boolean";\n obs.value : CE as val then {\n val -> ob.value = create('CodeableConcept') as ce then {\n val.originalText as originalText then {\n originalText.reference as reference -> ce.text = reference;\n } "originltext";\n val -> ce.coding as coding then {\n val.code as code -> coding.code = cast(code, 'string');\n val.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n val.displayName as display -> coding.display = cast(display, 'string');\n val.codeSystemVersion as version -> coding.version = cast(version, 'string');\n } "code";\n val.translation as translation -> ce.coding as coding then {\n translation.code as code -> coding.code = cast(code, 'string');\n translation.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n translation.displayName as display -> coding.display = cast(display, 'string');\n translation.codeSystemVersion as version -> coding.version = cast(version, 'string');\n translation.qualifier as qualifier then {\n qualifier.value as value -> ce.coding as coding then {\n value.code as code -> coding.code = cast(code, 'string');\n value.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n value.displayName as display -> coding.display = cast(display, 'string');\n value.codeSystemVersion as version -> coding.version = cast(version, 'string');\n };\n };\n };\n } "coding";\n } "val";\n obs.value : CD as val then {\n val -> ob.value = create('CodeableConcept') as ce then {\n val.originalText as originalText then {\n originalText.reference as reference -> ce.text = reference;\n } "originltext";\n val -> ce.coding as coding then {\n val.code as code -> coding.code = cast(code, 'string');\n val.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n val.displayName as display -> coding.display = cast(display, 'string');\n val.codeSystemVersion as version -> coding.version = cast(version, 'string');\n } "code";\n val.translation as translation -> ce.coding as coding then {\n translation.code as code -> coding.code = cast(code, 'string');\n translation.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n translation.displayName as display -> coding.display = cast(display, 'string');\n translation.codeSystemVersion as version -> coding.version = cast(version, 'string');\n translation.qualifier as qualifier then {\n qualifier.value as value -> ce.coding as coding then {\n value.code as code -> coding.code = cast(code, 'string');\n value.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n value.displayName as display -> coding.display = cast(display, 'string');\n value.codeSystemVersion as version -> coding.version = cast(version, 'string');\n };\n };\n };\n } "coding";\n } "val";\n obs.value : PQ as val then {\n val -> ob.value = create('Quantity') as quantity then {\n val.value as value -> quantity.value = value;\n val.unit as unit -> quantity.unit = unit;\n } "quantity";\n } "valueQuantity";\n obs.value : ST as value -> 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 -> ob.note as note then {\n reference -> note.text = (reference.value) "reference";\n };\n };\n } "Act";\n };\n // subject\n obs.subject as sbj then {\n sbj.relatedSubject as relatedSubj -> patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n };\n // performer\n obs.performer as performer -> 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 -> ob.performer = create('Reference') as reference, reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n performer.assignedEntity as entity then {\n entity.code -> practitionerRole.code;\n entity -> bundle.entry as e2, e2.request = create('BackboneElement') as request, request.method = 'PUT', e2.resource = create('Practitioner') as practitioner then {\n entity -> practitioner.meta as meta then {\n entity -> meta.tag = create('Coding') as coding then {\n entity -> coding.system = 'http://algoritmodiscoring' "system";\n entity -> coding.code = 'ClinicalDocument/body/observation/performer' "code";\n } "coding";\n } "meta";\n entity.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n entity -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "performer";\n } "r";\n } "identifier";\n entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n entity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n entity.addr -> practitioner.address;\n entity.telecom -> practitioner.telecom;\n entity.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n // organization\n entity.representedOrganization as representedOrganization -> bundle.entry as e3, e3.request = create('BackboneElement') as request, request.method = 'PUT', e3.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e4, e4.request = create('BackboneElement') as request, e4.resource = create('Organization') as organization1, request.method = 'PUT' then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e5, e5.request = create('BackboneElement') as request, request.method = 'PUT', e5.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n } "practitioner";\n } "entity";\n } "practitionerRole";\n };\n // author\n obs.author as srcAuthor -> 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 -> practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n assignedAuthor -> 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 -> practitionerRole.code;\n assignedAuthor -> practitioner.meta as meta then {\n assignedAuthor -> meta.tag = create('Coding') as coding then {\n assignedAuthor -> coding.system = 'http://algoritmodiscoring' "system";\n assignedAuthor -> coding.code = 'ClinicalDocument/body/observation/author' "code";\n } "coding";\n } "meta";\n assignedAuthor.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n assignedAuthor -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n } "identifier";\n assignedAuthor.addr -> practitioner.address;\n assignedAuthor.telecom -> practitioner.telecom;\n // person\n assignedAuthor.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "ASSAUth";\n // organization\n assignedAuthor.representedOrganization as representedOrganization -> bundle.entry as e8, e8.request = create('BackboneElement') as request, request.method = 'PUT', e8.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e9, e9.request = create('BackboneElement') as request, request.method = 'PUT', e9.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e10, e10.request = create('BackboneElement') as request, request.method = 'PUT', e10.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n // device\n assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -> 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 -> device.identifier;\n assignedAuthoringDevice.code -> device.type;\n assignedAuthoringDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n assignedAuthoringDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n } "Device";\n };\n };\n // participant person\n obs.participant as participant where (typeCode != 'DEV') -> ob.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n participant -> encounter.participant as FhirParticipant then {\n participant as p -> FhirParticipant.type as type then {\n p -> type.coding as coding then {\n p -> coding.code = (p.typeCode) "codice";\n p -> coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' "system";\n } "codeType";\n } "type";\n } "fhirParticipant";\n participant.participantRole as participantRole -> 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 -> participant1.period;\n participant.time as time1 -> participant1.period = create('Period') as period then {\n time1 -> period.start = create('dateTime') as start then TSDateTime(time1, start) "val";\n };\n participant.time as time1 -> participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n participant.functionCode -> practitionerRole.code;\n // non mappa i 2 precedenti\n participantRole -> bundle.entry as e13, e13.request = create('BackboneElement') as request, request.method = 'PUT', e13.resource = create('Practitioner') as practitioner then {\n participantRole -> practitioner.meta as meta then {\n participantRole -> meta.tag = create('Coding') as coding then {\n participantRole -> coding.system = 'http://algoritmodiscoring' "system";\n participantRole -> coding.code = 'ClinicalDocument/body/observation/participant' "code";\n } "coding";\n } "meta";\n participantRole.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n participantRole -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n participantRole.code -> practitionerRole.code;\n participantRole.addr -> practitioner.address;\n participantRole.telecom -> practitioner.telecom;\n participantRole.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n playingEntity.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "practitioner";\n } "partRole";\n } "participantEncounter";\n // participant device\n obs.participant as devParticipant where (typeCode = 'DEV') -> 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 -> device.type;\n playingDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n playingDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n };\n } "participantRoleDev";\n } "devParticipant";\n // observationMedia\n obs.entryRelationship as er then {\n er.observationMedia as obsMedia -> 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 -> media1.content = create('Attachment') as Attachment then {\n obsMedia -> media1.status = 'unknown' "status";\n obsMedia.value as valueMedia then {\n valueMedia.mediaType as type -> Attachment.contentType = type "type";\n valueMedia -> Attachment.data = (valueMedia.dataBase64Binary) "data";\n } "valuemedia";\n } "Attachment";\n } "media";\n } "observationMedia";\n // referenceRange\n obs.referenceRange as refRange -> ob.referenceRange = create('BackboneElement') as ref then {\n refRange.observationRange as obsRange then {\n obsRange.value : ST as value -> ref.text = create('string'), ref.text = (value.dataString);\n obsRange -> 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 -> Low.value = decValue;\n l1.unit as Unit -> Low.unit = Unit;\n } "decValue";\n v -> ref.high = create('Quantity') as high then {\n v.high as h1 then {\n h1.value as decValue1 -> high.value = decValue1;\n h1.unit as Unit1 -> high.unit = Unit1;\n } "decValue";\n } "high";\n } "IVL-PQ";\n obsRange.interpretationCode -> ref.type;\n obsRange.precondition as precondition then {\n precondition.criterion as criterion then {\n criterion.code -> ref.appliesTo "appliesTo";\n criterion.value : IVL_PQ as v then {\n v.high as l1 then {\n l1 -> ref.age = create('Quantity') as age then {\n l1 -> age.high as high then {\n l1.value as decValue -> high.value = decValue;\n l1.unit as Unit1 -> high.unit = Unit1;\n } "high";\n } "age";\n } "low";\n } "v";\n };\n };\n } "obsRange";\n } "refRange";\n } "ref";\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 -> ob.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> ob.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n obs.code -> ob.code;\n obs.statusCode as statusc where (code = 'completed') -> ob.status = 'final';\n obs.statusCode as statusc where (code = 'active') -> ob.status = 'registered';\n obs.statusCode as statusc where (code = 'aborted') -> ob.status = 'cancelled';\n obs.statusCode as statusc where (code = 'suspended') -> ob.status = 'partial';\n obs.effectiveTime as effectiveTime -> ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2";\n obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n obs.effectiveTime as eff -> ob.effective = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n obs.interpretationCode -> ob.interpretation;\n obs.methodCode -> ob.method;\n obs.value : INT as int -> ob.value = (int.value);\n obs.value : BL as boolean -> ob.value = (boolean.value) "boolean";\n obs.value : CE as val then {\n val -> ob.value = create('CodeableConcept') as ce then {\n val.originalText as originalText then {\n originalText.reference as reference -> ce.text = reference;\n } "originltext";\n val -> ce.coding as coding then {\n val.code as code -> coding.code = cast(code, 'string');\n val.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n val.displayName as display -> coding.display = cast(display, 'string');\n val.codeSystemVersion as version -> coding.version = cast(version, 'string');\n } "code";\n val.translation as translation -> ce.coding as coding then {\n translation.code as code -> coding.code = cast(code, 'string');\n translation.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n translation.displayName as display -> coding.display = cast(display, 'string');\n translation.codeSystemVersion as version -> coding.version = cast(version, 'string');\n translation.qualifier as qualifier then {\n qualifier.value as value -> ce.coding as coding then {\n value.code as code -> coding.code = cast(code, 'string');\n value.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n value.displayName as display -> coding.display = cast(display, 'string');\n value.codeSystemVersion as version -> coding.version = cast(version, 'string');\n };\n };\n };\n } "coding";\n } "val";\n obs.value : PQ as val then {\n val -> ob.value = create('Quantity') as quantity then {\n val.value as value -> quantity.value = value;\n val.unit as unit -> quantity.unit = unit;\n } "quantity";\n } "valueQuantity";\n obs.value : ST as value -> 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 -> ob.note as note then {\n reference -> note.text = (reference.value) "reference";\n };\n };\n } "Act";\n };\n // subject\n obs.subject as sbj then {\n sbj.relatedSubject as relatedSubj -> 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) -> 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 -> specimen.parent = create('Reference') as reference, reference.reference = ('https://example/Specimen/' + %specimenp.id) "reference";\n spr.id -> specimen.identifier;\n specimenRole.specimenPlayingEntity as spent then {\n spent.code -> specimen.type;\n } "ent";\n spr.specimenPlayingEntity as specimenPlayingEntity then {\n specimenPlayingEntity.code -> specimen.type;\n };\n a -> specimen.collection = create('BackboneElement') as collection then {\n a.effectiveTime as effectivetime -> collection.collected = create('dateTime') as value then TSDateTime(effectivetime, value) "value";\n a where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n a.effectiveTime as eff -> collection.collected = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n a.participant as participant -> 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 -> practitioner.meta as meta then {\n participantRole -> meta.tag = create('Coding') as coding then {\n participantRole -> coding.system = 'http://algoritmodiscoring' "system";\n participantRole -> coding.code = 'ClinicalDocument/body/act/participant' "code";\n } "coding";\n } "meta";\n participantRole.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n participantRole -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n } "identifier";\n participantRole.addr -> practitioner.address;\n participantRole.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n };\n };\n };\n } "collection";\n } "cont";\n } "spr";\n } "sp";\n } "a";\n } "en";\n } "extobs";\n };\n };\n };\n } "conditionactexists";\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 -> 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 -> specimen.identifier;\n specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n specimenPlayingEntity.code -> specimen.type;\n };\n };\n };\n } "wherenotexists";\n // performer\n obs.performer as performer -> 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 -> ob.performer = create('Reference') as reference, reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n performer.assignedEntity as entity then {\n entity.code -> practitionerRole.code;\n entity -> bundle.entry as e2, e2.request = create('BackboneElement') as request, request.method = 'PUT', e2.resource = create('Practitioner') as practitioner then {\n entity -> practitioner.meta as meta then {\n entity -> meta.tag = create('Coding') as coding then {\n entity -> coding.system = 'http://algoritmodiscoring' "system";\n entity -> coding.code = 'ClinicalDocument/body/observation/performer' "code";\n } "coding";\n } "meta";\n entity.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n entity -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "performer";\n } "r";\n } "identifier";\n entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n entity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n entity.addr -> practitioner.address;\n entity.telecom -> practitioner.telecom;\n entity.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n // organization\n entity.representedOrganization as representedOrganization -> bundle.entry as e3, e3.request = create('BackboneElement') as request, request.method = 'PUT', e3.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e4, e4.request = create('BackboneElement') as request, e4.resource = create('Organization') as organization1, request.method = 'PUT' then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e5, e5.request = create('BackboneElement') as request, request.method = 'PUT', e5.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n } "practitioner";\n } "entity";\n } "practitionerRole";\n };\n // author\n obs.author as srcAuthor -> 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 -> practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n assignedAuthor -> 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 -> practitionerRole.code;\n assignedAuthor -> practitioner.meta as meta then {\n assignedAuthor -> meta.tag = create('Coding') as coding then {\n assignedAuthor -> coding.system = 'http://algoritmodiscoring' "system";\n assignedAuthor -> coding.code = 'ClinicalDocument/body/observation/author' "code";\n } "coding";\n } "meta";\n assignedAuthor.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n assignedAuthor -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n } "identifier";\n assignedAuthor.addr -> practitioner.address;\n assignedAuthor.telecom -> practitioner.telecom;\n // person\n assignedAuthor.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "ASSAUth";\n // organization\n assignedAuthor.representedOrganization as representedOrganization -> bundle.entry as e8, e8.request = create('BackboneElement') as request, request.method = 'PUT', e8.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e9, e9.request = create('BackboneElement') as request, request.method = 'PUT', e9.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e10, e10.request = create('BackboneElement') as request, request.method = 'PUT', e10.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n // device\n assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -> 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 -> device.identifier;\n assignedAuthoringDevice.code -> device.type;\n assignedAuthoringDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n assignedAuthoringDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n } "Device";\n };\n };\n // participant person\n obs.participant as participant where (typeCode != 'DEV') -> ob.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n participant -> encounter.participant as FhirParticipant then {\n participant as p -> FhirParticipant.type as type then {\n p -> type.coding as coding then {\n p -> coding.code = (p.typeCode) "codice";\n p -> coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' "system";\n } "codeType";\n } "type";\n } "fhirParticipant";\n participant.participantRole as participantRole -> 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 -> participant1.period;\n participant.time as time1 -> participant1.period = create('Period') as period then {\n time1 -> period.start = create('dateTime') as start then TSDateTime(time1, start) "val";\n };\n participant.time as time1 -> participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n participant.functionCode -> practitionerRole.code;\n // non mappa i 2 precedenti\n participantRole -> bundle.entry as e13, e13.request = create('BackboneElement') as request, request.method = 'PUT', e13.resource = create('Practitioner') as practitioner then {\n participantRole -> practitioner.meta as meta then {\n participantRole -> meta.tag = create('Coding') as coding then {\n participantRole -> coding.system = 'http://algoritmodiscoring' "system";\n participantRole -> coding.code = 'ClinicalDocument/body/observation/participant' "code";\n } "coding";\n } "meta";\n participantRole.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n participantRole -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n participantRole.code -> practitionerRole.code;\n participantRole.addr -> practitioner.address;\n participantRole.telecom -> practitioner.telecom;\n participantRole.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n playingEntity.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "practitioner";\n } "partRole";\n } "participantEncounter";\n // participant device\n obs.participant as devParticipant where (typeCode = 'DEV') -> 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 -> device.type;\n playingDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n playingDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n };\n } "participantRoleDev";\n } "devParticipant";\n // observationMedia\n obs.entryRelationship as er then {\n er.observationMedia as obsMedia -> 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 -> media1.content = create('Attachment') as Attachment then {\n obsMedia -> media1.status = 'unknown' "status";\n obsMedia.value as valueMedia then {\n valueMedia.mediaType as type -> Attachment.contentType = type "type";\n valueMedia -> Attachment.data = (valueMedia.dataBase64Binary) "data";\n } "valuemedia";\n } "Attachment";\n } "media";\n } "observationMedia";\n // referenceRange\n obs.referenceRange as refRange -> ob.referenceRange = create('BackboneElement') as ref then {\n refRange.observationRange as obsRange then {\n obsRange.value : ST as value -> ref.text = create('string'), ref.text = (value.dataString);\n obsRange -> 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 -> Low.value = decValue;\n l1.unit as Unit -> Low.unit = Unit;\n } "decValue";\n v -> ref.high = create('Quantity') as high then {\n v.high as h1 then {\n h1.value as decValue1 -> high.value = decValue1;\n h1.unit as Unit1 -> high.unit = Unit1;\n } "decValue";\n } "high";\n } "IVL-PQ";\n obsRange.interpretationCode -> ref.type;\n obsRange.precondition as precondition then {\n precondition.criterion as criterion then {\n criterion.code -> ref.appliesTo "appliesTo";\n criterion.value : IVL_PQ as v then {\n v.high as l1 then {\n l1 -> ref.age = create('Quantity') as age then {\n l1 -> age.high as high then {\n l1.value as decValue -> high.value = decValue;\n l1.unit as Unit1 -> high.unit = Unit1;\n } "high";\n } "age";\n } "low";\n } "v";\n };\n };\n } "obsRange";\n } "refRange";\n } "ref";\n}\n\ngroup Observation3(source obs : Observation, target patient : Patient, target encounter : Encounter, target ob : Observation, target bundle : Bundle, source cda : Act) {\n obs -> ob.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> ob.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n obs.code -> ob.code;\n obs.statusCode as statusc where (code = 'completed') -> ob.status = 'final';\n obs.statusCode as statusc where (code = 'active') -> ob.status = 'registered';\n obs.statusCode as statusc where (code = 'aborted') -> ob.status = 'cancelled';\n obs.statusCode as statusc where (code = 'suspended') -> ob.status = 'partial';\n obs.effectiveTime as effectiveTime -> ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2";\n obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n obs.effectiveTime as eff -> ob.effective = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n obs.interpretationCode -> ob.interpretation;\n obs.methodCode -> ob.method;\n obs.value : INT as int -> ob.value = (int.value);\n obs.value : BL as boolean -> ob.value = (boolean.value) "boolean";\n obs.value : CE as val then {\n val -> ob.value = create('CodeableConcept') as ce then {\n val.originalText as originalText then {\n originalText.reference as reference -> ce.text = reference;\n } "originltext";\n val -> ce.coding as coding then {\n val.code as code -> coding.code = cast(code, 'string');\n val.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n val.displayName as display -> coding.display = cast(display, 'string');\n val.codeSystemVersion as version -> coding.version = cast(version, 'string');\n } "code";\n val.translation as translation -> ce.coding as coding then {\n translation.code as code -> coding.code = cast(code, 'string');\n translation.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n translation.displayName as display -> coding.display = cast(display, 'string');\n translation.codeSystemVersion as version -> coding.version = cast(version, 'string');\n translation.qualifier as qualifier then {\n qualifier.value as value -> ce.coding as coding then {\n value.code as code -> coding.code = cast(code, 'string');\n value.codeSystem as system -> coding.system = translate(system, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri');\n value.displayName as display -> coding.display = cast(display, 'string');\n value.codeSystemVersion as version -> coding.version = cast(version, 'string');\n };\n };\n };\n } "coding";\n } "val";\n obs.value : PQ as val then {\n val -> ob.value = create('Quantity') as quantity then {\n val.value as value -> quantity.value = value;\n val.unit as unit -> quantity.unit = unit;\n } "quantity";\n } "valueQuantity";\n obs.value : ST as value -> 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 -> ob.note as note then {\n reference -> note.text = (reference.value) "reference";\n };\n };\n } "Act";\n };\n // subject\n obs.subject as sbj then {\n sbj.relatedSubject as relatedSubj -> patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n };\n // specimen\n obs.specimen as spmn -> 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 -> specimen.identifier;\n specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n specimenPlayingEntity.code -> specimen.type;\n };\n };\n };\n // performer\n obs.performer as performer -> 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 -> ob.performer = create('Reference') as reference, reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n performer.assignedEntity as entity then {\n entity.code -> practitionerRole.code;\n entity -> bundle.entry as e2, e2.request = create('BackboneElement') as request, request.method = 'PUT', e2.resource = create('Practitioner') as practitioner then {\n entity -> practitioner.meta as meta then {\n entity -> meta.tag = create('Coding') as coding then {\n entity -> coding.system = 'http://algoritmodiscoring' "system";\n entity -> coding.code = 'ClinicalDocument/body/observation/performer' "code";\n } "coding";\n } "meta";\n entity.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n entity -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "performer";\n } "r";\n } "identifier";\n entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n entity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n entity.addr -> practitioner.address;\n entity.telecom -> practitioner.telecom;\n entity.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n // organization\n entity.representedOrganization as representedOrganization -> bundle.entry as e3, e3.request = create('BackboneElement') as request, request.method = 'PUT', e3.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e4, e4.request = create('BackboneElement') as request, e4.resource = create('Organization') as organization1, request.method = 'PUT' then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e5, e5.request = create('BackboneElement') as request, request.method = 'PUT', e5.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/observation/performer/representedOrganization/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n } "practitioner";\n } "entity";\n } "practitionerRole";\n };\n // author\n obs.author as srcAuthor -> 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 -> practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n assignedAuthor -> 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 -> practitionerRole.code;\n assignedAuthor -> practitioner.meta as meta then {\n assignedAuthor -> meta.tag = create('Coding') as coding then {\n assignedAuthor -> coding.system = 'http://algoritmodiscoring' "system";\n assignedAuthor -> coding.code = 'ClinicalDocument/body/observation/author' "code";\n } "coding";\n } "meta";\n assignedAuthor.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n assignedAuthor -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n } "identifier";\n assignedAuthor.addr -> practitioner.address;\n assignedAuthor.telecom -> practitioner.telecom;\n // person\n assignedAuthor.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "ASSAUth";\n // organization\n assignedAuthor.representedOrganization as representedOrganization -> bundle.entry as e8, e8.request = create('BackboneElement') as request, request.method = 'PUT', e8.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e9, e9.request = create('BackboneElement') as request, request.method = 'PUT', e9.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e10, e10.request = create('BackboneElement') as request, request.method = 'PUT', e10.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/observation/author/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n // device\n assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -> 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 -> device.identifier;\n assignedAuthoringDevice.code -> device.type;\n assignedAuthoringDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n assignedAuthoringDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n } "Device";\n };\n };\n // participant person\n obs.participant as participant where (typeCode != 'DEV') -> ob.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n participant -> encounter.participant as FhirParticipant then {\n participant as p -> FhirParticipant.type as type then {\n p -> type.coding as coding then {\n p -> coding.code = (p.typeCode) "codice";\n p -> coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' "system";\n } "codeType";\n } "type";\n } "fhirParticipant";\n participant.participantRole as participantRole -> 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 -> participant1.period;\n participant.time as time1 -> participant1.period = create('Period') as period then {\n time1 -> period.start = create('dateTime') as start then TSDateTime(time1, start) "val";\n };\n participant.time as time1 -> participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n participant.functionCode -> practitionerRole.code;\n // non mappa i 2 precedenti\n participantRole -> bundle.entry as e13, e13.request = create('BackboneElement') as request, request.method = 'PUT', e13.resource = create('Practitioner') as practitioner then {\n participantRole -> practitioner.meta as meta then {\n participantRole -> meta.tag = create('Coding') as coding then {\n participantRole -> coding.system = 'http://algoritmodiscoring' "system";\n participantRole -> coding.code = 'ClinicalDocument/body/observation/participant' "code";\n } "coding";\n } "meta";\n participantRole.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n participantRole -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n participantRole.code -> practitionerRole.code;\n participantRole.addr -> practitioner.address;\n participantRole.telecom -> practitioner.telecom;\n participantRole.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n playingEntity.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "practitioner";\n } "partRole";\n } "participantEncounter";\n // participant device\n obs.participant as devParticipant where (typeCode = 'DEV') -> 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 -> device.type;\n playingDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n playingDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n };\n } "participantRoleDev";\n } "devParticipant";\n // observationMedia\n obs.entryRelationship as er then {\n er.observationMedia as obsMedia -> 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 -> media1.content = create('Attachment') as Attachment then {\n obsMedia -> media1.status = 'unknown' "status";\n obsMedia.value as valueMedia then {\n valueMedia.mediaType as type -> Attachment.contentType = type "type";\n valueMedia -> Attachment.data = (valueMedia.dataBase64Binary) "data";\n } "valuemedia";\n } "Attachment";\n } "media";\n } "observationMedia";\n // referenceRange\n obs.referenceRange as refRange -> ob.referenceRange = create('BackboneElement') as ref then {\n refRange.observationRange as obsRange then {\n obsRange.value : ST as value -> ref.text = create('string'), ref.text = (value.dataString);\n obsRange -> 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 -> Low.value = decValue;\n l1.unit as Unit -> Low.unit = Unit;\n } "decValue";\n v -> ref.high = create('Quantity') as high then {\n v.high as h1 then {\n h1.value as decValue1 -> high.value = decValue1;\n h1.unit as Unit1 -> high.unit = Unit1;\n } "decValue";\n } "high";\n } "IVLPQ";\n obsRange.interpretationCode -> ref.type;\n obsRange.precondition as precondition then {\n precondition.criterion as criterion then {\n criterion.code -> ref.appliesTo "appliesTo";\n criterion.value : IVL_PQ as v then {\n v.high as l1 then {\n l1 -> ref.age = create('Quantity') as age then {\n l1 -> age.high as high then {\n l1.value as decValue -> high.value = decValue;\n l1.unit as Unit1 -> high.unit = Unit1;\n } "high";\n } "age";\n } "low";\n } "v";\n };\n };\n } "obsRange";\n } "refRange";\n } "ref";\n}\n\ngroup Act(source cda : Act, target pat : Patient, target ac : DiagnosticReport, target enc : Encounter, target bundle : Bundle) {\n cda.code -> ac.code;\n cda where cda.statusCode.exists().not() then {\n cda -> ac.status = 'final' "statuscode";\n } "status";\n cda.statusCode as statusc where (code = 'completed') -> ac.status = 'final';\n cda.statusCode as statusc where (code = 'active') -> ac.status = 'registered';\n cda.statusCode as statusc where (code = 'aborted') -> ac.status = 'cancelled';\n cda.statusCode as statusc where (code = 'suspended') -> ac.status = 'partial';\n cda.effectiveTime as effectiveTime -> ac.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value3";\n cda where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n cda.effectiveTime as eff -> ac.effective = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n cda -> ac.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %pat.id) "reference";\n cda -> ac.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n // specimen\n cda where cda.specimen.exists() then {\n cda.specimen as src -> 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 -> specimen.identifier;\n specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n specimenPlayingEntity.code -> specimen.type;\n };\n } "SpecimenRole";\n src -> specimen.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n cda.entryRelationship as entryRelationship then {\n entryRelationship.observation as observation then {\n observation -> 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) "ORG";\n // procedure\n cda.entryRelationship as entryRelationship1 then {\n entryRelationship1.procedure as proc -> 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 -> procedure.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n proc -> procedure.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n proc where proc.statusCode.exists().not() then {\n proc -> procedure.status = 'unknown' "statuscode";\n } "status";\n proc.statusCode as statusc where (code = 'completed') -> procedure.status = 'completed';\n proc.statusCode as statusc where (code = 'active') -> procedure.status = 'in-progress';\n proc.statusCode as statusc where (code = 'aborted') -> procedure.status = 'stopped';\n proc.statusCode as statusc where (code = 'suspended') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'cancelled') -> procedure.status = 'not-done';\n proc.statusCode as statusc where (code = 'held') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'new') -> procedure.status = 'preparation';\n proc.statusCode as statusc where (code = 'obsolete') -> procedure.status = 'entered-in-error';\n proc.statusCode as statusc where (code = 'nullified') -> procedure.status = 'unknown';\n proc.effectiveTime as effectiveTime -> procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) "datetime";\n proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n proc.effectiveTime as eff -> procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n proc.targetSiteCode -> procedure.bodySite;\n };\n } "entryRelationshipprocedure";\n } "obs";\n };\n entryRelationship.organizer as organizer then {\n organizer -> 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) "ORG";\n // procedure\n cda.entryRelationship as entryRelationship1 then {\n entryRelationship1.procedure as proc -> 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 -> procedure.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n proc -> procedure.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n proc where proc.statusCode.exists().not() then {\n proc -> procedure.status = 'unknown' "statuscode";\n } "status";\n proc.statusCode as statusc where (code = 'completed') -> procedure.status = 'completed';\n proc.statusCode as statusc where (code = 'active') -> procedure.status = 'in-progress';\n proc.statusCode as statusc where (code = 'aborted') -> procedure.status = 'stopped';\n proc.statusCode as statusc where (code = 'suspended') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'cancelled') -> procedure.status = 'not-done';\n proc.statusCode as statusc where (code = 'held') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'new') -> procedure.status = 'preparation';\n proc.statusCode as statusc where (code = 'obsolete') -> procedure.status = 'entered-in-error';\n proc.statusCode as statusc where (code = 'nullified') -> procedure.status = 'unknown';\n proc.effectiveTime as effectiveTime -> procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) "datetime";\n proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n proc.effectiveTime as eff -> procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n proc.targetSiteCode -> procedure.bodySite;\n } "pbservation";\n } "entryRelationshiprocedure";\n } "Organizer";\n };\n } "entryRelationshipobservation";\n };\n } "exist";\n cda where cda.specimen.exists().not() then {\n // 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 {\n cda.entryRelationship as entryRelationship then {\n entryRelationship.observation as observation then {\n observation -> 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) "ORG";\n // procedure\n cda.entryRelationship as entryRelationship1 then {\n entryRelationship1.procedure as proc -> 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 -> procedure.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n proc -> procedure.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n proc where proc.statusCode.exists().not() then {\n proc -> procedure.status = 'unknown' "statuscode";\n } "status";\n proc.statusCode as statusc where (code = 'completed') -> procedure.status = 'completed';\n proc.statusCode as statusc where (code = 'active') -> procedure.status = 'in-progress';\n proc.statusCode as statusc where (code = 'aborted') -> procedure.status = 'stopped';\n proc.statusCode as statusc where (code = 'suspended') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'cancelled') -> procedure.status = 'not-done';\n proc.statusCode as statusc where (code = 'held') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'new') -> procedure.status = 'preparation';\n proc.statusCode as statusc where (code = 'obsolete') -> procedure.status = 'entered-in-error';\n proc.statusCode as statusc where (code = 'nullified') -> procedure.status = 'unknown';\n proc.effectiveTime as effectiveTime -> procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) "datetime";\n proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n proc.effectiveTime as eff -> procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n proc.targetSiteCode -> procedure.bodySite;\n };\n } "entryRelationshipprocedure";\n } "obs";\n };\n entryRelationship.organizer as organizer then {\n organizer -> 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) "ORG";\n // procedure\n cda.entryRelationship as entryRelationship1 then {\n entryRelationship1.procedure as proc -> 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 -> procedure.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n proc -> procedure.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n proc where proc.statusCode.exists().not() then {\n proc -> procedure.status = 'unknown' "statuscode";\n } "status";\n proc.statusCode as statusc where (code = 'completed') -> procedure.status = 'completed';\n proc.statusCode as statusc where (code = 'active') -> procedure.status = 'in-progress';\n proc.statusCode as statusc where (code = 'aborted') -> procedure.status = 'stopped';\n proc.statusCode as statusc where (code = 'suspended') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'cancelled') -> procedure.status = 'not-done';\n proc.statusCode as statusc where (code = 'held') -> procedure.status = 'on-hold';\n proc.statusCode as statusc where (code = 'new') -> procedure.status = 'preparation';\n proc.statusCode as statusc where (code = 'obsolete') -> procedure.status = 'entered-in-error';\n proc.statusCode as statusc where (code = 'nullified') -> procedure.status = 'unknown';\n proc.effectiveTime as effectiveTime -> procedure.performed = create('dateTime') as value then TSDateTime(effectiveTime, value) "datetime";\n proc where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n proc.effectiveTime as eff -> procedure.performed = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n proc.targetSiteCode -> procedure.bodySite;\n } "pbservation";\n } "entryRelationshiprocedure";\n } "Organizer";\n };\n } "entryRelationshipobservation";\n } "existnot";\n // PARTICIPANT\n cda.participant as part where (typeCode != 'DEV') -> enc.participant as participant then {\n part -> participant.type as type then {\n part -> type.coding as coding then {\n part -> coding.code = (part.typeCode) "codice";\n part -> coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' "system";\n } "codeType";\n } "type";\n part.participantRole as participantRole -> participant.individual = create('Reference') as reference then {\n participantRole -> 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 -> participant.period = create('Period') as period then {\n time1 -> period.start = create('dateTime') as start then TSDateTime(time1, start) "val";\n };\n part.time as time1 -> participant.period = create('Period') as period then IVLTSPeriod(time1, period);\n participantRole -> practitioner.meta as meta then {\n participantRole -> meta.tag = create('Coding') as coding then {\n participantRole -> coding.system = 'http://algoritmodiscoring' "system";\n participantRole -> coding.code = 'ClinicalDocument/body/act/participant' "code";\n } "coding";\n } "meta";\n participantRole.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n participantRole -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> practitioner.id = (r + '-' + ext) as uuid4, e.fullUrl = append('https://example/Practitioner/', uuid4), reference.reference = ('https://example/Practitioner/' + %practitioner.id) "org";\n } "r";\n } "identifier";\n participantRole.addr -> practitioner.address;\n participantRole.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n };\n } "participanRoleBund";\n };\n };\n // PERFORMER\n cda.performer as performer -> 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 -> practitionerRole.code;\n assignedEntity -> bundle.entry as e2, e2.request = create('BackboneElement') as request, request.method = 'PUT', e2.resource = create('Practitioner') as practitioner then {\n assignedEntity.code -> practitionerRole.code;\n assignedEntity -> practitioner.meta as meta then {\n assignedEntity -> meta.tag = create('Coding') as coding then {\n assignedEntity -> coding.system = 'http://algoritmodiscoring' "system";\n assignedEntity -> coding.code = 'ClinicalDocument/body/act/performer' "code";\n } "coding";\n } "meta";\n assignedEntity.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n assignedEntity -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "pra";\n } "r";\n } "identifier";\n assignedEntity.addr -> practitioner.address;\n assignedEntity.telecom -> practitioner.telecom;\n assignedEntity.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "ASSAUth";\n assignedEntity.representedOrganization as representedOrganization -> bundle.entry as e3, e3.request = create('BackboneElement') as request, request.method = 'PUT', e3.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/act/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e4, e4.request = create('BackboneElement') as request, request.method = 'PUT', e4.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/act/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e10bis, e10bis.request = create('BackboneElement') as request, request.method = 'PUT', e10bis.resource = create('Organization') as organization2 then {\n OrgPartOf -> organization2.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/act/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n } "performer";\n };\n // AUTHOR\n cda.author as srcAuthor -> 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 -> practitionerRole.code;\n assignedAuthor -> bundle.entry as e7, e7.request = create('BackboneElement') as request, request.method = 'PUT', e7.resource = create('Practitioner') as practitioner then {\n srcAuthor.functionCode -> practitionerRole.code;\n assignedAuthor.code -> practitionerRole.code;\n assignedAuthor -> practitioner.meta as meta then {\n assignedAuthor -> meta.tag = create('Coding') as coding then {\n assignedAuthor -> coding.system = 'http://algoritmodiscoring' "system";\n assignedAuthor -> coding.code = 'ClinicalDocument/body/act/author' "code";\n } "coding";\n } "meta";\n assignedAuthor.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n assignedAuthor -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n assignedAuthor.addr -> practitioner.address;\n assignedAuthor.telecom -> practitioner.telecom;\n // person\n assignedAuthor.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "ASSAUth";\n // organization\n assignedAuthor.representedOrganization as representedOrganization -> bundle.entry as e8, e8.request = create('BackboneElement') as request, request.method = 'PUT', e8.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/act/author/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e9, e9.request = create('BackboneElement') as request, request.method = 'PUT', e9.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/act/author/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e10, e10.request = create('BackboneElement') as request, request.method = 'PUT', e10.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/act/author/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n } "author";\n };\n // <!--entryRelationship per la gestione delle note e commenti-->\n cda.entryRelationship as entryRelationship then {\n entryRelationship.act as act then {\n act.text as text then {\n text.reference as reference -> ac.conclusion = (reference.value);\n };\n } "Act";\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 -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n org -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n org.code -> observation.code;\n org where org.code.exists().not() then {\n cda.code -> observation.code;\n } "act";\n org.statusCode as statusc where (code = 'completed') -> observation.status = 'final';\n org.statusCode as statusc where (code = 'active') -> observation.status = 'registered';\n org.statusCode as statusc where (code = 'aborted') -> observation.status = 'cancelled';\n org.statusCode as statusc where (code = 'suspended') -> observation.status = 'partial';\n org.effectiveTime as effectiveTime -> observation.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2";\n org where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n org.effectiveTime as eff -> observation.effective = create('Period') as period then IVLTSPeriod(eff, period);\n } "where";\n // specimen\n org.specimen as spmn -> 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 -> specimen.identifier;\n specimenRole.specimenPlayingEntity as specimenPlayingEntity then {\n specimenPlayingEntity.code -> specimen.type;\n };\n };\n };\n // subject\n org.subject as sbj then {\n sbj.relatedSubject as relatedSubj -> patient.extension as extension2 then ExtSubjectAnimal(relatedSubj, extension2);\n };\n // performer\n org.performer as performer -> 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 -> observation.performer = create('Reference') as reference, reference.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) then {\n performer.assignedEntity as entity then {\n entity.code -> practitionerRole.code;\n entity -> bundle.entry as e2, e2.request = create('BackboneElement') as request, request.method = 'PUT', e2.resource = create('Practitioner') as practitioner then {\n entity -> practitioner.meta as meta then {\n entity -> meta.tag = create('Coding') as coding then {\n entity -> coding.system = 'http://algoritmodiscoring' "system";\n entity -> coding.code = 'ClinicalDocument/body/organizer/performer' "code";\n } "coding";\n } "meta";\n entity.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n entity -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n entity.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n entity.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n entity.addr -> practitioner.address;\n entity.telecom -> practitioner.telecom;\n entity.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n entity.representedOrganization as representedOrganization -> bundle.entry as e3, e3.request = create('BackboneElement') as request, request.method = 'PUT', e3.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/organizer/performer/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e4, e4.request = create('BackboneElement') as request, request.method = 'PUT', e4.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/organizer/performer/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e5, e5.request = create('BackboneElement') as request, request.method = 'PUT', e5.resource = create('Organization') as organization2 then {\n wholeOrgan -> organization2.meta as meta then {\n wholeOrgan -> meta.tag = create('Coding') as coding then {\n wholeOrgan -> coding.system = 'http://algoritmodiscoring' "system";\n wholeOrgan -> coding.code = 'ClinicalDocument/body/organizer/performer/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "org";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n } "practitioner";\n } "entity";\n } "practitionerRole";\n };\n // author\n org.author as srcAuthor -> 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 -> tgt.date;\n srcAuthor.assignedAuthor as assignedAuthor then {\n assignedAuthor.code as codice -> practitionerRole.code as code2 then CECodeableConcept(codice, code2);\n assignedAuthor -> bundle.entry as e7, e7.request = create('BackboneElement') as request, request.method = 'PUT', e7.resource = create('Practitioner') as practitioner then {\n srcAuthor.functionCode -> practitionerRole.code;\n // assignedAuthor.code -> practitionerRole.code;\n assignedAuthor -> practitioner.meta as meta then {\n assignedAuthor -> meta.tag = create('Coding') as coding then {\n assignedAuthor -> coding.system = 'http://algoritmodiscoring' "system";\n assignedAuthor -> coding.code = 'ClinicalDocument/body/organizer/author' "code";\n } "coding";\n } "meta";\n assignedAuthor.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n assignedAuthor -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n assignedAuthor.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n assignedAuthor.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n assignedAuthor.addr -> practitioner.address;\n assignedAuthor.telecom -> practitioner.telecom;\n // person\n assignedAuthor.assignedPerson as person then {\n person.name -> practitioner.name;\n person.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "ASSAUth";\n // organization\n assignedAuthor.representedOrganization as representedOrganization -> bundle.entry as e8, e8.request = create('BackboneElement') as request, request.method = 'PUT', e8.resource = create('Organization') as organization then {\n representedOrganization -> organization.meta as meta then {\n representedOrganization -> meta.tag = create('Coding') as coding then {\n representedOrganization -> coding.system = 'http://algoritmodiscoring' "system";\n representedOrganization -> coding.code = 'ClinicalDocument/body/organizer/author/representedOrganization' "code";\n } "coding";\n } "meta";\n representedOrganization.id as id -> organization.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n representedOrganization -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n representedOrganization.name as v -> organization.name = (v.other);\n representedOrganization.telecom -> organization.telecom;\n representedOrganization.addr -> organization.address;\n representedOrganization.asOrganizationPartOf as OrgPartOf -> bundle.entry as e9, e9.request = create('BackboneElement') as request, request.method = 'PUT', e9.resource = create('Organization') as organization1 then {\n OrgPartOf -> organization1.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/organizer/author/representedOrganization/asOrganizationPartOf' "code";\n } "coding";\n } "meta";\n OrgPartOf.id as id -> organization1.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n OrgPartOf -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n OrgPartOf.code -> organization1.type;\n OrgPartOf.statusCode as status where (value = 'active') -> organization1.active = create('boolean'), organization1.active = 'true';\n OrgPartOf.wholeOrganization as wholeOrgan -> bundle.entry as e10, e10.request = create('BackboneElement') as request, request.method = 'PUT', e10.resource = create('Organization') as organization2 then {\n OrgPartOf -> organization2.meta as meta then {\n OrgPartOf -> meta.tag = create('Coding') as coding then {\n OrgPartOf -> coding.system = 'http://algoritmodiscoring' "system";\n OrgPartOf -> coding.code = 'ClinicalDocument/body/organizer/author/representedOrganization/asOrganizationPartOf/wholeOrganization' "code";\n } "coding";\n } "meta";\n wholeOrgan.id as id -> organization2.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n wholeOrgan -> request.url = append('Organization?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "aut";\n } "r";\n } "identifier";\n wholeOrgan.name as v -> organization2.name = (v.other);\n wholeOrgan.telecom -> organization2.telecom;\n wholeOrgan.addr -> organization2.address;\n };\n } "OrgPartOf";\n };\n // device\n assignedAuthor.assignedAuthoringDevice as assignedAuthoringDevice -> 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 -> device.identifier;\n assignedAuthoringDevice.code -> device.type;\n assignedAuthoringDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n assignedAuthoringDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n } "Device";\n };\n };\n // participant person\n org.participant as participant where (typeCode != 'DEV') -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) then {\n participant -> encounter.participant as FhirParticipant then {\n participant as p -> FhirParticipant.type as type then {\n p -> type.coding as coding then {\n p -> coding.code = (p.typeCode) "codice";\n p -> coding.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType' "system";\n } "codeType";\n } "type";\n } "fhirParticipant";\n participant.participantRole as participantRole -> 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 -> participant1.period;\n participant.time as time1 -> participant1.period = create('Period') as period then {\n time1 -> period.start = create('dateTime') as start then TSDateTime(time1, start) "val";\n };\n participant.time as time1 -> participant1.period = create('Period') as period then IVLTSPeriod(time1, period);\n participant.functionCode -> practitionerRole.code;\n // non mappa i 2 precedenti\n participantRole -> bundle.entry as e13, e13.request = create('BackboneElement') as request, request.method = 'PUT', e13.resource = create('Practitioner') as practitioner then {\n participantRole -> participant1.individual = create('Reference') as referencepart, referencepart.reference = ('https://example/PractitionerRole/' + %practitionerRole.id) "par";\n participantRole -> practitioner.meta as meta then {\n participantRole -> meta.tag = create('Coding') as coding then {\n participantRole -> coding.system = 'http://algoritmodiscoring' "system";\n participantRole -> coding.code = 'ClinicalDocument/body/organizer/participant' "code";\n } "coding";\n } "meta";\n participantRole.id as id -> practitioner.identifier as identifier then {\n id.root as r -> identifier.system = translate(r, 'http://hl7.org/fhir/ConceptMap/special-oid2uri', 'uri') "root1";\n id.extension as ext -> identifier.value = ext then {\n participantRole -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "ext";\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n id.root as r then {\n id.extension as ext -> 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) "part";\n } "r";\n } "identifier";\n participantRole.id as id where (root = '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "2";\n participantRole.id as id where (root != '2.16.840.1.113883.2.9.4.3.2') then {\n id.extension as ext -> request.url = append('Practitioner?identifier=', ext) "UUID";\n } "diverso";\n participantRole.code -> practitionerRole.code;\n participantRole.addr -> practitioner.address;\n participantRole.telecom -> practitioner.telecom;\n participantRole.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n playingEntity.birthTime as birthTime then {\n birthTime.value as date -> practitioner.birthDate = truncate(date, 10);\n } "birth";\n } "name";\n } "practitioner";\n } "partRole";\n } "participantEncounter";\n // participant device\n org.participant as devParticipant where (typeCode = 'DEV') -> 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 -> device.type;\n playingDevice.manufacturerModelName as manufacturerModelName then {\n manufacturerModelName as m -> device.manufacturer = (m.displayName) "displayRule";\n } "manufacturer";\n playingDevice.softwareName as softwareName -> device.deviceName as deviceName then {\n softwareName -> deviceName.type = 'other' "typeName";\n softwareName as s -> deviceName.name = (s.displayName) "name";\n } "deviceName";\n };\n } "participantRoleDev";\n } "devParticipant";\n org.component as component then {\n component.observation as observation -> 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) "OBS";\n } "componentobservation";\n org.component as component then {\n component.organizer as organizer -> 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) "ORG";\n };\n } "componentorganizer";\n // observationMedia\n org.component as component then {\n component.observationMedia as obsMedia -> 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 -> media1.content = create('Attachment') as Attachment then {\n obsMedia -> media1.status = 'unknown' "status";\n obsMedia.value as valueMedia then {\n valueMedia.mediaType as type -> Attachment.contentType = type "type";\n valueMedia -> Attachment.data = (valueMedia.dataBase64Binary) "data";\n } "valuemedia";\n } "Attachment";\n } "obsmedia";\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 -> observation.note as note then {\n reference -> note.text = (reference.value) "reference";\n } "note";\n };\n } "componentact";\n };\n}\n\ngroup ExtSubjectAnimal(source src : relatedSubject, target ext : Extension) {\n src -> ext.url = 'http://hl7.org/fhir/StructureDefinition/patient-animal' "url";\n src.code as code -> 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-09-15T08:16:12+00: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" ] ) ] ) ] ) ] ) . #
IG © 2023+ HL7 Italy. Package hl7.fhir.it.cda2fhir#0.1.0 based on FHIR 4.0.1. Generated 2024-09-15
Links: Table of Contents |
QA Report