Kenya Disease Surveillance FHIR Implementation Guide., published by Kenya National Public Health Institute. 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/IntelliSOFT-Consulting/Surveillance-FHIR-IG/ and changes regularly. See the Directory of published versions
| Draft as of 2026-05-04 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @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 "MeaslesLabResultsMap"] ; # fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap MeaslesLabResultsMap</b></p><a name=\"MeaslesLabResultsMap\"> </a><a name=\"hcMeaslesLabResultsMap\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://example.org/StructureMap/MeaslesLabResultsMap<span style=\"color: navy\">\" = \"</span>MeaslesLabResultsMap<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Measles Lab Results QuestionnaireResponse to FHIR resources</span>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Maps to: Observation (Measles IgM), Observation (Rubella IgM), DiagnosticReport</span>#xD;\n#xD;\n<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>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/bundle.html\" title=\"Bundle\">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style=\"color: navy\">\" </span><b>alias </b>Bundle <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">\" </span><b>alias </b>Observation <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/diagnosticreport.html\" title=\"DiagnosticReport\">http://hl7.org/fhir/StructureDefinition/DiagnosticReport</a><span style=\"color: navy\">\" </span><b>alias </b>DiagnosticReport <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>MeaslesLabResultsMap<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QuestionnaireResponse, <b>target</b> <span style=\"color: maroon\">bundle</span><span style=\"color: navy\"> : </span>Bundle<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>bundle.id = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>\"bundleId\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>bundle.type = <span style=\"color: blue\">'transaction'</span> <i>\"bundleType\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Measles IgM Observation</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>bundle.entry<b> as </b><span style=\"color: maroon\">e</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>e.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Observation'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">measlesObs</span><b> then </b>MapMeaslesIgM<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">measlesObs</span><span style=\"color: navy\">)</span> <i>\"execMeaslesIgM\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span> e.request<b> as </b><span style=\"color: maroon\">req</span><span style=\"color: navy\">, </span> req.method = <span style=\"color: blue\">'POST'</span><span style=\"color: navy\">, </span> req.url = <span style=\"color: blue\">'Observation'</span> <i>\"measlesObsReq\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"measlesIgMEntry\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Rubella IgM Observation</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>bundle.entry<b> as </b><span style=\"color: maroon\">e</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>e.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Observation'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">rubellaObs</span><b> then </b>MapRubellaIgM<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">rubellaObs</span><span style=\"color: navy\">)</span> <i>\"execRubellaIgM\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span> e.request<b> as </b><span style=\"color: maroon\">req</span><span style=\"color: navy\">, </span> req.method = <span style=\"color: blue\">'POST'</span><span style=\"color: navy\">, </span> req.url = <span style=\"color: blue\">'Observation'</span> <i>\"rubellaObsReq\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"rubellaIgMEntry\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">DiagnosticReport</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>bundle.entry<b> as </b><span style=\"color: maroon\">e</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>e.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'DiagnosticReport'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">report</span><b> then </b>MapLabDiagnosticReport<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">report</span><span style=\"color: navy\">)</span> <i>\"execReport\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span> e.request<b> as </b><span style=\"color: maroon\">req</span><span style=\"color: navy\">, </span> req.method = <span style=\"color: blue\">'POST'</span><span style=\"color: navy\">, </span> req.url = <span style=\"color: blue\">'DiagnosticReport'</span> <i>\"reportReq\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"diagnosticReportEntry\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>MapMeaslesIgM<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QuestionnaireResponse, <b>target</b> <span style=\"color: maroon\">obs</span><span style=\"color: navy\"> : </span>Observation<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>obs.id = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>\"obsId\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>obs.status = <span style=\"color: blue\">'final'</span> <i>\"status\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">LOINC code for Measles virus IgM Ab in Serum</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>obs.code<b> as </b><span style=\"color: maroon\">code</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>code.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>coding.system = <span style=\"color: blue\">'http://loinc.org'</span> <i>\"loincSys\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.code = <span style=\"color: blue\">'20479-4'</span> <i>\"measlesIgMCode\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.display = <span style=\"color: blue\">'Measles virus IgM Ab [Presence] in Serum'</span> <i>\"measlesIgMDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"measlesIgMCoding\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>code.text = <span style=\"color: blue\">'Measles IgM'</span> <i>\"obsText\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"codeBlock\"</i><span style=\"color: navy\">;</span>#xD;\n src.subject<b> as </b><span style=\"color: maroon\">subj</span><span style=\"color: navy\"><b> -> </b></span> obs.subject<b> as </b><span style=\"color: maroon\">ref</span><span style=\"color: navy\">, </span> ref.reference = <span style=\"color: navy\">(</span>'Patient/' + subj.reference<span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Lab ID as identifier</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = '8732404074721'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.identifier<b> as </b><span style=\"color: maroon\">id</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>id.system = <span style=\"color: blue\">'http://example.org/identifier/lab-id'</span> <i>\"labIdSys\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>id.value = <span style=\"color: maroon\">ans.valueString</span> <i>\"labIdValue\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"labId\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"labIdItem\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Specimen sent date → effective period start</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = '718251724172'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.effective = <span style=\"color: maroon\">ans.valueDate</span> <i>\"effectiveDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"specimenSentDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Date specimen received → issued</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'date-specimen-received'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.issued = <span style=\"color: maroon\">ans.valueDate</span> <i>\"issued\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"receivedDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Specimen condition as note</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'specimen-condition'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span> obs.note<b> as </b><span style=\"color: maroon\">note</span><span style=\"color: navy\">, </span> note.text = <span style=\"color: navy\">(</span>'Specimen condition: ' + ans.valueCoding.display<span style=\"color: navy\">)</span> <i>\"conditionNote\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"specimenCondition\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Measles IgM result → value</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'measles-igm'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.valueCodeableConcept<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>coding.coding<b> as </b><span style=\"color: maroon\">cod</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>cod.system = <span style=\"color: blue\">'http://example.org/CodeSystem/lab-result'</span> <i>\"resultSys\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>cod.code = <span style=\"color: navy\">(</span>ans.valueCoding.code<span style=\"color: navy\">)</span> <i>\"resultCode\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>cod.display = <span style=\"color: navy\">(</span>ans.valueCoding.display<span style=\"color: navy\">)</span> <i>\"resultDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"resultCoding\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"measlesIgMResult\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Interpretation</span>#xD;\n item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.interpretation<b> as </b><span style=\"color: maroon\">interp</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans.valueCoding<b> as </b><span style=\"color: maroon\">val</span><b> where </b>code = 'Positive'<span style=\"color: navy\"><b> -> </b></span> interp.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'POS'</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: blue\">'Positive'</span> <i>\"posInterp\"</i><span style=\"color: navy\">;</span>#xD;\n ans.valueCoding<b> as </b><span style=\"color: maroon\">val</span><b> where </b>code = 'Negative'<span style=\"color: navy\"><b> -> </b></span> interp.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'NEG'</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: blue\">'Negative'</span> <i>\"negInterp\"</i><span style=\"color: navy\">;</span>#xD;\n ans.valueCoding<b> as </b><span style=\"color: maroon\">val</span><b> where </b>code = 'Indeterminate'<span style=\"color: navy\"><b> -> </b></span> interp.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'IND'</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: blue\">'Indeterminate'</span> <i>\"indInterp\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"interpretation\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"measlesIgMItem\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Date results sent out</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'date-lab-sent-results'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.extension<b> as </b><span style=\"color: maroon\">ext</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>ext.url = <span style=\"color: blue\">'http://example.org/StructureDefinition/resultsSentDate'</span> <i>\"extUrl\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>ext.valueDate = <span style=\"color: maroon\">ans.valueDate</span> <i>\"extValue\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"resultsSentExt\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"resultsSentDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Regional lab referral date</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = '655865451155'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.extension<b> as </b><span style=\"color: maroon\">ext</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>ext.url = <span style=\"color: blue\">'http://example.org/StructureDefinition/regionalLabDate'</span> <i>\"extUrl\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>ext.valueDate = <span style=\"color: maroon\">ans.valueDate</span> <i>\"extValue\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"regionalLabExt\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"regionalLabDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Final classification as note</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'final-classification'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span> obs.note<b> as </b><span style=\"color: maroon\">note</span><span style=\"color: navy\">, </span> note.text = <span style=\"color: navy\">(</span>'Final classification: ' + ans.valueCoding.display<span style=\"color: navy\">)</span> <i>\"classificationNote\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"finalClassification\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>MapRubellaIgM<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QuestionnaireResponse, <b>target</b> <span style=\"color: maroon\">obs</span><span style=\"color: navy\"> : </span>Observation<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>obs.id = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>\"obsId\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>obs.status = <span style=\"color: blue\">'final'</span> <i>\"status\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">LOINC code for Rubella virus IgM Ab in Serum</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>obs.code<b> as </b><span style=\"color: maroon\">code</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>code.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>coding.system = <span style=\"color: blue\">'http://loinc.org'</span> <i>\"loincSys\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.code = <span style=\"color: blue\">'22501-3'</span> <i>\"rubellaIgMCode\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.display = <span style=\"color: blue\">'Rubella virus IgM Ab [Presence] in Serum'</span> <i>\"rubellaIgMDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"rubellaIgMCoding\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>code.text = <span style=\"color: blue\">'Rubella IgM'</span> <i>\"obsText\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"codeBlock\"</i><span style=\"color: navy\">;</span>#xD;\n src.subject<b> as </b><span style=\"color: maroon\">subj</span><span style=\"color: navy\"><b> -> </b></span> obs.subject<b> as </b><span style=\"color: maroon\">ref</span><span style=\"color: navy\">, </span> ref.reference = <span style=\"color: navy\">(</span>'Patient/' + subj.reference<span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Lab ID as identifier</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = '8732404074721'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.identifier<b> as </b><span style=\"color: maroon\">id</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>id.system = <span style=\"color: blue\">'http://example.org/identifier/lab-id'</span> <i>\"labIdSys\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>id.value = <span style=\"color: maroon\">ans.valueString</span> <i>\"labIdValue\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"labId\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"labIdItem\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Specimen received date → effective</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'date-specimen-received'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.effective = <span style=\"color: maroon\">ans.valueDate</span> <i>\"effectiveDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"receivedDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Rubella IgM result → value</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'rubella-igm'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.valueCodeableConcept<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>coding.coding<b> as </b><span style=\"color: maroon\">cod</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>cod.system = <span style=\"color: blue\">'http://example.org/CodeSystem/lab-result'</span> <i>\"resultSys\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>cod.code = <span style=\"color: navy\">(</span>ans.valueCoding.code<span style=\"color: navy\">)</span> <i>\"resultCode\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>cod.display = <span style=\"color: navy\">(</span>ans.valueCoding.display<span style=\"color: navy\">)</span> <i>\"resultDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"resultCoding\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"rubellaIgMResult\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Interpretation</span>#xD;\n item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>obs.interpretation<b> as </b><span style=\"color: maroon\">interp</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans.valueCoding<b> as </b><span style=\"color: maroon\">val</span><b> where </b>code = 'Positive'<span style=\"color: navy\"><b> -> </b></span> interp.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'POS'</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: blue\">'Positive'</span> <i>\"posInterp\"</i><span style=\"color: navy\">;</span>#xD;\n ans.valueCoding<b> as </b><span style=\"color: maroon\">val</span><b> where </b>code = 'Negative'<span style=\"color: navy\"><b> -> </b></span> interp.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'NEG'</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: blue\">'Negative'</span> <i>\"negInterp\"</i><span style=\"color: navy\">;</span>#xD;\n ans.valueCoding<b> as </b><span style=\"color: maroon\">val</span><b> where </b>code = 'Indeterminate'<span style=\"color: navy\"><b> -> </b></span> interp.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'IND'</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: blue\">'Indeterminate'</span> <i>\"indInterp\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"interpretation\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"rubellaIgMItem\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Status: not done if absent</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'rubella-igm'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item<b> where </b>answer.empty()<span style=\"color: navy\"><b> -> </b></span> obs.status = <span style=\"color: blue\">'cancelled'</span><span style=\"color: navy\">, </span> obs.dataAbsentReason<b> as </b><span style=\"color: maroon\">reason</span><span style=\"color: navy\">, </span> reason.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/data-absent-reason'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: blue\">'not-performed'</span> <i>\"notDone\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"rubellaNotDone\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>MapLabDiagnosticReport<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QuestionnaireResponse, <b>target</b> <span style=\"color: maroon\">report</span><span style=\"color: navy\"> : </span>DiagnosticReport<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>report.id = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>\"reportId\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>report.status = <span style=\"color: blue\">'final'</span> <i>\"status\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Category: Laboratory</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>report.category<b> as </b><span style=\"color: maroon\">cat</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>cat.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>coding.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v2-0074'</span> <i>\"catSys\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.code = <span style=\"color: blue\">'LAB'</span> <i>\"catCode\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.display = <span style=\"color: blue\">'Laboratory'</span> <i>\"catDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"catCoding\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"category\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Measles serology panel LOINC</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>report.code<b> as </b><span style=\"color: maroon\">code</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>code.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> src<span style=\"color: navy\"><b> -> </b></span>coding.system = <span style=\"color: blue\">'http://loinc.org'</span> <i>\"loincSys\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.code = <span style=\"color: blue\">'41852-5'</span> <i>\"panelCode\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>coding.display = <span style=\"color: blue\">'Microorganism or agent identified in Specimen'</span> <i>\"panelDisplay\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"panelCoding\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>code.text = <span style=\"color: blue\">'Measles/Rubella Serology Panel'</span> <i>\"codeText\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"codeBlock\"</i><span style=\"color: navy\">;</span>#xD;\n src.subject<b> as </b><span style=\"color: maroon\">subj</span><span style=\"color: navy\"><b> -> </b></span> report.subject<b> as </b><span style=\"color: maroon\">ref</span><span style=\"color: navy\">, </span> ref.reference = <span style=\"color: navy\">(</span>'Patient/' + subj.reference<span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Lab ID</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = '8732404074721'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>report.identifier<b> as </b><span style=\"color: maroon\">id</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span>id.system = <span style=\"color: blue\">'http://example.org/identifier/lab-id'</span> <i>\"labIdSys\"</i><span style=\"color: navy\">;</span>#xD;\n ans<span style=\"color: navy\"><b> -> </b></span>id.value = <span style=\"color: maroon\">ans.valueString</span> <i>\"labIdValue\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"labId\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"labIdItem\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Effective date from specimen received</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'date-specimen-received'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>report.effective = <span style=\"color: maroon\">ans.valueDate</span> <i>\"effectiveDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"effectiveDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Issued date from results sent</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'date-lab-sent-results'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>report.issued = <span style=\"color: maroon\">ans.valueDate</span> <i>\"issued\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"issuedDate\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Final classification as conclusion</span>#xD;\n src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'final-classification'<b> then</b><span style=\"color: navy\"> {#xD;\n</span> item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>report.conclusion = <span style=\"color: navy\">(</span>ans.valueCoding.display<span style=\"color: navy\">)</span> <i>\"conclusion\"</i><span style=\"color: navy\">;</span>#xD;\n item.answer first<b> as </b><span style=\"color: maroon\">ans</span><span style=\"color: navy\"><b> -> </b></span>report.conclusionCode<b> as </b><span style=\"color: maroon\">code</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> ans<span style=\"color: navy\"><b> -> </b></span> code.coding<b> as </b><span style=\"color: maroon\">cod</span><span style=\"color: navy\">, </span> cod.system = <span style=\"color: blue\">'http://example.org/CodeSystem/measles-classification'</span><span style=\"color: navy\">, </span> cod.code = <span style=\"color: navy\">(</span>ans.valueCoding.code<span style=\"color: navy\">)</span><span style=\"color: navy\">, </span> cod.display = <span style=\"color: navy\">(</span>ans.valueCoding.display<span style=\"color: navy\">)</span> <i>\"conclusionCode\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"conclusionCode\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"classification\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ] ] ; # fhir:url [ fhir:v "http://example.org/StructureMap/MeaslesLabResultsMap"^^xsd:anyURI ; fhir:l <http://example.org/StructureMap/MeaslesLabResultsMap> ] ; # fhir:version [ fhir:v "0.1.0"] ; # fhir:name [ fhir:v "MeaslesLabResultsMap"] ; # fhir:status [ fhir:v "draft"] ; # fhir:date [ fhir:v "2026-05-04T06:19:40+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "Kenya National Public Health Institute"] ; # fhir:contact ( [ fhir:name [ fhir:v "Kenya National Public Health Institute" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://www.nphi.go.ke/" ] ] ) ] [ fhir:name [ fhir:v "Kenya National Public Health Institute" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://www.nphi.go.ke/" ] ; fhir:use [ fhir:v "work" ] ] ) ] ) ; # fhir:description [ fhir:v "Measles Lab Results QuestionnaireResponse to FHIR resources\r\nMaps to: Observation (Measles IgM), Observation (Rubella IgM), DiagnosticReport"] ; # fhir:jurisdiction ( [ ( fhir:coding [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ; fhir:l <urn:iso:std:iso:3166> ] ; fhir:code [ fhir:v "KE" ] ; fhir:display [ fhir:v "Kenya" ] ] ) ] ) ; # fhir:structure ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse> ] ; fhir:mode [ fhir:v "source" ] ; fhir:alias [ fhir:v "QuestionnaireResponse" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:l <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/Observation"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "Observation" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/DiagnosticReport> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "DiagnosticReport" ] ] ) ; # fhir:group ( [ fhir:name [ fhir:v "MeaslesLabResultsMap" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "QuestionnaireResponse" ] ; 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 "bundleId" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 "bundleType" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( 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 [ a fhir:String ; fhir:v "transaction" ] ] ) ] ) ] [ fhir:name [ fhir:v "measlesIgMEntry" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "e" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "execMeaslesIgM" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "e" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "measlesObs" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Observation" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "MapMeaslesIgM" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "measlesObs" ] ) ] ) ] [ fhir:name [ fhir:v "measlesObsReq" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "e" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "req" ] ] [ fhir:context [ fhir:v "req" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "POST" ] ] ) ] [ fhir:context [ fhir:v "req" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Observation" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "rubellaIgMEntry" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "e" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "execRubellaIgM" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "e" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "rubellaObs" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Observation" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "MapRubellaIgM" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "rubellaObs" ] ) ] ) ] [ fhir:name [ fhir:v "rubellaObsReq" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "e" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "req" ] ] [ fhir:context [ fhir:v "req" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "POST" ] ] ) ] [ fhir:context [ fhir:v "req" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Observation" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "diagnosticReportEntry" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "e" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "execReport" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "e" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "report" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "DiagnosticReport" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "MapLabDiagnosticReport" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "report" ] ) ] ) ] [ fhir:name [ fhir:v "reportReq" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "e" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "req" ] ] [ fhir:context [ fhir:v "req" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "POST" ] ] ) ] [ fhir:context [ fhir:v "req" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "DiagnosticReport" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "MapMeaslesIgM" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "QuestionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "obs" ] ; fhir:type [ fhir:v "Observation" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obsId" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "final" ] ] ) ] ) ] [ fhir:name [ fhir:v "codeBlock" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "measlesIgMCoding" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "loincSys" ] ; ( 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 [ a fhir:String ; fhir:v "http://loinc.org" ] ] ) ] ) ] [ fhir:name [ fhir:v "measlesIgMCode" ] ; ( 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 [ a fhir:String ; fhir:v "20479-4" ] ] ) ] ) ] [ fhir:name [ fhir:v "measlesIgMDisplay" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Measles virus IgM Ab [Presence] in Serum" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "obsText" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Measles IgM" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "subject" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subj" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "ref" ] ] [ fhir:context [ fhir:v "ref" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "'Patient/' + subj.reference" ] ] ) ] ) ] [ fhir:name [ fhir:v "labIdItem" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = '8732404074721'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "labId" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "labIdSys" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "id" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/identifier/lab-id" ] ] ) ] ) ] [ fhir:name [ fhir:v "labIdValue" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "id" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueString" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "specimenSentDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = '718251724172'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "effectiveDate" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "effective" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "receivedDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'date-specimen-received'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "issued" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "specimenCondition" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'specimen-condition'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionNote" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "note" ] ] [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "'Specimen condition: ' + ans.valueCoding.display" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "measlesIgMItem" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'measles-igm'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "measlesIgMResult" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "valueCodeableConcept" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "resultCoding" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "resultSys" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/CodeSystem/lab-result" ] ] ) ] ) ] [ fhir:name [ fhir:v "resultCode" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.code" ] ] ) ] ) ] [ fhir:name [ fhir:v "resultDisplay" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.display" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "interpretation" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "interpretation" ] ; fhir:variable [ fhir:v "interp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "posInterp" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ; fhir:element [ fhir:v "valueCoding" ] ; fhir:variable [ fhir:v "val" ] ; fhir:condition [ fhir:v "code = 'Positive'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "interp" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "POS" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Positive" ] ] ) ] ) ] [ fhir:name [ fhir:v "negInterp" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ; fhir:element [ fhir:v "valueCoding" ] ; fhir:variable [ fhir:v "val" ] ; fhir:condition [ fhir:v "code = 'Negative'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "interp" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "NEG" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Negative" ] ] ) ] ) ] [ fhir:name [ fhir:v "indInterp" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ; fhir:element [ fhir:v "valueCoding" ] ; fhir:variable [ fhir:v "val" ] ; fhir:condition [ fhir:v "code = 'Indeterminate'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "interp" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "IND" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Indeterminate" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "resultsSentDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'date-lab-sent-results'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "resultsSentExt" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "extUrl" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ext" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/StructureDefinition/resultsSentDate" ] ] ) ] ) ] [ fhir:name [ fhir:v "extValue" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ext" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "valueDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "regionalLabDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = '655865451155'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "regionalLabExt" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "extension" ] ; fhir:variable [ fhir:v "ext" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "extUrl" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ext" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/StructureDefinition/regionalLabDate" ] ] ) ] ) ] [ fhir:name [ fhir:v "extValue" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "ext" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "valueDate" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "finalClassification" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'final-classification'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "classificationNote" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "note" ] ; fhir:variable [ fhir:v "note" ] ] [ fhir:context [ fhir:v "note" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "'Final classification: ' + ans.valueCoding.display" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "MapRubellaIgM" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "QuestionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "obs" ] ; fhir:type [ fhir:v "Observation" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obsId" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "final" ] ] ) ] ) ] [ fhir:name [ fhir:v "codeBlock" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "rubellaIgMCoding" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "loincSys" ] ; ( 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 [ a fhir:String ; fhir:v "http://loinc.org" ] ] ) ] ) ] [ fhir:name [ fhir:v "rubellaIgMCode" ] ; ( 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 [ a fhir:String ; fhir:v "22501-3" ] ] ) ] ) ] [ fhir:name [ fhir:v "rubellaIgMDisplay" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Rubella virus IgM Ab [Presence] in Serum" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "obsText" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Rubella IgM" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "subject" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subj" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "ref" ] ] [ fhir:context [ fhir:v "ref" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "'Patient/' + subj.reference" ] ] ) ] ) ] [ fhir:name [ fhir:v "labIdItem" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = '8732404074721'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "labId" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "labIdSys" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "id" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/identifier/lab-id" ] ] ) ] ) ] [ fhir:name [ fhir:v "labIdValue" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "id" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueString" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "receivedDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'date-specimen-received'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "effectiveDate" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "effective" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "rubellaIgMItem" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'rubella-igm'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "rubellaIgMResult" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "valueCodeableConcept" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "resultCoding" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "resultSys" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/CodeSystem/lab-result" ] ] ) ] ) ] [ fhir:name [ fhir:v "resultCode" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.code" ] ] ) ] ) ] [ fhir:name [ fhir:v "resultDisplay" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.display" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "interpretation" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "interpretation" ] ; fhir:variable [ fhir:v "interp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "posInterp" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ; fhir:element [ fhir:v "valueCoding" ] ; fhir:variable [ fhir:v "val" ] ; fhir:condition [ fhir:v "code = 'Positive'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "interp" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "POS" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Positive" ] ] ) ] ) ] [ fhir:name [ fhir:v "negInterp" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ; fhir:element [ fhir:v "valueCoding" ] ; fhir:variable [ fhir:v "val" ] ; fhir:condition [ fhir:v "code = 'Negative'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "interp" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "NEG" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Negative" ] ] ) ] ) ] [ fhir:name [ fhir:v "indInterp" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ; fhir:element [ fhir:v "valueCoding" ] ; fhir:variable [ fhir:v "val" ] ; fhir:condition [ fhir:v "code = 'Indeterminate'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "interp" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "IND" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Indeterminate" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "rubellaNotDone" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'rubella-igm'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "notDone" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:condition [ fhir:v "answer.empty()" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "obs" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "dataAbsentReason" ] ; fhir:variable [ fhir:v "reason" ] ] [ fhir:context [ fhir:v "reason" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/data-absent-reason" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "not-performed" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "MapLabDiagnosticReport" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "QuestionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "report" ] ; fhir:type [ fhir:v "DiagnosticReport" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reportId" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "status" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "final" ] ] ) ] ) ] [ fhir:name [ fhir:v "category" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:variable [ fhir:v "cat" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "catCoding" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "cat" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "catSys" ] ; ( 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 [ a fhir:String ; fhir:v "http://terminology.hl7.org/CodeSystem/v2-0074" ] ] ) ] ) ] [ fhir:name [ fhir:v "catCode" ] ; ( 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 [ a fhir:String ; fhir:v "LAB" ] ] ) ] ) ] [ fhir:name [ fhir:v "catDisplay" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Laboratory" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "codeBlock" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "panelCoding" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "loincSys" ] ; ( 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 [ a fhir:String ; fhir:v "http://loinc.org" ] ] ) ] ) ] [ fhir:name [ fhir:v "panelCode" ] ; ( 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 [ a fhir:String ; fhir:v "41852-5" ] ] ) ] ) ] [ fhir:name [ fhir:v "panelDisplay" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Microorganism or agent identified in Specimen" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "codeText" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "text" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "Measles/Rubella Serology Panel" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "subject" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subj" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "ref" ] ] [ fhir:context [ fhir:v "ref" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "'Patient/' + subj.reference" ] ] ) ] ) ] [ fhir:name [ fhir:v "labIdItem" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = '8732404074721'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "labId" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "labIdSys" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "id" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/identifier/lab-id" ] ] ) ] ) ] [ fhir:name [ fhir:v "labIdValue" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "id" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueString" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "effectiveDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'date-specimen-received'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "effectiveDate" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "effective" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "issuedDate" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'date-lab-sent-results'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "issued" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:Id ; fhir:v "ans.valueDate" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "classification" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "linkId = 'final-classification'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conclusion" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "conclusion" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.display" ] ] ) ] ) ] [ fhir:name [ fhir:v "conclusionCode" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "report" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "conclusionCode" ] ; fhir:variable [ fhir:v "code" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conclusionCode" ] ; ( fhir:source [ fhir:context [ fhir:v "ans" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "code" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "cod" ] ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "http://example.org/CodeSystem/measles-classification" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.code" ] ] ) ] [ fhir:context [ fhir:v "cod" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "evaluate" ] ; ( fhir:parameter [ fhir:value [ a fhir:String ; fhir:v "ans.valueCoding.display" ] ] ) ] ) ] ) ] ) ] ) ] ) . #
IG © 2025+ Kenya National Public Health Institute. Package fhir.surveillanceIG#0.1.0 based on FHIR 4.0.1. Generated 2026-05-04
Links: Table of Contents |
QA Report