mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +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.
88 lines
4.3 KiB
PHP
Executable File
88 lines
4.3 KiB
PHP
Executable File
@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 patient’s TB Status: </span></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr class="cough_tb_question" style="background-color: #f3f3f5;">
|
||
<td>Definite TB
|
||
<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
|
||
<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
|
||
<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">×</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 |