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 "cda2fhirLdo"] ; # 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/cda2fhirLdo" = "cda2fhirLdo"\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/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\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 e5, e5.request = create('BackboneElement') as request, request.method = 'POST', e5.resource = create('DocumentReference') as DocumentReference, DocumentReference.id = uuid() as uuid5, e5.fullUrl = append('https://example/DocumentReference/', uuid5), 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 ext -> identifier.value = ext;\n id.assigningAuthorityName as s -> identifier.assigner as a, a.display = s;\n } "record";\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 } "recPat";\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 // discretizzi il primo livello di component\n component.section as srcSection then {\n srcSection.code where (code = '46241-6') -> composition.section as tgtSection then ClinicalDocumentSectionMotivoRicovero(cda, srcSection, patient, tgtSection, bundle, encounter) "motivoRicovero";\n srcSection.code where (code = '47039-3') -> composition.section as tgtSection then ClinicalDocumentSectionInquadramentoClinico(cda, srcSection, patient, tgtSection, bundle, encounter) "inquadramentoClinico";\n srcSection.code where (code = '8648-8') -> composition.section as tgtSection then ClinicalDocumentSectionDecorsoOspedaliero(cda, srcSection, patient, tgtSection, bundle, encounter) "DecorsoOspedaliero";\n srcSection.code where (code = '55109-3') -> composition.section as tgtSection then ClinicalDocumentSectionComplicanze(cda, srcSection, patient, tgtSection, bundle, encounter) "Complicazioni";\n srcSection.code where (code = '11493-4') -> composition.section as tgtSection then ClinicalDocumentSectionRiscontri(cda, srcSection, patient, tgtSection, bundle, encounter) "HospitalDischargeStudiesSummary";\n srcSection.code where (code = '34104-0') -> composition.section as tgtSection then ClinicalDocumentSectionConsulenza(cda, srcSection, patient, tgtSection, bundle, encounter) "HospitalDischargeStudiesSummary";\n srcSection.code where (code = '30954-2') -> composition.section as tgtSection then ClinicalDocumentSectionEsamiEseguitiRicovero(cda, srcSection, patient, tgtSection, bundle, encounter) "EsamiEseguitiDuranteilRicovero";\n srcSection.code where (code = '47519-4') -> composition.section as tgtSection then ClinicalDocumentSectionProcedureEseguiteRicovero(cda, srcSection, patient, tgtSection, bundle, encounter) "HistoryOfProceduresDocument";\n srcSection.code where (code = '48765-2') -> composition.section as tgtSection then ClinicalDocumentSectionAllergie(cda, srcSection, patient, tgtSection, bundle, encounter) "EsamiEseguitiDuranteIlRicovero";\n srcSection.code where (code = '10160-0') -> composition.section as tgtSection then ClinicalDocumentSectionTerapiaFarmacologicaDuranteRicovero(cda, srcSection, patient, tgtSection, bundle, encounter) "TerapiaFarmacologicaAllaDimissione";\n srcSection.code where (code = '11535-2') -> composition.section as tgtSection then ClinicalDocumentSectionDiagnosiDimissione(cda, srcSection, patient, tgtSection, bundle, encounter) "DiagnosiDiDimissione";\n srcSection.code where (code = '18776-5') -> composition.section as tgtSection then ClinicalDocumentSectionIstruzioniFollowUp(cda, srcSection, patient, tgtSection, bundle, encounter) "DiagnosiDiDimissione";\n srcSection.code where (code = '10183-2') -> composition.section as tgtSection then ClinicalDocumentSectionTerapiaDimissione(cda, srcSection, patient, tgtSection, bundle, encounter) "TerapiaFarmacologicaAllaDimissione";\n };\n };\n } "body";\n };\n}\n\n// -------------------------------------------------------------------------------------------------------------------\ngroup ClinicalDocumentSectionMotivoRicovero(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "cText";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n entry1.observation as obs then Observation(obs, patient, enc, observation, bundle) "act";\n };\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e8, e8.request = create('BackboneElement') as request, request.method = 'POST', e8.resource = create('Observation') as Observation, Observation.id = uuid() as uuid8, e8.fullUrl = append('https://example/Observation/', uuid8), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %Observation.id) then {\n src -> Observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> Observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src.code -> Observation.code;\n src where observation.statusCode.exists().not() then {\n src -> Observation.status = 'final' "status";\n } "statuscode";\n cdaText -> Observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n}\n\ngroup ClinicalDocumentSectionInquadramentoClinico(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id), tgt.text as fhirText then {\n cdaText -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n cdaText -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n cdaText -> fhirText.status = 'generated' "narrativeStatus";\n cdaText as t -> fhirText.div = t "narrativeText";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n src.component as component then {\n component.section as section2 then {\n // ANAMNESI\n section2 -> tgt.section as sec2 then {\n section2.code where (code = '11329-0') -> sec2.code;\n section2.title as t -> sec2.title = (t.dataString);\n // section2.code -> sec2.code;\n src where src.entry.exists() then {\n section2.text as cdaText -> sec2.text as fhirText then {\n cdaText -> fhirText.status = 'generated' "narrativeStatus";\n cdaText as t -> fhirText.div = t "narrativeText";\n } "cdaText";\n } "exist";\n src where src.entry.exists().not() then {\n section2.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as condition, condition.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', sec2.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %condition.id) then {\n section2.code -> condition.code;\n src where condition.statusCode.exists().not() then {\n src -> condition.status = 'final' "status";\n } "statuscode";\n cdaText -> condition.note as note then {\n cdaText -> condition.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n cdaText -> condition.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n section2.entry as entry1 then {\n entry1.observation as obs then {\n // EntryRelationship per il Problem\n obs.code where (code = '75326-9') then {\n obs -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Condition') as condition, condition.id = uuid() as uuid1, e1.fullUrl = append('https://example/Condition/', uuid1), request.url = 'Condition', sec2.entry = create('Reference') as reference, reference.reference = ('https://example/Condition/' + %condition.id) then {\n obs.code -> condition.category;\n obs -> condition.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> condition.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n obs.statusCode as status where (code = 'completed') -> condition.verificationStatus as status2 then {\n status -> status2.coding as status3 then {\n status -> status3.code = 'confirmed' "finald";\n status -> status3.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "system";\n } "st3";\n } "status";\n obs.effectiveTime as effective1 then {\n effective1 where effective1.low.exists() or effective1.high.exists() then {\n effective1 -> condition.onset = create('Period') as periodonset then IVLTSPeriod(effective1, periodonset) "onsetperiod";\n } "ef";\n } "effectivetime1";\n obs.value : CD as val then {\n val -> condition.code = create('CodeableConcept') as ce then {\n val.originalText -> ce.text;\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 } "coding";\n } "Ce";\n } "Value";\n obs.entryRelationship as entriRel then {\n entriRel -> condition.evidence = create('BackboneElement') as evidence then {\n entriRel.observation as observation2 then {\n observation2.code as code then {\n code.code where (code.code = '89261-2') then {\n obs -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation' then {\n entriRel -> evidence.detail = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) "ref";\n observation2.code -> observation.code;\n observation2 where observation.statusCode.exists().not() then {\n observation2 -> observation.status = 'final' "status";\n } "statuscode";\n observation2.text as text -> observation.note = create('Annotation') as note then {\n text.reference as ref -> note.text = (ref.value) "val";\n } "Annontation";\n obs -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n observation2.statusCode as statusc where (code = 'completed') -> ob.status = 'final';\n observation2.statusCode as statusc where (code = 'active') -> ob.status = 'registered';\n observation2.statusCode as statusc where (code = 'aborted') -> ob.status = 'cancelled';\n observation2.statusCode as statusc where (code = 'suspended') -> ob.status = 'partial';\n observation2.value : INT as int -> ob.value = (int.value);\n observation2.value : BL as boolean -> ob.value = (boolean.value) "boolean";\n observation2.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 observation2.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 observation2.value : ST as value -> ob.value = create('string'), ob.value = (value.dataString);\n observation2.value : CE as val then {\n val -> observation.value = create('CodeableConcept') as ce then {\n val.originalText -> ce.text;\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 } "coding";\n } "Ce";\n } "Value";\n } "obser";\n } "whereDecorsoClinico";\n };\n } "Observation2";\n } "evidence";\n } "EntryRelationship1";\n obs.entryRelationship as entriRel then {\n entriRel.observation as observation2 then {\n observation2.code as code then {\n code.code where (code.code = '33999-4') then {\n observation2 -> condition.clinicalStatus = create('CodeableConcept') as status then {\n observation2.text as text then {\n text.reference as refstat -> status.text = (refstat.value) "statref";\n } "textstat";\n observation2 -> status.coding = create('Coding') as coding then {\n observation2.value as value then {\n value.code where (value.code = 'LA16666-2') -> coding.code = 'active' "active";\n value.code where (value.code = 'LA18632-2') -> coding.code = 'inactive' "inactive";\n value.codeSystem as system -> coding.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "system";\n value.displayName as display -> coding.display = cast(display, 'string');\n } "value1";\n } "coding";\n } "code";\n } "whereDecorsoClinico";\n } "codestatus";\n } "observationstatus";\n } "entryrelationshipstatus";\n } "whereEntryPatologicaProssima";\n } "observationcondition";\n } "entry";\n } "subsection1";\n // ESAME PBIETTIVO\n section2.code where (code = '29545-1') then ClinicalDocumentSottoSectionOBS(section2, sec2, bundle, enc, patient) "esameObiettivo";\n // TETAPIA FARMACOLOGICA\n section2.code where (code = '42346-7') then ClinicalDocumentSottoSectionMS(section2, sec2, bundle, patient, enc) "TerapiaFarmacologicaAllIngresso";\n } "sec2fhir";\n } "componentSec";\n };\n}\n\ngroup ClinicalDocumentSectionDecorsoOspedaliero(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id), tgt.text as fhirText then {\n cdaText -> fhirText.status = 'generated' "narrativeStatus";\n cdaText as t -> fhirText.div = t "narrativeText";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n src.component as component then {\n component.section as section2 then {\n src then ClinicalDocumentSottoSectionOBS(section2, tgt, bundle, enc, patient) "Decorso";\n } "1";\n } "2";\n}\n\ngroup ClinicalDocumentSectionComplicanze(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exist";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n entry1.observation as obs then Observation(obs, patient, enc, observation, bundle) "act";\n };\n}\n\ngroup ClinicalDocumentSectionRiscontri(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id), tgt.text as fhirText then {\n cdaText -> fhirText.status = 'generated' "narrativeStatus";\n cdaText as t -> fhirText.div = t "narrativeText";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n src.component as component then {\n component.section as section2 then {\n src then ClinicalDocumentSottoSectionOBS(section2, tgt, bundle, enc, patient) "Decorso";\n } "1";\n } "2";\n}\n\ngroup ClinicalDocumentSectionConsulenza(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exist";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n entry1.observation as obs then ObservationConsulenza(obs, patient, enc, observation, bundle) "act";\n };\n}\n\ngroup ClinicalDocumentSectionEsamiEseguitiRicovero(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exists";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n entry1.observation as obs then ObservationEsamiDuranteRicovero(obs, patient, enc, observation, bundle) "act";\n };\n}\n\ngroup ClinicalDocumentSectionProcedureEseguiteRicovero(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exists";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Procedure') as procedure, procedure.id = uuid() as uuid1, e1.fullUrl = append('https://example/Procedure/', uuid1), request.url = 'Procedure', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Procedure/' + %procedure.id) then {\n src -> procedure.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> procedure.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src -> procedure.status = 'unknown' "statuscode";\n cdaText -> procedure.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Procedure') as procedure, procedure.id = uuid() as uuid1, e1.fullUrl = append('https://example/Procedure/', uuid1), request.url = 'Procedure', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Procedure/' + %procedure.id) then {\n src -> procedure.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> procedure.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n entry1.procedure as proceduresrc then {\n proceduresrc.code -> procedure.code;\n proceduresrc.text as txt -> procedure.note as note then {\n txt.reference as ref -> note.text = (ref.value);\n };\n proceduresrc where proc.statusCode.exists().not() then {\n proceduresrc -> procedure.status = 'unknown' "statuscode";\n } "status";\n proceduresrc.statusCode as statusc where (code = 'completed') -> procedure.status = 'completed';\n proceduresrc.statusCode as statusc where (code = 'active') -> procedure.status = 'in-progress';\n proceduresrc.statusCode as statusc where (code = 'aborted') -> procedure.status = 'stopped';\n proceduresrc.statusCode as statusc where (code = 'suspended') -> procedure.status = 'on-hold';\n proceduresrc.statusCode as statusc where (code = 'cancelled') -> procedure.status = 'not-done';\n proceduresrc.statusCode as statusc where (code = 'held') -> procedure.status = 'on-hold';\n proceduresrc.statusCode as statusc where (code = 'new') -> procedure.status = 'preparation';\n proceduresrc.statusCode as statusc where (code = 'obsolete') -> procedure.status = 'entered-in-error';\n proceduresrc.statusCode as statusc where (code = 'nullified') -> procedure.status = 'unknown';\n proceduresrc.effectiveTime as efft -> procedure.performed = create('Period') as period then IVLTSPeriod(efft, period);\n proceduresrc.entryRelationship as entriRel -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', procedure.reasonReference = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n entriRel -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n entriRel -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n entriRel.observation as obs then {\n obs.code -> observation.code;\n obs where observation.statusCode.exists().not() then {\n obs -> observation.status = 'final' "status";\n } "statuscode";\n } "ObservationValue";\n } "Observation";\n } "Procedure";\n } "Entry";\n}\n\ngroup ClinicalDocumentSectionAllergie(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exists";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('AllergyIntolerance') as allergy, allergy.id = uuid() as uuid1, e1.fullUrl = append('https://example/AllergyIntolerance/', uuid1), request.url = 'AllergyIntolerance', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/AllergyIntolerance/' + %allergy.id) then {\n src -> allergy.patient = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> allergy.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src -> allergy.clinicalStatus = create('CodeableConcept') as status then {\n src -> status.text = 'string' "text";\n src -> status.coding = create('Coding') as coding then {\n src -> coding.code = 'active' "active";\n src -> coding.system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical' "system";\n } "coding";\n } "allergy";\n src.code -> allergy.code;\n cdaText -> allergy.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('AllergyIntolerance') as allergy, allergy.id = uuid() as uuid1, e1.fullUrl = append('https://example/AllergyIntolerance/', uuid1), request.url = 'AllergyIntolerance', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/AllergyIntolerance/' + %allergy.id) then {\n src -> allergy.patient = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> allergy.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n entry1.act as actallint then {\n actallint.effectiveTime as eff -> allergy.onset = create('Period') as per then IVLTSPeriod(eff, per);\n actallint.entryRelationship as entryact then {\n entryact.observation as entryobs then {\n entryobs.value as code then {\n code.code as code1 -> allergy.type = translate(code1, '#AllergyTypeMap', 'code') "type";\n code.code as code2 -> allergy.category = translate(code2, '#AllergyCategoryMap', 'code') "category";\n } "code";\n entryobs.participant as partic then {\n partic.participantRole as pratRole then {\n pratRole.playingEntity as pratent then {\n pratent -> allergy.reaction = create('BackboneElement') as reaction then {\n pratent.code -> reaction.substance "subs";\n entryobs.entryRelationship as entryobs1 where (typeCode = 'MFST') then {\n entryobs1.observation as entobs then {\n entobs.effectiveTime as eff then {\n eff.low as l -> reaction.onset = create('dateTime') as start then TSDateTime(l, start) "val";\n } "eff";\n entobs.value -> reaction.manifestation "manifest";\n } "observ";\n } "entry";\n } "cod";\n } "react";\n } "pratentit";\n } "PratRole";\n entryobs.entryRelationship as entryobs2 then {\n entryobs2.observation as entobs then {\n entobs.code as code where (code = 'SEV') then {\n entobs.value as value then {\n value.code where (value.code = 'M') -> allergy.criticality = 'unable-to-assess' "active";\n value.code where (value.code = 'L') -> allergy.criticality = 'low' "active";\n value.code where (value.code = 'H') -> allergy.criticality = 'high' "active";\n } "entobs";\n } "sev";\n } "severity";\n } "observ";\n entryobs.entryRelationship as entryobs3 then {\n entryobs3.observation as entobs then {\n entobs.code as code where (code = '33999-4') then {\n entobs -> allergy.clinicalStatus = create('CodeableConcept') as status then {\n entobs -> status.coding = create('Coding') as coding then {\n entobs.value as value then {\n value.code where (value.code = 'LA16666-2') -> coding.code = 'active' "active";\n value.code where (value.code = 'LA18632-2') -> coding.code = 'inactive' "active";\n value.codeSystem as system -> coding.system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical' "system";\n value.displayName as display -> coding.display = cast(display, 'string');\n } "value1";\n } "coding";\n } "clinicalStatus";\n } "stat";\n } "obobs3serv";\n } "entry3";\n entryobs.entryRelationship as entryobs4 then {\n entryobs4.act as entact then {\n entact.text as actext then {\n actext.reference as reftxt -> allergy.note = create('BackboneElement') as note then {\n reftxt as ref -> note.text = (ref.value) "notxt";\n } "notetxt";\n } "txtact";\n } "obobs4serv";\n } "entry4";\n } "partic";\n };\n };\n } "allergy";\n}\n\ngroup ClinicalDocumentSectionDiagnosiDimissione(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exists";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src.code -> observation.code;\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id) then {\n entry1.observation as obs then Observation(obs, patient, enc, observation, bundle) "act";\n };\n}\n\ngroup ClinicalDocumentSectionIstruzioniFollowUp(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\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.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('CarePlan') as carePlan, carePlan.id = uuid() as uuid1, e1.fullUrl = append('https://example/CarePlan/', uuid1), request.url = 'CarePlan', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/CarePlan/' + %carePlan.id) then {\n cdaText -> carePlan.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n src -> carePlan.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> carePlan.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src -> carePlan.status = 'active' "status";\n src -> carePlan.intent = 'order' "intent";\n } "entry";\n}\n\ngroup ClinicalDocumentSectionTerapiaFarmacologicaDuranteRicovero(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exists";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('MedicationAdministration') as medicationAdm, medicationAdm.id = uuid() as uuid1, e1.fullUrl = append('https://example/MedicationAdministration/', uuid1), request.url = 'MedicationAdministration', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/MedicationAdministration/' + %medicationAdm.id) then {\n cdaText -> medicationAdm.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n cdaText -> medicationAdm.context = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n cdaText -> medicationAdm.medication = create('CodeableConcept') as codecon then {\n cdaText -> codecon.text = 'string' "text";\n } "code";\n src -> medicationAdm.effective = create('Period') as period then {\n src -> period.start = (start.now()) "low";\n src -> period.end = (end.now()) "high";\n } "Period";\n src where sub.statusCode.exists().not() then {\n src -> medicationAdm.status = 'completed' "status";\n } "statuscode";\n cdaText -> medicationAdm.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('MedicationAdministration') as medicationAdm, medicationAdm.id = uuid() as uuid1, e1.fullUrl = append('https://example/MedicationAdministration/', uuid1), request.url = 'MedicationAdministration', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/MedicationAdministration/' + %medicationAdm.id) then {\n entry1 -> medicationAdm.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n entry1 -> medicationAdm.context = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n entry1.substanceAdministration as sa then {\n sa.text as tx -> medicationAdm.note as note then {\n sa.performer as performer -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.resource = create('Practitioner') as practitioner then {\n performer.time as ti -> note.time = (ti.value);\n performer.assignedEntity as assEnty then {\n assEnty -> practitioner.meta as meta then {\n assEnty -> meta.tag = create('Coding') as coding then {\n assEnty -> coding.system = 'http://algoritmodiscoring' "system";\n assEnty -> coding.code = 'ClinicalDocument/body/TerapiaFarmacologicaRicovero/performer' "code";\n } "coding";\n } "meta";\n assEnty.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;\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, e1.fullUrl = append('https://example/Practitioner/', uuid2), request.url = 'Practitioner', medicationAdm.performer as perf, perf.actor = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\n } "r";\n } "identifier";\n assEnty.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 assEnty.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 assEnty.assignedPerson as assi then {\n assi.name -> practitioner.name;\n } "assi";\n } "assEntity";\n } "perf";\n tx.reference as ref -> note.text = (ref.value);\n } "tx";\n sa.statusCode as st -> medicationAdm.status = (st.code);\n sa.effectiveTime as eff -> medicationAdm.effective = create('Period') as period then IVLTSPeriod(eff, period) "period";\n sa -> medicationAdm.dosage as dos then {\n sa.routeCode -> dos.route;\n } "dos";\n sa -> medicationAdm.dosage as dos then {\n sa.approachSiteCode -> dos.site;\n } "dos";\n sa.doseQuantity as doseQuant -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('MedicationRequest') as medicationRq, medicationRq.id = uuid() as uuid1, e1.fullUrl = append('https://example/MedicationRequest/', uuid1), request.url = 'MedicationRequest', medicationAdm.request = create('Reference') as reference, reference.reference = ('https://example/MedicationRequest/' + %medicationRq.id) then {\n doseQuant -> medicationRq.dosageInstruction = create('Dosage') as dosageInstruction then {\n doseQuant.originalText as ot then {\n ot.reference -> dosageInstruction.text;\n } "ot";\n doseQuant -> dosageInstruction.doseAndRate as dosageRate then {\n doseQuant -> dosageRate.dose = create('Range') as d then {\n doseQuant -> d.low = create('SimpleQuantity') as l then {\n doseQuant.low as lo -> l.value = (lo.value);\n doseQuant.low as lo -> l.unit = (lo.unit);\n } "low";\n doseQuant -> d.high = create('SimpleQuantity') as h then {\n doseQuant.high as hi -> h.value = (hi.value);\n doseQuant.high as hi -> h.unit = (hi.unit);\n } "low";\n } "d";\n } "dosageRate";\n } "Dosage";\n sa -> medicationRq.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n sa -> medicationRq.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n sa -> medicationRq.status = 'active' "status";\n sa -> medicationRq.intent = 'order' "intent";\n sa.rateQuantity as rateQuantity -> medicationRq.dosageInstruction = create('Dosage') as dosageInstruction1 then {\n rateQuantity.originalText as ot then {\n ot.reference -> dosageInstruction1.text;\n } "ot";\n rateQuantity -> dosageInstruction1.doseAndRate as dosageRate then {\n rateQuantity -> dosageRate.rate = create('Range') as d then {\n rateQuantity -> d.low = create('SimpleQuantity') as l then {\n rateQuantity.low as lo -> l.value = (lo.value);\n rateQuantity.low as lo -> l.unit = (lo.unit);\n } "low";\n rateQuantity -> d.high = create('SimpleQuantity') as h then {\n rateQuantity.high as hi -> h.value = (hi.value);\n rateQuantity.high as hi -> h.unit = (hi.unit);\n } "low";\n } "d";\n } "dosageRate";\n } "Dosage";\n sa -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Medication') as medication, medication.id = uuid() as uuid1, e1.fullUrl = append('https://example/Medication/', uuid1), request.url = 'Medication', medicationAdm.medication = create('Reference') as reference, reference.reference = ('https://example/Medication/' + %medication.id) then {\n sa -> medicationRq.medication = create('Reference') as reference, reference.reference = ('https://example/Medication/' + %medication.id) "reference";\n sa.administrationUnitCode -> medication.form;\n sa.consumable as consumable then {\n consumable.manufacturedProduct as manufac then {\n manufac.manufacturedMaterial as manuprod then {\n manuprod.code -> medication.code;\n } "manufactproduct";\n } "manufac";\n };\n sa.entryRelationship as entryRR then {\n entryRR.observation as observation then {\n observation.code where displayName = 'Grammatura' -> medication.ingredient as ingredient then {\n sa.consumable as consumable then {\n consumable.manufacturedProduct as manufacturedProduct then {\n manufacturedProduct.manufacturedMaterial as manufacturedMaterial then {\n manufacturedMaterial.code as code -> ingredient.item = create('CodeableConcept') as value then CECodeableConcept(code, value) "CE";\n } "material";\n } "product";\n };\n observation.value as value -> ingredient.strength as strength then {\n value -> strength.numerator as numerator then {\n value -> numerator.value = (value.value) "valueN";\n } "numerator";\n value -> strength.denominator as denominator then {\n value -> denominator.value = 1 "valueD";\n } "denominator";\n } "strenght";\n } "ingredient";\n observation.code where displayName = 'Quantità nella Confezione' then {\n observation.value as value -> medication.amount as amount then {\n value -> amount.numerator as numerator then {\n value -> numerator.value = (value.value) "valueN";\n } "numerator";\n value -> amount.denominator as denominator then {\n value -> denominator.value = 1 "valueD";\n } "denominator";\n } "amount";\n } "quantita";\n } "obs";\n } "entryRr";\n } "medication";\n sa.entryRelationship as entryRelationship then {\n entryRelationship.supply as sup -> medicationRq.dispenseRequest as dispreq then {\n sup -> dispreq.quantity = create('SimpleQuantity') as quantity then {\n sup.quantity as q -> quantity.value = (q.value);\n } "quantity";\n } "sub";\n } "entryR";\n sa.participant as participant then {\n participant.time as t -> medicationRq.authoredOn = (t.value);\n participant.participantRole as participantR -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.resource = create('Practitioner') as practitioner then {\n participantR -> practitioner.meta as meta then {\n participantR -> meta.tag = create('Coding') as coding then {\n participantR -> coding.system = 'http://algoritmodiscoring' "system";\n participantR -> coding.code = 'ClinicalDocument/body/TerapiaFarmacologicaRicovero/participant' "code";\n } "coding";\n } "meta";\n participantR.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;\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, e1.fullUrl = append('https://example/Practitioner/', uuid2), request.url = append('Practitioner/', uuid1), medicationRq.requester = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\n } "r";\n } "identifier";\n participantR.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 participantR.playingEntity as assi then {\n assi.name -> practitioner.name;\n } "assi";\n } "perf";\n sa.effectiveTime : EIVL as eff -> medicationRq.dosageInstruction = create('Dosage') as dosage then {\n eff -> dosage.timing = create('Timing') as timing then {\n eff -> timing.repeat as rep then {\n eff.event as ev -> rep.where = (ev.code);\n } "rep";\n } "timing";\n } "period";\n sa.effectiveTime : TS as eff -> medicationRq.dosageInstruction = create('Dosage') as dosage, dosage.timing = create('Timing') as timing, timing.event = (eff.value) "tim";\n sa.effectiveTime : PIVL_TS as eff -> medicationAdm.dosage = create('BackboneElement') as dosage then {\n eff -> dosage.rate = create('Ratio') as ratio then {\n eff -> ratio.numerator = create('Quantity') as quan then {\n eff.period as per -> quan.value = (per.value);\n eff.period as per -> quan.unit = (per.unit);\n } "quanti";\n eff -> ratio.denominator = create('Quantity') as quan then {\n eff.period -> quan.value = '1';\n eff.period as per -> quan.unit = (per.unit);\n } "quanti";\n } "ratio";\n } "eff";\n } "Medicationrequest";\n } "sa";\n } "entry";\n } "sa";\n}\n\ngroup ClinicalDocumentSottoSectionOBS(source src : Section, target tgt, target bundle : Bundle, target enc : Encounter, target patient : Patient) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Observation') as observation, observation.id = uuid() as uuid1, e1.fullUrl = append('https://example/Observation/', uuid1), request.url = 'Observation', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %observation.id), tgt.text as fhirText then {\n cdaText -> fhirText.status = 'generated' "narrativeStatus";\n cdaText as t -> fhirText.div = t "narrativeText";\n src.code -> observation.code;\n src -> observation.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> observation.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src where observation.statusCode.exists().not() then {\n src -> observation.status = 'final' "status";\n } "statuscode";\n cdaText -> observation.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n}\n\ngroup ClinicalDocumentSottoSectionMS(source src : Section, target tgt, target bundle : Bundle, target patient : Patient, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('MedicationStatement') as Medicationstatement, Medicationstatement.id = uuid() as uuid1, e1.fullUrl = append('https://example/MedicationStatement/', uuid1), request.url = 'MedicationStatement', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/MedicationStatement/' + %Medicationstatement.id), tgt.text as fhirText then {\n cdaText -> Medicationstatement.note as note then {\n cdaText as t -> note.text = t "reference";\n cdaText as t -> Medicationstatement.medication = create('CodeableConcept') as medication, medication.text = t "text";\n } "reference";\n src -> Medicationstatement.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> Medicationstatement.status = 'unknown' "status";\n } "cdaText";\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 where obs.statusCode.exists().not() then {\n obs -> ob.status = 'final' "status";\n } "statuscode";\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) "value3";\n } "where";\n obs.value : INT as int -> ob.value = (int.value);\n obs.value : BL as boolean -> ob.value = (boolean.value) "boolean";\n obs.value : CD as val then {\n val -> ob.value = create('CodeableConcept') as ce then {\n val.originalText -> ce.text;\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 } "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.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 };\n };\n };\n } "coding";\n } "val";\n obs.value : CE as val then {\n val -> ob.value = create('CodeableConcept') as ce then {\n val.originalText -> ce.text;\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 } "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.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 };\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 obs.interpretationCode -> ob.interpretation;\n obs.methodCode -> ob.method;\n obs.referenceRange as refRange -> ob.referenceRange = create('BackboneElement') as ref then {\n refRange.observationRange as obsRange -> ref.low = create('SimpleQuantity') 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 } "IVLPQ";\n } "obsRange";\n } "refRange";\n}\n\ngroup ObservationConsulenza(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 where obs.statusCode.exists().not() then {\n obs -> ob.status = 'final' "status";\n } "statuscode";\n obs.effectiveTime as effectiveTime -> ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2c";\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) "value3c";\n } "where";\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 -> ce.text;\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 } "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.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 };\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 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.interpretationCode -> ob.interpretation;\n obs.methodCode -> ob.method;\n obs.referenceRange as refRange -> ob.referenceRange = create('BackboneElement') as ref then {\n refRange.observationRange as obsRange -> ref.low = create('SimpleQuantity') 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 } "IVLPQ";\n } "obsRange";\n } "refRange";\n obs.performer as performer -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.resource = create('Practitioner') as practitioner, practitioner.id = uuid() as uuid1 then {\n performer.assignedEntity as assEntity then {\n assEntity -> practitioner.meta as meta then {\n assEntity -> meta.tag = create('Coding') as coding then {\n assEntity -> coding.system = 'http://algoritmodiscoring' "system";\n assEntity -> coding.code = 'ClinicalDocument/body/Consulenza/performer' "code";\n } "coding";\n } "meta";\n assEntity.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;\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, e1.fullUrl = append('https://example/Practitioner/', uuid2), ob.performer = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\n } "r";\n } "identifier";\n assEntity.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 assEntity.assignedPerson as assi then {\n assi.name -> practitioner.name;\n } "assi";\n } "assEntity";\n } "perf";\n obs.participant as participant -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('ServiceRequest') as serviceRequest, serviceRequest.id = uuid() as uuid1, e1.fullUrl = append('https://example/ServiceRequest/', uuid1), request.url = 'ServiceRequest', ob.basedOn = create('Reference') as reference, reference.reference = ('https://example/ServiceRequest/' + %serviceRequest.id) then {\n participant.time as t -> serviceRequest.authoredOn = (t.value);\n obs -> serviceRequest.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> serviceRequest.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n obs -> serviceRequest.status = 'active' "status";\n obs -> serviceRequest.intent = 'order' "intent";\n participant.participantRole as participantRole -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.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/Consulenza/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;\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 uuid3, e1.fullUrl = append('https://example/Practitioner/', uuid3), serviceRequest.performer = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\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.playingEntity as pe then {\n pe.name -> practitioner.name;\n } "pe";\n };\n };\n}\n\ngroup ObservationEsamiDuranteRicovero(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 where obs.statusCode.exists().not() then {\n obs -> ob.status = 'final' "status";\n } "statuscode";\n obs.effectiveTime as effectiveTime -> ob.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2r";\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) "value3r";\n } "where";\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 -> ce.text;\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 } "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.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 };\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 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.interpretationCode -> ob.interpretation;\n obs.methodCode -> ob.method;\n obs.effectiveTime as eff -> ob.effective = create('Period') as per then IVLTSPeriod(eff, per);\n obs.referenceRange as refRange -> ob.referenceRange = create('BackboneElement') as ref then {\n refRange.observationRange as obsRange -> ref.low = create('SimpleQuantity') 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 } "IVLPQ";\n } "obsRange";\n } "refRange";\n obs.performer as performer -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.resource = create('Practitioner') as practitioner, practitioner.id = uuid() as uuid1 then {\n performer.assignedEntity as assEntity then {\n assEntity -> practitioner.meta as meta then {\n assEntity -> meta.tag = create('Coding') as coding then {\n assEntity -> coding.system = 'http://algoritmodiscoring' "system";\n assEntity -> coding.code = 'ClinicalDocument/body/EsamiDuranteRicovero/performer' "code";\n } "coding";\n } "meta";\n assEntity.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;\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, e1.fullUrl = append('https://example/Practitioner/', uuid2), ob.performer = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\n } "r";\n } "identifier";\n assEntity.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 assEntity.assignedPerson as assi then {\n assi.name -> practitioner.name;\n } "assi";\n } "assEntity";\n } "perf";\n obs.participant as participant -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('ServiceRequest') as serviceRequest, serviceRequest.id = uuid() as uuid1, e1.fullUrl = append('https://example/ServiceRequest/', uuid1), request.url = 'ServiceRequest', ob.basedOn = create('Reference') as reference, reference.reference = ('https://example/ServiceRequest/' + %serviceRequest.id) then {\n participant.time as t -> serviceRequest.authoredOn = (t.value);\n obs -> serviceRequest.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n obs -> serviceRequest.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %encounter.id) "reference";\n obs -> serviceRequest.status = 'active' "status";\n obs -> serviceRequest.intent = 'order' "intent";\n participant.participantRole as participantRole -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.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/EsamiDuranteRicovero/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;\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 uuid3, e1.fullUrl = append('https://example/Practitioner/', uuid3), serviceRequest.performer = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\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.playingEntity as pe then {\n pe.name -> practitioner.name;\n } "pe";\n };\n };\n}\n\ngroup periodTiming(source effectiveTime : PIVL_TS, target timing : Timing) {\n effectiveTime -> timing.repeat as r then {\n effectiveTime.period as p -> r.period = (p.value);\n effectiveTime.period as p -> r.periodUnit = (p.unit);\n } "repeat";\n}\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.statusCode as statusc where (code = 'completed') -> ob.status = 'final';\n cda.statusCode as statusc where (code = 'active') -> ob.status = 'registered';\n cda.statusCode as statusc where (code = 'aborted') -> ob.status = 'cancelled';\n cda.statusCode as statusc where (code = 'suspended') -> ob.status = 'partial';\n cda.effectiveTime as effectiveTime -> ac.effective = create('dateTime') as value then TSDateTime(effectiveTime, value) "value2a";\n obs where effectiveTime.low.exists() or effectiveTime.high.exists() then {\n cda.effectiveTime as eff -> ac.effective = create('Period') as period then IVLTSPeriod(eff, period) "value3a";\n } "where";\n cda -> ac.subject = create('Reference') as reference, reference.reference = ('https://example/' + %pat.id) "reference";\n cda -> ac.encounter = create('Reference') as reference, reference.reference = ('https://example/' + %enc.id) "reference";\n cda.participant as part -> 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, practitioner.id = uuid() as uuid1, e.fullUrl = append('https://example/Practitioner/', uuid1), reference.reference = ('https://example/Practitioner/' + %practitioner.id) 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.playingEntity as playingEntity then {\n playingEntity.name -> practitioner.name;\n };\n } "participanRoleBund";\n };\n };\n cda.entryRelationship as entryRelationship then {\n entryRelationship.observation as observation -> bundle.entry as e, e.request = create('BackboneElement') as request, request.method = 'POST', e.resource = create('Observation') as obs, obs.id = uuid() as uuid2, e.fullUrl = append('https://example/Observation/', uuid2), request.url = append('Observation/', uuid2), ac.result = create('Reference') as reference, reference.reference = ('https://example/Observation/' + %obs.id) then Observation(observation, pat, enc, obs, bundle) "OBS";\n };\n}\n\ngroup ClinicalDocumentSectionTerapiaDimissione(source cda : ClinicalDocument, source src : Section, target patient : Patient, target tgt, target bundle : Bundle, target enc : Encounter) {\n src.title as t -> tgt.title = (t.dataString);\n src.code -> tgt.code;\n src where src.entry.exists() then {\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 } "exist";\n src where src.entry.exists().not() then {\n src.text as cdaText -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('MedicationRequest') as medicationRq, medicationRq.id = uuid() as uuid1, e1.fullUrl = append('https://example/MedicationRequest/', uuid1), request.url = 'MedicationRequest', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/MedicationRequest/' + %medicationRq.id) then {\n src -> medicationRq.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> medicationRq.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src -> medicationRq.status = 'active' "status";\n src -> medicationRq.intent = 'order' "intent";\n cdaText -> medicationRq.medication = create('CodeableConcept') as codecon then {\n cdaText -> codecon.text = 'string' "text";\n } "code";\n cdaText -> medicationRq.note as note then {\n cdaText as t -> note.text = t "reference";\n } "reference";\n } "cdaText";\n } "where";\n src.entry as entry1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('MedicationRequest') as medicationRq, medicationRq.id = uuid() as uuid1, e1.fullUrl = append('https://example/MedicationRequest/', uuid1), request.url = 'MedicationRequest', tgt.entry = create('Reference') as reference, reference.reference = ('https://example/MedicationRequest/' + %medicationRq.id) then {\n src -> medicationRq.subject = create('Reference') as reference, reference.reference = ('https://example/Patient/' + %patient.id) "reference";\n src -> medicationRq.encounter = create('Reference') as reference, reference.reference = ('https://example/Encounter/' + %enc.id) "reference";\n src -> medicationRq.status = 'active' "status";\n src -> medicationRq.intent = 'order' "intent";\n entry1.substanceAdministration as substract then {\n substract.consumable as cons then {\n cons.manufacturedProduct as man1 -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'POST', e1.resource = create('Medication') as medication, medication.id = uuid() as uuid1, e1.fullUrl = append('https://example/Medication/', uuid1), request.url = 'Medication', medicationRq.medication = create('Reference') as medref, medref.reference = ('https://example/Medication/' + %medication.id) then {\n man1.manufacturedMaterial as mm then {\n mm.code -> medication.code;\n } "mm";\n substract.administrationUnitCode -> medication.form;\n substract.entryRelationship as entryR then {\n entryR.observation as observation then {\n observation.code where displayName = 'Grammatura' -> medication.ingredient as ingredient then {\n substract.consumable as consumable then {\n consumable.manufacturedProduct as manufacturedProduct then {\n manufacturedProduct.manufacturedMaterial as manufacturedMaterial then {\n manufacturedMaterial.code as code -> ingredient.item = create('CodeableConcept') as value then CECodeableConcept(code, value) "CE";\n } "material";\n } "product";\n };\n observation.value as value -> ingredient.strength as strength then {\n value -> strength.numerator as numerator then {\n value -> numerator.value = (value.value) "valueN";\n } "numerator";\n value -> strength.denominator as denominator then {\n value -> denominator.value = 1 "valueD";\n } "denominator";\n } "strenght";\n } "ingredient";\n observation.code where displayName = 'Quantità nella Confezione' then {\n observation.value as value -> medication.amount as amount then {\n value -> amount.numerator as numerator then {\n value -> numerator.value = (value.value) "valueN";\n } "numerator";\n value -> amount.denominator as denominator then {\n value -> denominator.value = 1 "valueD";\n } "denominator";\n } "amount";\n } "quantita";\n } "obs";\n } "entryR";\n substract.entryRelationship as entryRelationship then {\n entryRelationship.supply as sup -> medicationRq.dispenseRequest as dispreq then {\n sup -> dispreq.quantity = create('SimpleQuantity') as quantity then {\n sup.quantity as q -> quantity.value = (q.value);\n } "quantity";\n } "sub";\n } "entry";\n } "man1";\n } "cons";\n substract.text as tx -> medicationRq.note as note then {\n tx.reference as ref -> note.text = (ref.value);\n } "tx";\n substract.statusCode as st -> medicationRq.status = (st.code);\n substract.effectiveTime : IVL_TS as eff -> medicationRq.dosageInstruction = create('Dosage') as dosage then {\n eff -> dosage.timing = create('Timing') as timing then {\n eff -> timing.repeat as rep then {\n eff -> rep.bounds = create('Period') as period then IVLTSPeriod(eff, period) "period";\n } "rep";\n } "timing";\n } "period";\n substract.effectiveTime : EIVL_TS as eff -> medicationRq.dosageInstruction = create('Dosage') as dosage then {\n eff -> dosage.timing = create('Timing') as timing then {\n eff -> timing.repeat as rep then {\n eff.event as ev -> rep.when = (ev.code);\n } "rep";\n } "timing";\n } "period";\n substract.effectiveTime : IVL_TS as eff -> medicationRq.dosageInstruction = create('Dosage') as dosage, dosage.timing = create('Timing') as timing, timing.event = (eff.value) "tim";\n substract.effectiveTime : PIVL_TS as eff -> medicationRq.dosageInstruction = create('Dosage') as dosage then {\n eff -> dosage.timing = create('Timing') as timing then periodTiming(eff, timing) "cod";\n } "eff";\n substract -> medicationRq.dosageInstruction = create('Dosage') as dosage then {\n substract.routeCode -> dosage.route;\n } "dosage";\n substract -> medicationRq.dosageInstruction = create('Dosage') as dosage then {\n substract.approachSiteCode -> dosage.site;\n } "dosage";\n substract.doseQuantity as doseQuant -> medicationRq.dosageInstruction = create('Dosage') as dosageInstruction then {\n doseQuant.originalText as ot then {\n ot.reference -> dosageInstruction.text;\n } "ot";\n doseQuant -> dosageInstruction.doseAndRate as dosageRate then {\n doseQuant -> dosageRate.dose = create('Range') as d then {\n doseQuant -> d.low = create('SimpleQuantity') as l then {\n doseQuant.low as lo -> l.value = (lo.value);\n doseQuant.low as lo -> l.unit = (lo.unit);\n } "low";\n doseQuant -> d.high = create('SimpleQuantity') as h then {\n doseQuant.high as hi -> h.value = (hi.value);\n doseQuant.high as hi -> h.unit = (hi.unit);\n } "low";\n } "d";\n } "dosageRate";\n } "Dosage";\n substract.rateQuantity as rateQuantity -> medicationRq.dosageInstruction = create('Dosage') as dosageInstruction1 then {\n rateQuantity.originalText as ot then {\n ot.reference -> dosageInstruction1.text;\n } "ot";\n rateQuantity -> dosageInstruction1.doseAndRate as dosageRate then {\n rateQuantity -> dosageRate.rate = create('Range') as d then {\n rateQuantity -> d.low = create('SimpleQuantity') as l then {\n rateQuantity.low as lo -> l.value = (lo.value);\n rateQuantity.low as lo -> l.unit = (lo.unit);\n } "low";\n rateQuantity -> d.high = create('SimpleQuantity') as h then {\n rateQuantity.high as hi -> h.value = (hi.value);\n rateQuantity.high as hi -> h.unit = (hi.unit);\n } "low";\n } "d";\n } "dosageRate";\n } "rateq";\n substract.participant as part -> bundle.entry as e1, e1.request = create('BackboneElement') as request, request.method = 'PUT', e1.resource = create('Practitioner') as practitioner then {\n part.time as time -> medicationRq.authoredOn = (time.value);\n part.participantRole as partRole then {\n partRole -> practitioner.meta as meta then {\n partRole -> meta.tag = create('Coding') as coding then {\n partRole -> coding.system = 'http://algoritmodiscoring' "system";\n partRole -> coding.code = 'ClinicalDocument/body/TerapiaFarmacologicaRicovero/participant' "code";\n } "coding";\n } "meta";\n partRole.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;\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, e1.fullUrl = append('https://example/Practitioner/', uuid2), request.url = append('Practitioner/', uuid1), medicationRq.performer = create('Reference') as reference, reference.reference = ('https://example/Practitioner/' + %practitioner.id) "aut";\n } "r";\n } "identifier";\n partRole.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 partRole.playingEntity as assi then {\n assi.name -> practitioner.name;\n } "assi";\n } "perf";\n } "partRole";\n } "participant";\n } "substract";\n}\n\n</pre>\n </div>" ] ; # fhir:url [ fhir:v "http://hl7.it/fhir/cda2fhir/StructureMap/cda2fhirLdo"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.1.0"] ; # fhir:name [ fhir:v "cda2fhirLdo"] ; # 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/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: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 "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 "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 "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/DocumentReference/" ] ] [ 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 "DocumentReference" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "cdatobundle" ] ; ( fhir:source [ fhir:context [ fhir:v "cda" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ClinicalDocumentToBundle" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "patient" ] [ fhir:v "composition" ] [ fhir:v "encounter" ] [ fhir:v "bundle" ] [ fhir:v "DocumentReference" ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "cda" ] ; fhir:element [ fhir:v "recordTarget" ] ; fhir:variable [ fhir:v "recordTarget" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "recPat" ] ; ( fhir:source [ fhir:context [ fhir:v "recordTarget" ] ; fhir:element [ fhir:v "patientRole" ] ; fhir:variable [ fhir:v "patient" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "record" ] ; ( fhir:source [ fhir:context [ fhir:v "patient" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "patient" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "identifier" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "root1" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r" ] ] [ fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ] ] [ fhir:value [ fhir:v "uri" ] ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "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 "motivoRicovero" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '46241-6')" ] ] ) ; ( 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 "ClinicalDocumentSectionMotivoRicovero" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "inquadramentoClinico" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '47039-3')" ] ] ) ; ( 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 "ClinicalDocumentSectionInquadramentoClinico" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "DecorsoOspedaliero" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '8648-8')" ] ] ) ; ( 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 "ClinicalDocumentSectionDecorsoOspedaliero" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "Complicazioni" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '55109-3')" ] ] ) ; ( 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 "ClinicalDocumentSectionComplicanze" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "HospitalDischargeStudiesSummary" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '11493-4')" ] ] ) ; ( 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 "ClinicalDocumentSectionRiscontri" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "HospitalDischargeStudiesSummary" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '34104-0')" ] ] ) ; ( 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 "ClinicalDocumentSectionConsulenza" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "EsamiEseguitiDuranteilRicovero" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '30954-2')" ] ] ) ; ( 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 "ClinicalDocumentSectionEsamiEseguitiRicovero" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "HistoryOfProceduresDocument" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '47519-4')" ] ] ) ; ( 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 "ClinicalDocumentSectionProcedureEseguiteRicovero" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "EsamiEseguitiDuranteIlRicovero" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '48765-2')" ] ] ) ; ( 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 "ClinicalDocumentSectionAllergie" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "TerapiaFarmacologicaAllaDimissione" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '10160-0')" ] ] ) ; ( 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 "ClinicalDocumentSectionTerapiaFarmacologicaDuranteRicovero" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "DiagnosiDiDimissione" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '11535-2')" ] ] ) ; ( 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 "ClinicalDocumentSectionDiagnosiDimissione" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "DiagnosiDiDimissione" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '18776-5')" ] ] ) ; ( 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 "ClinicalDocumentSectionIstruzioniFollowUp" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] [ fhir:name [ fhir:v "TerapiaFarmacologicaAllaDimissione" ] ; ( fhir:source [ fhir:context [ fhir:v "srcSection" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '10183-2')" ] ] ) ; ( 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 "ClinicalDocumentSectionTerapiaDimissione" ] ; ( fhir:variable [ fhir:v "cda" ] [ fhir:v "srcSection" ] [ fhir:v "patient" ] [ fhir:v "tgtSection" ] [ fhir:v "bundle" ] [ fhir:v "encounter" ] ) ] ) ] ) ; fhir:documentation [ fhir:v "discretizzi il primo livello di component" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionMotivoRicovero" ] ; fhir:typeMode [ fhir:v "none" ] ; fhir:documentation [ fhir:v "-------------------------------------------------------------------------------------------------------------------" ] ; ( 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: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 "cText" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "act" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "Observation" ] ; ( fhir:variable [ fhir:v "obs" ] [ fhir:v "patient" ] [ fhir:v "enc" ] [ fhir:v "observation" ] [ fhir:v "bundle" ] ) ] ) ] ) ] [ fhir:name [ fhir:v "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "POST" ] ] ) ] [ fhir:context [ fhir:v "e8" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "Observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "Observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "uuid8" ] ; fhir:transform [ fhir:v "uuid" ] ] [ 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/Observation/" ] ] [ fhir:value [ fhir:v "uuid8" ] ] ) ] [ 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 "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/Observation/' + %Observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ 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 "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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionInquadramentoClinico" ] ; 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: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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] [ 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ 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 "code" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; 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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] [ 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 "componentSec" ] ; ( fhir:source [ fhir:context [ fhir:v "component" ] ; fhir:element [ fhir:v "section" ] ; fhir:variable [ fhir:v "section2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "sec2fhir" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "section" ] ; fhir:variable [ fhir:v "sec2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:condition [ fhir:v "(code = '11329-0')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "sec2" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "title" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "title" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "sec2" ] ; 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 "exist" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "cdaText" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "sec2" ] ; 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:documentation [ fhir:v "section2.code -> sec2.code;" ] ] [ fhir:name [ fhir:v "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "cdaText" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "cdaText" ] ] ) ; ( 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 "condition" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "condition" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ fhir:context [ fhir:v "sec2" ] ; 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/Observation/' + %condition.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; 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 "src" ] ; fhir:condition [ fhir:v "condition.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; 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 "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; 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 "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "subsection1" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry1" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "entry" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "observationcondition" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '75326-9')" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "whereEntryPatologicaProssima" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "condition" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Condition" ] ] ) ] [ fhir:context [ fhir:v "condition" ] ; 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/Condition/" ] ] [ 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 "Condition" ] ] ) ] [ fhir:context [ fhir:v "sec2" ] ; 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/Condition/' + %condition.id" ] ] ) ] ) ; ( fhir:rule [ 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 "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; 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 "condition" ] ; 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 "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:element [ fhir:v "statusCode" ] ; fhir:variable [ fhir:v "status" ] ; fhir:condition [ fhir:v "(code = 'completed')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "verificationStatus" ] ; fhir:variable [ fhir:v "status2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "st3" ] ; ( fhir:source [ fhir:context [ fhir:v "status" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status2" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "status3" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "finald" ] ; ( fhir:source [ fhir:context [ fhir:v "status" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status3" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "confirmed" ] ] ) ] ) ] [ fhir:name [ fhir:v "system" ] ; ( fhir:source [ fhir:context [ fhir:v "status" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status3" ] ; 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/condition-ver-status" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "effectivetime1" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "effective1" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ef" ] ; ( fhir:source [ fhir:context [ fhir:v "effective1" ] ; fhir:condition [ fhir:v "effective1.low.exists() or effective1.high.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "onsetperiod" ] ; ( fhir:source [ fhir:context [ fhir:v "effective1" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "onset" ] ; fhir:variable [ fhir:v "periodonset" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Period" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "IVLTSPeriod" ] ; ( fhir:variable [ fhir:v "effective1" ] [ fhir:v "periodonset" ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "Value" ] ; ( 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 "Ce" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "ce" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "originalText" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ce" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "coding" ] ; ( 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 "EntryRelationship1" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entriRel" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "evidence" ] ; ( fhir:source [ fhir:context [ fhir:v "entriRel" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "evidence" ] ; fhir:variable [ fhir:v "evidence" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "Observation2" ] ; ( fhir:source [ fhir:context [ fhir:v "entriRel" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "observation2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "whereDecorsoClinico" ] ; ( fhir:source [ fhir:context [ fhir:v "code" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code.code = '89261-2')" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obser" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ref" ] ; ( fhir:source [ fhir:context [ fhir:v "entriRel" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "evidence" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "detail" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Observation/' + %observation.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; 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 "observation2" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ] ) ; ( 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 "Annontation" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "text" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "note" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Annotation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "val" ] ; ( fhir:source [ fhir:context [ fhir:v "text" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "ref" ] ] ) ; ( 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 "ref.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "obs" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "statusCode" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; 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 "observation2" ] ; 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 "observation2" ] ; 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 "observation2" ] ; 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 "value" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; 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 "observation2" ] ; 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 "observation2" ] ; 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 "observation2" ] ; 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 "observation2" ] ; 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 "Value" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; fhir:type [ fhir:v "CE" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "Ce" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; 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 "originalText" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ce" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "coding" ] ; ( 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 "entryrelationshipstatus" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entriRel" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "observationstatus" ] ; ( fhir:source [ fhir:context [ fhir:v "entriRel" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "observation2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "codestatus" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "whereDecorsoClinico" ] ; ( fhir:source [ fhir:context [ fhir:v "code" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code.code = '33999-4')" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "clinicalStatus" ] ; fhir:variable [ fhir:v "status" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "textstat" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "text" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "statref" ] ; ( fhir:source [ fhir:context [ fhir:v "text" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "refstat" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "refstat.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "coding" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "value1" ] ; ( fhir:source [ fhir:context [ fhir:v "observation2" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'LA16666-2')" ] ] ) ; ( 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 "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "inactive" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'LA18632-2')" ] ] ) ; ( 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 "inactive" ] ] ) ] ) ] [ fhir:name [ fhir:v "system" ] ; ( 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 "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ] ) ] ) ] [ 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:documentation [ fhir:v "EntryRelationship per il Problem" ] ] ) ] ) ] [ fhir:name [ fhir:v "esameObiettivo" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '29545-1')" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ClinicalDocumentSottoSectionOBS" ] ; ( fhir:variable [ fhir:v "section2" ] [ fhir:v "sec2" ] [ fhir:v "bundle" ] [ fhir:v "enc" ] [ fhir:v "patient" ] ) ] ) ; fhir:documentation [ fhir:v "ESAME PBIETTIVO" ] ] [ fhir:name [ fhir:v "TerapiaFarmacologicaAllIngresso" ] ; ( fhir:source [ fhir:context [ fhir:v "section2" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '42346-7')" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ClinicalDocumentSottoSectionMS" ] ; ( fhir:variable [ fhir:v "section2" ] [ fhir:v "sec2" ] [ fhir:v "bundle" ] [ fhir:v "patient" ] [ fhir:v "enc" ] ) ] ) ; fhir:documentation [ fhir:v "TETAPIA FARMACOLOGICA" ] ] ) ; fhir:documentation [ fhir:v "ANAMNESI" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionDecorsoOspedaliero" ] ; 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: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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] [ 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 "code" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; 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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "2" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "component" ] ; fhir:variable [ fhir:v "component" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "1" ] ; ( fhir:source [ fhir:context [ fhir:v "component" ] ; fhir:element [ fhir:v "section" ] ; fhir:variable [ fhir:v "section2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "Decorso" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ClinicalDocumentSottoSectionOBS" ] ; ( fhir:variable [ fhir:v "section2" ] [ fhir:v "tgt" ] [ fhir:v "bundle" ] [ fhir:v "enc" ] [ fhir:v "patient" ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionComplicanze" ] ; 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: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 "exist" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ 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 "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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "act" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "Observation" ] ; ( fhir:variable [ fhir:v "obs" ] [ fhir:v "patient" ] [ fhir:v "enc" ] [ fhir:v "observation" ] [ fhir:v "bundle" ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionRiscontri" ] ; 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: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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] [ 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 "code" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; 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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "2" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "component" ] ; fhir:variable [ fhir:v "component" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "1" ] ; ( fhir:source [ fhir:context [ fhir:v "component" ] ; fhir:element [ fhir:v "section" ] ; fhir:variable [ fhir:v "section2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "Decorso" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ClinicalDocumentSottoSectionOBS" ] ; ( fhir:variable [ fhir:v "section2" ] [ fhir:v "tgt" ] [ fhir:v "bundle" ] [ fhir:v "enc" ] [ fhir:v "patient" ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionConsulenza" ] ; 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: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 "exist" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ 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 "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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "act" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ObservationConsulenza" ] ; ( fhir:variable [ fhir:v "obs" ] [ fhir:v "patient" ] [ fhir:v "enc" ] [ fhir:v "observation" ] [ fhir:v "bundle" ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionEsamiEseguitiRicovero" ] ; 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: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 "exists" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ 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 "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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "act" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "ObservationEsamiDuranteRicovero" ] ; ( fhir:variable [ fhir:v "obs" ] [ fhir:v "patient" ] [ fhir:v "enc" ] [ fhir:v "observation" ] [ fhir:v "bundle" ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionProcedureEseguiteRicovero" ] ; 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: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 "exists" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "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 "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/Procedure/" ] ] [ 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 "Procedure" ] ] ) ] [ 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/Procedure/' + %procedure.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "procedure" ] ; 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; 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 "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 "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/Procedure/" ] ] [ 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 "Procedure" ] ] ) ] [ 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/Procedure/' + %procedure.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "Procedure" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "procedure" ] ; fhir:variable [ fhir:v "proceduresrc" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "proceduresrc" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "procedure" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "text" ] ; ( fhir:source [ fhir:context [ fhir:v "proceduresrc" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "txt" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "procedure" ] ; 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 "txt" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "ref" ] ] ) ; ( 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 "ref.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "proceduresrc" ] ; fhir:condition [ fhir:v "proc.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "proceduresrc" ] ] ) ; ( 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "proceduresrc" ] ; 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 "effectiveTime" ] ; ( fhir:source [ fhir:context [ fhir:v "proceduresrc" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "efft" ] ] ) ; ( 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 "efft" ] [ fhir:v "period" ] ) ] ) ] [ fhir:name [ fhir:v "Observation" ] ; ( fhir:source [ fhir:context [ fhir:v "proceduresrc" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entriRel" ] ] ) ; ( 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ fhir:context [ fhir:v "procedure" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reasonReference" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "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/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "entriRel" ] ] ) ; ( 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 "entriRel" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "ObservationValue" ] ; ( fhir:source [ fhir:context [ fhir:v "entriRel" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:rule [ 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 "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 "obs" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "ClinicalDocumentSectionAllergie" ] ; 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: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 "exists" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "allergy" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "AllergyIntolerance" ] ] ) ] [ fhir:context [ fhir:v "allergy" ] ; 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/AllergyIntolerance/" ] ] [ 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 "AllergyIntolerance" ] ] ) ] [ 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/AllergyIntolerance/' + %allergy.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "patient" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Patient/' + %patient.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; 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 "allergy" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "clinicalStatus" ] ; fhir:variable [ fhir:v "status" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "text" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "string" ] ] ) ] ) ] [ fhir:name [ fhir:v "coding" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "system" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" ] ] ) ] ) ] ) ] ) ] [ 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 "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "allergy" ] ; ( 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 "allergy" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "AllergyIntolerance" ] ] ) ] [ fhir:context [ fhir:v "allergy" ] ; 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/AllergyIntolerance/" ] ] [ 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 "AllergyIntolerance" ] ] ) ] [ 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/AllergyIntolerance/' + %allergy.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "patient" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Patient/' + %patient.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; 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 "act" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "act" ] ; fhir:variable [ fhir:v "actallint" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "effectiveTime" ] ; ( fhir:source [ fhir:context [ fhir:v "actallint" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "onset" ] ; fhir:variable [ fhir:v "per" ] ; 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 "per" ] ) ] ) ] [ fhir:name [ fhir:v "entryRelationship" ] ; ( fhir:source [ fhir:context [ fhir:v "actallint" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryact" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "partic" ] ; ( fhir:source [ fhir:context [ fhir:v "entryact" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "entryobs" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "type" ] ; ( fhir:source [ fhir:context [ fhir:v "code" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code1" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "type" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "code1" ] ] [ fhir:value [ fhir:v "#AllergyTypeMap" ] ] [ fhir:value [ fhir:v "code" ] ] ) ] ) ] [ fhir:name [ fhir:v "category" ] ; ( fhir:source [ fhir:context [ fhir:v "code" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code2" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "code2" ] ] [ fhir:value [ fhir:v "#AllergyCategoryMap" ] ] [ fhir:value [ fhir:v "code" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "PratRole" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs" ] ; fhir:element [ fhir:v "participant" ] ; fhir:variable [ fhir:v "partic" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "pratentit" ] ; ( fhir:source [ fhir:context [ fhir:v "partic" ] ; fhir:element [ fhir:v "participantRole" ] ; fhir:variable [ fhir:v "pratRole" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "react" ] ; ( fhir:source [ fhir:context [ fhir:v "pratRole" ] ; fhir:element [ fhir:v "playingEntity" ] ; fhir:variable [ fhir:v "pratent" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "cod" ] ; ( fhir:source [ fhir:context [ fhir:v "pratent" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reaction" ] ; fhir:variable [ fhir:v "reaction" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "subs" ] ; ( fhir:source [ fhir:context [ fhir:v "pratent" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "reaction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "substance" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "entry" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryobs1" ] ; fhir:condition [ fhir:v "(typeCode = 'MFST')" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "observ" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "entobs" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "eff" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "val" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "l" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "reaction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "onset" ] ; 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 "l" ] [ fhir:v "start" ] ) ] ) ] ) ] [ fhir:name [ fhir:v "manifest" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "reaction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "manifestation" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "observ" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryobs2" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "severity" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs2" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "entobs" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "sev" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = 'SEV')" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "entobs" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'M')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "criticality" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "unable-to-assess" ] ] ) ] ) ] [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'L')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "criticality" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "low" ] ] ) ] ) ] [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'H')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "criticality" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "high" ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "entry3" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryobs3" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obobs3serv" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs3" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "entobs" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "stat" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ; fhir:condition [ fhir:v "(code = '33999-4')" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "clinicalStatus" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "clinicalStatus" ] ; fhir:variable [ fhir:v "status" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "coding" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "status" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "value1" ] ; ( fhir:source [ fhir:context [ fhir:v "entobs" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'LA16666-2')" ] ] ) ; ( 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 "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "active" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "(value.code = 'LA18632-2')" ] ] ) ; ( 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 "inactive" ] ] ) ] ) ] [ fhir:name [ fhir:v "system" ] ; ( 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 "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" ] ] ) ] ) ] [ 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 "entry4" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryobs4" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obobs4serv" ] ; ( fhir:source [ fhir:context [ fhir:v "entryobs4" ] ; fhir:element [ fhir:v "act" ] ; fhir:variable [ fhir:v "entact" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "txtact" ] ; ( fhir:source [ fhir:context [ fhir:v "entact" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "actext" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "notetxt" ] ; ( fhir:source [ fhir:context [ fhir:v "actext" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "reftxt" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "allergy" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "note" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "notxt" ] ; ( fhir:source [ fhir:context [ fhir:v "reftxt" ] ; fhir:variable [ fhir:v "ref" ] ] ) ; ( 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 "ref.value" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionDiagnosiDimissione" ] ; 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: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 "exists" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ 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 "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 "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; 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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "act" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "obs" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "Observation" ] ; ( fhir:variable [ fhir:v "obs" ] [ fhir:v "patient" ] [ fhir:v "enc" ] [ fhir:v "observation" ] [ fhir:v "bundle" ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionIstruzioniFollowUp" ] ; 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: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 "text" ] ; fhir:variable [ fhir:v "cdaText" ] ] ) ; ( 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 "carePlan" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CarePlan" ] ] ) ] [ fhir:context [ fhir:v "carePlan" ] ; 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/CarePlan/" ] ] [ 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 "CarePlan" ] ] ) ] [ 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/CarePlan/' + %carePlan.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "carePlan" ] ; 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "carePlan" ] ; 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 "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "carePlan" ] ; 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 "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "carePlan" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "intent" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "carePlan" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "intent" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "order" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionTerapiaFarmacologicaDuranteRicovero" ] ; 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: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 "exists" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "medicationAdm" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "MedicationAdministration" ] ] ) ] [ fhir:context [ fhir:v "medicationAdm" ] ; 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/MedicationAdministration/" ] ] [ 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 "MedicationAdministration" ] ] ) ] [ 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/MedicationAdministration/' + %medicationAdm.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; 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 "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "context" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "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 "code" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "codecon" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "text" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "codecon" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "string" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "Period" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; 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:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "period" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "start" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "start.now()" ] ] ) ] ) ] [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "period" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "end" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "end.now()" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "sub.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "sa" ] ; ( 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 "medicationAdm" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "MedicationAdministration" ] ] ) ] [ fhir:context [ fhir:v "medicationAdm" ] ; 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/MedicationAdministration/" ] ] [ 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 "MedicationAdministration" ] ] ) ] [ 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/MedicationAdministration/' + %medicationAdm.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; 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 "entry1" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "context" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "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 "entry" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "substanceAdministration" ] ; fhir:variable [ fhir:v "sa" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "tx" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "tx" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "note" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "perf" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; 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 "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "time" ] ; ( fhir:source [ fhir:context [ fhir:v "performer" ] ; fhir:element [ fhir:v "time" ] ; fhir:variable [ fhir:v "ti" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "time" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ti.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "assEntity" ] ; ( fhir:source [ fhir:context [ fhir:v "performer" ] ; fhir:element [ fhir:v "assignedEntity" ] ; fhir:variable [ fhir:v "assEnty" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "assEnty" ] ] ) ; ( 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 "assEnty" ] ] ) ; ( 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 "assEnty" ] ] ) ; ( 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 "assEnty" ] ] ) ; ( 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/TerapiaFarmacologicaRicovero/performer" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "identifier" ] ; ( fhir:source [ fhir:context [ fhir:v "assEnty" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "identifier" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "root1" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r" ] ] [ fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ] ] [ fhir:value [ fhir:v "uri" ] ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid2" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "performer" ] ; fhir:variable [ fhir:v "perf" ] ] [ fhir:context [ fhir:v "perf" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "actor" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "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 "assEnty" ] ; 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 "assEnty" ] ; 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 "assi" ] ; ( fhir:source [ fhir:context [ fhir:v "assEnty" ] ; fhir:element [ fhir:v "assignedPerson" ] ; fhir:variable [ fhir:v "assi" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "assi" ] ; 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "tx" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "ref" ] ] ) ; ( 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 "ref.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "statusCode" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "statusCode" ] ; fhir:variable [ fhir:v "st" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "st.code" ] ] ) ] ) ] [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; 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 "dos" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosage" ] ; fhir:variable [ fhir:v "dos" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "routeCode" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "routeCode" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dos" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "route" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "dos" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosage" ] ; fhir:variable [ fhir:v "dos" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "approachSiteCode" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "approachSiteCode" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dos" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "site" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "sa" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "doseQuantity" ] ; fhir:variable [ fhir:v "doseQuant" ] ] ) ; ( 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 "medicationRq" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "MedicationRequest" ] ] ) ] [ fhir:context [ fhir:v "medicationRq" ] ; 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/MedicationRequest/" ] ] [ 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 "MedicationRequest" ] ] ) ] [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/MedicationRequest/' + %medicationRq.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "Dosage" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosageInstruction" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ot" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "ot" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "ot" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "dosageRate" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "doseAndRate" ] ; fhir:variable [ fhir:v "dosageRate" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "d" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageRate" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dose" ] ; fhir:variable [ fhir:v "d" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Range" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "l" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.unit" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "h" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.unit" ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "status" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "intent" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "intent" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "order" ] ] ) ] ) ] [ fhir:name [ fhir:v "Dosage" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "rateQuantity" ] ; fhir:variable [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosageInstruction1" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ot" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "ot" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "ot" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "dosageRate" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "doseAndRate" ] ; fhir:variable [ fhir:v "dosageRate" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "d" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageRate" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "rate" ] ; fhir:variable [ fhir:v "d" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Range" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "l" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.unit" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "h" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.unit" ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "medication" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( 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 "medication" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Medication" ] ] ) ] [ fhir:context [ fhir:v "medication" ] ; 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/Medication/" ] ] [ 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 "Medication" ] ] ) ] [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Medication/' + %medication.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Medication/' + %medication.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "administrationUnitCode" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "administrationUnitCode" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "form" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "consumable" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "consumable" ] ; fhir:variable [ fhir:v "consumable" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "manufac" ] ; ( fhir:source [ fhir:context [ fhir:v "consumable" ] ; fhir:element [ fhir:v "manufacturedProduct" ] ; fhir:variable [ fhir:v "manufac" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "manufactproduct" ] ; ( fhir:source [ fhir:context [ fhir:v "manufac" ] ; fhir:element [ fhir:v "manufacturedMaterial" ] ; fhir:variable [ fhir:v "manuprod" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "manuprod" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "entryRr" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryRR" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obs" ] ; ( fhir:source [ fhir:context [ fhir:v "entryRR" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "observation" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ingredient" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "displayName = 'Grammatura'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "ingredient" ] ; fhir:variable [ fhir:v "ingredient" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "consumable" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "consumable" ] ; fhir:variable [ fhir:v "consumable" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "product" ] ; ( fhir:source [ fhir:context [ fhir:v "consumable" ] ; fhir:element [ fhir:v "manufacturedProduct" ] ; fhir:variable [ fhir:v "manufacturedProduct" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "material" ] ; ( fhir:source [ fhir:context [ fhir:v "manufacturedProduct" ] ; fhir:element [ fhir:v "manufacturedMaterial" ] ; fhir:variable [ fhir:v "manufacturedMaterial" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "CE" ] ; ( fhir:source [ fhir:context [ fhir:v "manufacturedMaterial" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ingredient" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "value" ] ; 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 "value" ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "strenght" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ingredient" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "strength" ] ; fhir:variable [ fhir:v "strength" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "numerator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "strength" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "numerator" ] ; fhir:variable [ fhir:v "numerator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueN" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "numerator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "denominator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "strength" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "denominator" ] ; fhir:variable [ fhir:v "denominator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueD" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "denominator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "1"^^xsd:integer ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "quantita" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "displayName = 'Quantità nella Confezione'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "amount" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "amount" ] ; fhir:variable [ fhir:v "amount" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "numerator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "amount" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "numerator" ] ; fhir:variable [ fhir:v "numerator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueN" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "numerator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "denominator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "amount" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "denominator" ] ; fhir:variable [ fhir:v "denominator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueD" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "denominator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "1"^^xsd:integer ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "entryR" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryRelationship" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "sub" ] ; ( fhir:source [ fhir:context [ fhir:v "entryRelationship" ] ; fhir:element [ fhir:v "supply" ] ; fhir:variable [ fhir:v "sup" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dispenseRequest" ] ; fhir:variable [ fhir:v "dispreq" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "quantity" ] ; ( fhir:source [ fhir:context [ fhir:v "sup" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dispreq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "quantity" ] ; fhir:variable [ fhir:v "quantity" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "quantity" ] ; ( fhir:source [ fhir:context [ fhir:v "sup" ] ; fhir:element [ fhir:v "quantity" ] ; fhir:variable [ fhir:v "q" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "quantity" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "q.value" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "Medicationrequest" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:element [ fhir:v "participant" ] ; fhir:variable [ fhir:v "participant" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "time" ] ; ( fhir:source [ fhir:context [ fhir:v "participant" ] ; fhir:element [ fhir:v "time" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "authoredOn" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "perf" ] ; ( fhir:source [ fhir:context [ fhir:v "participant" ] ; fhir:element [ fhir:v "participantRole" ] ; fhir:variable [ fhir:v "participantR" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "e1" ] ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "participantR" ] ] ) ; ( 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 "participantR" ] ] ) ; ( 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 "participantR" ] ] ) ; ( 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 "participantR" ] ] ) ; ( 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/TerapiaFarmacologicaRicovero/participant" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "identifier" ] ; ( fhir:source [ fhir:context [ fhir:v "participantR" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "identifier" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "root1" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r" ] ] [ fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ] ] [ fhir:value [ fhir:v "uri" ] ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid2" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner/" ] ] [ fhir:value [ fhir:v "uuid1" ] ] ) ] [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "requester" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "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 "participantR" ] ; 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 "assi" ] ; ( fhir:source [ fhir:context [ fhir:v "participantR" ] ; fhir:element [ fhir:v "playingEntity" ] ; fhir:variable [ fhir:v "assi" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "assi" ] ; 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 "period" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:type [ fhir:v "EIVL" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "timing" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "timing" ] ; fhir:variable [ fhir:v "timing" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Timing" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "rep" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "timing" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "repeat" ] ; fhir:variable [ fhir:v "rep" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "event" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "event" ] ; fhir:variable [ fhir:v "ev" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "rep" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "where" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ev.code" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "tim" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:type [ fhir:v "TS" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "timing" ] ; fhir:variable [ fhir:v "timing" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Timing" ] ] ) ] [ fhir:context [ fhir:v "timing" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "event" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "eff.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "eff" ] ; ( fhir:source [ fhir:context [ fhir:v "sa" ] ; fhir:type [ fhir:v "PIVL_TS" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationAdm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosage" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ratio" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "rate" ] ; fhir:variable [ fhir:v "ratio" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Ratio" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "quanti" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ratio" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "numerator" ] ; fhir:variable [ fhir:v "quan" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Quantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "period" ] ; fhir:variable [ fhir:v "per" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "quan" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "per.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "period" ] ; fhir:variable [ fhir:v "per" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "quan" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "per.unit" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "quanti" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ratio" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "denominator" ] ; fhir:variable [ fhir:v "quan" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Quantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "period" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "quan" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "1" ] ] ) ] ) ] [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "period" ] ; fhir:variable [ fhir:v "per" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "quan" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "per.unit" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSottoSectionOBS" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "Section" ] ; fhir:mode [ fhir:v "source" ] ] [ 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 "patient" ] ; fhir:type [ fhir:v "Patient" ] ; 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 "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 "observation" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; 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/Observation/" ] ] [ 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 "Observation" ] ] ) ] [ 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/Observation/' + %observation.id" ] ] ) ] [ 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 "code" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "src" ] ] ) ; ( 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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "observation.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSottoSectionMS" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "Section" ] ; fhir:mode [ fhir:v "source" ] ] [ 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 "patient" ] ; fhir:type [ fhir:v "Patient" ] ; fhir:mode [ fhir:v "target" ] ] [ fhir:name [ fhir:v "enc" ] ; fhir:type [ fhir:v "Encounter" ] ; 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 "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 "Medicationstatement" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "MedicationStatement" ] ] ) ] [ fhir:context [ fhir:v "Medicationstatement" ] ; 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/MedicationStatement/" ] ] [ 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 "MedicationStatement" ] ] ) ] [ 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/MedicationStatement/' + %Medicationstatement.id" ] ] ) ] [ 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 "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "Medicationstatement" ] ; 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] [ fhir:name [ fhir:v "text" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "Medicationstatement" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "medication" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "Medicationstatement" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Patient/' + %patient.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "Medicationstatement" ] ; 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 "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 "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:condition [ fhir:v "obs.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "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 "value3" ] ; ( 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 "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 "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 "originalText" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ce" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ 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 "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 "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 "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 "originalText" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ce" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ 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 "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 "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 "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 "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 "refRange" ] ; ( 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 "obsRange" ] ; ( fhir:source [ fhir:context [ fhir:v "refRange" ] ; fhir:element [ fhir:v "observationRange" ] ; fhir:variable [ 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 "SimpleQuantity" ] ] ) ] ) ; ( 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 "ObservationConsulenza" ] ; 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 "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:condition [ fhir:v "obs.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "value2c" ] ; ( 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 "value3c" ] ; ( 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 "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 "originalText" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ce" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ 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 "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 "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 "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 "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 "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 "refRange" ] ; ( 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 "obsRange" ] ; ( fhir:source [ fhir:context [ fhir:v "refRange" ] ; fhir:element [ fhir:v "observationRange" ] ; fhir:variable [ 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 "SimpleQuantity" ] ] ) ] ) ; ( 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 "perf" ] ; ( 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 "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "uuid1" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "assEntity" ] ; ( fhir:source [ fhir:context [ fhir:v "performer" ] ; fhir:element [ fhir:v "assignedEntity" ] ; fhir:variable [ fhir:v "assEntity" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ] ) ; ( 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 "assEntity" ] ] ) ; ( 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 "assEntity" ] ] ) ; ( 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 "assEntity" ] ] ) ; ( 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/Consulenza/performer" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "identifier" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "identifier" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "root1" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r" ] ] [ fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ] ] [ fhir:value [ fhir:v "uri" ] ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid2" ] ] ) ] [ fhir:context [ fhir:v "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/Practitioner/' + %practitioner.id" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ; 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 "assi" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ; fhir:element [ fhir:v "assignedPerson" ] ; fhir:variable [ fhir:v "assi" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "assi" ] ; 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 "participant" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; 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 "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 "serviceRequest" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ServiceRequest" ] ] ) ] [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "uuid1" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/ServiceRequest/" ] ] [ fhir:value [ fhir:v "uuid1" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ServiceRequest" ] ] ) ] [ fhir:context [ fhir:v "ob" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "basedOn" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/ServiceRequest/' + %serviceRequest.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "time" ] ; ( fhir:source [ fhir:context [ fhir:v "participant" ] ; fhir:element [ fhir:v "time" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "authoredOn" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Patient/' + %patient.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Encounter/' + %encounter.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "intent" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "intent" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "order" ] ] ) ] ) ] [ fhir:name [ fhir:v "participantRole" ] ; ( 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 "e1" ] ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "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/Consulenza/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 "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "uuid3" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r + '-' + ext" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid3" ] ] ) ] [ fhir:context [ fhir:v "serviceRequest" ] ; 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/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 "pe" ] ; ( fhir:source [ fhir:context [ fhir:v "participantRole" ] ; fhir:element [ fhir:v "playingEntity" ] ; fhir:variable [ fhir:v "pe" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "pe" ] ; 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 "ObservationEsamiDuranteRicovero" ] ; 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 "statuscode" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; fhir:condition [ fhir:v "obs.statusCode.exists().not()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( 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 "value2r" ] ; ( 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 "value3r" ] ; ( 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 "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 "originalText" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ce" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ 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 "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 "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 "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 "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 "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 "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 "per" ] ; 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 "per" ] ) ] ) ] [ fhir:name [ fhir:v "refRange" ] ; ( 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 "obsRange" ] ; ( fhir:source [ fhir:context [ fhir:v "refRange" ] ; fhir:element [ fhir:v "observationRange" ] ; fhir:variable [ 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 "SimpleQuantity" ] ] ) ] ) ; ( 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 "perf" ] ; ( 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 "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "uuid1" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "assEntity" ] ; ( fhir:source [ fhir:context [ fhir:v "performer" ] ; fhir:element [ fhir:v "assignedEntity" ] ; fhir:variable [ fhir:v "assEntity" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ] ) ; ( 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 "assEntity" ] ] ) ; ( 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 "assEntity" ] ] ) ; ( 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 "assEntity" ] ] ) ; ( 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/EsamiDuranteRicovero/performer" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "identifier" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "identifier" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "root1" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r" ] ] [ fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ] ] [ fhir:value [ fhir:v "uri" ] ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid2" ] ] ) ] [ fhir:context [ fhir:v "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/Practitioner/' + %practitioner.id" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ; 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 "assi" ] ; ( fhir:source [ fhir:context [ fhir:v "assEntity" ] ; fhir:element [ fhir:v "assignedPerson" ] ; fhir:variable [ fhir:v "assi" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "assi" ] ; 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 "participant" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ; 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 "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 "serviceRequest" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ServiceRequest" ] ] ) ] [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "uuid1" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/ServiceRequest/" ] ] [ fhir:value [ fhir:v "uuid1" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ServiceRequest" ] ] ) ] [ fhir:context [ fhir:v "ob" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "basedOn" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/ServiceRequest/' + %serviceRequest.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "time" ] ; ( fhir:source [ fhir:context [ fhir:v "participant" ] ; fhir:element [ fhir:v "time" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "authoredOn" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Patient/' + %patient.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "reference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Encounter/' + %encounter.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "intent" ] ; ( fhir:source [ fhir:context [ fhir:v "obs" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "serviceRequest" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "intent" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "order" ] ] ) ] ) ] [ fhir:name [ fhir:v "participantRole" ] ; ( 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 "e1" ] ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "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/EsamiDuranteRicovero/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 "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "uuid3" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r + '-' + ext" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid3" ] ] ) ] [ fhir:context [ fhir:v "serviceRequest" ] ; 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/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 "pe" ] ; ( fhir:source [ fhir:context [ fhir:v "participantRole" ] ; fhir:element [ fhir:v "playingEntity" ] ; fhir:variable [ fhir:v "pe" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "pe" ] ; 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 "periodTiming" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "effectiveTime" ] ; fhir:type [ fhir:v "PIVL_TS" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "timing" ] ; fhir:type [ fhir:v "Timing" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "repeat" ] ; ( fhir:source [ fhir:context [ fhir:v "effectiveTime" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "timing" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "repeat" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "effectiveTime" ] ; fhir:element [ fhir:v "period" ] ; fhir:variable [ fhir:v "p" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "r" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "period" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "p.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "effectiveTime" ] ; fhir:element [ fhir:v "period" ] ; fhir:variable [ fhir:v "p" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "r" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "periodUnit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "p.unit" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "Act" ] ; fhir:typeMode [ fhir:v "none" ] ; fhir:documentation [ fhir:v "---------------------------------------------------------------------------------------" ] ; ( 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 "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 "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 "cda" ] ; 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 "cda" ] ; 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 "cda" ] ; 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 "value2a" ] ; ( 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 "obs" ] ; fhir:condition [ fhir:v "effectiveTime.low.exists() or effectiveTime.high.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "value3a" ] ; ( 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/' + %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/' + %enc.id" ] ] ) ] ) ] [ fhir:name [ fhir:v "participant" ] ; ( fhir:source [ fhir:context [ fhir:v "cda" ] ; fhir:element [ fhir:v "participant" ] ; fhir:variable [ fhir:v "part" ] ] ) ; ( 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:context [ fhir:v "practitioner" ] ; 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/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid1" ] ] ) ] [ fhir:context [ fhir:v "reference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Practitioner/' + %practitioner.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "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 "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: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 "OBS" ] ; ( fhir:source [ fhir:context [ fhir:v "entryRelationship" ] ; 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 "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 "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 "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation/" ] ] [ fhir:value [ fhir:v "uuid2" ] ] ) ] [ 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:dependent [ fhir:name [ fhir:v "Observation" ] ; ( fhir:variable [ fhir:v "observation" ] [ fhir:v "pat" ] [ fhir:v "enc" ] [ fhir:v "obs" ] [ fhir:v "bundle" ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "ClinicalDocumentSectionTerapiaDimissione" ] ; 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: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 "exist" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists()" ] ] ) ; ( fhir:rule [ 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 "where" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:condition [ fhir:v "src.entry.exists().not()" ] ] ) ; ( fhir:rule [ 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 "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 "medicationRq" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "MedicationRequest" ] ] ) ] [ fhir:context [ fhir:v "medicationRq" ] ; 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/MedicationRequest/" ] ] [ 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 "MedicationRequest" ] ] ) ] [ 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/MedicationRequest/' + %medicationRq.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "intent" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "intent" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "order" ] ] ) ] ) ] [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "codecon" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "text" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "codecon" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "string" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "cdaText" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "cdaText" ] ; fhir:variable [ fhir:v "t" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "t" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "substract" ] ; ( 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 "medicationRq" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "MedicationRequest" ] ] ) ] [ fhir:context [ fhir:v "medicationRq" ] ; 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/MedicationRequest/" ] ] [ 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 "MedicationRequest" ] ] ) ] [ 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/MedicationRequest/' + %medicationRq.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "active" ] ] ) ] ) ] [ fhir:name [ fhir:v "intent" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "intent" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "order" ] ] ) ] ) ] [ fhir:name [ fhir:v "participant" ] ; ( fhir:source [ fhir:context [ fhir:v "entry1" ] ; fhir:element [ fhir:v "substanceAdministration" ] ; fhir:variable [ fhir:v "substract" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "cons" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "consumable" ] ; fhir:variable [ fhir:v "cons" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "man1" ] ; ( fhir:source [ fhir:context [ fhir:v "cons" ] ; fhir:element [ fhir:v "manufacturedProduct" ] ; fhir:variable [ fhir:v "man1" ] ] ) ; ( 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 "medication" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Medication" ] ] ) ] [ fhir:context [ fhir:v "medication" ] ; 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/Medication/" ] ] [ 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 "Medication" ] ] ) ] [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "medication" ] ; fhir:variable [ fhir:v "medref" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] [ fhir:context [ fhir:v "medref" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "'https://example/Medication/' + %medication.id" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "mm" ] ; ( fhir:source [ fhir:context [ fhir:v "man1" ] ; fhir:element [ fhir:v "manufacturedMaterial" ] ; fhir:variable [ fhir:v "mm" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "code" ] ; ( fhir:source [ fhir:context [ fhir:v "mm" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "administrationUnitCode" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "administrationUnitCode" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "form" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] [ fhir:name [ fhir:v "entryR" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryR" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obs" ] ; ( fhir:source [ fhir:context [ fhir:v "entryR" ] ; fhir:element [ fhir:v "observation" ] ; fhir:variable [ fhir:v "observation" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ingredient" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "displayName = 'Grammatura'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "ingredient" ] ; fhir:variable [ fhir:v "ingredient" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "consumable" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "consumable" ] ; fhir:variable [ fhir:v "consumable" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "product" ] ; ( fhir:source [ fhir:context [ fhir:v "consumable" ] ; fhir:element [ fhir:v "manufacturedProduct" ] ; fhir:variable [ fhir:v "manufacturedProduct" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "material" ] ; ( fhir:source [ fhir:context [ fhir:v "manufacturedProduct" ] ; fhir:element [ fhir:v "manufacturedMaterial" ] ; fhir:variable [ fhir:v "manufacturedMaterial" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "CE" ] ; ( fhir:source [ fhir:context [ fhir:v "manufacturedMaterial" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ingredient" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "value" ] ; 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 "value" ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "strenght" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ingredient" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "strength" ] ; fhir:variable [ fhir:v "strength" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "numerator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "strength" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "numerator" ] ; fhir:variable [ fhir:v "numerator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueN" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "numerator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "denominator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "strength" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "denominator" ] ; fhir:variable [ fhir:v "denominator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueD" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "denominator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "1"^^xsd:integer ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "quantita" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "code" ] ; fhir:condition [ fhir:v "displayName = 'Quantità nella Confezione'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "amount" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medication" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "amount" ] ; fhir:variable [ fhir:v "amount" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "numerator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "amount" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "numerator" ] ; fhir:variable [ fhir:v "numerator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueN" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "numerator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "denominator" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "amount" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "denominator" ] ; fhir:variable [ fhir:v "denominator" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "valueD" ] ; ( fhir:source [ fhir:context [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "denominator" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "1"^^xsd:integer ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "entry" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "entryRelationship" ] ; fhir:variable [ fhir:v "entryRelationship" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "sub" ] ; ( fhir:source [ fhir:context [ fhir:v "entryRelationship" ] ; fhir:element [ fhir:v "supply" ] ; fhir:variable [ fhir:v "sup" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dispenseRequest" ] ; fhir:variable [ fhir:v "dispreq" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "quantity" ] ; ( fhir:source [ fhir:context [ fhir:v "sup" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dispreq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "quantity" ] ; fhir:variable [ fhir:v "quantity" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "quantity" ] ; ( fhir:source [ fhir:context [ fhir:v "sup" ] ; fhir:element [ fhir:v "quantity" ] ; fhir:variable [ fhir:v "q" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "quantity" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "q.value" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "tx" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "tx" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; 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 "tx" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "ref" ] ] ) ; ( 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 "ref.value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "statusCode" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "statusCode" ] ; fhir:variable [ fhir:v "st" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "st.code" ] ] ) ] ) ] [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:type [ fhir:v "IVL_TS" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "timing" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "timing" ] ; fhir:variable [ fhir:v "timing" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Timing" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "rep" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "timing" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "repeat" ] ; fhir:variable [ fhir:v "rep" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "period" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "rep" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "bounds" ] ; 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 "period" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:type [ fhir:v "EIVL_TS" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "timing" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "timing" ] ; fhir:variable [ fhir:v "timing" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Timing" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "rep" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "timing" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "repeat" ] ; fhir:variable [ fhir:v "rep" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "event" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ; fhir:element [ fhir:v "event" ] ; fhir:variable [ fhir:v "ev" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "rep" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "when" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ev.code" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "tim" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:type [ fhir:v "IVL_TS" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "timing" ] ; fhir:variable [ fhir:v "timing" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Timing" ] ] ) ] [ fhir:context [ fhir:v "timing" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "event" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "eff.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "eff" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:type [ fhir:v "PIVL_TS" ] ; fhir:element [ fhir:v "effectiveTime" ] ; fhir:variable [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "cod" ] ; ( fhir:source [ fhir:context [ fhir:v "eff" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "timing" ] ; fhir:variable [ fhir:v "timing" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Timing" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "periodTiming" ] ; ( fhir:variable [ fhir:v "eff" ] [ fhir:v "timing" ] ) ] ) ] ) ] [ fhir:name [ fhir:v "dosage" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "routeCode" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "routeCode" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "route" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "dosage" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosage" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "approachSiteCode" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "approachSiteCode" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosage" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "site" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "Dosage" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "doseQuantity" ] ; fhir:variable [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosageInstruction" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ot" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "ot" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "ot" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "dosageRate" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "doseAndRate" ] ; fhir:variable [ fhir:v "dosageRate" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "d" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageRate" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dose" ] ; fhir:variable [ fhir:v "d" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Range" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "l" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.unit" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "h" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "doseQuant" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.unit" ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "rateq" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "rateQuantity" ] ; fhir:variable [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dosageInstruction" ] ; fhir:variable [ fhir:v "dosageInstruction1" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Dosage" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ot" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "originalText" ] ; fhir:variable [ fhir:v "ot" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "ot" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "vvv" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:variable [ fhir:v "vvv" ] ; fhir:transform [ fhir:v "create" ] ] ) ] ) ] [ fhir:name [ fhir:v "dosageRate" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageInstruction1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "doseAndRate" ] ; fhir:variable [ fhir:v "dosageRate" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "d" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "dosageRate" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "rate" ] ; fhir:variable [ fhir:v "d" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Range" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "l" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "low" ] ; fhir:variable [ fhir:v "lo" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "l" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lo.unit" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "low" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "d" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "h" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SimpleQuantity" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "high" ] ; ( fhir:source [ fhir:context [ fhir:v "rateQuantity" ] ; fhir:element [ fhir:v "high" ] ; fhir:variable [ fhir:v "hi" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "h" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "unit" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "hi.unit" ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "partRole" ] ; ( fhir:source [ fhir:context [ fhir:v "substract" ] ; fhir:element [ fhir:v "participant" ] ; fhir:variable [ fhir:v "part" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "e1" ] ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "BackboneElement" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "PUT" ] ] ) ] [ fhir:context [ fhir:v "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "practitioner" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "time" ] ; ( fhir:source [ fhir:context [ fhir:v "part" ] ; fhir:element [ fhir:v "time" ] ; fhir:variable [ fhir:v "time" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "medicationRq" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "authoredOn" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "time.value" ] ] ) ] ) ] [ fhir:name [ fhir:v "perf" ] ; ( fhir:source [ fhir:context [ fhir:v "part" ] ; fhir:element [ fhir:v "participantRole" ] ; fhir:variable [ fhir:v "partRole" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "meta" ] ; ( fhir:source [ fhir:context [ fhir:v "partRole" ] ] ) ; ( 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 "partRole" ] ] ) ; ( 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 "partRole" ] ] ) ; ( 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 "partRole" ] ] ) ; ( 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/TerapiaFarmacologicaRicovero/participant" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "identifier" ] ; ( fhir:source [ fhir:context [ fhir:v "partRole" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "practitioner" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "identifier" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "root1" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "translate" ] ; ( fhir:parameter [ fhir:value [ fhir:v "r" ] ] [ fhir:value [ fhir:v "http://hl7.org/fhir/ConceptMap/special-oid2uri" ] ] [ fhir:value [ fhir:v "uri" ] ] ) ] ) ] [ fhir:name [ fhir:v "extension" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "ext" ] ] ) ] ) ] [ fhir:name [ fhir:v "assigningAuthorityName" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "assigningAuthorityName" ] ; fhir:variable [ fhir:v "s" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "identifier" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "assigner" ] ; fhir:variable [ fhir:v "a" ] ] [ fhir:context [ fhir:v "a" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "s" ] ] ) ] ) ] [ fhir:name [ fhir:v "r" ] ; ( fhir:source [ fhir:context [ fhir:v "id" ] ; fhir:element [ fhir:v "root" ] ; fhir:variable [ fhir:v "r" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "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 "e1" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://example/Practitioner/" ] ] [ fhir:value [ fhir:v "uuid2" ] ] ) ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Practitioner/" ] ] [ fhir:value [ fhir:v "uuid1" ] ] ) ] [ fhir:context [ fhir:v "medicationRq" ] ; 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/Practitioner/' + %practitioner.id" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "2.16.840.1.113883.2.9.4.3.2" ] ; ( fhir:source [ fhir:context [ fhir:v "partRole" ] ; 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 "assi" ] ; ( fhir:source [ fhir:context [ fhir:v "partRole" ] ; fhir:element [ fhir:v "playingEntity" ] ; fhir:variable [ fhir:v "assi" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "name" ] ; ( fhir:source [ fhir:context [ fhir:v "assi" ] ; 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" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) . #
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