diff --git a/omod/src/main/webapp/resources/htmlforms/Mpox-screening-form.xml b/omod/src/main/webapp/resources/htmlforms/Mpox-screening-form.xml index 4fe22508..af9ef1e7 100644 --- a/omod/src/main/webapp/resources/htmlforms/Mpox-screening-form.xml +++ b/omod/src/main/webapp/resources/htmlforms/Mpox-screening-form.xml @@ -15,8 +15,8 @@ if (jQuery) { jq(document).ready(function () { - var vlQualitative =''; - var vlrecent =''; + var vlQualitative =''; + var vlrecent =''; //Block Multiple encounter entry on same date blockEncounterOnSameDateEncounter(jq("#encounterDate").find("input[type=hidden]"),"block"); @@ -125,14 +125,21 @@ } }); - if(vlQualitative != '') { - jq("#recentVL").find("select").attr("style", "display: none;"); - jq("#recentVL").append("

"+vlQualitative+"

"); + if(vlQualitative == 'Concept #1306') { + jq("#recentVL").find("select").val("1306"); } - if(vlrecent != '') { - jq("#recentHIVVL").find("numeric").attr("style", "display: none;"); - jq("#recentHIVVL").append("

"+vlrecent+"

"); + if(vlQualitative == 'Concept #1301') { + jq("#recentVL").find("select").val("1301"); + } + + if(vlQualitative == 'Concept #1304') { + jq("#recentVL").find("select").val("1304"); + } + + if (vlrecent !== '') { + vlrecent = Math.floor(vlrecent); + jq("#recentHIVVL input").val(vlrecent); } @@ -313,7 +320,7 @@ + identifierTypeId="e1731641-30ab-102d-86b0-7a5022ba4115" id="artNo" required="false"/>