Healthy Route Implementation Guide
0.2.0 - ci-build

Healthy Route Implementation Guide, published by Savannah Informatics. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/healthy-route-ig/ and changes regularly. See the Directory of published versions

: Laboratory results, Uganda - XML Representation

Draft as of 2026-10-10

Raw xml | Download


<Questionnaire xmlns="http://hl7.org/fhir">
  <id value="hr-laboratory-ug"/>
  <meta>
    <tag>
      <system value="https://fhir.optimalhealth.org/sid/optimalhealth-study"/>
      <code value="HR-UG"/>
      <display value="Healthy Route Uganda"/>
    </tag>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Questionnaire hr-laboratory-ug</b></p><a name="hr-laboratory-ug"> </a><a name="hchr-laboratory-ug"> </a><div style="display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Tag: </p></div><table border="1" cellpadding="0" cellspacing="0" class="xhtTableBorder1"><tr class="xhtRowBorder2"><th scope="col" style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/formats.html#table" title="The linkID for the item">LinkID</a></th><th scope="col" style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/formats.html#table" title="Text for the item">Text</a></th><th scope="col" style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/formats.html#table" title="Minimum and Maximum # of times the item can appear in the instance">Cardinality</a></th><th scope="col" style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/formats.html#table" title="The type of the item">Type</a></th><th scope="col" style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/formats.html#table" title="Other attributes of the item">Flags</a></th><th scope="col" style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/formats.html#table" title="Additional information about the item">Description &amp; Constraints</a><span style="float: right"><a href="https://hl7.org/fhir/R5/formats.html#table" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr class="xhtRowBorder1 xhtRowEven"><td style="background-image: url(tbl_bck1.png)" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon_q_root.gif" alt="" style="background-color: white; background-color: inherit" title="QuestionnaireRoot" class="hierarchy"/> HRLaboratoryUG</td><td style="" class="hierarchy xhtCellBorder1">Serum creatinine, HbA1c, uACR and the urine dipstick as the laboratory reported them, in the unit it reported. The dipstick is recorded for characterisation and is not required. The eGFR is calculated on the form by CKD-EPI 2021 from the creatinine, shown with the creatinine in mg/dL and the age and sex it used, and none of them can be typed. The age and sex come from the participant's record when the form opens.</td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1">Questionnaire</td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1">https://fhir.optimalhealth.org/ig/healthy-route/Questionnaire/hr-laboratory-ug#0.2.0</td></tr>
