From 736b4f2acb179096b6f7798616f262a564e8b6df Mon Sep 17 00:00:00 2001 From: CynthiaKamau Date: Thu, 17 Mar 2022 19:00:52 +0300 Subject: [PATCH 1/2] updated vmmc procedure and post procedure BA changes --- .../vmmc/vmmcCircumcisionProcedure.html | 262 ++++++++++++------ .../vmmc/vmmcPostOperationAssessment.html | 256 ++++++++++------- 2 files changed, 326 insertions(+), 192 deletions(-) diff --git a/omod/src/main/webapp/resources/htmlforms/vmmc/vmmcCircumcisionProcedure.html b/omod/src/main/webapp/resources/htmlforms/vmmc/vmmcCircumcisionProcedure.html index f75ba71afd..bcec9c35a8 100644 --- a/omod/src/main/webapp/resources/htmlforms/vmmc/vmmcCircumcisionProcedure.html +++ b/omod/src/main/webapp/resources/htmlforms/vmmc/vmmcCircumcisionProcedure.html @@ -17,6 +17,7 @@ var CONVENTIONAL = 159619; var DEVICE = 164204; var DORSAL_SLIT = 1933; + var SLEEVE_RESELECTION = 164029; var OTHER_CONVENTIONAL = 5622; var SHANGRING = 165396; var OTHER_DEVICE = 5622; @@ -34,9 +35,11 @@ //Defaults jq('#tbl-device-size').hide(); + jq('#tbl-other-device-size').hide(); jq('#tbl-adverse-effects').hide(); jq('#tbl-conventional-surgical').hide(); jq('#tbl-device-circumcision').hide(); + jq('#tbl-other-agent').hide(); //Check if conventional checked jq("#circumcision-method :input[type=radio]").change(onMethodSelected); @@ -44,12 +47,20 @@ //Check if any adverse events jq("#adverse_events :input[type=radio]").change(onAdverseEventsSelected); + //check if shangring + jq("#device-name :input[type=radio]").change(onDeviceMethodSelected); + + //check for other agent + getField('agents.value').change(onAgentSelected); + if(CIRCUMCISION_METHOD == CONVENTIONAL) { jq("#circumcision-method input[value=159619]").prop("checked", true); jq('#tbl-conventional-surgical').show(); if( CONVENTIONAL_METHOD == DORSAL_SLIT) { jq("#conventional-method input[value=1933]").prop("checked", true); + } else if( CONVENTIONAL_METHOD == SLEEVE_RESELECTION) { + jq("#conventional-method input[value=164029]").prop("checked", true); } else if( CONVENTIONAL_METHOD == OTHER_CONVENTIONAL) { jq("#conventional-method input[value=5622]").prop("checked", true); } @@ -57,12 +68,13 @@ } else if(CIRCUMCISION_METHOD == DEVICE) { jq("#circumcision-method input[value=164204]").prop("checked", true); jq('#tbl-device-circumcision').show(); - jq('#tbl-device-size').show(); if(DEVICE_CIRCUMCISION == SHANGRING) { jq("#device-name input[value=165396]").prop("checked", true); + jq('#tbl-device-size').show(); } else if(DEVICE_CIRCUMCISION == OTHER_DEVICE) { jq("#device-name input[value=5622]").prop("checked", true); + jq('#tbl-other-device-size').hide(); } if(DEVICE_SIZE !== 'undefined') { @@ -72,6 +84,13 @@ }); // end doc ready + var onAgentSelected = function () { + var val = jq(this).val(); + if(val == 5622) { + jq('#tbl-other-agent').show(); + } + } + var onAdverseEventsSelected = function () { getField('adverse_events.error').html('Adverse events should not be empty').hide(); var val = jq(this).val(); @@ -98,13 +117,23 @@ getField('device_size.value').val(""); } else if(val == 164204) { jq('#tbl-device-circumcision').show(); - jq('#tbl-device-size').show(); jq('#tbl-conventional-surgical').hide(); clearHiddenSections(jq('#conventional-specify')); clearHiddenSections(jq('#conventional-method')); }; } + var onDeviceMethodSelected = function () { + var val = jq(this).val(); + if(val == 5622 ) { + jq('#tbl-other-device-size').show(); + jq('#tbl-device-size').hide(); + } else if(val == 165396) { + jq('#tbl-device-size').show(); + jq('#tbl-other-device-size').hide(); + } + } + //Clear hidden sections clearHiddenSections = function(parentObj) { parentObj.find('input[type=radio]').each(function() { @@ -133,8 +162,8 @@ var conventionalVal = getValue('conventional-method.value'); var deviceVal = getValue('device-name.value'); - var concentrationVal = getValue('concentration.value'); - var volumeVal = getValue('volume.value'); + var anaesthesiaVal = getValue('anaesthesia.value'); + var agentVal = getValue('agents.value'); var adverseEventsVal = getValue('adverse_events.value'); var managementVal = getValue('severity_management.value'); @@ -145,6 +174,9 @@ var assistantClinician = getValue('assistant_clinician.value'); var assistantClinicianCadre = getValue('assistant_clinician_cadre.value'); + var surgeonName = getValue('clinician.value'); + var surgeonCadre = getValue('clinician_cadre.value'); + if(conventionalVal == 5622 && otherConventional == ""){ getField('conventional-specify.error').html('Please specify other method').show(); return false; @@ -166,23 +198,29 @@ getField('device_size.error').html('Please specify the device size').hide(); } - // if local anaesthesia , concentration mandatory - if(concentrationVal == ""){ - getField('concentration.error').html('Please specify the concentration in mg').show(); + // local or tropical + if(anaesthesiaVal == "") { + getField('anaesthesia.error').html('Please specify the anaesthesia used').show(); return false; } else { - getField('concentration.error').html('Please specify the concentration in mg').hide(); + getField('anaesthesia.error').html('Please specify the anaesthesia used').hide(); } - // if tropical anaesthesia, volume mandatory - if(volumeVal == ""){ - getField('volume.error').html('Please specify the volume in ml').show(); + if(agentVal == "") { + getField('agents.error').html('Please specify the agent used').show(); return false; } else { - getField('volume.error').html('Please specify the volume in ml').hide(); + getField('agents.error').html('Please specify the agent used').hide(); } - // if adverse effects , fill management--> + // if adverse effects , fill management + if(adverseEventsVal == ""){ + getField('adverse_events.error').html('Please specify if there were any adverse events').show(); + return false; + } else { + getField('adverse_events.error').html('Please specify if there were any adverse events').hide(); + } + if(adverseEventsVal == 1065 && managementVal == ""){ getField('severity_management.error').html('Please specify the management of adverse events').show(); return false; @@ -190,8 +228,22 @@ getField('severity_management.error').html('Please specify the management of adverse events').hide(); } + if(surgeonName == ""){ + getField('clinician.error').html('Please specify the name of the clinician').show(); + return false; + } else { + getField('clinician.error').html('Please specify the name of the clinician').hide(); + } + + if(surgeonCadre == ""){ + getField('clinician_cadre.error').html('Please specify the cadre of the clinician').show(); + return false; + } else { + getField('clinician_cadre.error').html('Please specify the cadre of the clinician').hide(); + } + // if time of last slit, theatre number mandatory - if(timeOfLastSlit != "" && theatreNumber == ""){ + if(theatreNumber == ""){ getField('theatre_number.error').html('Please specify the theatre number').show(); return false; } else { @@ -307,12 +359,12 @@ - + @@ -321,9 +373,10 @@ - + + @@ -427,11 +502,12 @@ + @@ -458,18 +534,18 @@ @@ -490,17 +566,15 @@
Method: * Method: *

@@ -346,10 +399,18 @@ style="radio" />
Specify: - + + + + + +
Specify: + +
@@ -373,7 +434,7 @@ @@ -384,6 +445,7 @@ + + + +
Anaesthesia used: Type: + answerLabels="Local Anaesthesia,Topical Anaesthesia" id="anaesthesia" style="radio" />
Agent Concentration(mg): Volume(ml):
+ +
+ + + +
    Specify : + +     +
- Was there an Adverse Event during circumcision? + Was there an Adverse Event during circumcision? * + style="radio" />
- - - - - + - - - -
Management of Adverse Events if any:

+
Management of Adverse Events if any:
+ + + + + @@ -508,44 +582,62 @@
Personnel in charge - - - - - - - - - - - - - - - - - - - +
Name of Clinician: - -
Cadre: - -
Name of Assistant Clinician: - -
Cadre: - -
Theatre Register Number: - -
+ + + + + + + + +
Name of ClinicianCadre
+ + + + + + + + + +
Name of Assistant ClinicianCadre
+ + + + +
Theatre Register Number: + +
- -