mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
resolved conflicts
This commit is contained in:
Executable
+457
@@ -0,0 +1,457 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Diabetes Registration</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Create</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
{{ Form::open(['route' => 'diabetes_clinic.save_clinic_registration', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('diabetes_clinic.follow_up') }}" class="btn btn-success">{{ __('diabetes_clinic.diabetes_follow_up') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.registration_summary') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.family_history_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::radio('family_history', 'Yes', false, ['id' => 'family_history_yes']) }} Yes
|
||||
{{ Form::radio('family_history', 'No', false, ['id' => 'family_history_no']) }} No
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="family_member_with_diabetes" style="display: none">
|
||||
<th style="color: black">{{ __('diabetes_clinic.specify_who_has_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('family_member_with_diabetes', '', ['class'=>'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.date_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diagnosis_date', '', ['class'=>'form-control', 'id'=>'diagnosis_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.type') }}</th>
|
||||
<td>
|
||||
{{ Form::select('diabetes_type', $type, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.presenting_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('presenting_none', 1) }} {{ __('diabetes_clinic.none') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_dka', 1) }} {{ __('diabetes_clinic.dka') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_excessive_thirst', 1) }} {{ __('diabetes_clinic.excessive_thirst') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_polyuria', 1) }} {{ __('diabetes_clinic.polyuria') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_weight_loss', 1) }} {{ __('diabetes_clinic.weight_loss') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_visual_problems', 1) }} {{ __('diabetes_clinic.visual_problems') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_peripheral_neuropathy', 1) }} {{ __('diabetes_clinic.peripheral_neuropathy') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_symptoms', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_diagnoses') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_diagnosis', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('hiv_status', $hiv_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('tb_status', $tb_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.height') }}</th>
|
||||
<td>
|
||||
{{ Form::text('height', '', ['class' => 'form-control', 'id' => 'height']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', '', ['class' => 'form-control', 'id' => 'weight']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', '', ['class' => 'form-control', 'readonly', 'id' => 'bmi']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist', '', ['class' => 'form-control', 'id' => 'waist']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip_circumference') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hip_circumference', '', ['class' => 'form-control', 'id' => 'hip_circumference']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_to_hip_ratio', '', ['class' => 'form-control', 'readonly', 'id' => 'waist_to_hip_ratio']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::select('alcohol', $alcohol, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', '', ['class'=>'form-control', 'id'=>'immunisation_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 3%"></th>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.stock_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center">
|
||||
<input type="checkbox" name="chk" />
|
||||
</td>
|
||||
<td>
|
||||
<select name='drug_id[]' id='1000' class="form-control col-sm-12" onchange="show_drug_details(this.value, this.id)">
|
||||
<option value="0">--Select Drug--</option>
|
||||
@foreach($drugs as $drug)
|
||||
<option value='{{ $drug->id }}'>{{ $drug->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dose[]" id="0"></td>
|
||||
<td>
|
||||
<select name='frequency_id[]' id='100' class="form-control col-sm-12">
|
||||
<option value="0">--Select Frequency--</option>
|
||||
@foreach($dosage_frequencies as $item)
|
||||
<option value='{{ $item->id }}'>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dispense_number[]" id="200"></td>
|
||||
<td><div id="300"></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="button" class = "btn btn-success btn-sm" value="Add Row" onclick="add_drugs_row('drugs_table')" />
|
||||
<input type="button" class = "btn btn-danger btn-sm" value="Delete Row" onclick="delete_drugs_row('drugs_table')" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.target_and_patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bp', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('cholesterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', '', ['class'=>'form-control', 'id'=>'overview_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', '', ['class'=>'form-control', 'id'=>'management_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.diet_review') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('diet_review', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.comment') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comment', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
// temporary row count
|
||||
let rowCount = 1;
|
||||
|
||||
function add_drugs_row(tableID) {
|
||||
let table = document.getElementById(tableID);
|
||||
rowCount = table.rows.length;
|
||||
let row = table.insertRow(rowCount);
|
||||
let colCount = table.rows[0].cells.length;
|
||||
|
||||
for (let i = 0; i < colCount; i++) {
|
||||
let newcell = row.insertCell(i);
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
|
||||
if (i === 1) {
|
||||
newcell.childNodes[0].id = rowCount + 1000;
|
||||
newcell.childNodes[0].nextSibling.id = rowCount + 1000;
|
||||
}
|
||||
|
||||
if (i === 5) {
|
||||
table.rows[rowCount].cells[5].innerHTML = '';
|
||||
table.rows[rowCount].cells[5].innerHTML = '<div id="' + (rowCount + 300) + '"></div>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select-one":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function delete_drugs_row(tableID) {
|
||||
try {
|
||||
let table = document.getElementById(tableID);
|
||||
let rowCount = table.rows.length;
|
||||
|
||||
for (let i = 0; i < rowCount; i++) {
|
||||
let row = table.rows[i];
|
||||
let chkbox = row.cells[0].childNodes[1];
|
||||
if (null != chkbox && true === chkbox.checked) {
|
||||
if (rowCount <= 2) {
|
||||
alert("Cannot delete all the rows.");
|
||||
break;
|
||||
}
|
||||
table.deleteRow(i);
|
||||
rowCount--;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
function show_drug_details(drug_id, prompt_div_id) {
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/diabetes_clinic/get_dispensable_drug_units/' + drug_id,
|
||||
success: function(response){
|
||||
let code = "<input name='drug_quantity[]' type='hidden' value='" + response + "'/>";
|
||||
if(response > 1){
|
||||
// drugs in stock
|
||||
code += "<p style='color: green;'>" + response + " dispensable units in stock</p>";
|
||||
} else {
|
||||
// drugs out of stock
|
||||
code += "<p style='color: red;'>Drug out of stock</p>";
|
||||
}
|
||||
|
||||
$('#' + (prompt_div_id - 700)).html(code);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#family_history_no').on("click", function () {
|
||||
$(".family_member_with_diabetes").hide();
|
||||
});
|
||||
|
||||
$('#family_history_yes').on("click", function () {
|
||||
$(".family_member_with_diabetes").show();
|
||||
});
|
||||
|
||||
$('#immunisation_date, #diagnosis_date, #management_diabetes_date, #diabetic_clinic_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
|
||||
$('#weight,#height').blur(function () {
|
||||
let height = parseInt($("#height").val());
|
||||
let weight = parseInt($("#weight").val());
|
||||
let bmi = weight / (height * height);
|
||||
bmi = parseFloat(bmi).toFixed(1);
|
||||
|
||||
if (isNaN(bmi)){
|
||||
$("#bmi").css({"color": "red", "font-weight": "bolder"});
|
||||
$("#bmi").val(0);
|
||||
} else {
|
||||
$("#bmi").css({"color": "green", "font-weight": "bolder"});
|
||||
$("#bmi").val(bmi);
|
||||
}
|
||||
});
|
||||
|
||||
$('#waist,#hip_circumference').blur(function () {
|
||||
let hip = parseInt($("#height").val());
|
||||
let waist = parseInt($("#weight").val());
|
||||
let ratio = waist / hip;
|
||||
ratio = parseFloat(ratio).toFixed(1);
|
||||
|
||||
if (isNaN(ratio)){
|
||||
$("#waist_to_hip_ratio").css({"color": "red", "font-weight": "bolder"});
|
||||
$("#waist_to_hip_ratio").val(0);
|
||||
} else {
|
||||
$("#waist_to_hip_ratio").css({"color": "green", "font-weight": "bolder"});
|
||||
$("#waist_to_hip_ratio").val(ratio);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+339
@@ -0,0 +1,339 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-8">
|
||||
<h4 class="page-title">{{ __('diabetes_clinic.diabetes_registration_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diabetes_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('diabetes_clinic.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.follow_up_history') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if($follow_up->count() > 0)
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
@foreach($follow_up as $record)
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.date') }} </th>
|
||||
<td>{{ streamline_date_time($record->created_at) }}</td>
|
||||
<td class="text-center">
|
||||
<a href="/diabetes_clinic/follow_up_details/{{ $record->id }}" class="btn btn-primary">{{ __('diabetes_clinic.view_details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<p class="text-center text-danger">{{ __('diabetes_clinic.no_follow_ups_conducted') }}</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('diabetes_clinic.follow_up') }}" class="btn btn-success">{{ __('diabetes_clinic.new_diabetes_follow_up') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="white-box">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.registration_summary') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.family_history_to_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('family_history', $clinic_registration->family_history, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="family_member_with_diabetes" style="<?php echo ($clinic_registration->family_history == 'Yes') ? '' : 'display:none'; ?>">
|
||||
<th style="color: black">{{ __('diabetes_clinic.specify_who_has_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('family_member_with_diabetes', $clinic_registration->family_member_with_diabetes, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.date_of_diagnosis') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diagnosis_date', $clinic_registration->diagnosis_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.type') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diabetes_type', $clinic_registration->diabetes_type, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.presenting_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('presenting_none', 1, $clinic_registration->presenting_none, ['disabled']) }} {{ __('diabetes_clinic.none') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_dka', 1, $clinic_registration->presenting_dka, ['disabled']) }} {{ __('diabetes_clinic.dka') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_excessive_thirst', 1, $clinic_registration->presenting_excessive_thirst, ['disabled']) }} {{ __('diabetes_clinic.excessive_thirst') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_polyuria', 1, $clinic_registration->presenting_polyuria, ['disabled']) }} {{ __('diabetes_clinic.polyuria') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_weight_loss', 1, $clinic_registration->presenting_weight_loss, ['disabled']) }} {{ __('diabetes_clinic.weight_loss') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_visual_problems', 1, $clinic_registration->presenting_visual_problems, ['disabled']) }} {{ __('diabetes_clinic.visual_problems') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_peripheral_neuropathy', 1, $clinic_registration->presenting_peripheral_neuropathy, ['disabled']) }} {{ __('diabetes_clinic.peripheral_neuropathy') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_symptoms', $clinic_registration->other_symptoms, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_diagnoses') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_diagnosis', $clinic_registration->other_diagnosis, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hiv_status', $clinic_registration->hiv_status, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('tb_status', $clinic_registration->tb_status, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">Height</th>
|
||||
<td>
|
||||
{{ Form::text('height', $clinic_registration->height, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', $clinic_registration->weight, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', $clinic_registration->bmi, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist', $clinic_registration->waist, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip_circumference') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hip_circumference', $clinic_registration->hip_circumference, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_to_hip_ratio', $clinic_registration->waist_to_hip_ratio, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1, $clinic_registration->smoker, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('alcohol', $clinic_registration->alcohol, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', $clinic_registration->immunisation_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if($clinic_registration->drug_id == 0)
|
||||
<p class="text-center text-danger">{{ __('diabetes_clinic.no_medication_issued') }}</p>
|
||||
@else
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$drug_ids_array = explode(',', $clinic_registration->drug_id);
|
||||
$dose_array = explode(',', $clinic_registration->dose);
|
||||
$frequency_ids_array = explode(',', $clinic_registration->frequency_id);
|
||||
$dispensed_array = explode(',', $clinic_registration->dispense_number);
|
||||
@endphp
|
||||
@for($i = 0; $i < count($drug_ids_array); $i++)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('drug_id', $drugs[$drug_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dose', $dose_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('frequency_id', $dosage_frequencies[$frequency_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dispense_number', $dispensed_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.targets_and_patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', $clinic_registration->hba1c, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bp', $clinic_registration->bp, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('cholesterol', $clinic_registration->cholesterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', $clinic_registration->waist_hip_ratio, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.view_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1, $clinic_registration->overview_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', $clinic_registration->overview_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.view_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1, $clinic_registration->management_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', $clinic_registration->management_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.diet_review') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('diet_review', $clinic_registration->diet_review, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.comment') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comment', $clinic_registration->comment, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+614
@@ -0,0 +1,614 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('diabetes_clinic.diabetes_follow_up') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diabetes_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('diabetes_clinic.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::open(['route' => 'diabetes_clinic.save_follow_up', 'data-toggle' => 'validator']) }}
|
||||
<div class="white-box">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.history_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_health') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hypoglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hypoglycaemic', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hyperglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hyperglycaemic_episodes', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_symptoms') }}</th>
|
||||
<td>{{ Form::checkbox('visual_symptoms', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_sensation') }}</th>
|
||||
<td>{{ Form::checkbox('feet_sensation', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.impotence') }}</th>
|
||||
<td>{{ Form::checkbox('impotence', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('hiv_status', $hiv_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('tb_status', $tb_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::select('alcohol', $alcohol, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.mood') }}</th>
|
||||
<td>
|
||||
{{ Form::select('mood', $mood, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', '', ['class'=>'form-control', 'id'=>'immunisation_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comments', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.examination_physical_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.height') }}</th>
|
||||
<td>
|
||||
{{ Form::text('height', '', ['class' => 'form-control', 'id' => 'height']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', '', ['class' => 'form-control', 'id' => 'weight']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::number('waist', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip') }}</th>
|
||||
<td>
|
||||
{{ Form::number('hip', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_lying') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_lying', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_standing') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_standing', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rate') }}</th>
|
||||
<td>
|
||||
{{ Form::number('pulse_rate', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rhythm') }}</th>
|
||||
<td>
|
||||
{{ Form::select('pulse_rhythm', $pulse_rhythm, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.sensation') }}</th>
|
||||
<td>
|
||||
{{ Form::select('sensation', $sensation, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pedal_pulses') }}</th>
|
||||
<td>{{ Form::checkbox('pedal_pulses', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_inspection') }}</th>
|
||||
<td>{{ Form::checkbox('feet_inspection', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_acuity') }}</th>
|
||||
<td>{{ Form::checkbox('visual_acuity', 1) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_examination') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.fundoscopy') }}</th>
|
||||
<td>
|
||||
{{ Form::select('fundoscopy', $fundoscopy, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.injection_site_inspection') }}</th>
|
||||
<td>
|
||||
{{ Form::select('injection_site_inspection', $injection_site_inspection, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('examination_comments', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', '', ['class' => 'form-control', 'readonly', 'id' => 'bmi']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_hip_ration') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.investigations') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.blood_glucose') }}</th>
|
||||
<td>
|
||||
{{ Form::text('blood_glucose', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.creatinine') }}</th>
|
||||
<td>
|
||||
{{ Form::text('creatinine', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hdl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hdl_cholesterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.ldl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('ldl_cholesterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.total_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('total_choresterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.triglyceride') }}</th>
|
||||
<td>
|
||||
{{ Form::text('triglyceride', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_protein') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_protein', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_ketones') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_ketones', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 3%"></th>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.stock_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center">
|
||||
<input type="checkbox" name="chk" />
|
||||
</td>
|
||||
<td>
|
||||
<select name='drug_id[]' id='1000' class="form-control col-sm-12" onchange="show_drug_details(this.value, this.id)">
|
||||
<option value="0">--Select Drug--</option>
|
||||
@foreach($drugs as $drug)
|
||||
<option value='{{ $drug->id }}'>{{ $drug->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dose[]" id="0"></td>
|
||||
<td>
|
||||
<select name='frequency_id[]' id='100' class="form-control col-sm-12">
|
||||
<option value="0">--Select Frequency--</option>
|
||||
@foreach($dosage_frequencies as $item)
|
||||
<option value='{{ $item->id }}'>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dispense_number[]" id="200"></td>
|
||||
<td><div id="300"></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="button" class = "btn btn-success btn-sm" value="Add Row" onclick="add_drugs_row('drugs_table')" />
|
||||
<input type="button" class = "btn btn-danger btn-sm" value="Delete Row" onclick="delete_drugs_row('drugs_table')" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.other_advice_management') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diet_overview') }}</th>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', '', ['class'=>'form-control', 'id'=>'overview_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', '', ['class'=>'form-control', 'id'=>'management_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.comments_follow_up') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diabetic_clinic_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diabetic_clinic_date', '', ['class'=>'form-control', 'id'=>'diabetic_clinic_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.eye_clinic_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('eye_clinic_referral', 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.psychological_assessment_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('psychological_assessment_referral', 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.chaplain_support_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('chaplain_support_referral', 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_clinic_follow_up') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_clinic_follow_up', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
// temporary row count
|
||||
let rowCount = 1;
|
||||
|
||||
function add_drugs_row(tableID) {
|
||||
let table = document.getElementById(tableID);
|
||||
rowCount = table.rows.length;
|
||||
let row = table.insertRow(rowCount);
|
||||
let colCount = table.rows[0].cells.length;
|
||||
|
||||
for (let i = 0; i < colCount; i++) {
|
||||
let newcell = row.insertCell(i);
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
|
||||
if (i === 1) {
|
||||
newcell.childNodes[0].id = rowCount + 1000;
|
||||
newcell.childNodes[0].nextSibling.id = rowCount + 1000;
|
||||
}
|
||||
|
||||
if (i === 5) {
|
||||
table.rows[rowCount].cells[5].innerHTML = '';
|
||||
table.rows[rowCount].cells[5].innerHTML = '<div id="' + (rowCount + 300) + '"></div>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select-one":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function delete_drugs_row(tableID) {
|
||||
try {
|
||||
let table = document.getElementById(tableID);
|
||||
let rowCount = table.rows.length;
|
||||
|
||||
for (let i = 0; i < rowCount; i++) {
|
||||
let row = table.rows[i];
|
||||
let chkbox = row.cells[0].childNodes[1];
|
||||
if (null != chkbox && true === chkbox.checked) {
|
||||
if (rowCount <= 2) {
|
||||
alert("Cannot delete all the rows.");
|
||||
break;
|
||||
}
|
||||
table.deleteRow(i);
|
||||
rowCount--;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
function show_drug_details(drug_id, prompt_div_id) {
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/diabetes_clinic/get_dispensable_drug_units/' + drug_id,
|
||||
success: function(response){
|
||||
let code = "<input name='drug_quantity[]' type='hidden' value='" + response + "'/>";
|
||||
if(response > 1){
|
||||
// drugs in stock
|
||||
code += "<p style='color: green;'>" + response + " dispensable units in stock</p>";
|
||||
} else {
|
||||
// drugs out of stock
|
||||
code += "<p style='color: red;'>Drug out of stock</p>";
|
||||
}
|
||||
|
||||
$('#' + (prompt_div_id - 700)).html(code);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#immunisation_date, #overview_diabetes_date, #management_diabetes_date, #diabetic_clinic_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
|
||||
$('#weight,#height').blur(function () {
|
||||
let height = parseInt($("#height").val());
|
||||
let weight = parseInt($("#weight").val());
|
||||
let bmi = weight / (height * height);
|
||||
bmi = parseFloat(bmi).toFixed(1);
|
||||
|
||||
if (isNaN(bmi)){
|
||||
$("#bmi").css({"color": "red", "font-weight": "bolder"});
|
||||
$("#bmi").val(0);
|
||||
} else {
|
||||
$("#bmi").css({"color": "green", "font-weight": "bolder"});
|
||||
$("#bmi").val(bmi);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+492
@@ -0,0 +1,492 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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-md-8">
|
||||
<h4 class="page-title">{{ __('diabetes_clinic.diabetes_follow_up_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diabetes_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('diabetes_clinic.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="white-box">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.history_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_health') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hypoglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hypoglycaemic', 1, $follow_up->hypoglycaemic, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hyperglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hyperglycaemic_episodes', 1, $follow_up->hyperglycaemic_episodes, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_symptoms') }}</th>
|
||||
<td>{{ Form::checkbox('visual_symptoms', 1, $follow_up->visual_symptoms, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_sensation') }}</th>
|
||||
<td>{{ Form::checkbox('feet_sensation', 1, $follow_up->feet_sensation, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.impotence') }}</th>
|
||||
<td>{{ Form::checkbox('impotence', 1, $follow_up->impotence, ['disabled']) }}</td>
|
||||
</tr>impotence
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1, $follow_up->smoker, ['disabled']) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hiv_status', $follow_up->hiv_status, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('tb_status', $follow_up->tb_status, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('alcohol', $follow_up->alcohol, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.mood') }}</th>
|
||||
<td>
|
||||
{{ Form::text('mood', $follow_up->mood, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', $follow_up->immunisation_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comments', $follow_up->comments, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.examination_physical_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.height') }}</th>
|
||||
<td>
|
||||
{{ Form::text('height', $follow_up->height, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', $follow_up->weight, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::number('waist', $follow_up->waist, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip') }}</th>
|
||||
<td>
|
||||
{{ Form::number('hip', $follow_up->hip, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_lying') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_lying', $follow_up->bp_lying, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_standing') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_standing', $follow_up->bp_standing, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rate') }}</th>
|
||||
<td>
|
||||
{{ Form::number('pulse_rate', $follow_up->pulse_rate, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rhythm') }}</th>
|
||||
<td>
|
||||
{{ Form::text('pulse_rhythm', $follow_up->pulse_rhythm, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.sensation') }}</th>
|
||||
<td>
|
||||
{{ Form::text('sensation', $follow_up->sensation, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pedal_pulses') }}</th>
|
||||
<td>{{ Form::checkbox('pedal_pulses', 1, $follow_up->pedal_pulses, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_inspection') }}</th>
|
||||
<td>{{ Form::checkbox('feet_inspection', 1, $follow_up->feet_inspection, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_acuity') }}</th>
|
||||
<td>{{ Form::checkbox('visual_acuity', 1, $follow_up->visual_acuity, ['disabled']) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_examination') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.fundoscopy') }}</th>
|
||||
<td>
|
||||
{{ Form::text('fundoscopy', $follow_up->fundoscopy, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.injection_site_inspection') }}</th>
|
||||
<td>
|
||||
{{ Form::text('injection_site_inspection', $follow_up->injection_site_inspection, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('examination_comments', $follow_up->examination_comments, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', $follow_up->bmi, ['class' => 'form-control', 'readonly', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_hip_ration') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', $follow_up->waist_hip_ratio, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.investigations') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.blood_glucose') }}</th>
|
||||
<td>
|
||||
{{ Form::text('blood_glucose', $follow_up->blood_glucose, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.creatinine') }}</th>
|
||||
<td>
|
||||
{{ Form::text('creatinine', $follow_up->creatinine, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hdl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hdl_cholesterol', $follow_up->hdl_cholesterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.ldl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('ldl_cholesterol', $follow_up->ldl_cholesterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.total_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('total_choresterol', $follow_up->total_choresterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.triglyceride') }}</th>
|
||||
<td>
|
||||
{{ Form::text('triglyceride', $follow_up->triglyceride, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_protein') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_protein', $follow_up->urine_protein, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_ketones') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_ketones', $follow_up->urine_ketones, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', $follow_up->hba1c, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if($follow_up->drug_id == 0)
|
||||
<p class="text-center text-danger">{{ __('diabetes_clinic.no_issued_medication') }}</p>
|
||||
@else
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$drug_ids_array = explode(',', $follow_up->drug_id);
|
||||
$dose_array = explode(',', $follow_up->dose);
|
||||
$frequency_ids_array = explode(',', $follow_up->frequency_id);
|
||||
$dispensed_array = explode(',', $follow_up->dispense_number);
|
||||
@endphp
|
||||
@for($i = 0; $i < count($drug_ids_array); $i++)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('drug_id', $drugs[$drug_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dose', $dose_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('frequency_id', $dosage_frequencies[$frequency_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dispense_number', $dispensed_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.other_advice_management') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diet_overview') }}</th>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1, $follow_up->overview_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', $follow_up->overview_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1, $follow_up->management_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', $follow_up->management_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.comments_follow_up') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diabetic_clinic_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diabetic_clinic_date', $follow_up->diabetic_clinic_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.eye_clinic_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('eye_clinic_referral', 1, $follow_up->eye_clinic_referral, ['disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.psychological_assessment_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('psychological_assessment_referral', 1, $follow_up->psychological_assessment_referral, ['disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.chaplain_support_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('chaplain_support_referral', 1, $follow_up->chaplain_support_referral) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_clinic_follow_up') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_clinic_follow_up', $follow_up->other_clinic_follow_up, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user