<tr class="xhtRowBorder1 xhtRowOdd"><td style="background-image: url(tbl_bck10.png)" id="item.samples-collected" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-datetime.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="dateTime" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>samples-collected</td><td style="" class="hierarchy xhtCellBorder1">Sample date and time</td><td style="" class="hierarchy xhtCellBorder1">1..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-dateTime">dateTime</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowEven"><td style="background-image: url(tbl_bck10.png)" id="item.2160-0" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="" style="background-color: white; background-color: inherit" title="decimal" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>2160-0</td><td style="" class="hierarchy xhtCellBorder1">Serum creatinine</td><td style="" class="hierarchy xhtCellBorder1">1..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowOdd"><td style="background-image: url(tbl_bck10.png)" id="item.2160-0.unit" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-coding.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="coding" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>2160-0.unit</td><td style="" class="hierarchy xhtCellBorder1">Reported in</td><td style="" class="hierarchy xhtCellBorder1">1..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-coding">coding</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1">Value Set: <a href="ValueSet-hr-lab-unit-vs.html">Laboratory Units Value Set</a></td></tr>
<tr class="xhtRowBorder1 xhtRowEven"><td style="background-image: url(tbl_bck10.png)" id="item.creatinine-converted" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="" style="background-color: white; background-color: inherit" title="decimal" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>creatinine-converted</td><td style="" class="hierarchy xhtCellBorder1">Serum creatinine, as the eGFR uses it</td><td style="" class="hierarchy xhtCellBorder1">0..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/questionnaire-definitions.html#Questionnaire.item.readOnly" title="Is Read Only"><img src="icon-qi-readonly.png" alt=""/></a><img src="icon-qi-readonly.png" alt=""/></td><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowOdd"><td style="background-image: url(tbl_bck10.png)" id="item.egfr-age" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-integer.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="integer" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>egfr-age</td><td style="" class="hierarchy xhtCellBorder1">Age the eGFR uses, in completed years</td><td style="" class="hierarchy xhtCellBorder1">0..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-integer">integer</a></td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/questionnaire-definitions.html#Questionnaire.item.readOnly" title="Is Read Only"><img src="icon-qi-readonly.png" alt=""/></a><img src="icon-qi-readonly.png" alt=""/></td><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowEven"><td style="background-image: url(tbl_bck10.png)" id="item.egfr-sex" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="" style="background-color: white; background-color: inherit" title="string" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>egfr-sex</td><td style="" class="hierarchy xhtCellBorder1">Sex the eGFR uses</td><td style="" class="hierarchy xhtCellBorder1">0..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-string">string</a></td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/questionnaire-definitions.html#Questionnaire.item.readOnly" title="Is Read Only"><img src="icon-qi-readonly.png" alt=""/></a><img src="icon-qi-readonly.png" alt=""/></td><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowOdd"><td style="background-image: url(tbl_bck10.png)" id="item.98979-8" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="decimal" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>98979-8</td><td style="" class="hierarchy xhtCellBorder1">eGFR, CKD-EPI 2021</td><td style="" class="hierarchy xhtCellBorder1">0..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/questionnaire-definitions.html#Questionnaire.item.readOnly" title="Is Read Only"><img src="icon-qi-readonly.png" alt=""/></a><img src="icon-qi-readonly.png" alt=""/></td><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowEven"><td style="background-image: url(tbl_bck10.png)" id="item.4548-4" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="" style="background-color: white; background-color: inherit" title="decimal" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>4548-4</td><td style="" class="hierarchy xhtCellBorder1">HbA1c</td><td style="" class="hierarchy xhtCellBorder1">1..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowOdd"><td style="background-image: url(tbl_bck10.png)" id="item.9318-7" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="decimal" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>9318-7</td><td style="" class="hierarchy xhtCellBorder1">uACR</td><td style="" class="hierarchy xhtCellBorder1">1..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1"/></tr>
<tr class="xhtRowBorder1 xhtRowEven"><td style="background-image: url(tbl_bck10.png)" id="item.9318-7.unit" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-coding.png" alt="" style="background-color: white; background-color: inherit" title="coding" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>9318-7.unit</td><td style="" class="hierarchy xhtCellBorder1">Reported in</td><td style="" class="hierarchy xhtCellBorder1">1..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-coding">coding</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1">Value Set: <a href="ValueSet-hr-lab-unit-vs.html">Laboratory Units Value Set</a></td></tr>
<tr class="xhtRowBorder1 xhtRowOdd"><td style="background-image: url(tbl_bck00.png)" id="item.20454-5" class="hierarchy xhtCellBorder1 xhtCellNoWrap"><img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="" style="background-color: inherit" class="hierarchy"/><img src="icon-q-coding.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="coding" class="hierarchy"/> <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">HRLaboratoryUG / </span>20454-5</td><td style="" class="hierarchy xhtCellBorder1">Urine dipstick protein</td><td style="" class="hierarchy xhtCellBorder1">0..1</td><td style="" class="hierarchy xhtCellBorder1"><a href="https://hl7.org/fhir/R5/codesystem-item-type.html#item-type-coding">coding</a></td><td style="" class="hierarchy xhtCellBorder1"/><td style="" class="hierarchy xhtCellBorder1">Value Set: <a href="ValueSet-hr-dipstick-protein-vs.html">Urine Dipstick Protein Value Set</a></td></tr>
<tr><td colspan="6" class="hierarchy"><br/><a href="https://hl7.org/fhir/R5/formats.html#table" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
  </text>
  <extension
             url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap">
    <valueCanonical
                    value="https://fhir.optimalhealth.org/ig/healthy-route/StructureMap/HRExtractLaboratory"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext">
    <extension url="name">
      <valueCoding>
        <system value="http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"/>
        <code value="patient"/>
        <display value="Patient"/>
      </valueCoding>
    </extension>
    <extension url="type">
      <valueCode value="Patient"/>
    </extension>
    <extension url="description">
      <valueString
                   value="The participant: the eGFR takes their sex and date of birth."/>
    </extension>
  </extension>
  <extension
             url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext">
    <extension url="name">
      <valueCoding>
        <system value="http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"/>
        <code value="encounter"/>
        <display value="Encounter"/>
      </valueCoding>
    </extension>
    <extension url="type">
      <valueCode value="Encounter"/>
    </extension>
    <extension url="description">
      <valueString
                   value="The visit: the age the eGFR uses is the age on the day it started."/>
    </extension>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="creatinine"/>
      <language value="text/fhirpath"/>
      <expression
                  value="%resource.repeat(item).where(linkId='2160-0').answer.valueDecimal"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="creatinineUnit"/>
      <language value="text/fhirpath"/>
      <expression
                  value="%resource.repeat(item).where(linkId='2160-0.unit').answer.valueCoding.code"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="scr"/>
      <language value="text/fhirpath"/>
      <expression
                  value="iif(%creatinineUnit = 'mg/dL', %creatinine, iif(%creatinineUnit = 'umol/L', %creatinine / 88.4, {}))"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="egfrAge"/>
      <language value="text/fhirpath"/>
      <expression
                  value="%resource.repeat(item).where(linkId='egfr-age').answer.valueInteger"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="egfrSex"/>
      <language value="text/fhirpath"/>
      <expression
                  value="%resource.repeat(item).where(linkId='egfr-sex').answer.valueString"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="kappa"/>
      <language value="text/fhirpath"/>
      <expression
                  value="iif(%egfrSex = 'female', 0.7, iif(%egfrSex = 'male', 0.9, {}))"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="alpha"/>
      <language value="text/fhirpath"/>
      <expression
                  value="iif(%egfrSex = 'female', -0.241, iif(%egfrSex = 'male', -0.302, {}))"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="sexFactor"/>
      <language value="text/fhirpath"/>
      <expression
                  value="iif(%egfrSex = 'female', 1.012, iif(%egfrSex = 'male', 1.0, {}))"/>
    </valueExpression>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/variable">
    <valueExpression>
      <name value="ratio"/>
      <language value="text/fhirpath"/>
      <expression value="%scr / %kappa"/>
    </valueExpression>
  </extension>
  <url
       value="https://fhir.optimalhealth.org/ig/healthy-route/Questionnaire/hr-laboratory-ug"/>
  <version value="0.2.0"/>
  <name value="HRLaboratoryUG"/>
  <title value="Laboratory results, Uganda"/>
  <status value="draft"/>
  <experimental value="false"/>
  <subjectType value="Patient"/>
  <date value="2026-10-10"/>
  <publisher value="Savannah Informatics"/>
  <contact>
    <name value="Savannah Informatics"/>
    <telecom>
      <system value="url"/>
      <value value="https://optimalhealth.org"/>
    </telecom>
  </contact>
  <contact>
    <name value="Savannah Informatics"/>
    <telecom>
      <system value="url"/>
      <value value="https://optimalhealth.org"/>
    </telecom>
  </contact>
  <description
               value="Serum creatinine, HbA1c, uACR and the urine dipstick as the laboratory reported them, in the unit it reported. The dipstick is recorded for characterisation and is not required. The eGFR is calculated on the form by CKD-EPI 2021 from the creatinine, shown with the creatinine in mg/dL and the age and sex it used, and none of them can be typed. The age and sex come from the participant's record when the form opens."/>
  <item>
    <linkId value="samples-collected"/>
    <text value="Sample date and time"/>
    <type value="dateTime"/>
    <required value="true"/>
  </item>
  <item>
    <linkId value="2160-0"/>
    <code>
      <system value="http://loinc.org"/>
      <code value="2160-0"/>
      <display value="Creatinine [Mass/volume] in Serum or Plasma"/>
    </code>
    <text value="Serum creatinine"/>
    <type value="decimal"/>
    <required value="true"/>
  </item>
  <item>
    <linkId value="2160-0.unit"/>
    <text value="Reported in"/>
    <type value="coding"/>
    <required value="true"/>
    <answerValueSet
                    value="https://fhir.optimalhealth.org/ig/healthy-route/ValueSet/hr-lab-unit-vs"/>
  </item>
  <item>
    <extension
               url="http://hl7.org/fhir/StructureDefinition/questionnaire-unit">
      <valueCoding>
        <system value="http://unitsofmeasure.org"/>
        <code value="mg/dL"/>
        <display value="mg/dL"/>
      </valueCoding>
    </extension>
    <extension
               url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression">
      <valueExpression>
        <language value="text/fhirpath"/>
        <expression value="%scr.round(2)"/>
      </valueExpression>
    </extension>
    <linkId value="creatinine-converted"/>
    <code>
      <system
              value="https://fhir.optimalhealth.org/ig/healthy-route/CodeSystem/hr-measurement"/>
      <code value="creatinine-converted"/>
    </code>
    <text value="Serum creatinine, as the eGFR uses it"/>
    <type value="decimal"/>
    <readOnly value="true"/>
  </item>
  <item>
    <extension
               url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression">
      <valueExpression>
        <language value="text/fhirpath"/>
        <expression
                    value="iif(%encounter.actualPeriod.start.exists(), %encounter.actualPeriod.start, today()).toString().substring(0, 4).toInteger() - %patient.birthDate.toString().substring(0, 4).toInteger() - iif(iif(%encounter.actualPeriod.start.exists(), %encounter.actualPeriod.start, today()).toString().substring(5, 5) &lt; %patient.birthDate.toString().substring(5, 5), 1, 0)"/>
      </valueExpression>
    </extension>
    <linkId value="egfr-age"/>
    <code>
      <system
              value="https://fhir.optimalhealth.org/ig/healthy-route/CodeSystem/hr-measurement"/>
      <code value="egfr-age"/>
    </code>
    <text value="Age the eGFR uses, in completed years"/>
    <type value="integer"/>
    <readOnly value="true"/>
  </item>
  <item>
    <extension
               url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression">
      <valueExpression>
        <language value="text/fhirpath"/>
        <expression value="%patient.gender"/>
      </valueExpression>
    </extension>
    <linkId value="egfr-sex"/>
    <code>
      <system
              value="https://fhir.optimalhealth.org/ig/healthy-route/CodeSystem/hr-measurement"/>
      <code value="egfr-sex"/>
    </code>
    <text value="Sex the eGFR uses"/>
    <type value="string"/>
    <readOnly value="true"/>
  </item>
  <item>
    <extension
               url="http://hl7.org/fhir/StructureDefinition/questionnaire-unit">
      <valueCoding>
        <system value="http://unitsofmeasure.org"/>
        <code value="mL/min/{1.73_m2}"/>
        <display value="mL/min/{1.73_m2}"/>
      </valueCoding>
    </extension>
    <extension
               url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression">
      <valueExpression>
        <language value="text/fhirpath"/>
        <expression
                    value="iif(%ratio.exists() and %egfrAge.exists() and %alpha.exists(), (142 * iif(%ratio &lt; 1, %ratio, 1).power(%alpha) * iif(%ratio &gt; 1, %ratio, 1).power(-1.2) * (0.9938).power(%egfrAge) * %sexFactor).round(1), {})"/>
      </valueExpression>
    </extension>
    <linkId value="98979-8"/>
    <code>
      <system value="http://loinc.org"/>
      <code value="98979-8"/>
      <display
               value="Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (CKD-EPI 2021)/1.73 sq M"/>
    </code>
    <text value="eGFR, CKD-EPI 2021"/>
    <type value="decimal"/>
    <readOnly value="true"/>
  </item>
  <item>
    <extension
               url="http://hl7.org/fhir/StructureDefinition/questionnaire-unit">
      <valueCoding>
        <system value="http://unitsofmeasure.org"/>
        <code value="%"/>
        <display value="%"/>
      </valueCoding>
    </extension>
    <linkId value="4548-4"/>
    <code>
      <system value="http://loinc.org"/>
      <code value="4548-4"/>
      <display value="Hemoglobin A1c/Hemoglobin.total in Blood"/>
    </code>
    <text value="HbA1c"/>
    <type value="decimal"/>
    <required value="true"/>
  </item>
  <item>
    <linkId value="9318-7"/>
    <code>
      <system value="http://loinc.org"/>
      <code value="9318-7"/>
      <display value="Albumin/Creatinine [Mass Ratio] in Urine"/>
    </code>
    <text value="uACR"/>
    <type value="decimal"/>
    <required value="true"/>
  </item>
  <item>
    <linkId value="9318-7.unit"/>
    <text value="Reported in"/>
    <type value="coding"/>
    <required value="true"/>
    <answerValueSet
                    value="https://fhir.optimalhealth.org/ig/healthy-route/ValueSet/hr-lab-unit-vs"/>
  </item>
  <item>
    <linkId value="20454-5"/>
    <code>
      <system value="http://loinc.org"/>
      <code value="20454-5"/>
      <display value="Protein [Presence] in Urine by Test strip"/>
    </code>
    <text value="Urine dipstick protein"/>
    <type value="coding"/>
    <answerValueSet
                    value="https://fhir.optimalhealth.org/ig/healthy-route/ValueSet/hr-dipstick-protein-vs"/>
  </item>
</Questionnaire>