mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
An updated set of source files and initialization was provided by streamline to address issues observed during initial testing. These files have been updated in order to generate a new set of app images.
323 lines
16 KiB
PHP
Executable File
323 lines
16 KiB
PHP
Executable File
<div class="row m-0 py-4 px-2" style="border: 1px solid #e4e7ea; margin: 5px">
|
|
<div class="col-sm-12">
|
|
<strong>INTENSIFIED TB CASE FINDING SCREEN: ({{ $age_group_display }})</strong>
|
|
</div>
|
|
<hr>
|
|
<div class="col-sm-12">
|
|
DOES THE PATIENT HAVE ANY OF THE FOLLOWING: <input type="radio" name='any_tb_sysmptoms' id='tb_questions_yes'
|
|
class="cough_class" value="1"> Yes
|
|
<input type="radio" name='any_tb_sysmptoms' id='tb_questions_no' class="cough_class" value="0"> No
|
|
@if ($age_group == 5 || $age_group_display == '> 12 Years')
|
|
{{-- adults i.e above 12 years --}}
|
|
<ol>
|
|
<li>
|
|
A cough for more than two weeks ?
|
|
</li>
|
|
<li>
|
|
Persistent fevers for 2 weeks or more ?
|
|
</li>
|
|
<li>
|
|
Noticeable weight loss of more than 3kg ?
|
|
</li>
|
|
<li>
|
|
Excessive night sweats for three weeks or more ?
|
|
</li>
|
|
</ol>
|
|
@elseif($age_group == 4 || $age_group_display == '6 - 12 Years')
|
|
{{-- between 6-12 years --}}
|
|
<ol>
|
|
<li>
|
|
A cough for more than two weeks ?
|
|
</li>
|
|
<li>
|
|
Persistent fevers for 2 weeks or more ?
|
|
</li>
|
|
<li>
|
|
Noticeable weight loss ?
|
|
</li>
|
|
<li>
|
|
Excessive night sweats for three weeks or more ?
|
|
</li>
|
|
</ol>
|
|
@elseif(
|
|
$age_group == 3 ||
|
|
$age_group == 2 ||
|
|
$age_group == 1 ||
|
|
$age_group_display == '1 - 12 Months' ||
|
|
$age_group_display == '0 - 28 Days')
|
|
{{-- children below 5 years --}}
|
|
<ol>
|
|
<li>
|
|
A cough for more than two weeks ?
|
|
</li>
|
|
<li>
|
|
Persistent fevers for 2 weeks or more ?
|
|
</li>
|
|
<li>
|
|
Noticeable weight loss ?
|
|
</li>
|
|
<li>
|
|
Poor weight gain in the last one month ?
|
|
<br>
|
|
<span style="color: red">
|
|
(weight loss or “very low weight” = where weight for age is less than -3 z-score, or
|
|
“underweight” =
|
|
weight for age less than -2 z-score, or “confirmed weight loss”= more than 5% since last visit,
|
|
or “growth
|
|
curve flattening”).
|
|
</span>
|
|
</li>
|
|
<li>
|
|
Contact with a person with pulmonary tuberculosis or chronic cough ?
|
|
</li>
|
|
</ol>
|
|
@endif
|
|
|
|
<br>
|
|
<table class="tb_questions_table table table-bordered" style="display: none; background-color: #f3f3f5;">
|
|
@if ($age_group == 5 || $age_group_display == '> 12 Years')
|
|
<tr class="cough_tb_question">
|
|
<td>A cough for more than two weeks ?</td>
|
|
<td>
|
|
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="fever_tb_question">
|
|
<td>Persistent fevers for 2 weeks or more ?</td>
|
|
<td>
|
|
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="weight_loss_tb_question">
|
|
<td>Noticeable weight loss of more than 3 Kg?</td>
|
|
<td>
|
|
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_yes' class="tb_screening_radios"
|
|
value="1"> Yes
|
|
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_no' class="tb_screening_radios"
|
|
value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="excessive_night_sweats_tb_question">
|
|
<td>Excessive night sweats for three weeks or more ?</td>
|
|
<td>
|
|
<input type="radio" name='tb_excessive_night_sweats' id='tb_excessive_night_sweats_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='tb_excessive_night_sweats' id='tb_excessive_night_sweats_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
@elseif ($age_group == 4 || $age_group_display == '6 - 12 Years')
|
|
<tr class="cough_tb_question">
|
|
<td>A cough for more than two weeks ?</td>
|
|
<td>
|
|
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="fever_tb_question">
|
|
<td>Persistent fevers for 2 weeks or more ?</td>
|
|
<td>
|
|
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="weight_loss_tb_question">
|
|
<td>Noticeable weight loss ?</td>
|
|
<td>
|
|
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_yes' class="tb_screening_radios"
|
|
value="1"> Yes
|
|
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_no' class="tb_screening_radios"
|
|
value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="excessive_night_sweats_tb_question">
|
|
<td>Excessive night sweats for three weeks or more ?</td>
|
|
<td>
|
|
<input type="radio" name='tb_excessive_night_sweats' id='tb_excessive_night_sweats_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='tb_excessive_night_sweats' id='tb_excessive_night_sweats_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
@elseif(
|
|
$age_group == 3 ||
|
|
$age_group == 2 ||
|
|
$age_group == 1 ||
|
|
$age_group_display == '1 - 12 Months' ||
|
|
$age_group_display == '0 - 28 Days')
|
|
{{-- children below 5 years --}}
|
|
<tr class="cough_tb_question">
|
|
<td>A cough for more than two weeks ?</td>
|
|
<td>
|
|
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="fever_tb_question">
|
|
<td>Persistent fevers for 2 weeks or more ?</td>
|
|
<td>
|
|
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="weight_loss_tb_question">
|
|
<td>Noticeable weight loss ?</td>
|
|
<td>
|
|
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="poor_weight_gain_tb_question">
|
|
<td>Poor weight gain in the last one month ?
|
|
<br>
|
|
<span style="color: red">
|
|
(weight loss or “very low weight” = where weight for age is<br> less than -3 z-score, or
|
|
“underweight” = weight for age less than<br> -2 z-score, or “confirmed weight loss”= more
|
|
than 5% since last visit, or “growth curve flattening”).
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<input type="radio" name='tb_poor_weight_gain' id='tb_poor_weight_gain_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='tb_poor_weight_gain' id='tb_poor_weight_gain_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
<tr class="contact_with_tb_person_with_tb_question">
|
|
<td>Contact with a person with pulmonary TB or chronic cough ?</td>
|
|
<td>
|
|
<input type="radio" name='tb_contact_with_tb_person' id='tb_contact_with_tb_person_yes'
|
|
class="tb_screening_radios" value="1"> Yes
|
|
<input type="radio" name='tb_contact_with_tb_person' id='tb_contact_with_tb_person_no'
|
|
class="tb_screening_radios" value="0"> No
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
|
|
<div class="modal fade" id="TBActionModal" tabindex="-1" role="dialog" aria-labelledby="modalTBActionLabel1"
|
|
style="margin-top: 20%">
|
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
|
aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<h4 class="modal-title"><u>ACTION NEEDED: <font color=red>Possible TB</font></u></h4><br>
|
|
<div class="possible_tb_action_for_coughing" style="display:none; font: bolder">
|
|
@if ($age_group == 5 || $age_group_display == '> 12 Years')
|
|
<ol>
|
|
<li>REQUEST FOR SPUTUM TEST</li>
|
|
<li>REFER TO CLINICIAN FOR FURTHER INVESTIGATIONS</li>
|
|
<li style="color: red">DIRECT THE PATIENT TO DESIGNATED AREA FOR PEOPLE WITH CHRONIC COUGH
|
|
AWAY FROM THE MAIN QUEUE TO REDUCE THE RISK OF CROSS-INFECTION</li>
|
|
</ol>
|
|
@elseif ($age_group == 4 || $age_group_display == '6 - 12 Years')
|
|
<ol>
|
|
<li>REQUEST FOR SPUTUM TEST if child can manage</li>
|
|
<li>REFER TO CLINICIAN FOR FURTHER INVESTIGATIONS</li>
|
|
<li style="color: red">DIRECT THE PATIENT TO DESIGNATED AREA FOR PEOPLE WITH CHRONIC COUGH
|
|
AWAY FROM THE MAIN QUEUE TO REDUCE THE RISK OF CROSS-INFECTION</li>
|
|
</ol>
|
|
@elseif(
|
|
$age_group == 3 ||
|
|
$age_group == 2 ||
|
|
$age_group == 1 ||
|
|
$age_group_display == '1 - 12 Months' ||
|
|
$age_group_display == '0 - 28 Days')
|
|
{{-- children below 5 years --}}
|
|
<ol>
|
|
<li>REFER TO CLINICIAN FOR FURTHER INVESTIGATIONS</li>
|
|
<li style="color: red">DIRECT THE PATIENT TO DESIGNATED AREA FOR PEOPLE WITH CHRONIC COUGH
|
|
AWAY FROM THE MAIN QUEUE TO REDUCE THE RISK OF CROSS-INFECTION</li>
|
|
</ol>
|
|
@endif
|
|
</div>
|
|
<div class="possible_tb_action_for_non_coughing" style="display:none; font: bolder">
|
|
@if ($age_group == 5 || $age_group == 4 || $age_group_display == '6 - 12 Years' || $age_group_display == '> 12 Years')
|
|
<ol>
|
|
<li>REFER TO CLINICIAN FOR FURTHER INVESTIGATIONS</li>
|
|
</ol>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@push('scripts')
|
|
<script>
|
|
$("#tb_questions_no").change(function() {
|
|
$(".tb_questions_table").hide();
|
|
$(".tb_screening_radios").removeAttr("required");
|
|
console.log('no tb screening');
|
|
console.log($("#tb_questions_yes").is(':checked'));
|
|
})
|
|
|
|
$("#tb_questions_yes").change(function() {
|
|
$(".tb_questions_table").show();
|
|
$(".tb_screening_radios").attr('required', 'true');
|
|
console.log('yes tb screening');
|
|
console.log($("#tb_questions_yes").is(':checked'));
|
|
})
|
|
|
|
$('input[name="cough_for_2_weeks"]').change(function() {
|
|
if ($("#cough_for_2_weeks_yes").is(':checked')) {
|
|
//$("#TBActionModal").modal("show");
|
|
$(".possible_tb_action_for_coughing").show();
|
|
$(".possible_tb_action_for_non_coughing").hide();
|
|
}
|
|
})
|
|
|
|
$('input[name="fever_for_2_weeks"]').change(function() {
|
|
if ($("#cough_for_2_weeks_yes").is(":not(:checked)") && $("#fever_for_2_weeks_yes").is(':checked')) {
|
|
//$("#TBActionModal").modal("show");
|
|
$(".possible_tb_action_for_coughing").hide();
|
|
$(".possible_tb_action_for_non_coughing").show();
|
|
}
|
|
})
|
|
|
|
$('input[name="tb_weight_loss"]').change(function() {
|
|
var ageGroup = <?php echo $age_group; ?>;
|
|
console.log(ageGroup);
|
|
if ($("#cough_for_2_weeks_yes").is(":not(:checked)") && $("#tb_weight_loss_yes").is(':checked')) {
|
|
//$("#TBActionModal").modal("show");
|
|
$(".possible_tb_action_for_coughing").hide();
|
|
$(".possible_tb_action_for_non_coughing").show();
|
|
}
|
|
})
|
|
|
|
$('input[name="tb_excessive_night_sweats"]').change(function() {
|
|
if ($("#cough_for_2_weeks_yes").is(":not(:checked)") && $("#tb_excessive_night_sweats_yes").is(
|
|
':checked')) {
|
|
//$("#TBActionModal").modal("show");
|
|
$(".possible_tb_action_for_coughing").hide();
|
|
$(".possible_tb_action_for_non_coughing").show();
|
|
}
|
|
})
|
|
</script>
|
|
@endpush
|