Import latest app updates from streamline

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.
This commit is contained in:
2024-04-11 11:16:51 -07:00
parent cb4c6b4c1a
commit 4a89356390
10435 changed files with 107737 additions and 1220538 deletions
@@ -0,0 +1,88 @@
@php
$had_positive_response_to_tb_qn = false;
@endphp
@if($triage)
@if ($triage->any_tb_sysmptoms == 1)
@php
if($triage->cough_for_2_weeks == 1 || $triage->fever_for_2_weeks || $triage->tb_weight_loss || $triage->tb_poor_weight_gain || $triage->tb_excessive_night_sweats || $triage->tb_contact_with_tb_person){
$had_positive_response_to_tb_qn = true;
}
$consultation = \Streamline\Models\Consultation::where(['patient_id' => $patient_id, 'episode_id' => $episode_id])->first();
$tb_assessment_status = false;
if ($consultation) {
$tb_assessment_status = $consultation->tb_status_assessment;
}
@endphp
@endif
@endif
@if ($had_positive_response_to_tb_qn)
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<table class="table table-hover color-table info-table table-bordered">
<thead>
<tr>
<th colspan="3">Please show your assessment of the patients TB Status: </span></th>
</tr>
</thead>
<tbody>
<tr class="cough_tb_question" style="background-color: #f3f3f5;">
<td>Definite TB &nbsp;
<input type="radio" name='tb_status_assessment' id='patient_tb_status_definite_tb' class="patient_tb_status" value="1" {!! $tb_assessment_status == 1 ? "checked='true'" : "" !!} required>
</td>
<td>Possible TB &nbsp;
<input type="radio" name='tb_status_assessment' id='patient_tb_status_possible_tb' class="patient_tb_status" value="2" {!! $tb_assessment_status == 2 ? "checked='true'" : "" !!} required>
</td>
<td>Definitely not TB &nbsp;
<input type="radio" name='tb_status_assessment' id='patient_tb_status_definitely_not_tb' class="patient_tb_status" value="3" {!! $tb_assessment_status == 3 ? "checked='true'" : "" !!} required>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="modal fade" id="TBActionModal" tabindex="-1" role="dialog" aria-labelledby="modalTBActionLabel1" style="margin-top: 10%">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<br>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1"><strong style="color: rgb(68, 165, 221);">TB Assesment</strong></h4>
</div>
<div class="modal-body">
<div class="definite_tb_message" style="display:none; font-weight:bolder; font-size:16px">
Ensure the Patient is registered in TB Treatment Unit
</div>
<div class="possible_tb_message" style="display:none; font-weight:bolder; font-size:16px">
Organise further investigations and follow up to check for TB
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
@push('scripts')
<script>
$('.patient_tb_status').change(function(){
if($("#patient_tb_status_definite_tb").is(':checked') && $("#patient_tb_status_possible_tb").is(":not(:checked)")){
$("#TBActionModal").modal("show");
$(".definite_tb_message").show();
$(".possible_tb_message").hide();
}
if($("#patient_tb_status_possible_tb").is(":checked") && $("#patient_tb_status_definite_tb").is(":not(:checked)")){
$("#TBActionModal").modal("show");
$(".possible_tb_message").show();
$(".definite_tb_message").hide();
}
})
</script>
@endpush
@endif