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
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,607 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
<style>
.triage-grade li {
display: inline-block;
}
.same_width {
width: 100%;
table-layout: fixed;
}
.wrapper {
border: 1px solid #00c292;
border-radius: 6px;
padding: 20px;
margin-bottom: 20px;
}
</style>
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
<h4 class="page-title">{{ __('triage.edit_triage') }}</h4>
</div>
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('triage.dashboard') }}</a></li>
<li><a href="{{ route('patient_episodes.index') }}">{{ __('triage.patient_home') }}</a></li>
<li class="active">{{ __('triage.triage') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
<br>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box br-5" style="padding-top: 5px;">
<h5 class="page-title"><strong>{{ __('triage.triage') }} ({{ $age_group_display }})
{{ __('triage.for_episode') }} : <font color="blue">
{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</font>
</strong></h5>
<hr>
{{ Form::model($triage, ['method' => 'PUT', 'route' => ['triage.update', $triage], 'data-toggle' => 'validator']) }}
{{ Form::hidden('episode_id', $episode_id) }}
{{ Form::hidden('patient_id', $patient_id) }}
@php
$alert1 = '<div class="alert alert-warning "> <button type="button" class="close" data-dismiss="alert">×</button>' . __('triage.sick_children_warning') . '</div>';
$alert2 = '<div class="alert alert-warning "> <button type="button" class="close" data-dismiss="alert">×</button>' . __('triage.poison_warning') . '</div>';
$symptoms_array = [];
@endphp
@php
$option_symptoms = '';
$option_symptoms_periods = '';
$symptom_counter = 1;
@endphp
@if (!are_symptoms_on_consultation())
<div class="table-responsive">
<table class="table table-hover color-table success-table table-bordered" id="symptom_table">
<thead>
<tr>
<th class="text-center">{{ __('triage.symptoms') }} <a data-toggle="modal"
data-target="#symptomsmodal"
class="label labelRight label-info pull-right">{{ __('triage.add_new') }}</a>
</th>
<th class="text-center">{{ __('triage.duration') }}</th>
<th class="text-center">{{ __('triage.prompt') }}</th>
<th class="text-center">{{ __('triage.reference_text') }}</th>
<th></th>
</tr>
</thead>
<tbody class='symptoms_input_fields_wrap'>
@php
$symptoms_array = explode(',', $triage->symptoms);
$symptoms_duration_array = explode(',', $triage->symptom_duration);
foreach ($symptoms as $key => $value) {
$option_symptoms .= "<option value='$key'>" . str_replace('"', '', $value) . '</option>';
}
foreach ($symptoms_periods as $key => $value){
$option_symptoms_periods .= "<option value='$key'>$value</option>";
}
@endphp
@if(empty($symptoms_array) || count($symptoms_array) != count($symptoms_duration_array))
<tr>
<td style='width: 20%;'>
<select name='symptoms[]' id='symptoms_0' class='form-control col-sm-12 compulsory' onchange='showPrompt(this.value, 0)' required>@php echo $option_symptoms; @endphp</select>
</td>
<td style='width: 21%'>
<div class='row'>
<div class='col-sm-3'>
<input type='text' style='display: block;' name='duration[]' id='symptoms_duration_0' class='col-sm-12 form-control' required>
</div>
<div class='col-sm-9'>
<select style='display: inline-block;' name='time[]' id='symptoms_time_0' class='col-sm-12 form-control' required>@php echo $option_symptoms_periods; @endphp</select>
</div>
</div>
</td>
<td id='symptoms_prompt_0' style='width: 30%'></td>
<td id='symptoms_reference_0'></td>
<td style='width: 1%;'></td>
</tr>
@else
@for($i = 0; $i < count($symptoms_array); $i++)
@php
$duration_array = explode(" ", $symptoms_duration_array[$i]);
@endphp
<tr>
<td style='width: 20%;'>
<select name='symptoms[]' id='symptoms_0'
class='form-control col-sm-12 compulsory'
onchange='showPrompt(this.value, 0)' required>@php echo $option_symptoms; @endphp</select>
</td>
<td style='width: 21%'>
<div class='row'>
<div class='col-sm-3'>
<input type='text' style='display: block;' name='duration[]'
id='symptoms_duration_0' class='col-sm-12 form-control h-100'>
</div>
<div class='col-sm-9'>
<select style='display: inline-block;' name='time[]'
id='symptoms_time_0'
class='col-sm-12 form-control select2-hidden-accessible'>@php echo $option_symptoms_periods; @endphp</select>
</div>
</div>
</td>
<td id='symptoms_prompt_0' style='width: 30%'></td>
<td id='symptoms_reference_0'></td>
<td style='width: 1%;'></td>
</tr>
@else
@for ($i = 0; $i < count($symptoms_array); $i++)
@php
$duration_array = explode(' ', $symptoms_duration_array[$i]);
@endphp
<tr>
<td style="width: 20%;">
{{ Form::select('symptoms[]', $symptoms, $symptoms_array[$i], ['id' => 'symptoms_' . $i, 'class' => 'form-control col-sm-12 compulsory initial_symptoms_select', 'onchange' => 'showPrompt(this.value, ' . $i . ')']) }}
</td>
<td style="width: 21%">
<div class="row m-0 d-flex justify-content-between align-items-stretch">
<div class="col-sm-3 p-0">
<input type="text" style="display: block;" name="duration[]"
id="duration[]" class="col-sm-12 form-control h-100"
value="{{ $duration_array[0] }}">
</div>
<div class="col-sm-9 p-0">
<select style="display: inline-block;" name="time[]" id="time[]"
class="w-100 form-control select-2 h-100">
<option value="{{ $duration_array[1] }}" selected>
{{ $duration_array[1] }}</option>
<option value="<?php echo __('triage.hours'); ?>">{{ __('triage.hours') }}
</option>
<option value="<?php echo __('triage.days'); ?>">{{ __('triage.days') }}
</option>
<option value="<?php echo __('triage.weeks'); ?>">{{ __('triage.weeks') }}
</option>
<option value="<?php echo __('triage.months'); ?>">{{ __('triage.months') }}
</option>
<option value="<?php echo __('triage.years'); ?>">{{ __('triage.years') }}
</option>
</select>
</div>
</div>
</td>
<td id="symptoms_prompt_{{ $i }}" style="width: 30%"></td>
<td id="symptoms_reference_{{ $i }}"></td>
<td style="width: 1%;"></td>
</tr>
@endfor
@endif
</tbody>
</table>
<a class="btn btn-success btn-xs" onclick="add_symptom_row()"
id="add_row">{{ __('triage.add_row') }}</a>
<hr>
</div>
@endif
@if (is_tuberculosis_screening_enabled())
@include('patients::triage.edit.edit_tb_screening')
@endif
@if (is_hiv_screening_tool_enabled())
@include('patients::triage.edit.edit_hiv_screening')
@endif
@if (is_gbv_screening_tool_enabled())
@include('patients::triage.edit.edit_gbv_screening')
@endif
<div class="row">
<div class="col-md-8">
<div class="table-responsive">
<table class="table table-hover table-striped color-table success-table table-bordered"
id="observations_table">
<thead>
<tr>
<th>{{ __('triage.observation') }}</th>
<th>{{ __('triage.value') }}</th>
<th>{{ __('triage.normal_range') }}</th>
@if ($age_group == 5)
<th>KEWS</th>
<th>NEWS</th>
@else
<th>KEWS</th>
@endif
</tr>
</thead>
<tbody>
@include('patients::triage.edit.observations_changed')
</tbody>
</table>
</div>
@if (between($years, 16, 50))
@include('patients::triage.edit.family_planning_questions')
@endif
@if (between($years, 0, 12))
@include('patients::triage.edit.emergency_signs')
@endif
</div>
<div class="col-md-4">
@if ($age_group == 1 || $age_group == 2)
<?php echo $alert2; ?>
<?php echo $alert1; ?>
@else
<?php echo $alert2; ?>
@endif
<br>
@if (!is_add_attendance_to_consultation_enabled())
<div class="table-responsive">
<table class="table table-hover color-table success-table table-bordered">
<thead>
<tr>
<th colspan="2" class="text-center">
{{ __('triage.patient_attendance') }}
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<font color="#C85F6A" class="text-center">{{ __('triage.re_attendance_or_new') }}</font>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="new_attendance" id="new_attendance" @if(!empty($triage->new_attendance)) checked @endif/> {{ __('triage.new_attendance') }}
</td>
<td>
<input type="checkbox" name="re_attendance" id="re_attendance" @if(!empty($triage->re_attendance)) checked @endif/> {{ __('triage.re_attendance') }}
</td>
</tr>
</tbody>
</table>
</div>
@endif
@if (between($years, 0, 12))
@include('patients::triage.edit.priority_signs')
@endif
<div style="background: #F5F5F5; padding: 10px;">
<h4 class="text-center">{{ __('triage.triage_grade') }}</h4>
<hr>
<div class="row text-center">
<div class="col-md-4 br">
{{ Form::radio('triage_grade', 1, $triage->severe_grade == 1, ['required', 'id' => 'triage_grade_green']) }}
<b style="color: #006400; font-weight: 900; font-size: 18;">{{ __('triage.green') }}
</b>
</div>
<div class="col-md-4">
{{ Form::radio('triage_grade', 2, $triage->severe_grade == 2, ['required', 'id' => 'triage_grade_yellow']) }}
<b style="color: #FFC40C; font-weight: 900; font-size: 18; ">{{ __('triage.yellow') }}
</b>
</div>
<div class="col-md-4">
{{ Form::radio('triage_grade', 3, $triage->severe_grade == 3, ['required', 'id' => 'triage_grade_red']) }}
<b style="color: #FF4500; font-weight: 900; font-size: 18;">{{ __('triage.red') }}</b>
</div>
</div>
</div>
<h4 style="background: #F5F5F5; padding: 10px;">{{ __('triage.referral_clinic_allocation') }}</h4>
<div class="form-group">
{{ Form::label('referral_hospital', __('triage.referred_by')) }}
{{ Form::select('referral_hospital', $referral_hospitals, $triage->referral, ['class' => 'form-control compulsory', 'required', 'id' => 'referral_hospital']) }}
<a class="pull-right" style="font-size: x-small" data-toggle="modal"
data-target="#referralsmodal">{{ __('triage.add_new') }}</a>
</div>
<div class="form-group">
{{ Form::label('clinic_allocation', __('triage.clinic_allocation')) }}
@if (is_numeric(get_name($episode_id, 'id', 'clinic_id', 'patient_episodes')))
{{ Form::select('clinic_allocation', $clinics, get_name($episode_id, 'id', 'clinic_id', 'patient_episodes'), ['class' => 'form-control col-sm-12 compulsory', 'required']) }}
@else
{{ Form::select('clinic_allocation', $clinics, '', ['class' => 'form-control col-sm-12 compulsory', 'required']) }}
@endif
</div>
<h4 style="background: #F5F5F5; padding: 10px;">{{ __('triage.comment') }}</h4>
<textarea name='comment' id="comment" class="col-sm-12" placeholder="<?php echo __('triage.type_comments_here'); ?>">{{ $triage->comments }}</textarea>
<br><br>
{{ Form::button(__('triage.submit_triage'), ['type' => 'submit', 'class' => 'btn btn-success col-sm-12', 'id' => 'submit_triage']) }}
<br><br>
{{ __('triage.triage_done_by') }} : <span
style="color: green; font-weight: bold;">{{ ucwords(Auth::user()->first_name) . ' ' . ucwords(Auth::user()->last_name) }}</span>
</div>
</div>
{{ Form::close() }}
</div>
</div>
</div>
<div class="modal fade" id="symptomsmodal" tabindex="-1" role="dialog">
<div class="modal-dialog" 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">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('triage.add_new_symptom') }}</h4>
</div>
<div class="modal-body">
{{ Form::text('symptom_name', '', ['class' => 'form-control', 'id' => 'symptom_name', 'placeholder' => __('triage.symptom_name')]) }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">{{ __('triage.cancel') }}</button>
<a class="btn btn-success" onclick="submitSymptom()">{{ __('triage.add_symptom') }}</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="referralsmodal" tabindex="-1" role="dialog">
<div class="modal-dialog" 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">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('triage.add_new_referral') }}</h4>
</div>
<div class="modal-body">
{{ Form::text('referral_name', '', ['class' => 'form-control', 'id' => 'referral_name', 'placeholder' => __('triage.referral_name')]) }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">{{ __('triage.cancel') }}</button>
<a class="btn btn-primary" onclick="submitReferral()">{{ __('triage.add_referral') }}</a>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
<script type="text/javascript">
let max_rows = 20;
let wrapper = $(".symptoms_input_fields_wrap");
let x = {{ !empty($symptoms_array)? count($symptoms_array):1 }};
let smart_triage_variables = {};
// check if smart triage is enabled
let smart_triage_enabled = <?php echo is_smart_triage_enabled() ? 1 : 0; ?>;
let apply_triage_grade = <?php echo apply_triage_grade() ? 1 : 0; ?>;
$(wrapper).on("click", ".remove_field", function(e) {
e.preventDefault();
$(this).parent('td').parent('tr').remove();
x--;
});
function add_symptom_row() {
if (x < max_rows) {
$(wrapper).append("<tr>\
<td style='width: 20%;'>\
<select name='symptoms[]' id='symptoms_" + x + "' class='form-control col-sm-12 compulsory' onchange='showPrompt(this.value, " + x + ")' required>@php echo $option_symptoms; @endphp</select>\
</td>\
<td style='width: 21%'>\
<div class='row'>\
<div class='col-sm-3'>\
<input type='text' style='display: block;' name='duration[]' id='symptoms_duration_" + x + "' class='col-sm-12 form-control' required>\
</div>\
<div class='col-sm-9'>\
<select style='display: inline-block;' name='time[]' id='symptoms_time_" + x + "' class='col-sm-12 form-control' required>@php echo $option_symptoms_periods; @endphp</select>\
</div>\
</div>\
</td>\
<td id='symptoms_prompt_" + x + "' style='width: 30%'></td>\
<td id='symptoms_reference_" + x + "'></td>\
<td style='width: 1%;'><a class='remove_field btn btn-sm btn-rounded btn-danger' style='color: white;'><i class='fa fa-trash'></i></a></td>\
</tr>");
generalSelect2Set('symptoms_' + x);
$("#symptoms_" + x).load('/symptoms/get_symptoms');
x++;
}
}
function generalSelect2Set(id) {
$('#' + id).select2({
width: "100%"
});
}
function showPrompt(symptom_id, id) {
if (symptom_id == "") {
return;
}
$.ajax({
method: 'POST',
url: '/triage/get_prompt',
data: {
'symptom_id': symptom_id
},
success: function(response) {
let returnText = response.split('&&&&');
$('#symptoms_prompt_' + id).html('<p style="color: #C85F6A;">' + returnText[0] + '</p>');
$('#symptoms_reference_' + id).html(returnText[1]);
},
error: function(jqXHR, textStatus, errorThrown) {
alert(JSON.stringify(jqXHR));
console.log(JSON.stringify(jqXHR));
}
});
}
function submitSymptom() {
var symptom_name = $("#symptom_name").val();
$.ajax({
method: 'POST',
url: '/triage/add_symptom',
data: {
'symptom_name': symptom_name
},
success: function(response) {
if (response == 1) {
//reload all dropdowns
$(".1000").load('/symptoms/get_symptoms');
alert(symptom_name + ' symptom has been added.');
$('#symptomsmodal').modal('hide');
} else {
alert("<?php echo __('triage.adding_symptom_failed'); ?>");
}
},
error: function(jqXHR, textStatus, errorThrown) {
alert(JSON.stringify(jqXHR));
console.log(JSON.stringify(jqXHR));
}
});
}
function submitReferral() {
var name = $("#referral_name").val();
$.ajax({
method: 'POST',
url: '/triage/add_referral',
data: {
'name': name
},
success: function(response) {
if (!isNaN(response)) {
//response = last inserted id
$('#referral_hospital').append($('<option>', {
value: response,
text: name
}));
$('#referral_hospital').val(response); //preselect the newly added referral
$('#referralsmodal').modal('hide'); //manually hide the modal
} else {
alert("<?php echo __('triage.adding_referral_failed'); ?>");
}
},
error: function(jqXHR, textStatus, errorThrown) {
alert(JSON.stringify(jqXHR));
console.log(JSON.stringify(jqXHR));
}
});
}
$(document).ready(function() {
$('.initial_symptoms_select').select2({
width: "100%"
});
$('.select-2').select2({
width: "100%"
});
var cons_attendance = <?php echo is_add_attendance_to_consultation_enabled() ? 1 : 0 ?>;
$("#submit_triage").click(function(e) { // make sure that all compulsory fields have been filled out
var empty_compulsory_fields = [];
$(".compulsory").each(function() {
if ($(this).val() == "") {
var textname = $(this).attr('name');
$(this).focus();
empty_compulsory_fields.push(textname);
$(this).css('border', '1px solid #F08080');
}
});
if(cons_attendance == 0 && !$('#new_attendance').is(':checked') && !$('#re_attendance').is(':checked')){
alert('Please fill in Patient attendance.');
e.preventDefault();
return false;
$('#new_attendance, #re_attendance').css('border','1px solid #F08080');
}
/* check if the array containing empty compulsory fields is not empty then return false */
if (empty_compulsory_fields.length != 0) {
alert("<?php echo __('triage.compulsory_fields_warning'); ?>");
console.log(empty_compulsory_fields);
e.preventDefault();
return false;
}
});
$('#new_attendance').click(function() {
$('#re_attendance').not('#new_attendance').removeAttr('checked');
});
$('#re_attendance').click(function() {
$('#new_attendance').not('#re_attendance').removeAttr('checked');
});
});
$(document).ready(function() {
$("#child_feeling_unsafe_section").hide();
$("#tested_for_hiv_last_3_months_section").hide();
$(".hiv_positive_section").hide();
});
function hide_tested_for_hiv_last_3_months_questions() {
$("#tested_for_hiv_last_3_months_section").hide();
}
function show_tested_for_hiv_last_3_months_questions() {
$("#tested_for_hiv_last_3_months_section").show();
}
function show_feeling_unsafe_questions() {
$('#child_feeling_unsafe_section').show();
}
function hide_feeling_unsafe_questions() {
$('#child_feeling_unsafe_section').hide();
}
function show_hiv_positive_questions() {
$(".hiv_positive_section").show();
}
function hide_hiv_positive_questions() {
$(".hiv_positive_section").hide();
}
// below 15
$('input[type=radio][name=mother_hiv_positive]').change(function() {
if (this.value == '1') {
$('.child-hiv-status').removeClass('d-none').css('display', '');
$('.child-hiv-status-questions').removeClass('d-none').css('display', '');
} else if (this.value == '0') {
$('.child-hiv-status').addClass('d-none').css('display', 'none');
$('.child-hiv-status-questions').addClass('d-none').css('display', 'none');
$('.child-hiv-status-questions input[type=radio]').each(function() {
this.value('');
})
}
});
</script>
@endpush
@@ -0,0 +1,154 @@
<div class="row">
<h4>{{ __('layout.triage') }}: {{ __('layout.children') }} </h4>
</div>
<div class="row">
<h5>{{ __('layout.emergency_signs') }} *** </h5>
</div>
<div class="row">
<div class="table-responsive">
<table class="table table-bordered table-striped table-condensed">
<tbody>
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
<th scope="col" width="2%">{{ __('layout.yes') }}</th>
<th scope="col" width="2%">{{ __('layout.no') }}</th>
</tr>
<tr>
<th scope="row">{{ __('layout.airway_breathing') }}</th>
<td>{{ __('layout.cyanosis') }}</td>
<td>
<div class="controls">
<input type="radio" name="cyanosis" value="{{ __('layout.yes') }}" id="cyanosis_0" required @if(!empty($airway[__('layout.cyanosis')]) && $airway[__('layout.cyanosis')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="cyanosis" value="{{ __('layout.no') }}" id="cyanosis_0" required @if(!empty($airway[__('layout.cyanosis')]) && $airway[__('layout.cyanosis')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.stridor_breathing_choking') }}</td>
<td>
<div class="controls">
<input type="radio" name="stridor" value="{{ __('layout.yes') }}" id="stridor_0" required @if(!empty($airway[__('layout.stridor_breathing_choking')]) && $airway[__('layout.stridor_breathing_choking')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="stridor" value="{{ __('layout.no') }}" id="stridor_1" required @if(!empty($airway[__('layout.stridor_breathing_choking')]) && $airway[__('layout.stridor_breathing_choking')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.severe_resp_distress') }}</td>
<td>
<div class="controls">
<input type="radio" name="severe_distress" value="{{ __('layout.yes') }}" id="severe_distress_0" required @if(!empty($airway[__('layout.severe_resp_distress')]) && $airway[__('layout.severe_resp_distress')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="severe_distress" value="{{ __('layout.no') }}" id="severe_distress_1" required @if(!empty($airway[__('layout.severe_resp_distress')]) && $airway[__('layout.severe_resp_distress')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">{{ __('layout.circulation') }}</th>
<td>{{ __('layout.capillary_refill_seconds') }}</td>
<td>
<div class="controls">
<input type="radio" name="refill" value="{{ __('layout.yes') }}" id="refill_0" required @if(!empty($circulation[__('layout.capillary_refill_seconds')]) && $circulation[__('layout.capillary_refill_seconds')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="refill" value="{{ __('layout.no') }}" id="refill_1" required @if(!empty($circulation[__('layout.capillary_refill_seconds')]) && $circulation[__('layout.capillary_refill_seconds')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.severe_bleeding') }}</td>
<td>
<div class="controls">
<input type="radio" name="severe_bleeding" value="{{ __('layout.yes') }}" id="severe_bleeding_0" required @if(!empty($circulation[__('layout.severe_bleeding')]) && $circulation[__('layout.severe_bleeding')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="severe_bleeding" value="{{ __('layout.no') }}" id="severe_bleeding_1" required @if(!empty($circulation[__('layout.severe_bleeding')]) && $circulation[__('layout.severe_bleeding')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.weak_fast_pulse') }}</td>
<td>
<div class="controls">
<input type="radio" name="weak_fast_pulse" value="{{ __('layout.yes') }}" id="weak_fast_pulse_0" required @if(!empty($circulation[__('layout.weak_fast_pulse')]) && $circulation[__('layout.weak_fast_pulse')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="weak_fast_pulse" value="{{ __('layout.no') }}" id="weak_fast_pulse_1" required @if(!empty($circulation[__('layout.weak_fast_pulse')]) && $circulation[__('layout.weak_fast_pulse')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">{{ __('layout.neurological') }}</th>
<td>{{ __('layout.coma') }}</td>
<td>
<div class="controls">
<input type="radio" name="coma" value="{{ __('layout.yes') }}" id="coma_0" required @if(!empty($neurological[__('layout.coma')]) && $neurological[__('layout.coma')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="coma" value="{{ __('layout.no') }}" id="coma_1" required @if(!empty($neurological[__('layout.coma')]) && $neurological[__('layout.coma')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.convulsing_now') }}</td>
<td>
<div class="controls">
<input type="radio" name="convulsing_now" value="{{ __('layout.yes') }}" id="convulsing_now_0" required @if(!empty($neurological[__('layout.convulsing_now')]) && $neurological[__('layout.convulsing_now')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="convulsing_now" value="{{ __('layout.no') }}" id="convulsing_now_1" required @if(!empty($neurological[__('layout.convulsing_now')]) && $neurological[__('layout.convulsing_now')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
<tr>
<th scope="row">{{ __('layout.dehydration_children_diarrhoea') }}</th>
<td>{{ __('layout.diarrhoea_lethargy_sunken_eyes') }}</td>
<td>
<div class="controls">
<input type="radio" name="lethargy" value="{{ __('layout.yes') }}" id="lethargy_0" required @if(!empty($dehydration[__('layout.diarrhoea_lethargy_sunken_eyes')]) && $dehydration[__('layout.diarrhoea_lethargy_sunken_eyes')] == __('layout.yes')) checked @endif>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="lethargy" value="{{ __('layout.no') }}" id="lethargy_0" required @if(!empty($dehydration[__('layout.diarrhoea_lethargy_sunken_eyes')]) && $dehydration[__('layout.diarrhoea_lethargy_sunken_eyes')] == __('layout.no')) checked @endif>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="alert alert-warning ">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ __('layout.positive_call_for_help') }}
</div>
@@ -0,0 +1,113 @@
<div class="row">
<h4>{{ __('layout.adult_triage') }} </h4>
</div>
<div class="row">
<h5>{{ __('layout.family_planning_questions') }}</h5>
</div>
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-4">
<input type="checkbox" class="col-sm-1" name="too_sick" id="too_sick" value="1" @if($triage->fp_too_sick == 1) checked @endif>
<span style="color: maroon; font-weight: bold">{{ __('layout.too_sick') }}</span>
</div>
</div>
<hr>
<table class="too_sick_remove table table-bordered" @if($triage->fp_too_sick == 1) style="display: none" @endif>
@if ($patient->gender == 2)
<tr class="currently_pregnant">
<td>{{ __('layout.currently_pregnant') }}</td>
<td>
<input type="radio" name='pregnant' id='pregnant_yes' class="answer_no" value="1" @if($triage->pregnant == 1) checked @endif>&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='pregnant' id='pregnant_no' class="answer_no" value="0" @if($triage->pregnant == 0) checked @endif>&nbsp;{{ __('layout.no') }}
</td>
</tr>
<tr class="menopause" style="display: none">
<td>{{ __('layout.had_menopause') }}</td>
<td>
<input type="radio" name='menopause' id='menopause_yes' class="answer_no" value="1" @if($triage->menopause == 1) checked @endif>&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='menopause' id='menopause_no' class="answer_no" value="0" @if($triage->menopause == 0) checked @endif>&nbsp;{{ __('layout.no') }}
</td>
</tr>
@endif
<tr class="sexually_active">
<td>{{ __('layout.sexually_active') }}</td>
<td>
<input type="radio" name='sexually_active' id='sexually_active_yes' class="answer_yes compulsory" value="1" @if($triage->sexually_active == 1) checked @endif>&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='sexually_active' id='sexually_active_no' class="answer_yes compulsory" value="0" @if($triage->sexually_active == 0) checked @endif>&nbsp;{{ __('layout.no') }}
</td>
</tr>
<tr class="expect_child" style="display: none">
<td>{{ __('layout.wish_to_have_child') }}</td>
<td>
<input type="radio" name='yes_no_children' id='yes_children' class="answer_no" value="1">&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='yes_no_children' id='no_children' class="answer_no" value="0">&nbsp;{{ __('layout.no') }}
</td>
</tr>
<tr class="fp_method" style="display: none">
<td>{{ Form::label('fp_method', __('layout.family_planning_method')) }}</td>
<td>{{ Form::select('fp_method', $family_planning_methods, $triage->fp_method, ['class' => 'form-control col-sm-8']) }}</td>
</tr>
<tr class="fp_action" style="display: none">
<td>{{ __('layout.action') }}</td>
<td>
<select name='fp_action' class="form-control col-sm-8">
<option value="{{ $triage->fp_action }}" selected>{{ $triage->fp_action }}</option>
<option value="{{ __('layout.none') }}">{{ __('layout.none') }}</option>
<option value="{{ __('layout.counseling') }}">{{ __('layout.counseling') }}</option>
<option value="{{ __('layout.referral_to_fp') }}">{{ __('layout.referral_to_fp') }}</option>
</select>
</td>
</tr>
</table>
@push('scripts')
<script>
$("#too_sick").change(function () {
if ($(this).is(':checked')) {
$(".too_sick_remove").hide();
} else {
$(".too_sick_remove").show();
}
});
$("#menopause_yes").change(function () {
$(".sexually_active").hide();
})
$("#menopause_no").change(function () {
$(".sexually_active").show();
})
$("#sexually_active_no").change(function () {
$(".expect_child").hide();
})
$("#sexually_active_yes").change(function () {
$(".expect_child").show();
})
$("#yes_children").change(function () {
$(".fp_method").hide();
$(".fp_action").hide();
})
$("#no_children").change(function () {
$(".fp_method").show();
$(".fp_action").show();
})
$("#pregnant_yes").change(function () {
$(".menopause").hide();
$(".sexually_active").hide();
})
$("#pregnant_no").change(function () {
$(".menopause").show();
$(".sexually_active").show();
})
</script>
@endpush
@@ -0,0 +1,426 @@
@if ($age_group == 1)
@push('scripts')
<script src="{{ asset('js/observations/0_28_days.js') }}"></script>
@endpush
@php $observation_counter = 0; @endphp
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->slug}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@if(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->id}}" class="col-sm-12 form-control">
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@php $observation_counter++; @endphp
@endforeach
@elseif ($age_group == 2)
@push('scripts')
<script src="{{ asset('js/observations/1_12_months.js') }}"></script>
@endpush
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->slug}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@if(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->id}}" class="col-sm-12 form-control">
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" class="form-control" value="{{ $observation->option_for_normal }}" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@endforeach
@elseif ($age_group == 3)
@push('scripts')
<script src="{{ asset('js/observations/1_5_years.js') }}"></script>
@endpush
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->slug}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@if(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->id}}" class="col-sm-12 form-control">
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@endforeach
@elseif ($age_group == 4)
@push('scripts')
<script src="{{ asset('js/observations/6_12_years.js') }}"></script>
@endpush
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->slug}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check to make appropriate row for BMI if the observation name is weight -->
@if($observation->slug == 'weight')
<td style="width: 20%;" class="center">
<input type="number" step="0.01" name="observationsValues[]" id="weight" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" required class="col-sm-12 compulsory form-control" style="width: 100%"
/>
</td>
<td colspan="3" style="width: 40%">
<input type="hidden" step="0.01" readonly="readonly" name="observationsNames[]" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input type="number" readonly="readonly" name="observationsValues[]" id="bmi" value="{{ $observations_to_edit[$observation->name] }}" class="col-sm-12 form-control" />
</div>
</div>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@elseif(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->id}}" class="col-sm-12 form-control">
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@endforeach
@elseif ($age_group == 5)
@push('scripts')
<script src="{{ asset('js/observations/over_12_years.js') }}"></script>
<script src="{{ asset('js/observations/over_12_years_news.js') }}"></script>
@endpush
@php $observation_counter = 0; @endphp
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->slug}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check to make appropriate row for BMI if the observation name is weight -->
@if($observation->slug == 'weight')
<td style="width: 20%;" class="center">
<input type="number" step="0.01" name="observationsValues[]" id="weight" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" required class="col-sm-12 compulsory form-control" style="width: 100%"/>
</td>
<td colspan="3" style="width: 40%">
<input type="hidden" step="0.01" readonly="readonly" name="observationsNames[]" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input type="number" readonly="readonly" name="observationsValues[]" id="bmi" value="{{ $observations_to_edit[$observation->name] }}" class="col-sm-12 form-control" />
</div>
</div>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@elseif(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}NewsText" class="text-center"></p>
<input type="hidden" id="{{$observation->id}}News" name="{{$observation->id}}News" value="" class="col-sm-12" />
<input type="hidden" name="adult" id="adult" value="adult" class="col-sm-12" />
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->id}}" class="col-sm-12 form-control">
<option value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" selected>{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td colspan="3" style="width: 40%;"></td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ isset($observations_to_edit[$observation->name]) ? $observations_to_edit[$observation->name] : '' }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}Kews" class="text-center"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->id}}NewsText" class="text-center"></p>
<input type="hidden" id="{{$observation->id}}News" name="{{$observation->id}}News" value="" class="col-sm-12" />
<input type="hidden" name="adult" id="adult" value="adult" class="col-sm-12" />
</td>
@endif
</tr>
@endforeach
@php $observation_counter++; @endphp
@else
<tr>
<td colspan="5" class="text-center" style="width: 100%; color: maroon">{{ __('layout.ensure_correct_dob') }}</td>
</tr>
@endif
@@ -0,0 +1,47 @@
<div class="row">
<h4 class="heading pull-right">{{ __('layout.priority_signs') }}</h4>
</div>
<div class="row">
<table class="table table-bordered table-primary table-blue table-striped table-vertical-center table-condensed">
<tbody>
<tr>
<th scope="row"><div align="left">{{ __('layout.significant_trauma') }}</div></th>
<td><input type="checkbox" name="trauma" id="trauma" value="Yes" @if(in_array("Significant trauma", $priority_signs)) checked @endif></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.severe_pain') }}</div></th>
<td>
<input type="checkbox" name="severe_pain" id="severe_pain" value="yes" @if(in_array("Severe pain", $priority_signs)) checked @endif>
</td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.oedema_both_feet') }}</div></th>
<td><input type="checkbox" name="oedema" id="oedema" value="yes" @if(in_array("Oedema of both feet", $priority_signs)) checked @endif></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.urgent_surgical_condition') }}</div></th>
<td><input type="checkbox" name="surgical_condition" id="surgical_condition" value="yes" @if(in_array("Urgent surgical condition", $priority_signs)) checked @endif></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.restless_irritable') }}</div></th>
<td><input type="checkbox" name="continuously_irritable" id="continuously_irritable" value="yes" @if(in_array("Restless continuously irritable, lethargic", $priority_signs)) checked @endif></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.malnutrition_visible_wasting') }}</div></th>
<td><input type="checkbox" name="severe_wasting" id="severe_wasting" value="yes" @if(in_array("Malnutrition: visible severe wasting", $priority_signs)) checked @endif></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.severe_pallor') }}</div></th>
<td><input type="checkbox" name="severe_pallor" id="severe_pallor" value="yes" @if(in_array("Severe pallor", $priority_signs)) checked @endif></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.burns_major') }}</div></th>
<td><input type="checkbox" name="burns" id="burns" value="yes" @if(in_array("Burns (Major)", $priority_signs)) checked @endif></td>
</tr>
</tbody>
</table>
</div>
<div class="alert alert-warning ">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ __('layout.positive_move_child_first') }}.
</div>
@@ -0,0 +1,225 @@
@extends('layouts.main')
@push('scripts')
<style>
.triage-grade li {
display: inline-block;
}
</style>
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
<h4 class="page-title">Admission Triage</h4>
</div>
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">Dashboard</a></li>
<li><a href="{{ route('patient_episodes.index') }}">Patient Home</a></li>
<li class="active">Triage</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
<br>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box" style="padding-top: 5px;">
<h5 class="page-title"><strong>Triage ({{ $age_group_display }}) for Episode started on : <font color="blue">{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</font></strong></h5>
<hr>
{{ Form::open(['route' => 'triage.save_edits_for_post_discharge' , 'data-toggle' => 'validator']) }}
{{ Form::hidden('episode_id', $episode_id)}}
{{ Form::hidden('patient_id', $patient_id)}}
<div class="row">
<div class="col-md-6">
<div class="table-responsive">
<table class="table table-hover table-striped color-table success-table table-bordered" id="observations_table">
<thead>
<tr>
<th>Observation</th>
<th>Value</th>
<th>Normal Range</th>
</tr>
</thead>
<tbody>
@push('scripts')
<script src="{{ asset('js/observations/1_5_years.js') }}"></script>
@endpush
<tr>
<td>Temperature ( °C)</td>
<td><input value="{{ $temperature }}" type="number" step="0.01" required name="temperature" class="col-sm-12 compulsory form-control" style="width: 100%"/></td>
<td><p style="color: #0000FF" class="text-center"><input type="text" readonly value="36.5 - 37.4" class="form-control" style="color: blue;"></p></td>
</tr>
<tr>
<td>SaO2 (%)</td>
<td><input value="{{ $oxy_sat }}" type="number" step="0.01" required name="oxy_sat" class="col-sm-12 compulsory form-control" style="width: 100%"/></td>
<td><p style="color: #0000FF" class="text-center"><input type="text" readonly value=">94" class="form-control" style="color: blue;"></p></td>
</tr>
<tr>
<td>MUAC (cm)</td>
<td><input value="{{ $muac }}" type="number" step="0.01" required name="muac" class="col-sm-12 compulsory form-control" style="width: 100%"/></td>
<td><p style="color: #0000FF" class="text-center"><input type="text" readonly value="12.5 - 50.0" class="form-control" style="color: blue;"></p></td>
</tr>
<tr>
<td>Height (m)</td>
<td><input value="{{ $height }}" type="number" step="0.01" required name="height" id="height" class="col-sm-12 compulsory form-control" style="width: 100%"/></td>
<td></td>
</tr>
<tr>
<td>Weight (kg)</td>
<td><input value="{{ $weight }}" type="number" step="0.01" required id="weight" name="weight" class="col-sm-12 compulsory form-control" style="width: 100%"/></td>
<td>
<input type="hidden" step="0.01" readonly="readonly" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input value="{{ $bmi }}" type="number" readonly="readonly" name="bmi" id="bmi" class="col-sm-12 compulsory form-control" required />
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-6">
@if (between($age_diff_months, 0, 5))
<table class="table table-bordered">
<tr>
<td class="text-center" colspan="2"><h4>Social Health Indicators</h4></td>
</tr>
<tr>
<td>{{ Form::label('child_with_proven_infection', 'Does the child have a proven or suspected infection e.g is the child having fever, cough, diarrhoea?') }}</td>
<td>
{{ Form::radio('child_with_proven_infection', 1, $discharge_mortality->child_with_proven_infection == 1) }} Yes
{{ Form::radio('child_with_proven_infection', 0, $discharge_mortality->child_with_proven_infection === 0) }} No
</td>
</tr>
<tr>
<td>{{ Form::label('hospital_travel_duration', 'How long did it take you to travel to the hospital?') }}</td>
<td>
{{ Form::select('hospital_travel_duration', ['' => '-- select --','1' => '< 30 mins','2' => '30 mins 1 hour','3' => '1 - 4 hours','4' => '> 4 hours'], $discharge_mortality->hospital_travel_duration_below_6, ['class' => 'form-control compulsory', 'required']) }}
</td>
</tr>
<tr>
<td>{{ Form::label('illness_duration', 'What is the duration of the present illness at the time of admission?') }}</td>
<td>
{{ Form::select('illness_duration', ['' => '-- select --','1' => '< 48 hours','2' => '48 hours - 7 days','3' => '7 days - 1 month','4' => 'More than a month'], $discharge_mortality->illness_duration_at_admission_below_6, ['class' => 'form-control compulsory', 'required']) }}
</td>
</tr>
<tr>
<td>{{ Form::label('tone_normal_6mo', 'Muscle Tone') }}</td>
<td>
{{ Form::select('tone_normal_6mo', ['' => '-- select --','1' => 'Increased (Stiff)','2' => 'Normal','3' => 'Decreased (floppy)','4' => 'Do not know'], $discharge_mortality->tone_normal_6mo, ['class' => 'form-control']) }}
</td>
</tr>
</table>
@endif
@if (between($age_diff_months, 6, 60))
<div></div>
<table class="table table-bordered">
<tr>
<td class="text-center" colspan="4"><h4>Social Health Indicators</h4></td>
</tr>
<tr>
<td colspan="2">{{ Form::label('child_with_proven_infection', 'Does the child have a proven or suspected infection e.g is the child having fever, cough, diarrhoea?') }}</td>
<td>{{ Form::radio('child_with_proven_infection', 1, $discharge_mortality->child_with_proven_infection == 1, ['required']) }} Yes</td>
<td>{{ Form::radio('child_with_proven_infection', 0, $discharge_mortality->child_with_proven_infection === 0, ['required']) }} No</td>
</tr>
<tr>
<td>
{{ Form::label('last_hospitalization', 'Time since last hospitalization') }}
</td>
<td>
{{ Form::select('last_hospitalization', ['' => '-- select --','1' => 'Less than 7 days ago','2' => '7 to 30 days ago','3' => '30 days to 1 year ago','4' => 'More than 1 year ago','5' => 'Never'], $discharge_mortality->last_hospitalization, ['class' => 'form-control compulsory', 'required']) }}
</td>
<td>
{{ Form::label('water_source', 'Primary water source for drinking water') }}
</td>
<td>
{{ Form::select('water_source', ['' => '-- select --', '1' => 'Protected spring', '2' => 'Bore hole', '3' => 'Municipal water', '4' => 'Open source (unprotected, stagnant water, dam)', '5' => 'Slow running water', '6' => 'Fast running water'], $discharge_mortality->water_source, ['class' => 'form-control compulsory', 'required']) }}
</td>
</tr>
<tr>
<td>
{{ Form::label('safe_water', 'Do you boil, filter (good sand/ceramic) or disinfect (using bleach/waterguard) all drinking water?') }}
</td>
<td>
{{ Form::radio('safe_water', 1, $discharge_mortality->filter_water == 1, ['required']) }} Yes
{{ Form::radio('safe_water', 0, $discharge_mortality->filter_water === 0, ['required']) }} No
</td>
<td>{{ Form::label('child_mosquito_net', 'Does your child sleep under a mosquito net?') }}</td>
<td>
{{ Form::select('child_mosquito_net', ['' => '-- select --','1' => 'Never','2' => 'Sometimes','3' => 'Always'], $discharge_mortality->child_mosquito_net, ['class' => 'form-control compulsory', 'required']) }}
</td>
</tr>
<tr>
<td>{{ Form::label('mother_education_level', 'What is the education level of the childs mother?') }}</td>
<td>
{{ Form::select('mother_education_level', ['' => '-- select --','1' => 'No school','2' => '<= P3','3' => 'P4-P7','4' => 'S1-S6','5' => 'Post secondary (including post S4 technical school)','6' => 'Do not know'], $discharge_mortality->mother_education_level, ['class' => 'form-control compulsory', 'required']) }}
</td>
<td>{{ Form::label('hospital_travel_duration', 'How long did it take you to travel to the hospital?') }}</td>
<td>
{{ Form::select('hospital_travel_duration', ['' => '-- select --','1' => '< 30 mins','2' => '30 mins 1 hour','3' => '1 - 4 hours','4' => '> 4 hours'], $discharge_mortality->hospital_travel_duration, ['class' => 'form-control compulsory', 'required']) }}
</td>
</tr>
<tr>
<td>{{ Form::label('maternal_hiv', 'Maternal HIV') }}</td>
<td>
{{ Form::select('maternal_hiv', ['' => '-- select --', '2' => 'HIV Positive', '1' => 'HIV Negative', '0' => 'HIV Unknown'], $discharge_mortality->maternal_hiv, ['class' => 'form-control compulsory', 'required']) }}
</td>
<td>{{ Form::label('child_hiv', 'Child HIV') }}</td>
<td>{{ Form::select('child_hiv', ['' => '-- select --','1' => 'HIV Positive','0' => 'HIV Negative / Unknown'], $discharge_mortality->child_hiv, ['class' => 'form-control compulsory', 'required']) }}</td>
</tr>
<tr>
<td>{{ Form::label('bcs_eye_movement', 'Eye movement') }}</td>
<td>{{ Form::select('bcs_eye_movement', ['' => '-- select --','1' => 'Watches or follows','0' => 'Fails to watch or follow'], $discharge_mortality->bcs_eye_movement, ['class' => 'form-control compulsory', 'required']) }}</td>
<td>{{ Form::label('bcs_best_mortal', 'Best motor response') }}</td>
<td>{{ Form::select('bcs_best_mortal', ['' => '-- select --','0' => 'No response or inappropriate response','1' => 'Withdraws limb from pain stimulus','2' => 'Localizes painful stimulus'], $discharge_mortality->bcs_best_mortal, ['class' => 'form-control compulsory', 'required']) }}</td>
</tr>
<tr>
<td>{{ Form::label('bcs_best_verbal', 'Best verbal response') }}</td>
<td>{{ Form::select('bcs_best_verbal', ['' => '-- select --','0' => 'No vocal response to pain','1' => 'Moan or abnormal cry with pain','2' => 'Cries appropriately with pain (or speaks if verbal)'], $discharge_mortality->bcs_best_verbal, ['class' => 'form-control compulsory', 'required']) }}</td>
<td>{{ Form::label('maternal_age', 'Mother\'s age') }}</td>
<td>{{ Form::number('maternal_age', $discharge_mortality->maternal_age, ['class' => 'form-control compulsory', 'required']) }}</td>
</tr>
</table>
@endif
</div>
</div>
<br><br>
{{ Form::button('Submit',['type'=>'submit', 'class'=>'btn btn-success col-sm-6']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script type="text/javascript">
$(document).ready(function () {
//
});
</script>
@endpush
@@ -0,0 +1,154 @@
<div class="row">
<h4>{{ __('layout.triage') }}: {{ __('layout.children') }} </h4>
</div>
<div class="row">
<h5>{{ __('layout.emergency_signs') }} *** </h5>
</div>
<div class="row">
<div class="table-responsive">
<table class="table table-bordered table-striped table-condensed">
<tbody>
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
<th scope="col" width="2%">{{ __('layout.yes') }}</th>
<th scope="col" width="2%">{{ __('layout.no') }}</th>
</tr>
<tr>
<th scope="row">{{ __('layout.airway_breathing') }}</th>
<td>{{ __('layout.cyanosis') }}</td>
<td>
<div class="controls">
<input type="radio" name="cyanosis" value="{{ __('layout.yes') }}" id="cyanosis_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="cyanosis" value="{{ __('layout.no') }}" id="cyanosis_0" required>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.stridor_breathing_choking') }}</td>
<td>
<div class="controls">
<input type="radio" name="stridor" value="{{ __('layout.yes') }}" id="stridor_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="stridor" value="{{ __('layout.no') }}" id="stridor_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.severe_resp_distress') }}</td>
<td>
<div class="controls">
<input type="radio" name="severe_distress" value="{{ __('layout.yes') }}" id="severe_distress_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="severe_distress" value="{{ __('layout.no') }}" id="severe_distress_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">{{ __('layout.circulation') }}</th>
<td>{{ __('layout.capillary_refill_seconds') }}</td>
<td>
<div class="controls">
<input type="radio" name="refill" value="{{ __('layout.yes') }}" id="refill_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="refill" value="{{ __('layout.no') }}" id="refill_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.severe_bleeding') }}</td>
<td>
<div class="controls">
<input type="radio" name="severe_bleeding" value="{{ __('layout.yes') }}" id="severe_bleeding_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="severe_bleeding" value="{{ __('layout.no') }}" id="severe_bleeding_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.weak_fast_pulse') }}</td>
<td>
<div class="controls">
<input type="radio" name="weak_fast_pulse" value="{{ __('layout.yes') }}" id="weak_fast_pulse_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="weak_fast_pulse" value="{{ __('layout.no') }}" id="weak_fast_pulse_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">{{ __('layout.neurological') }}</th>
<td>{{ __('layout.coma') }}</td>
<td>
<div class="controls">
<input type="radio" name="coma" value="{{ __('layout.yes') }}" id="coma_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="coma" value="{{ __('layout.no') }}" id="coma_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>{{ __('layout.convulsing_now') }}</td>
<td>
<div class="controls">
<input type="radio" name="convulsing_now" value="{{ __('layout.yes') }}" id="convulsing_now_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="convulsing_now" value="{{ __('layout.no') }}" id="convulsing_now_1" required>
</div>
</td>
</tr>
<tr>
<th scope="row">{{ __('layout.dehydration_children_diarrhoea') }}</th>
<td>{{ __('layout.diarrhoea_lethargy_sunken_eyes') }}</td>
<td>
<div class="controls">
<input type="radio" name="lethargy" value="{{ __('layout.yes') }}" id="lethargy_0" required>
</div>
</td>
<td>
<div class="controls">
<input type="radio" name="lethargy" value="{{ __('layout.no') }}" id="lethargy_0" required>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="alert alert-warning ">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ __('layout.positive_call_for_help') }}
</div>
@@ -0,0 +1,113 @@
<div class="row">
<h4>{{ __('layout.adult_triage') }} </h4>
</div>
<div class="row">
<h5>{{ __('layout.family_planning_questions') }}</h5>
</div>
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-4">
<input type="checkbox" class="col-sm-1" name="too_sick" id="too_sick" value="1">
<span style="color: maroon; font-weight: bold">{{ __('layout.too_sick') }}</span>
</div>
</div>
<hr>
<table class="too_sick_remove table table-bordered">
@if ($patient->gender == 2)
<tr class="currently_pregnant">
<td>{{ __('layout.currently_pregnant') }}</td>
<td>
<input type="radio" name='pregnant' id='pregnant_yes' class="answer_no" value="1">&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='pregnant' id='pregnant_no' class="answer_no" value="0">&nbsp;{{ __('layout.no') }}
</td>
</tr>
<tr class="menopause" style="display: none">
<td>{{ __('layout.had_menopause') }}</td>
<td>
<input type="radio" name='menopause' id='menopause_yes' class="answer_no" value="1">&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='menopause' id='menopause_no' class="answer_no" value="0">&nbsp;{{ __('layout.no') }}
</td>
</tr>
@endif
<tr class="sexually_active">
<td>{{ __('layout.sexually_active') }}</td>
<td>
<input type="radio" name='sexually_active' id='sexually_active_yes' class="answer_yes compulsory" value="1">&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='sexually_active' id='sexually_active_no' class="answer_yes compulsory" value="0">&nbsp;{{ __('layout.no') }}
</td>
</tr>
<tr class="expect_child" style="display: none">
<td>{{ __('layout.wish_to_have_child') }}</td>
<td>
<input type="radio" name='yes_no_children' id='yes_children' class="answer_no" value="1">&nbsp;{{ __('layout.yes') }} &nbsp;&nbsp;&nbsp;
<input type="radio" name='yes_no_children' id='no_children' class="answer_no" value="0">&nbsp;{{ __('layout.no') }}
</td>
</tr>
<tr class="fp_method" style="display: none">
<td>{{ Form::label('fp_method', __('layout.family_planning_method')) }}</td>
<td>{{ Form::select('fp_method', $family_planning_methods, '', ['class' => 'form-control col-sm-8']) }}</td>
</tr>
<tr class="fp_action" style="display: none">
<td>{{ __('layout.action') }}</td>
<td>
<select name='fp_action' class="form-control col-sm-8">
<option value="">--{{ __('layout.select') }}--</option>
<option value="{{ __('layout.none') }}">{{ __('layout.none') }}</option>
<option value="{{ __('layout.counseling') }}">{{ __('layout.counseling') }}</option>
<option value="{{ __('layout.referral_to_fp') }}">{{ __('layout.referral_to_fp') }}</option>
</select>
</td>
</tr>
</table>
@push('scripts')
<script>
$("#too_sick").change(function () {
if ($(this).is(':checked')) {
$(".too_sick_remove").hide();
} else {
$(".too_sick_remove").show();
}
});
$("#menopause_yes").change(function () {
$(".sexually_active").hide();
})
$("#menopause_no").change(function () {
$(".sexually_active").show();
})
$("#sexually_active_no").change(function () {
$(".expect_child").hide();
})
$("#sexually_active_yes").change(function () {
$(".expect_child").show();
})
$("#yes_children").change(function () {
$(".fp_method").hide();
$(".fp_action").hide();
})
$("#no_children").change(function () {
$(".fp_method").show();
$(".fp_action").show();
})
$("#pregnant_yes").change(function () {
$(".menopause").hide();
$(".sexually_active").hide();
})
$("#pregnant_no").change(function () {
$(".menopause").show();
$(".sexually_active").show();
})
</script>
@endpush
@@ -0,0 +1,338 @@
<div>
<input type="hidden" name="is_hiv_and_gbv_screening_tool_enabled"
value="{{ is_hiv_and_gbv_screening_tool_enabled() }}">
</div>
@if (between($age_diff_months, 18, 168))
{{-- HIV Screening Tool (18 months to 14 years), show_hiv_positive_questions nolonger needed --}}
@endif
@if ($years >= 15)
{{-- HIV Screening Tool (=>15 years) --}}
<div class="wrapper">
<div>
<div class="pb-3">
<h5 class="font-weight-bold">HIV Screening Tool for adults (=>15 years)</h5>
</div>
<div>
<p>Does the client belong to ANY of these categories?</p>
</div>
<div class="table-responsive">
<table class="table table-striped table-sm w-100 mb-4">
<tbody>
<tr>
<td>Have you tested for HIV in the last 12 months?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="tested_for_hiv_in_past_12_months" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="tested_for_hiv_in_past_12_months" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you had TB or presumptive TB (2 weeks' history of cough, night sweats, weight loss,
fever)?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="had_tb_or_presumptive_tb" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="had_tb_or_presumptive_tb" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Do you have symptoms of Sexually Transmitted Infection (blisters, sores, unusual
urethral or vaginal discharge)?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="sti_symptoms_present" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="sti_symptoms_present" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you been diagnosed with Hepatitis B or C?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="diagnosed_with_hepatitis_b_or_c" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="diagnosed_with_hepatitis_b_or_c" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you experienced or caused Sexual violence (SGBV)?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="experienced_or_caused_sexual_violence" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="experienced_or_caused_sexual_violence" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Do you have a reactive HIV self-test result?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="reactive_hiv_self_test_result" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="reactive_hiv_self_test_result" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you been identified through an Index client?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="identified_through_index_client" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="identified_through_index_client" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you been exposed to blood or body fluids from a Known HIV positive or unknown HIV
status source?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="exposed_to_hiv_positive_or_unknown_source"
value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="exposed_to_hiv_positive_or_unknown_source"
value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you had signs and symptoms of HIV disease and not had an HIV test in the last 1
month.</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="hiv_symptoms_without_recent_test" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="hiv_symptoms_without_recent_test" value="0" />
No
</label>
</td>
</tr>
</tbody>
</table>
<hr class="invisibe my-5 text-white border-none" style="border: none;">
<div class="row m-t-10 w-100 mt-4">
<div class="col-md-4 mx-2">
<p>Have you tested for HIV in the last 3 months?</p>
</div>
<div class="col-md-4">
<label for="one" class="pl-5">
{{ Form::radio('tested_for_hiv_last_3_months', 1, false, ['onclick' => 'show_tested_for_hiv_last_3_months_questions()']) }}
Yes
</label>
<label for="one" class="pl-5">
{{ Form::radio('tested_for_hiv_last_3_months', 0, false, ['onclick' => 'hide_tested_for_hiv_last_3_months_questions()']) }}
No
</label>
</div>
</div>
<table class="table table-striped table-sm w-100" id="tested_for_hiv_last_3_months_section">
<tbody>
<tr>
<td>Have you tested for HIV in the last 12 months?</td>
<td class="text-right">
<label for="one11" class="pl-5">
Yes
<input type="radio" id="one11" name="tested_for_hiv_last_12_months"
value="1" />
</label>
<label for="one22" class="pl-5">
No
<input type="radio" id="one22" name="tested_for_hiv_last_12_months"
value="0" />
</label>
</td>
</tr>
<tr>
<td>Have you had unprotected sex with partner(s) of unknown HIV status?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="unprotected_sex_with_partner_of_unknown_hiv_status"
value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="unprotected_sex_with_partner_of_unknown_hiv_status"
value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you had unprotected sex with an HIV positive partner? (includes discordance)</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="unprotected_sex_with_hiv_positive_partner"
value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="unprotected_sex_with_hiv_positive_partner"
value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Have you shared injecting needles or piercing objects with anyone else?</td>
<td class="text-right">
<label for="one" class="pl-5">
<input type="radio" name="shared_needles_or_piercing_objects" value="1" />
Yes
</label>
<label for="one" class="pl-5">
<input type="radio" name="shared_needles_or_piercing_objects" value="0" />
No
</label>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
@elseif ($years >= 1.5 && $years < 15)
<div class="wrapper">
<div class="pb-3">
<h5 class="font-weight-bold">HIV Screening Tool (18 months to 14 years)</h5>
<div class="row m-0">
<div class="col-md p-0 mb-2">Is the child's mother HIV positive?</div>
<div class="col-md p-0 mb-2">
<label for="1_childs_mother_hiv_positive" class="pr-5">
<input type="radio" name="mother_hiv_positive" id="1_childs_mother_hiv_positive"
value="1" />
Yes
</label>
<label for="2_childs_mother_hiv_positive" class="pr-5">
<input type="radio" name="mother_hiv_positive" id="2_childs_mother_hiv_positive"
value="0" />
No / Unknown
</label>
</div>
<div class="col-md p-0 mb-2"></div>
</div>
<div class="row m-0 mt-3 pt-3 d-none child-hiv-status">
<div class="col-md p-0 mb-2"> Ask the following questions to the caregiver or child </div>
</div>
<div class="table-responsive d-none child-hiv-status-questions">
<table class="table table-striped table-sm w-100">
<tbody>
<tr>
<td>Has the child / Have you been sick in the last 3 months?</td>
<td class="text-right">
<label for="1_person_sick_last_3_months" class="pl-5">
<input type="radio" name="has_been_sick_last_3_months"
id="1_person_sick_last_3_months" value="1" />
Yes
</label>
<label for="2_person_sick_last_3_months" class="pl-5">
<input type="radio" name="has_been_sick_last_3_months"
id="2_person_sick_last_3_months" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Has the child / Have you had a recurring skin problem?</td>
<td class="text-right">
<label for="1_person_had_recurring_skin_problem" class="pl-5">
<input type="radio" name="has_recurring_skin_problem"
id="1_person_had_recurring_skin_problem" value="1" />
Yes
</label>
<label for="2_person_had_recurring_skin_problem" class="pl-5">
<input type="radio" name="has_recurring_skin_problem"
id="2_person_had_recurring_skin_problem" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Has the child / Have you loast weight in the last 3 months?</td>
<td class="text-right">
<label for="1_person_lost_weight_in_last_3_months" class="pl-5">
<input type="radio" name="has_lost_weight_last_3_months"
id="1_person_lost_weight_in_last_3_months" value="1" />
Yes
</label>
<label for="2_person_lost_weight_in_last_3_months" class="pl-5">
<input type="radio" name="has_lost_weight_last_3_months"
id="2_person_lost_weight_in_last_3_months" value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Has the child / Have you ever had TB?</td>
<td class="text-right">
<label for="1_person_ever_had_tb" class="pl-5">
<input type="radio" name="has_had_tb" id="1_person_ever_had_tb"
value="1" />
Yes
</label>
<label for="2_person_ever_had_tb" class="pl-5">
<input type="radio" name="has_had_tb" id="2_person_ever_had_tb"
value="0" />
No
</label>
</td>
</tr>
<tr>
<td>Is the child / Are you growing well ?</td>
<td class="text-right">
<label for="1_person_growing_well" class="pl-5">
<input type="radio" name="is_growing_well" id="1_person_growing_well"
value="1" />
Yes
</label>
<label for="2_person_growing_well" class="pl-5">
<input type="radio" name="is_growing_well" id="2_person_growing_well"
value="0" />
No
</label>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
@endif
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,555 @@
@if ($age_group == 1)
@push('scripts')
<script src="{{ asset('js/observations/0_28_days.js') }}"></script>
@endpush
@php $observation_counter = 0; @endphp
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->id}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@if(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ old('observationsValues.$observation_counter') }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ old('observationsValues.$observation_counter') }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->slug}}" class="col-sm-12 form-control">
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@php $observation_counter++; @endphp
@endforeach
@elseif ($age_group == 2)
@push('scripts')
<script src="{{ asset('js/observations/1_12_months.js') }}"></script>
@endpush
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->id}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@if(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->slug}}" class="col-sm-12 form-control">
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" class="form-control" value="{{ $observation->option_for_normal }}" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@endforeach
@elseif ($age_group == 3)
@push('scripts')
<script src="{{ asset('js/observations/1_5_years.js') }}"></script>
@endpush
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->id}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@if($observation->slug=='weight')
<td style="width: 20%;" class="center">
<input type="number" step="0.01" name="observationsValues[]" id="weight" required class="col-sm-12 compulsory form-control" style="width: 100%"
/>
</td>
<td colspan="3" style="width: 40%">
<input type="hidden" step="0.01" readonly="readonly" name="observationsNames[]" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input type="number" readonly="readonly" name="observationsValues[]" id="bmi" class="col-sm-12 form-control" />
</div>
</div>
</td>
@elseif(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->slug}}" class="col-sm-12 form-control">
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@endforeach
@elseif ($age_group == 4)
@push('scripts')
<script src="{{ asset('js/observations/6_12_years.js') }}"></script>
@endpush
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->id}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check to make appropriate row for BMI if the observation name is weight -->
@if($observation->slug=='weight')
<td style="width: 20%;" class="center">
<input type="number" step="0.01" name="observationsValues[]" id="weight" required class="col-sm-12 compulsory form-control" style="width: 100%"
/>
</td>
<td colspan="3" style="width: 40%">
<input type="hidden" step="0.01" readonly="readonly" name="observationsNames[]" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input type="number" readonly="readonly" name="observationsValues[]" id="bmi" class="col-sm-12 form-control" />
</div>
</div>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@elseif(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->slug}}" class="col-sm-12 form-control">
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal}}" class="form-control" style="color: blue"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
@endif
</tr>
@endforeach
@elseif ($age_group == 5)
@push('scripts')
<script src="{{ asset('js/observations/over_12_years.js') }}"></script>
<script src="{{ asset('js/observations/over_12_years_news.js') }}"></script>
@endpush
@php $observation_counter = 0; @endphp
@foreach ($observations as $observation)
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->id}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check to make appropriate row for BMI if the observation name is weight -->
@if($observation->slug=='weight')
<td style="width: 20%;" class="center">
<input type="number" step="0.01" name="observationsValues[]" id="weight" required class="col-sm-12 compulsory form-control" style="width: 100%"
/>
</td>
<td colspan="3" style="width: 40%">
<input type="hidden" step="0.01" readonly="readonly" name="observationsNames[]" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input type="number" readonly="readonly" name="observationsValues[]" id="bmi" class="col-sm-12 form-control" />
</div>
</div>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@elseif(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ old('observationsValues.{$observation_counter}') }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ old('observationsValues.{$observation_counter}') }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}NewsText" class="text-center"></p>
<input type="hidden" id="{{$observation->slug}}News" name="{{$observation->slug}}News" value="" class="col-sm-12" />
<input type="hidden" name="adult" id="adult" value="adult" class="col-sm-12" />
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->slug}}" class="col-sm-12 form-control">
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td colspan="3" style="width: 40%;"></td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}NewsText" class="text-center"></p>
<input type="hidden" id="{{$observation->slug}}News" name="{{$observation->slug}}News" value="" class="col-sm-12" />
<input type="hidden" name="adult" id="adult" value="adult" class="col-sm-12" />
</td>
@endif
</tr>
@endforeach
@php $observation_counter++; @endphp
@else
{{-- <tr>
<td colspan="5" class="text-center" style="width: 100%; color: maroon">{{ __('layout.ensure_correct_dob') }}</td>
</tr> --}}
{{-- This section should ideally handle dynamically added age groups --}}
@push('scripts')
<script src="{{ asset('js/observations/over_12_years.js') }}"></script>
<script src="{{ asset('js/observations/over_12_years_news.js') }}"></script>
@endpush
@php $observation_counter = 0; @endphp
@if (count($observations) > 0)
@foreach ($observations as $observation)
@php
$observations_age_groups_array = is_null($observation->age_group) ? [] : explode(",", $observation->age_group);
@endphp
@if (in_array($age_group, $observations_age_groups_array))
<tr>
<td style="width: 25%;">
<input type="hidden" name="observationsNames[]" id="{{$observation->id}}" value="{{$observation->name}}"/>
<h5 class="text-center">{{ $observation->name }} {{ $observation->measurement ? "(".$observation->measurement.")" : "" }} </h5>
</td>
<!-- check to make appropriate row for BMI if the observation name is weight -->
@if($observation->slug=='weight')
<td style="width: 20%;" class="center">
<input type="number" step="0.01" name="observationsValues[]" id="weight" required class="col-sm-12 compulsory form-control" style="width: 100%"
/>
</td>
<td colspan="3" style="width: 40%">
<input type="hidden" step="0.01" readonly="readonly" name="observationsNames[]" value="BMI" class="col-sm-12"/>
<div class="row">
<div class="col-sm-2" style="margin-top: 5px;">BMI</div>
<div class="col-sm-10">
<input type="number" readonly="readonly" name="observationsValues[]" id="bmi" class="col-sm-12 form-control" />
</div>
</div>
</td>
<!-- check whether to bring a selectable drop down or text box -->
@elseif(!is_null($observation->lower_limit) && !is_null($observation->upper_limit))
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and display the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="{{ old('observationsValues.{$observation_counter}') }}" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="{{ old('observationsValues.{$observation_counter}') }}" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->lower_limit}} - {{ $observation->upper_limit}}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}NewsText" class="text-center"></p>
<input type="hidden" id="{{$observation->slug}}News" name="{{$observation->slug}}News" value="" class="col-sm-12" />
<input type="hidden" name="adult" id="adult" value="adult" class="col-sm-12" />
</td>
@elseif(!is_null($observation->options) && $observation->options!="")
<td style="width: 20%;" class="center">
<!-- check if the observation is compulsory or not and display appropriate compulsory class -->
@if($observation->compulsory == 1)
<select name="observationsValues[]" id="{{$observation->slug}}" class="col-sm-12 compulsory form-control" required>
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@else
<select name="observationsValues[]" id="{{ $observation->slug}}" class="col-sm-12 form-control">
<option value="">--select--</option>
@php
$options = explode(',',$observation->options);
for ($i=0; $i < count($options) ; $i++) {
echo '<option value="'.$options[$i].'">'.$options[$i].'</option>';
}
@endphp
</select>
@endif
</td>
<td colspan="3" style="width: 40%;"></td>
@else
<td style="width: 20%;" class="center">
<!-- check if the observation name is compulsory and dispay the appropriate compulsory class -->
@if($observation->compulsory == 1)
<input type="number" step="0.01" required name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 compulsory form-control" style="width: 100%"/>
@else
<input type="number" step="0.01" name="observationsValues[]" id="{{$observation->slug}}" value="" class="col-sm-12 form-control" style="width: 100%"/>
@endif
</td>
<td style="width: 20%;">
<p style="color: #0000FF" class="text-center"><input type="text" readonly="true" value="{{ $observation->option_for_normal }}" class="form-control" style="color: blue;"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}Kews" class="text-center"></p>
</td>
<td style="width: 10%;">
<p id="{{$observation->slug}}NewsText" class="text-center"></p>
<input type="hidden" id="{{$observation->slug}}News" name="{{$observation->slug}}News" value="" class="col-sm-12" />
<input type="hidden" name="adult" id="adult" value="adult" class="col-sm-12" />
</td>
@endif
</tr>
@php $observation_counter++; @endphp
@endif
@endforeach
@endif
@endif
<tr id="nutritional_status_div" style="display: none">
<td class="text-center"><h5>Nutritional Status</h5></td>
<td class="text-center"><h5 style="color: darkorange" id="nutritional_status_text">MAM</h5></td>
<td class="text-center" colspan="2"><h5 style="color: darkorange" id="nutritional_status_reason">BMI 11.83 < 12.7 (BMIz -2SD)</h5></td>
</tr>
@@ -0,0 +1,47 @@
<div class="row">
<h4 class="heading pull-right">{{ __('layout.priority_signs') }}</h4>
</div>
<div class="row">
<table class="table table-bordered table-primary table-blue table-striped table-vertical-center table-condensed">
<tbody>
<tr>
<th scope="row"><div align="left">{{ __('layout.significant_trauma') }}</div></th>
<td><input type="checkbox" name="trauma" id="trauma" value="Yes"></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.severe_pain') }}</div></th>
<td>
<input type="checkbox" name="severe_pain" id="severe_pain" value="yes">
</td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.oedema_both_feet') }}</div></th>
<td><input type="checkbox" name="oedema" id="oedema" value="yes"></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.urgent_surgical_condition') }}</div></th>
<td><input type="checkbox" name="surgical_condition" id="surgical_condition" value="yes"></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.restless_irritable') }}</div></th>
<td><input type="checkbox" name="continuously_irritable" id="continuously_irritable" value="yes"></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.malnutrition_visible_wasting') }}</div></th>
<td><input type="checkbox" name="severe_wasting" id="severe_wasting" value="yes"></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.severe_pallor') }}</div></th>
<td><input type="checkbox" name="severe_pallor" id="severe_pallor" value="yes"></td>
</tr>
<tr>
<th scope="row"><div align="left">{{ __('layout.burns_major') }}</div></th>
<td><input type="checkbox" name="burns" id="burns" value="yes"></td>
</tr>
</tbody>
</table>
</div>
<div class="alert alert-warning ">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ __('layout.positive_move_child_first') }}.
</div>
@@ -0,0 +1,462 @@
@extends('layouts.main')
@section('content')
<div class="row bg-title">
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
<h4 class="page-title">{{ __('triage.triage_started') }}
: {{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</h4>
</div>
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('triage.dashboard') }}</a></li>
<li><a href="{{ route('patient_episodes.index') }}">{{ __('triage.patient_home') }}</a></li>
<li class="active">{{ __('triage.triage') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<h4>{{ __('triage.patient_details') }}</h4>
<hr>
<div class="row">
<div class="col-md-4">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th>{{ __('triage.patient_number') }}</th>
<td>{{ $patient->number }}</td>
</tr>
<tr>
<th>{{ __('triage.triage_grade') }}</th>
<td><?php echo severe_grade($triage->severe_grade) ?></td>
</tr>
<tr>
<th>{{ __('triage.clinic_allocation') }}</th>
<td>{{ isset($clinics[$triage->clinic_allocation]) ? $clinics[$triage->clinic_allocation] : '' }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th>{{ __('triage.referral') }}</th>
<td>{{ isset($referral_hospitals[$triage->referral]) ? $referral_hospitals[$triage->referral] : '' }}</td>
</tr>
<tr>
<th>{{ __('triage.triage_done_by') }}</th>
<td>@php echo get_full_name($triage->created_by, "id", "first_name", "last_name", "users"); @endphp</td>
</tr>
<tr>
<th>{{ __('triage.triage_done_on') }}</th>
<td>{{ $triage->created_at->format('jS M y \a\t g:ia') }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th>{{ __('triage.patient_attendance') }}</th>
<td>
@if($triage->new_attendance==1)
{{ __('triage.new_attendance') }}
@elseif($triage->re_attendance==1)
{{ __('triage.re_attendance') }}
@else
{{ __('triage.unknown') }}
@endif
</td>
</tr>
<tr>
<th>{{ __('triage.comment') }}</th>
<td>{{ $triage->comments }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<h4>{{ __('triage.observations') }}</h4>
<hr>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>{{ __('triage.observation') }}</th>
<th>{{ __('triage.value') }}</th>
</tr>
</thead>
<tbody>
@php $observation_explode = explode(",", $triage->observations); @endphp
@for ($x = 0; $x < count($observation_explode); $x++)
<tr>
@php $values_explode = explode("=", $observation_explode[$x]); @endphp
<td>{{ $x+1 }}</td>
@foreach ($values_explode as $value)
<td>{{ $value }}</td>
@endforeach
</tr>
@endfor
</tbody>
</table>
</div>
<div class="col-sm-4">
@if(!are_symptoms_on_consultation())
<h4>{{ __('triage.symptoms') }}</h4>
<hr>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{{ __('triage.symptoms') }}</th>
<th>{{ __('triage.duration') }}</th>
</tr>
</thead>
<tbody>
<tr>
@php
$symptoms_explode = explode(",", $triage->symptoms);
$duration_explode = explode(",", $triage->symptom_duration);
@endphp
@for ($i = 0; $i < count($symptoms_explode); $i++)
<tr>
<td>{{ $symptoms[$symptoms_explode[$i]] ?? '' }}</td>
<td>{{ $duration_explode[$i] ?? '' }}</td>
</tr>
@endfor
</tr>
</tbody>
</table>
@endif
@if ($discharge_mortality && between($age_diff_months, 0, 6) && is_smart_discharge_enabled())
<hr>
<table class="table table-bordered table-striped">
<tr>
<td class="text-center" colspan="2"><h4>Post Discharge Mortality Risk</h4></td>
</tr>
<tr>
<td>{{ Form::label('hospital_travel_duration', 'How long did it take you to travel to the hospital?') }}</td>
<td>
@php $arr = ['1' => '< 30 mins','2' => '30 mins 1 hour','3' => '1 - 4 hours','4' => '> 4 hours']; @endphp
{{ $discharge_mortality->hospital_travel_duration_below_6 ? $arr[$discharge_mortality->hospital_travel_duration_below_6] : "Not Recorded" }}
</td>
</tr>
<tr>
<td>{{ Form::label('illness_duration', 'What is the duration of the present illness at the time of admission?') }}</td>
<td>
@php $arr = ['1' => '< 48 hours','2' => '48 hours - 7 days','3' => '7 days - 1 month','4' => 'More than a month']; @endphp
{{ $discharge_mortality->illness_duration_at_admission_below_6 ? $arr[$discharge_mortality->illness_duration_at_admission_below_6] : "Not Recorded" }}
</td>
</tr>
</table>
@endif
@if ($discharge_mortality && $discharge_mortality->child_with_proven_infection == 1 && between($age_diff_months, 7, 60) && is_smart_discharge_enabled())
<hr>
<table class="table table-bordered table-striped">
<tr>
<td class="text-center" colspan="2"><h4>Post Discharge Mortality Risk</h4></td>
</tr>
<tr>
<td>
{{ Form::label('last_hospitalization', 'Time since last hospitalization') }}
</td>
<td>
@php $arr = ['1' => 'Less than 7 days ago','2' => '7 to 30 days ago','3' => '30 days to 1 year ago','4' => 'More than 1 year ago','5' => 'Never']; @endphp
{{ $discharge_mortality->last_hospitalization ? $arr[$discharge_mortality->last_hospitalization] : "Not Recorded" }}
</td>
</tr>
<tr>
<td>
{{ Form::label('safe_water', 'Do you boil, filter (good sand/ceramic) or disinfect (using bleach/waterguard) all drinking water?') }}
</td>
<td>
@if($discharge_mortality->filter_water == 1)
Yes
@else
No
@endif
</td>
</tr>
<tr>
<td>{{ Form::label('child_mosquito_net', 'Does your child sleep under a mosquito net?') }}</td>
<td>
@php $arr = ['1' => 'Never','2' => 'Sometimes','3' => 'Always']; @endphp
{{ $discharge_mortality->child_mosquito_net ? $arr[$discharge_mortality->child_mosquito_net] : "Not Recorded" }}
</td>
</tr>
<tr>
<td>{{ Form::label('hospital_travel_duration', 'How long did it take you to travel to the hospital?') }}</td>
<td>
@php $arr = ['1' => '< 30 mins','2' => '30 mins 1 hour','3' => '1 - 4 hours','4' => '> 4 hours']; @endphp
{{ $discharge_mortality->hospital_travel_duration ? $arr[$discharge_mortality->hospital_travel_duration] : "Not Recorded" }}
</td>
</tr>
<tr>
<td>{{ Form::label('mother_education_level', 'What is the education level of the childs mother?') }}</td>
<td>
@php $arr = ['1' => 'No school','2' => '<= P3','3' => 'P4-P7','4' => 'S1-S6','5' => 'Post secondary (including post S4 technical school)','6' => 'Do not know']; @endphp
{{ $discharge_mortality->mother_education_level ? $arr[$discharge_mortality->mother_education_level] : "Not Recorded" }}
</td>
</tr>
<tr>
<td>Eye movement</td>
<td>{{ ['1' => 'Watches or follows','0' => 'Fails to watch or follow'][$discharge_mortality->bcs_eye_movement] ?? '' }}</td>
</tr>
<tr>
<td>Best motor response</td>
<td>{{ ['0' => 'No response or inappropriate response','1' => 'Withdraws limb from pain stimulus','2' => 'Localizes painful stimulus'][$discharge_mortality->bcs_best_mortal] ?? '' }}</td>
</tr>
<tr>
<td>Best verbal response</td>
<td>{{ ['0' => 'No vocal response to pain','1' => 'Moan or abnormal cry with pain','2' => 'Cries appropriately with pain (or speaks if verbal)'][$discharge_mortality->bcs_best_verbal] ?? '' }}</td>
</tr>
<tr>
<td>Mother's age</td>
<td>{{ $discharge_mortality->maternal_age }}</td>
</tr>
</table>
@endif
@if ($triage->any_tb_sysmptoms == 1)
<table class="tb_questions_table table table-striped table-bordered">
<tr>
<td class="text-center" colspan="2"><h4>TB SCREENING</h4></td>
</tr>
<tr class="cough_tb_question">
<td>A cough for more than two weeks ?</td>
<td>{{ $triage->cough_for_2_weeks == 1 ? "Yes" : "No" }}</td>
</tr>
<tr class="fever_tb_question">
<td>Persistent fevers for 2 weeks or more ?</td>
<td>{{ $triage->fever_for_2_weeks == 1 ? "Yes" : "No" }}</td>
</tr>
<tr class="weight_loss_tb_question">
<td>Noticable weight loss of more than 3 Kg?</td>
<td>{{ $triage->tb_weight_loss == 1 ? "Yes" : "No" }}</td>
</tr>
<tr class="weight_loss_tb_question">
<td>Poor weight gain in the last one month ?</td>
<td>{{ $triage->tb_poor_weight_gain == 1 ? "Yes" : "No" }}</td>
</tr>
<tr class="excessive_night_sweats_tb_question">
<td>Excessive night sweats for three weeks or more ?</td>
<td>{{ $triage->tb_excessive_night_sweats == 1 ? "Yes" : "No" }}</td>
</tr>
<tr class="excessive_night_sweats_tb_question">
<td>Contact with a person with pulmonary TB or chronic cough ?</td>
<td>{{ $triage->tb_contact_with_tb_person == 1 ? "Yes" : "No" }}</td>
</tr>
</table>
@endif
@if(is_smart_triage_enabled() && $nutrition)
<table class="table table-striped table-bordered">
<tr>
<td class="text-center" colspan="2"><h4>Nutritional Status</h4></td>
</tr>
<tr class="cough_tb_question">
<td>{{ $nutrition->text }}</td>
<td>{{ $nutrition->reason }}</td>
</tr>
</table>
@endif
</div>
<div class="col-sm-4">
@if(!$triage_without_etat)
@if (between($years, 16, 50) && $triage->fp_too_sick == 0)
<h4>{{ __('triage.family_planning') }}</h4>
<table class="table table-striped table-bordered">
<tr>
<td>1</td>
<td>{{ __('triage.too_sick') }}</td>
@if(is_null($triage->fp_too_sick))
<td> N/A</td>
@else
<td>{{ ($triage->fp_too_sick == 1) ? __('triage.yes') : __('triage.no') }}</td>
@endif
</tr>
<tr>
<td>2</td>
<td>{{ __('triage.sexually_active') }}</td>
@if(is_null($triage->sexually_active))
<td> N/A</td>
@else
<td>{{ ($triage->sexually_active == 1) ? __('triage.yes') : __('triage.no') }}</td>
@endif
</tr>
<tr>
<td>3</td>
<td>{{ __('triage.pregnant') }}</td>
@if(is_null($triage->pregnant))
<td> N/A</td>
@else
<td>{{ ($triage->pregnant == 1) ? __('triage.yes') : __('triage.no') }}</td>
@endif
</tr>
<tr>
<td>4</td>
<td>{{ __('triage.menopause') }}</td>
@if(is_null($triage->menopause))
<td> N/A</td>
@else
<td>{{ ($triage->menopause == 1) ? __('triage.yes') : __('triage.no') }}</td>
@endif
</tr>
<tr>
<td>5</td>
<td>{{ __('triage.family_planning_method') }}</td>
<td>{{ isset($triage->fp_method) ? $family_planning_methods[$triage->fp_method] : "N/A" }}</td>
</tr>
<tr>
<td>6</td>
<td>{{ __('triage.action') }}</td>
<td>{{ isset($triage->fp_action) ? $triage->fp_action : "N/A" }}</td>
</tr>
</table>
@endif
@if (between($years, 0, 12))
<h4>{{ __('triage.emergency_signs') }}</h4>
<hr>
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th colspan="2" class="text-center">{{ __('triage.airway') }}</th>
</tr>
@foreach($airway as $key => $value)
<tr>
<th>{{ $key }}</th>
<td>{{ ucfirst($value) }}</td>
</tr>
@endforeach
<tr>
<th colspan="2" class="text-center">{{ __('triage.circulation') }}</th>
</tr>
@foreach($circulation as $key => $value)
<tr>
<th>{{ $key }}</th>
<td>{{ ucfirst($value) }}</td>
</tr>
@endforeach
<tr>
<th colspan="2" class="text-center">{{ __('triage.neurological') }}</th>
</tr>
@foreach($neurological as $key => $value)
<tr>
<th>{{ $key }}</th>
<td>{{ ucfirst($value) }}</td>
</tr>
@endforeach
<tr>
<th colspan="2" class="text-center">{{ __('triage.dehydration') }}</th>
</tr>
@foreach($dehydration as $key => $value)
<tr>
<th>{{ $key }}</th>
<td>{{ ucfirst($value) }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (between($years, 0, 12) && count($priority_signs) > 0)
<h4>{{ __('layout.priority_signs') }}</h4>
<hr>
<table class="table table-striped table-bordered">
<tbody>
@foreach($priority_signs as $priority_sign)
<tr>
<td>{{ $priority_sign }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@else
<h4>Notes</h4>
<hr>
<div class="table-responsive">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th>{{ __('triage.choose_blood_group') }}</th>
<td>{{ $triage->blood_group }}</td>
</tr>
<tr>
<th>{{ __('triage.rhesus_factor') }}</th>
<td>
@if($triage->rhesus_factor == 1)
{{ __('triage.positive') }}
@elseif($triage->rhesus_factor == 2)
{{ __('triage.negative') }}
@else
{{ __('triage.unknown') }}
@endif
</td>
</tr>
<tr>
<th>{{ __('triage.observation_notes') }}</th>
<td>{{ ($triage->observation_notes) ?? "No notes available" }}</td>
</tr>
<tr>
<th>{{ __('triage.nursing_notes') }}</th>
<td>{{ ($triage->nursing_notes) ?? "No notes available" }}</td>
</tr>
</tbody>
</table>
</div>
@endif
</div>
</div>
<hr>
<div>
@php $clinic_slug = get_name($triage->clinic_allocation, "id", "slug", "clinics"); @endphp
@if($clinic_slug == "diabetes")
{{ Form::open(['route' => 'diabetes_clinic.clinic_registration']) }}
{{ Form::button(__('triage.go_to_diabetes'),['type'=>'submit','class'=>'btn btn-success btn-block']) }}
{{ Form::close() }}
@endif
</div>
@if(Auth::user()->can('edit-patient-triage'))
<a href="/triage/{{ $triage->id }}/edit/" class="btn btn-success"> Modify Triage </a>
@endif
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
@endpush
@@ -0,0 +1,156 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
<h4 class="page-title">Smart Triage Report</h4>
</div>
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('triage.dashboard') }}</a></li>
<li class="active">{{ __('triage.triage') }}</li>
</ol>
</div>
</div>
<div class="white-box">
{{ Form::open(['route' => 'triage.smart_triage_report', 'method' => 'ANY']) }}
<div class="row">
<div class="col-md-3">
{{ Form::label('start_date',__('stores.start')) }}
<div class="input-group">
{{ Form::text('start_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'start_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="col-md-3">
{{ Form::label('end_date',__('stores.end')) }}
<div class="input-group">
{{ Form::text('end_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'end_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
</div>
<div class="col-md-3">
<div class="form-group" style="padding-top: 5px;"><br>
{{ Form::button(__('patient_flow_monitoring.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
</div>
</div>
</div>
{{ Form::close() }}
</div>
<div class="white-box">
<h4><p class="label label-info">From {{ streamline_date($start_date) }} to {{ streamline_date($end_date) }}</p></h4>
<hr>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-striped table-hover">
<thead>
<tr>
<th>Patient Info</th>
<th>Age</th>
<th>Pulse</th>
<th>Temperature</th>
<th>MUAC</th>
<th>Parent Concern</th>
<th>Respiratory Distress</th>
<th>Oedema</th>
<th>Pallor</th>
<th>Risk Score</th>
<th>Recommended Triage Grade</th>
<th>Actual Triage Grade</th>
<th>Date Recorded</th>
<th>Select</th>
</tr>
</thead>
<tbody>
@foreach($records as $record)
<tr>
<td>{{ $record->first_name . ' ' . $record->last_name }} ({{ $record->patients_number }})</td>
<td>{{ get_patients_age($record->date_of_birth) }}</td>
<td>{{ $record->pulse_rate }}</td>
<td>{{ $record->temperature }}</td>
<td>{{ $record->muac }}</td>
<td>
@if($record->parent_concern == 0)
Child Should Not Be Admitted
@else
Child Should Be Admitted
@endif
</td>
<td>
@if($record->respiratory_distress == 1)
Severe
@endif
</td>
<td>
@if($record->oedema == 1)
Oedema of both feet
@endif
</td>
<td>
@if($record->pallor == 1)
Severe pallor
@endif
</td>
<td>{{ round($record->risk_score * 100) }} %</td>
<td>
@if($record->auto_triage_grade == 2)
<b style="color: red">Emergency</b>
@elseif($record->auto_triage_grade == 1)
<b style="color: orange">Priority</b>
@else
<b style="color: green">Non-Urgent</b>
@endif
</td>
<td>
@if($record->selected_triage_grade == 2)
<b style="color: red">Emergency</b>
@elseif($record->selected_triage_grade == 1)
<b style="color: orange">Priority</b>
@else
<b style="color: green">Non-Urgent</b>
@endif
</td>
<td>{{ streamline_date_time($record->created_at) }}</td>
<td>
<a href="/patient_episodes/set_patient_id/{{ $record->patient_id }}" class="btn btn-rounded btn-primary btn-sm"><i class="fa fa-hand-pointer-o"></i> <strong>{{ __('patients.select') }}</strong></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script>
$('#start_date,#end_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
$('.table').DataTable({
dom: 'Bfrtip',
ordering: false,
pageLength : 100,
});
</script>
@endpush
@@ -0,0 +1,322 @@
<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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='any_tb_sysmptoms' id='tb_questions_no' class="cough_class" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_no' class="tb_screening_radios"
value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_excessive_night_sweats' id='tb_excessive_night_sweats_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_no' class="tb_screening_radios"
value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_excessive_night_sweats' id='tb_excessive_night_sweats_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='cough_for_2_weeks' id='cough_for_2_weeks_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='fever_for_2_weeks' id='fever_for_2_weeks_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_weight_loss' id='tb_weight_loss_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_poor_weight_gain' id='tb_poor_weight_gain_no'
class="tb_screening_radios" value="0">&nbsp;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">&nbsp;Yes &nbsp;&nbsp;&nbsp;
<input type="radio" name='tb_contact_with_tb_person' id='tb_contact_with_tb_person_no'
class="tb_screening_radios" value="0">&nbsp;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">&times;</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