Zenova (Sitazit & glipiq Corrections)
This commit is contained in:
parent
f20809710d
commit
0fdacadc63
|
|
@ -310,31 +310,11 @@
|
||||||
$('#field-rtm_dr').val($('option:selected', this).attr('rtm_dr'))
|
$('#field-rtm_dr').val($('option:selected', this).attr('rtm_dr'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#field-contact_id').change(function() {
|
$('#field-contact_id').change(function() {
|
||||||
|
$('#field-absi_camp').val($('option:selected', this).attr('absi_camp'))
|
||||||
|
})
|
||||||
|
|
||||||
const selectedDoctor = $('option:selected', this);
|
|
||||||
|
|
||||||
let absiCamp = selectedDoctor.attr('absi_camp') || '';
|
|
||||||
|
|
||||||
console.log("Selected doctor:", selectedDoctor.text());
|
|
||||||
console.log("ABSI attribute:", absiCamp);
|
|
||||||
|
|
||||||
// Convert 1/0 to Yes/No if required
|
|
||||||
if (absiCamp == 1 || absiCamp === '1') {
|
|
||||||
absiCamp = 'Yes';
|
|
||||||
}
|
|
||||||
else if (absiCamp == 0 || absiCamp === '0') {
|
|
||||||
absiCamp = 'No';
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#field-absi_camp').val(absiCamp);
|
|
||||||
|
|
||||||
// This will show/hide No of Patients Screened
|
|
||||||
toggleAbsiPatientsField();
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -345,7 +325,7 @@
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#field-pmos_dr').on('change',function(){
|
/* $('#field-pmos_dr').on('change',function(){
|
||||||
let value=$(this).val();
|
let value=$(this).val();
|
||||||
if(value=='Yes'){
|
if(value=='Yes'){
|
||||||
$('#report-form').append('<input type="hidden" name="pmos_dr_count" value="1">')
|
$('#report-form').append('<input type="hidden" name="pmos_dr_count" value="1">')
|
||||||
|
|
@ -385,29 +365,29 @@
|
||||||
if(value=='Yes'){
|
if(value=='Yes'){
|
||||||
$('#report-form').append('<input type="hidden" name="rtm_dr_count" value="1">')
|
$('#report-form').append('<input type="hidden" name="rtm_dr_count" value="1">')
|
||||||
}
|
}
|
||||||
})
|
}) */
|
||||||
|
|
||||||
$('#field-absi_camp').on('change', function(){
|
$('#field-absi_camp').on('change', function(){
|
||||||
|
|
||||||
let value = $(this).val();
|
/* let value = $(this).val();
|
||||||
|
|
||||||
if(value == 'Yes'){
|
if(value == 'Yes'){
|
||||||
$('#report-form input[name="absi_camp_count"]').val(1);
|
$('#report-form input[name="absi_camp_count"]').val(1);
|
||||||
} else {
|
} else {
|
||||||
$('#report-form input[name="absi_camp_count"]').val(0);
|
$('#report-form input[name="absi_camp_count"]').val(0);
|
||||||
}
|
} */
|
||||||
|
|
||||||
toggleAbsiPatientsField();
|
toggleAbsiPatientsField();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#field-h1_cardio_conference').on('change',function(){
|
/* $('#field-h1_cardio_conference').on('change',function(){
|
||||||
let value=$(this).val();
|
let value=$(this).val();
|
||||||
if(value=='Yes'){
|
if(value=='Yes'){
|
||||||
$('#report-form').append('<input type="hidden" name="h1_cardio_conference_count" value="1">')
|
$('#report-form').append('<input type="hidden" name="h1_cardio_conference_count" value="1">')
|
||||||
}
|
}
|
||||||
})
|
}) */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue