Titans (Core HCP Connect Drive) - Number of Patient Hide/Show
Specific Folder FTP Upload / ftp-deploy (push) Successful in 42s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 42s
Details
This commit is contained in:
parent
29363167b2
commit
5e8459348f
|
|
@ -542,54 +542,10 @@
|
||||||
|
|
||||||
|
|
||||||
// Show Patients Screened only for LHC during Execution
|
// Show Patients Screened only for LHC during Execution
|
||||||
const selectedActivity = ($('#execution-activity').val() || '').trim().toUpperCase();
|
|
||||||
|
|
||||||
if (selectedActivity === 'Oscar Screening Camps') {
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.show();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', true);
|
|
||||||
} else {
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.hide();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', false)
|
|
||||||
.val('');
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#execution-activity').off('change.patientsScreened').on('change.patientsScreened', function () {
|
|
||||||
|
|
||||||
const activity = ($(this).val() || '').trim().toUpperCase();
|
|
||||||
|
|
||||||
if (activity === 'Oscar Screening Camps') {
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.show();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', true);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.hide();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', false)
|
|
||||||
.val('');
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.after('<h4>Prescription Generated</h4>');
|
|
||||||
|
|
||||||
$('#execution-dpi,#execution-mdi,#execution-sync,#execution-cip').on('input', function() {
|
$('#execution-dpi,#execution-mdi,#execution-sync,#execution-cip').on('input', function() {
|
||||||
var total=(
|
var total=(
|
||||||
|
|
@ -624,14 +580,22 @@
|
||||||
if(activityName==='Oscar Screening Camps'){
|
if(activityName==='Oscar Screening Camps'){
|
||||||
$('#execution-count-execution-lhc').val('1');
|
$('#execution-count-execution-lhc').val('1');
|
||||||
$('#execution-count-execution-novel').val('0');
|
$('#execution-count-execution-novel').val('0');
|
||||||
|
$('#execution-no_of_patients_screened').parent().show();
|
||||||
|
$('#execution-no_of_patients_screened').prop('required', true);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(activityName==='Novel'){
|
else if(activityName==='Novel'){
|
||||||
$('#execution-count-execution-lhc').val('0');
|
$('#execution-count-execution-lhc').val('0');
|
||||||
$('#execution-count-execution-novel').val('1');
|
$('#execution-count-execution-novel').val('1');
|
||||||
|
$('#execution-no_of_patients_screened').parent().hide();
|
||||||
|
$('#execution-no_of_patients_screened').prop('required', false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#execution-count-execution-lhc').val('0');
|
$('#execution-count-execution-lhc').val('0');
|
||||||
$('#execution-count-execution-novel').val('0');
|
$('#execution-count-execution-novel').val('0');
|
||||||
|
$('#execution-no_of_patients_screened').parent().hide();
|
||||||
|
$('#execution-no_of_patients_screened').prop('required', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue