WHO SMART Guideline: Surveillance and Outbreak Toolkit
0.2.1 - CI Build
WHO SMART Guideline: Surveillance and Outbreak Toolkit, published by WHO. This is not an authorized publication; it is the continuous build for version 0.2.1. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-ot and changes regularly. See the Directory of published versions
| Draft as of 2023-11-07 |
@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 "AFROMRCIFQuestionnaireToLogicalModel"] ; # fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://worldhealthorganization.github.io/smart-ot/StructureMap/AFROMRCIFQuestionnaireToLogicalModel<span style=\"color: navy\">" = "</span>AFROMRCIFQuestionnaireToLogicalModel<span style=\"color: navy\">"\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">" </span><b>alias </b>QuestionnaireResponse <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-AFROMRCIF.html\" title=\"Surveillance & Outbreak Toolkit - AFRO MRCIF\">http://worldhealthorganization.github.io/smart-ot/StructureDefinition/AFROMRCIF</a><span style=\"color: navy\">" </span><b>alias </b>MeaslesLogicalModel <b>as </b><b>target</b>\r\n\r\n<b>group </b>MRCIFQuestionnaireToLogicalModel<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qr</span><span style=\"color: navy\"> : </span>QuestionnaireResponse, <b>target</b> <span style=\"color: maroon\">measlesLm</span><span style=\"color: navy\"> : </span>AFROMRCIF<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('investigationForm')<span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">measlesLm</span><b> as </b><span style=\"color: maroon\">measlesLm</span><b> then </b>mapInvestigationForm<span style=\"color: navy\">(</span><span style=\"color: maroon\">item</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">measlesLm</span><span style=\"color: navy\">)</span> <i>"set Investigation form"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapInvestigationForm<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">investigationForm</span>, <b>target</b> <span style=\"color: maroon\">measlesLm</span><span style=\"color: navy\"> : </span>AFROMRCIF<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> investigationForm.item<b> as </b><span style=\"color: maroon\">qrReportingSource</span><b> where </b>linkId.value in ('reportingSource')<span style=\"color: navy\"><b> -> </b></span>measlesLm.ReportingSource<b> as </b><span style=\"color: maroon\">lmReportingSource</span><b> then </b>mapReportingSource<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrReportingSource</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmReportingSource</span><span style=\"color: navy\">)</span> <i>"set Reporting Source"</i><span style=\"color: navy\">;</span>\r\n investigationForm.item<b> as </b><span style=\"color: maroon\">qrDemographics</span><b> where </b>linkId.value in ('demographics')<span style=\"color: navy\"><b> -> </b></span>measlesLm.Demographics<b> as </b><span style=\"color: maroon\">lmDemographics</span><b> then </b>mapDemographics<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrDemographics</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmDemographics</span><span style=\"color: navy\">)</span> <i>"set Demographics"</i><span style=\"color: navy\">;</span>\r\n investigationForm.item<b> as </b><span style=\"color: maroon\">qrVaccinationStatus</span><b> where </b>linkId.value in ('vaccinationStatus')<span style=\"color: navy\"><b> -> </b></span>measlesLm.VaccinationStatus<b> as </b><span style=\"color: maroon\">lmVaccinationStatus</span><b> then </b>mapVaccinationStatus<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrVaccinationStatus</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmVaccinationStatus</span><span style=\"color: navy\">)</span> <i>"set Vaccination Status"</i><span style=\"color: navy\">;</span>\r\n investigationForm.item<b> as </b><span style=\"color: maroon\">qrClinical</span><b> where </b>linkId.value in ('clinical')<span style=\"color: navy\"><b> -> </b></span>measlesLm.Clinical<b> as </b><span style=\"color: maroon\">lmClinical</span><b> then </b>mapClinical<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrClinical</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmClinical</span><span style=\"color: navy\">)</span> <i>"set Clinical"</i><span style=\"color: navy\">;</span>\r\n investigationForm.item<b> as </b><span style=\"color: maroon\">qrLaboratoryResults</span><b> where </b>linkId.value in ('laboratoryResults')<span style=\"color: navy\"><b> -> </b></span>measlesLm.LaboratoryResults<b> as </b><span style=\"color: maroon\">lmLaboratoryResults</span><b> then </b>mapLaboratoryResults<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrLaboratoryResults</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmLaboratoryResults</span><span style=\"color: navy\">)</span> <i>"set Laboratory Results"</i><span style=\"color: navy\">;</span>\r\n investigationForm.item<b> as </b><span style=\"color: maroon\">qrCaseInvestigation</span><b> where </b>linkId.value in ('qrCaseInvestigation')<span style=\"color: navy\"><b> -> </b></span>measlesLm.qrCaseInvestigation<b> as </b><span style=\"color: maroon\">lmCaseInvestigation</span><b> then </b>mapCaseInvestigation<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrCaseInvestigation</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmCaseInvestigation</span><span style=\"color: navy\">)</span> <i>"set Contact Tracing"</i><span style=\"color: navy\">;</span>\r\n investigationForm.item<b> as </b><span style=\"color: maroon\">qrClassification</span><b> where </b>linkId.value in ('classification')<span style=\"color: navy\"><b> -> </b></span>measlesLm.Classification<b> as </b><span style=\"color: maroon\">lmClassification</span><b> then </b>mapClassification<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrClassification</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmClassification</span><span style=\"color: navy\">)</span> <i>"set Classification"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapReportingSource<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrReportingSource</span>, <b>target</b> <span style=\"color: maroon\">lmReportingSource</span><span style=\"color: navy\"> : </span>SOTMeaslesReportingSource<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrReportingSource.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">caseId</span><b> where </b>item.linkId = 'caseID'<b> then</b><span style=\"color: navy\"> {\r\n</span> caseId.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmReportingSource.UniqueId = <span style=\"color: maroon\">value</span> <i>"set01"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n qrReportingSource.item<b> as </b><span style=\"color: maroon\">qrReportingInstitution</span><b> where </b>linkId.value in ('reportingInstitution')<span style=\"color: navy\"><b> -> </b></span><span style=\"color: maroon\">lmReportingSource</span><b> as </b><span style=\"color: maroon\">lmReportingSource</span><b> then </b>mapReportingInstitution<span style=\"color: navy\">(</span><span style=\"color: maroon\">qrReportingInstitution</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">lmReportingSource</span><span style=\"color: navy\">)</span> <i>"set reporting institution"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">dateReportedNational</span><b> where </b>item.linkId = 'DateReportedNational'<b> then</b><span style=\"color: navy\"> {\r\n</span> dateReportedNational.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmReportingSource.DateReportedNational = <span style=\"color: maroon\">value</span> <i>"set date reported national"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set date reported national"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set reporting source"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapReportingInstitution<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrReportingInstitution</span>, <b>target</b> <span style=\"color: maroon\">lmReportingSource</span><span style=\"color: navy\"> : </span>SOTMeaslesReportingSource<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrReportingInstitution.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">reportingFacility</span><b> where </b>item.linkId = 'reportingFacility'<b> then</b><span style=\"color: navy\"> {\r\n</span> reportingFacility.value<b> as </b><span style=\"color: maroon\">healthFacilityName</span><span style=\"color: navy\"><b> -> </b></span>lmReportingSource.HealthServiceName = <span style=\"color: maroon\">healthFacilityName</span> <i>"set health facility name"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set health facility name"</i><span style=\"color: navy\">;</span>\r\n qrReportingInstitution<span style=\"color: navy\"><b> -> </b></span><b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Address'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">lmAddress</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">country</span><b> where </b>item.linkId = 'country'<b> then</b><span style=\"color: navy\"> {\r\n</span> country.value<b> as </b><span style=\"color: maroon\">countryValue</span><span style=\"color: navy\"><b> -> </b></span>lmAddress.country = <span style=\"color: maroon\">countryValue</span> <i>"set country"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set country"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">municipality</span><b> where </b>item.linkId = 'municipality'<b> then</b><span style=\"color: navy\"> {\r\n</span> municipality.value<b> as </b><span style=\"color: maroon\">cityValue</span><span style=\"color: navy\"><b> -> </b></span>lmAddress.city = <span style=\"color: maroon\">cityValue</span> <i>"set city"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set city "</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">state</span><b> where </b>item.linkId = 'state'<b> then</b><span style=\"color: navy\"> {\r\n</span> state.value<b> as </b><span style=\"color: maroon\">stateValue</span><span style=\"color: navy\"><b> -> </b></span>lmAddress.state = <span style=\"color: maroon\">stateValue</span> <i>"set state"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set state"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">locality</span><b> where </b>item.linkId = 'locality'<b> then</b><span style=\"color: navy\"> {\r\n</span> locality.value<b> as </b><span style=\"color: maroon\">localityValue</span><span style=\"color: navy\"><b> -> </b></span>lmAddress.line = <span style=\"color: maroon\">localityValue</span> <i>"set locality"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set locality"</i><span style=\"color: navy\">;</span>\r\n qrReportingInstitution<span style=\"color: navy\"><b> -> </b></span>lmReportingSource.PlaceOfReporting = <span style=\"color: maroon\">lmAddress</span> <i>"assign address"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set address"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set reporting institution"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapDemographics<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrDemographics</span>, <b>target</b> <span style=\"color: maroon\">lmDemographics</span><span style=\"color: navy\"> : </span>SOTMeaslesDemographic<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrDemographics.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">name</span><b> where </b>item.linkId = 'name'<b> then</b><span style=\"color: navy\"> {\r\n</span> name.value<b> as </b><span style=\"color: maroon\">nameValue</span><span style=\"color: navy\"><b> -> </b></span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'HumanName'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">lmName</span><span style=\"color: navy\">, </span> lmName.family = <span style=\"color: maroon\">nameValue</span><span style=\"color: navy\">, </span> lmDemographics.Name = <span style=\"color: maroon\">lmName</span> <i>"set name"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set name"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">// </span><span style=\"color: green\">adapt address to be separate mappings</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">address</span><b> where </b>item.linkId = 'address'<b> then</b><span style=\"color: navy\"> {\r\n</span> address.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Address'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">lmAddress</span><span style=\"color: navy\">, </span> lmAddress.text = <span style=\"color: maroon\">value</span><span style=\"color: navy\">, </span> lmDemographics.PlaceOfResidence = <span style=\"color: maroon\">lmAddress</span> <i>"set address"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set address"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">location</span><b> where </b>item.linkId = 'localityType'<b> then</b><span style=\"color: navy\"> {\r\n</span> location.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmDemographics.LocalityType = <span style=\"color: maroon\">value</span> <i>"set Locality Type"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set Locality Type"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">sex</span><b> where </b>item.linkId = 'sex'<b> then</b><span style=\"color: navy\"> {\r\n</span> sex.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmDemographics.Sex = <span style=\"color: maroon\">value</span> <i>"set sex"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set sex"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">DoB</span><b> where </b>item.linkId = 'DoB'<b> then</b><span style=\"color: navy\"> {\r\n</span> DoB.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmDemographics.DateOfBirth = <span style=\"color: maroon\">value</span> <i>"set DoB"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set DoB"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">ageOnset</span><b> where </b>item.linkId = 'ageOnset'<b> then</b><span style=\"color: navy\"> {\r\n</span> ageOnset.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span> <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">lmAgeOnset</span><span style=\"color: navy\">, </span> lmAgeOnset.value = <span style=\"color: maroon\">value</span><span style=\"color: navy\">, </span> lmDemographics.Age = <span style=\"color: maroon\">lmAgeOnset</span> <i>"set ageOnset"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set ageOnset"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set demographics"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapVaccinationStatus<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrVaccinationStatus</span>, <b>target</b> <span style=\"color: maroon\">lmVaccinationStatus</span><span style=\"color: navy\"> : </span>SOTMeaslesVaccinationStatus<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrVaccinationStatus.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">lastDoseDate</span><b> where </b>item.linkId = 'lastDoseDate'<b> then</b><span style=\"color: navy\"> {\r\n</span> lastDoseDate.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmVaccinationStatus.LastDoseDate = <span style=\"color: maroon\">value</span> <i>"set Last Dose Date"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set last dose date"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">noOfDoses</span><b> where </b>item.linkId = 'noOfDoses'<b> then</b><span style=\"color: navy\"> {\r\n</span> noOfDoses.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmVaccinationStatus.NumberOfDoses = <span style=\"color: maroon\">value</span> <i>"set number of doses"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">vaccineType</span><b> where </b>item.linkId = 'vaccineType'<b> then</b><span style=\"color: navy\"> {\r\n</span> vaccineType.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmVaccinationStatus.VaccineType = <span style=\"color: maroon\">value</span> <i>"set vaccine type"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapClinical<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrClinical</span>, <b>target</b> <span style=\"color: maroon\">lmClinical</span><span style=\"color: navy\"> : </span>SOTMeaslesClinical<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrClinical.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">fever</span><b> where </b>item.linkId = 'fever'<b> then</b><span style=\"color: navy\"> {\r\n</span> fever.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Fever = <span style=\"color: maroon\">value</span> <i>"set Fever"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">rash</span><b> where </b>item.linkId = 'rash'<b> then</b><span style=\"color: navy\"> {\r\n</span> rash.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Rash = <span style=\"color: maroon\">value</span> <i>"set Rash"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">cough</span><b> where </b>item.linkId = 'cough'<b> then</b><span style=\"color: navy\"> {\r\n</span> cough.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Cough = <span style=\"color: maroon\">value</span> <i>"set Cough"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">conjunctivitis</span><b> where </b>item.linkId = 'conjunctivitis'<b> then</b><span style=\"color: navy\"> {\r\n</span> conjunctivitis.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Conjunctivitis = <span style=\"color: maroon\">value</span> <i>"set Conjunctivitis"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">coryza</span><b> where </b>item.linkId = 'coryza'<b> then</b><span style=\"color: navy\"> {\r\n</span> coryza.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Coryza = <span style=\"color: maroon\">value</span> <i>"set Coryza"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">lymphadenopathy</span><b> where </b>item.linkId = 'lymphadenopathy'<b> then</b><span style=\"color: navy\"> {\r\n</span> lymphadenopathy.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Lymphadenopathy = <span style=\"color: maroon\">value</span> <i>"set Lymphadenopathy"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">jointPain</span><b> where </b>item.linkId = 'jointPain'<b> then</b><span style=\"color: navy\"> {\r\n</span> jointPain.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.JointPain = <span style=\"color: maroon\">value</span> <i>"set Arthralgia"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">admitted</span><b> where </b>item.linkId = 'admitted'<b> then</b><span style=\"color: navy\"> {\r\n</span> admitted.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.HistoryOfHospitalization = <span style=\"color: maroon\">value</span> <i>"set Hospitalized"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">admittedHCFName</span><b> where </b>item.linkId = 'admittedHCFName'<b> then</b><span style=\"color: navy\"> {\r\n</span> admittedHCFName.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.HospitalName = <span style=\"color: maroon\">value</span> <i>"set Hospital Name"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">outcome</span><b> where </b>item.linkId = 'outcome'<b> then</b><span style=\"color: navy\"> {\r\n</span> outcome.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.Outcome = <span style=\"color: maroon\">value</span> <i>"set Outcome"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'travelledOutside'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.travelledOutside = <span style=\"color: maroon\">value</span> <i>"set specify virus"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'infectionSetting'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.specifyInfectionSetting = <span style=\"color: maroon\">value</span> <i>"set specify virus"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set clinical"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapLaboratoryResults<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrLaboratoryResults</span>, <b>target</b> <span style=\"color: maroon\">lmLaboratoryResults</span><span style=\"color: navy\"> : </span>LaboratoryResultsLogicalModel<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrLaboratoryResults.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'sampleType'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.SampleType = <span style=\"color: maroon\">value</span> <i>"set SampleType"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'collectionDate'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.SpecimenCollectionDate = <span style=\"color: maroon\">value</span> <i>"set SpecimenCollectionDate"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'labName'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.LabName = <span style=\"color: maroon\">value</span> <i>"set Shipment Date"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'specimenSentDate'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.SpecimenSentDate = <span style=\"color: maroon\">value</span> <i>"set SpecimenSentDate"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'specimenReceivedDate'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.SpecimenRecdDate = <span style=\"color: maroon\">value</span> <i>"set SpecimenRecdDate"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'testPerformed'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.TypeOfTest = <span style=\"color: maroon\">value</span> <i>"set TypeOfTest"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'result'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.Results = <span style=\"color: maroon\">value</span> <i>"set Results"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'specifyVirus'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmLaboratoryResults.ViralGenotype = <span style=\"color: maroon\">value</span> <i>"set specify virus"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set labs"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapCaseInvestigation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrCaseInvestigation</span>, <b>target</b> <span style=\"color: maroon\">lmCaseInvestigation</span><span style=\"color: navy\"> : </span>SOTMeaslesCaseInvestigation<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrCaseInvestigation.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">dateOfConsultation</span><b> where </b>item.linkId = 'DateOfConsultation'<b> then</b><span style=\"color: navy\"> {\r\n</span> dateOfConsultation.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmReportingSource.DateOfConsultation = <span style=\"color: maroon\">value</span> <i>"set date of consultation"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set date of consultation"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">dateReportedLocal</span><b> where </b>item.linkId = 'dateReported'<b> then</b><span style=\"color: navy\"> {\r\n</span> dateReportedLocal.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmReportingSource.DateReportedLocal = <span style=\"color: maroon\">value</span> <i>"set date reported local"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set date reported local"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">rashOnsetDate</span><b> where </b>item.linkId = 'rashOnsetDate'<b> then</b><span style=\"color: navy\"> {\r\n</span> rashOnsetDate.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClinical.RashOnsetDate = <span style=\"color: maroon\">value</span> <i>"set Rash Onset Date"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set contact tracing"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mapClassification<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qrClassification</span>, <b>target</b> <span style=\"color: maroon\">lmClassification</span><span style=\"color: navy\"> : </span>ClassificationLogicalModel<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qrClassification.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'finalClassification'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClassification.FinalClassification = <span style=\"color: maroon\">value</span> <i>"set finalClassification"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">reportedBy</span><b> where </b>item.linkId = 'reportedBy'<b> then</b><span style=\"color: navy\"> {\r\n</span> reportedBy.value<b> as </b><span style=\"color: maroon\">value</span><span style=\"color: navy\"><b> -> </b></span>lmClassification.ReportedBy = <span style=\"color: maroon\">value</span> <i>"set case ID"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set case ID"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"set classification"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>" ] ; # fhir:url [ fhir:v "http://worldhealthorganization.github.io/smart-ot/StructureMap/AFROMRCIFQuestionnaireToLogicalModel"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.2.1"] ; # fhir:name [ fhir:v "AFROMRCIFQuestionnaireToLogicalModel"] ; # fhir:status [ fhir:v "draft"] ; # fhir:date [ fhir:v "2023-11-07T05:59:29+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "WHO"] ; # fhir:contact ( [ fhir:name [ fhir:v "WHO" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://who.int" ] ] ) ] ) ; # fhir:jurisdiction ( [ ( fhir:coding [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ; fhir:code [ fhir:v "001" ] ] ) ] ) ; # fhir:structure ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse> ] ; fhir:mode [ fhir:v "source" ] ; fhir:alias [ fhir:v "QuestionnaireResponse" ] ] [ fhir:url [ fhir:v "http://worldhealthorganization.github.io/smart-ot/StructureDefinition/AFROMRCIF"^^xsd:anyURI ; fhir:link <http://worldhealthorganization.github.io/smart-ot/StructureDefinition/AFROMRCIF> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "MeaslesLogicalModel" ] ] ) ; # fhir:group ( [ fhir:name [ fhir:v "MRCIFQuestionnaireToLogicalModel" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qr" ] ; fhir:type [ fhir:v "QuestionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "measlesLm" ] ; fhir:type [ fhir:v "AFROMRCIF" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Investigation form" ] ; ( fhir:source [ fhir:context [ fhir:v "qr" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId.value in ('investigationForm')" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "measlesLm" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "measlesLm" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapInvestigationForm" ] ; ( fhir:variable [ fhir:v "item" ] [ fhir:v "measlesLm" ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapInvestigationForm" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "investigationForm" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "measlesLm" ] ; fhir:type [ fhir:v "AFROMRCIF" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Reporting Source" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrReportingSource" ] ; fhir:condition [ fhir:v "linkId.value in ('reportingSource')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "ReportingSource" ] ; fhir:variable [ fhir:v "lmReportingSource" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapReportingSource" ] ; ( fhir:variable [ fhir:v "qrReportingSource" ] [ fhir:v "lmReportingSource" ] ) ] ) ] [ fhir:name [ fhir:v "set Demographics" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrDemographics" ] ; fhir:condition [ fhir:v "linkId.value in ('demographics')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Demographics" ] ; fhir:variable [ fhir:v "lmDemographics" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapDemographics" ] ; ( fhir:variable [ fhir:v "qrDemographics" ] [ fhir:v "lmDemographics" ] ) ] ) ] [ fhir:name [ fhir:v "set Vaccination Status" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrVaccinationStatus" ] ; fhir:condition [ fhir:v "linkId.value in ('vaccinationStatus')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "VaccinationStatus" ] ; fhir:variable [ fhir:v "lmVaccinationStatus" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapVaccinationStatus" ] ; ( fhir:variable [ fhir:v "qrVaccinationStatus" ] [ fhir:v "lmVaccinationStatus" ] ) ] ) ] [ fhir:name [ fhir:v "set Clinical" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrClinical" ] ; fhir:condition [ fhir:v "linkId.value in ('clinical')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Clinical" ] ; fhir:variable [ fhir:v "lmClinical" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapClinical" ] ; ( fhir:variable [ fhir:v "qrClinical" ] [ fhir:v "lmClinical" ] ) ] ) ] [ fhir:name [ fhir:v "set Laboratory Results" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrLaboratoryResults" ] ; fhir:condition [ fhir:v "linkId.value in ('laboratoryResults')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "LaboratoryResults" ] ; fhir:variable [ fhir:v "lmLaboratoryResults" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapLaboratoryResults" ] ; ( fhir:variable [ fhir:v "qrLaboratoryResults" ] [ fhir:v "lmLaboratoryResults" ] ) ] ) ] [ fhir:name [ fhir:v "set Contact Tracing" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrCaseInvestigation" ] ; fhir:condition [ fhir:v "linkId.value in ('qrCaseInvestigation')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "qrCaseInvestigation" ] ; fhir:variable [ fhir:v "lmCaseInvestigation" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapCaseInvestigation" ] ; ( fhir:variable [ fhir:v "qrCaseInvestigation" ] [ fhir:v "lmCaseInvestigation" ] ) ] ) ] [ fhir:name [ fhir:v "set Classification" ] ; ( fhir:source [ fhir:context [ fhir:v "investigationForm" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrClassification" ] ; fhir:condition [ fhir:v "linkId.value in ('classification')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "measlesLm" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Classification" ] ; fhir:variable [ fhir:v "lmClassification" ] ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapClassification" ] ; ( fhir:variable [ fhir:v "qrClassification" ] [ fhir:v "lmClassification" ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapReportingSource" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrReportingSource" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmReportingSource" ] ; fhir:type [ fhir:v "SOTMeaslesReportingSource" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set reporting source" ] ; ( fhir:source [ fhir:context [ fhir:v "qrReportingSource" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "caseId" ] ; fhir:condition [ fhir:v "item.linkId = 'caseID'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set01" ] ; ( fhir:source [ fhir:context [ fhir:v "caseId" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmReportingSource" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "UniqueId" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set reporting institution" ] ; ( fhir:source [ fhir:context [ fhir:v "qrReportingSource" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "qrReportingInstitution" ] ; fhir:condition [ fhir:v "linkId.value in ('reportingInstitution')" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "lmReportingSource" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lmReportingSource" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "mapReportingInstitution" ] ; ( fhir:variable [ fhir:v "qrReportingInstitution" ] [ fhir:v "lmReportingSource" ] ) ] ) ] [ fhir:name [ fhir:v "set date reported national" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "dateReportedNational" ] ; fhir:condition [ fhir:v "item.linkId = 'DateReportedNational'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set date reported national" ] ; ( fhir:source [ fhir:context [ fhir:v "dateReportedNational" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmReportingSource" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "DateReportedNational" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapReportingInstitution" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrReportingInstitution" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmReportingSource" ] ; fhir:type [ fhir:v "SOTMeaslesReportingSource" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set reporting institution" ] ; ( fhir:source [ fhir:context [ fhir:v "qrReportingInstitution" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set health facility name" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "reportingFacility" ] ; fhir:condition [ fhir:v "item.linkId = 'reportingFacility'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set health facility name" ] ; ( fhir:source [ fhir:context [ fhir:v "reportingFacility" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "healthFacilityName" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmReportingSource" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "HealthServiceName" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "healthFacilityName" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set address" ] ; ( fhir:source [ fhir:context [ fhir:v "qrReportingInstitution" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "lmAddress" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Address" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set country" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "country" ] ; fhir:condition [ fhir:v "item.linkId = 'country'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set country" ] ; ( fhir:source [ fhir:context [ fhir:v "country" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "countryValue" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmAddress" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "country" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "countryValue" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set city " ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "municipality" ] ; fhir:condition [ fhir:v "item.linkId = 'municipality'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set city" ] ; ( fhir:source [ fhir:context [ fhir:v "municipality" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "cityValue" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmAddress" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "city" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cityValue" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set state" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "state" ] ; fhir:condition [ fhir:v "item.linkId = 'state'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set state" ] ; ( fhir:source [ fhir:context [ fhir:v "state" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "stateValue" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmAddress" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "state" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "stateValue" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set locality" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "locality" ] ; fhir:condition [ fhir:v "item.linkId = 'locality'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set locality" ] ; ( fhir:source [ fhir:context [ fhir:v "locality" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "localityValue" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmAddress" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "line" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "localityValue" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "assign address" ] ; ( fhir:source [ fhir:context [ fhir:v "qrReportingInstitution" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmReportingSource" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "PlaceOfReporting" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lmAddress" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapDemographics" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrDemographics" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmDemographics" ] ; fhir:type [ fhir:v "SOTMeaslesDemographic" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set demographics" ] ; ( fhir:source [ fhir:context [ fhir:v "qrDemographics" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set name" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "name" ] ; fhir:condition [ fhir:v "item.linkId = 'name'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set name" ] ; ( fhir:source [ fhir:context [ fhir:v "name" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "nameValue" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "lmName" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "HumanName" ] ] ) ] [ fhir:context [ fhir:v "lmName" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "family" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "nameValue" ] ] ) ] [ fhir:context [ fhir:v "lmDemographics" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Name" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lmName" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set address" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "address" ] ; fhir:condition [ fhir:v "item.linkId = 'address'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set address" ] ; ( fhir:source [ fhir:context [ fhir:v "address" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "lmAddress" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Address" ] ] ) ] [ fhir:context [ fhir:v "lmAddress" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] [ fhir:context [ fhir:v "lmDemographics" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "PlaceOfResidence" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lmAddress" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set Locality Type" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "location" ] ; fhir:condition [ fhir:v "item.linkId = 'localityType'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Locality Type" ] ; ( fhir:source [ fhir:context [ fhir:v "location" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmDemographics" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "LocalityType" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set sex" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "sex" ] ; fhir:condition [ fhir:v "item.linkId = 'sex'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set sex" ] ; ( fhir:source [ fhir:context [ fhir:v "sex" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmDemographics" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Sex" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set DoB" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "DoB" ] ; fhir:condition [ fhir:v "item.linkId = 'DoB'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set DoB" ] ; ( fhir:source [ fhir:context [ fhir:v "DoB" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmDemographics" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "DateOfBirth" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set ageOnset" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ageOnset" ] ; fhir:condition [ fhir:v "item.linkId = 'ageOnset'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set ageOnset" ] ; ( fhir:source [ fhir:context [ fhir:v "ageOnset" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "lmAgeOnset" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Quantity" ] ] ) ] [ fhir:context [ fhir:v "lmAgeOnset" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] [ fhir:context [ fhir:v "lmDemographics" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Age" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "lmAgeOnset" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapVaccinationStatus" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrVaccinationStatus" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmVaccinationStatus" ] ; fhir:type [ fhir:v "SOTMeaslesVaccinationStatus" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "qrVaccinationStatus" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set last dose date" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "lastDoseDate" ] ; fhir:condition [ fhir:v "item.linkId = 'lastDoseDate'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Last Dose Date" ] ; ( fhir:source [ fhir:context [ fhir:v "lastDoseDate" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmVaccinationStatus" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "LastDoseDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "noOfDoses" ] ; fhir:condition [ fhir:v "item.linkId = 'noOfDoses'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set number of doses" ] ; ( fhir:source [ fhir:context [ fhir:v "noOfDoses" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmVaccinationStatus" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "NumberOfDoses" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "vaccineType" ] ; fhir:condition [ fhir:v "item.linkId = 'vaccineType'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set vaccine type" ] ; ( fhir:source [ fhir:context [ fhir:v "vaccineType" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmVaccinationStatus" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "VaccineType" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapClinical" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrClinical" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmClinical" ] ; fhir:type [ fhir:v "SOTMeaslesClinical" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set clinical" ] ; ( fhir:source [ fhir:context [ fhir:v "qrClinical" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "fever" ] ; fhir:condition [ fhir:v "item.linkId = 'fever'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Fever" ] ; ( fhir:source [ fhir:context [ fhir:v "fever" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Fever" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "rash" ] ; fhir:condition [ fhir:v "item.linkId = 'rash'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Rash" ] ; ( fhir:source [ fhir:context [ fhir:v "rash" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Rash" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "cough" ] ; fhir:condition [ fhir:v "item.linkId = 'cough'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Cough" ] ; ( fhir:source [ fhir:context [ fhir:v "cough" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Cough" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "conjunctivitis" ] ; fhir:condition [ fhir:v "item.linkId = 'conjunctivitis'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Conjunctivitis" ] ; ( fhir:source [ fhir:context [ fhir:v "conjunctivitis" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Conjunctivitis" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "coryza" ] ; fhir:condition [ fhir:v "item.linkId = 'coryza'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Coryza" ] ; ( fhir:source [ fhir:context [ fhir:v "coryza" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Coryza" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "lymphadenopathy" ] ; fhir:condition [ fhir:v "item.linkId = 'lymphadenopathy'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Lymphadenopathy" ] ; ( fhir:source [ fhir:context [ fhir:v "lymphadenopathy" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Lymphadenopathy" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "jointPain" ] ; fhir:condition [ fhir:v "item.linkId = 'jointPain'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Arthralgia" ] ; ( fhir:source [ fhir:context [ fhir:v "jointPain" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "JointPain" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "admitted" ] ; fhir:condition [ fhir:v "item.linkId = 'admitted'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Hospitalized" ] ; ( fhir:source [ fhir:context [ fhir:v "admitted" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "HistoryOfHospitalization" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "admittedHCFName" ] ; fhir:condition [ fhir:v "item.linkId = 'admittedHCFName'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Hospital Name" ] ; ( fhir:source [ fhir:context [ fhir:v "admittedHCFName" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "HospitalName" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "outcome" ] ; fhir:condition [ fhir:v "item.linkId = 'outcome'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Outcome" ] ; ( fhir:source [ fhir:context [ fhir:v "outcome" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Outcome" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'travelledOutside'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set specify virus" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "travelledOutside" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'infectionSetting'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set specify virus" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "specifyInfectionSetting" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapLaboratoryResults" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrLaboratoryResults" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmLaboratoryResults" ] ; fhir:type [ fhir:v "LaboratoryResultsLogicalModel" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set labs" ] ; ( fhir:source [ fhir:context [ fhir:v "qrLaboratoryResults" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'sampleType'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set SampleType" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "SampleType" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'collectionDate'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set SpecimenCollectionDate" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "SpecimenCollectionDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'labName'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Shipment Date" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "LabName" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'specimenSentDate'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set SpecimenSentDate" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "SpecimenSentDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'specimenReceivedDate'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set SpecimenRecdDate" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "SpecimenRecdDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'testPerformed'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set TypeOfTest" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "TypeOfTest" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'result'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Results" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "Results" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'specifyVirus'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set specify virus" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmLaboratoryResults" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "ViralGenotype" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapCaseInvestigation" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrCaseInvestigation" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmCaseInvestigation" ] ; fhir:type [ fhir:v "SOTMeaslesCaseInvestigation" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set contact tracing" ] ; ( fhir:source [ fhir:context [ fhir:v "qrCaseInvestigation" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set date of consultation" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "dateOfConsultation" ] ; fhir:condition [ fhir:v "item.linkId = 'DateOfConsultation'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set date of consultation" ] ; ( fhir:source [ fhir:context [ fhir:v "dateOfConsultation" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmReportingSource" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "DateOfConsultation" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set date reported local" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "dateReportedLocal" ] ; fhir:condition [ fhir:v "item.linkId = 'dateReported'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set date reported local" ] ; ( fhir:source [ fhir:context [ fhir:v "dateReportedLocal" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmReportingSource" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "DateReportedLocal" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "rashOnsetDate" ] ; fhir:condition [ fhir:v "item.linkId = 'rashOnsetDate'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set Rash Onset Date" ] ; ( fhir:source [ fhir:context [ fhir:v "rashOnsetDate" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClinical" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "RashOnsetDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "mapClassification" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "qrClassification" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "lmClassification" ] ; fhir:type [ fhir:v "ClassificationLogicalModel" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set classification" ] ; ( fhir:source [ fhir:context [ fhir:v "qrClassification" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "answer" ] ; fhir:condition [ fhir:v "item.linkId = 'finalClassification'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set finalClassification" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClassification" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "FinalClassification" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "set case ID" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "reportedBy" ] ; fhir:condition [ fhir:v "item.linkId = 'reportedBy'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "set case ID" ] ; ( fhir:source [ fhir:context [ fhir:v "reportedBy" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "value" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "lmClassification" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "ReportedBy" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "value" ] ] ) ] ) ] ) ] ) ] ) ] ) . #
IG © 2021+ WHO. Package fhir.worldhealthorganization.smart-ot#0.2.1 based on FHIR 4.0.1. Generated 2023-11-07
Links: Table of Contents |
QA Report
| Issues
| Version History | License