resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,275 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
<title>{{ config('app.name', 'Theatre Details - Stre@mline') }}</title>
<!-- Bootstrap Core CSS -->
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<style style="text-css">
thead {
display: table-header-group;
}
tfoot {
display: table-row-group;
}
tr {
page-break-before: always;
page-break-after: always;
page-break-inside: avoid;
}
</style>
</head>
<body>
<div class="container-fluid">
@include('layouts.header_pdf_print')
<h5 class="heading" style="text-align: center;">
{{ __('surgery.surgery_details') }} : <span style="color: #0000FF">{{ streamline_date($anaesthesia->created_at) }}</span>
</h5>
<br>
@php
$total_amount_to_pay = 0;
@endphp
<div class="row">
<table class="table table-light table-sm table-borderless">
<tr>
<th scope="row">{{ __('surgery.patient_number') }}</th>
<td>{{ $patient->number}}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>Anaethesia Type</th>
<td>
{{ get_name($anaesthesia->anaesthesia_type , 'id', 'name', 'procedures') }}
</td>
</tr>
<tr>
<th scope="row">{{ __('surgery.patient_names') }}</th>
<td>{{ $patient->first_name}} {{ $patient->last_name}}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('inpatient.age') }}</th>
<td>
{{ get_patients_age($patient->date_of_birth) }}
</td>
</tr>
<tr>
<th scope="row">{{ __('inpatient.residence') }}</th>
<td>{{ patient_residence($patient->id) }}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('inpatient.gender') }}</th>
<td>
{{ $patient->gender == 1 ? __('inpatient.male') : __('inpatient.female') }}
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-6">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<th>{{ __('anaesthetics.procedure') }}</th>
<td>{{ get_name($anaesthesia->procedure_id, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.primary_diagnosis') }}</th>
<td>{{ isset($diagnoses[$anaesthesia->primary_diagnosis]) ? $diagnoses[$anaesthesia->primary_diagnosis] : "" }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.other_diagnoses') }}</th>
<td>
@php
$other_diagnoses_array = @unserialize($anaesthesia->other_diagnoses);
@endphp
@if(!empty($other_diagnoses_array) && $other_diagnoses_array[0] != "")
@foreach($other_diagnoses_array as $diagnosis)
<ul>
@if($diagnosis != "")
<li>{{ $diagnoses[$diagnosis] }}</li>
@endif
</ul>
@endforeach
@endif
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.date') }}</th>
<td>{{ streamline_date($anaesthesia->created_at) }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.time_anaesthesia_commenced') }}</th><!-- time_anaesthesia_commenced -->
<td>{{ date('h:i:s A', strtotime($anaesthesia->time_commenced)) }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.anaesthetist') }}</th>
<td>{{ get_full_name($anaesthesia->anaesthetist, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.anaesthetics') }}</th>
<td>{{ get_name($anaesthesia->anaesthesia_type, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.blood_given') }}</th>
<td>{{ $anaesthesia->blood_given }} units</td>
</tr>
<tr>
<th>{{ __('anaesthetics.anaesthesia_checklist') }}</th>
<td>
@php
$anaesthesia_checklist = '';
$anaesthesia_checklist_array = unserialize($anaesthesia->anaesthesia_checklist);
foreach ($anaesthesia_checklist_array as $key => $value) {
if ($value == 1) {
$anaesthesia_checklist .= $key . ', ';
}
}
@endphp
{{ rtrim($anaesthesia_checklist, ', ') }}
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.monitoring_signs') }}</th>
<td>
@php
$monitoring_signs = '';
$monitoring_signs_array = unserialize($anaesthesia->monitoring_signs);
foreach ($monitoring_signs_array as $k => $v) {
if ($v == 1) {
$monitoring_signs .= $k . ', ';
}
}
@endphp
{{ rtrim($monitoring_signs, ', ') }}
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.type_of_needle_used') }}</th>
<td>{{ get_name($anaesthesia->needle_type, 'id', 'name', 'needle_types') }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-6">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<th>{{ __('anaesthetics.volume_administered') }}</th>
<td>{{ $anaesthesia->volume_administered }} mls</td>
</tr>
<tr>
<th>{{ __('anaesthetics.muscle_relaxants') }}</th>
<td>{{ get_name($anaesthesia->muscle_relaxant, 'id', 'name', 'muscle_relaxants') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.checklist_confirmed_by') }}</th>
<td>{{ get_full_name($anaesthesia->checklist_confirmed_by, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.induction') }}</th>
<td>{{ get_name($anaesthesia->induction, 'id', 'name', 'anaesthesia_inductions') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.antibiotics') }}</th>
<td>
@php
$antibiotics_array = explode(",", $anaesthesia->antibiotics)
@endphp
@for($i = 0; $i < count($antibiotics_array); $i++)
<b>{{ $i + 1 }}</b> - {{ get_name($antibiotics_array[$i], 'id', 'name', 'drugs') }} <br>
@endfor
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.airway') }}</th>
<td>{{ get_name($anaesthesia->airway, 'id', 'name', 'anaesthesia_airways') }}</td>
</tr>
<tr>
<th>ETT</th>
<td>{{ get_name($anaesthesia->ETT, 'id', 'name', 'anaesthesia_etts') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.agent_used') }}</th>
<td>{{ get_name($anaesthesia->agent_used, 'id', 'name', 'anaesthetic_agents') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.technique') }}</th>
<td>{{ get_name($anaesthesia->technique, 'id', 'name', 'anaesthetic_techniques') }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.analgesics') }}</th>
<td>
@php
$analgesics_array = explode(",", $anaesthesia->analgesic);
@endphp
@if (count($analgesics_array) > 0)
<ul>
@for ($i = 0; $i < count($analgesics_array); $i++)
<li>{{ get_name($analgesics_array[$i], 'id', 'name', 'analgesics') }}</li>
@endfor
</ul>
@endif
</td>
</tr>
<tr>
<th>{{ __('anaesthetics.volatile_liquid_anaethetics') }}</th>
<td>{{ get_name($anaesthesia->volatile_liquid_anaethetics, "id", "name", "volatile_liquid_anaesthetics") }}</td>
</tr>
<tr>
<th>{{ __('anaesthetics.volatile_liquid_anaesthetic_used') }}</th>
<td>{{ $anaesthesia->volatile_liquid_anaesthetic_used }} mls</td>
</tr>
<tr>
<th>{{ __('anaesthetics.iv_fluids_used') }}</th>
<td>
@php
$iv_fluids = '';
$iv_fluid_array = unserialize($anaesthesia->iv_fluids);
$iv_fluid_ids = $iv_fluid_array['iv_fluids'];
$iv_fluid_units = $iv_fluid_array['units'];
if (!empty($iv_fluid_ids)) {
foreach ($iv_fluid_ids as $x => $y) {
$iv_fluids .= '* ' . (isset($iv_fluid_units[$x]) ? $iv_fluid_units[$x] : "") . ': ' . $iv_fluid_units[$x] . ' mls<br>';
}
}
@endphp
{!! $iv_fluids !!}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br><br>
<b>{{ __('surgery.comments') }}</b>
<div class="row">
<div class="col-12">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<td>
{!! nl2br(e($anaesthesia->comments)) !!}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,66 @@
@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-7">
<h4 class="page-title">View Anaesthetics History</h4>
</div>
<div class="col-md-5">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">Dashboard</a></li>
<li class="active">View</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead>
<th>Procedure</th>
<th>Surgery</th>
<th>Anaesthetist</th>
<th>Time Of Commencement</th>
<th>Date</th>
<th></th>
</thead>
<tbody>
@foreach($anaesthesia_records as $anaesthesia)
<tr>
<td>{{ get_name($anaesthesia->procedure_id,'id','name','procedures') }}</td>
<td>{!! $anaesthesia->surgery_id != null ? get_name($anaesthesia->procedure_id, 'id','name','procedures') : '<font color="red">Not done</font>' !!}</td>
<td>{{ get_full_name($anaesthesia->anaesthetist,'id','first_name','last_name','users') }}</td>
<td>{{ $anaesthesia->time_commenced }}</td>
<td>{{ streamline_date($anaesthesia->created_at) }}</td>
<td><a class="btn btn-sm btn-info" href="/anaesthetics/view_history/{{ $anaesthesia->id }}">View Details</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
//
</script>
@endpush
@@ -0,0 +1,142 @@
@extends('layouts.main')
@push('scripts')
<script src="{{ asset('js/common/scripts.js') }}"></script>
@endpush
@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">Anaesthesia details</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><a href="{{ route('patients.index') }}">Patients</a></li>
<li class="active">anaesthesia details</li>
</ol>
</div>
</div>
@php
$patient_id = session('patient_id');
$episode_id = session('episode_id');
@endphp
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">ANAESTHESIA DETAILS FOR EPISODE STARTED ON <font color="blue">{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</font>
<div class="panel-action"><a href="#" data-perform="panel-collapse"><i class="ti-minus"></i></a> <a href="#" data-perform="panel-dismiss"><i class="ti-close"></i></a></div>
</div>
<div class="panel-wrapper collapse in">
<div class="panel-body">
<div class="col-md-12">
<div class="table-responsive row">
<div class="col-md-12">
<table class="table table-striped table-bordered">
<thead>
<th>Procedure</th>
<th>Surgery</th>
<th>Anaesthetist</th>
<th>Time Of Commencement</th>
</thead>
<tbody>
<tr>
<td>{{ get_name($anaesthesia_record->procedure_id, 'id', 'name', 'procedures') }}</td>
<td>{!! $anaesthesia_record->surgery_id != null ? get_name($anaesthesia_record->surgery_id, 'id', 'name', 'surgeries'): '<font color="red">Not done</font>' !!}</td>
<td>{{ get_name($anaesthesia_record->anaesthetist, 'id', 'first_name', 'users') }}</td>
<td>{{ $anaesthesia_record->time_commenced }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
@if(count($inpatient_info) > 0)
<div class="panel panel-default">
<div class="panel-heading">IN PATIENT DETAILS
<div class="panel-action">
<a href="#" data-perform="panel-collapse"><i class="ti-plus"></i></a>
<a href="#" data-perform="panel-dismiss"><i class="ti-close"></i></a>
</div>
</div>
<div class="panel-wrapper collapse in table-responsive" aria-expanded="false">
<table class="table table-hover table-condensed table-bordered">
<thead>
<tr>
<th>Admitted on</th>
<th>Ward</th>
<th>Procedures</th>
</tr>
</thead>
<tbody>
@foreach($inpatient_info as $info)
<tr>
<td>{{ $info->admitted_on }}</td>
<td>{{ get_name($info->ward_id, 'id', 'name', 'wards') }}</td>
<td>{{ get_name(unserialize($info->procedures), 'id', 'name','procedures') }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@else
<div class="panel panel-default">
<div class="panel-heading">ORDERED PROCEDURE DETAILS
<div class="panel-action">
<a href="#" data-perform="panel-collapse"><i class="ti-minus"></i></a>
<a href="#" data-perform="panel-dismiss"><i class="ti-close"></i></a>
</div>
</div>
<div class="panel-wrapper collapse in table-responsive" >
<table class="table table-hover">
<thead>
<tr>
<th>Procedure</th>
<th>Performed</th>
<th>Created by</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ get_name($ordered_procedure->procedure_id, 'id', 'name', 'procedures') }}</td>
<td>{{ $ordered_procedure->perfomed == 1 ? 'Yes' : 'No' }}</td>
<td>{{ get_name($ordered_procedure->created_by, 'id', 'first_name', 'users') }}</td>
</tr>
</tbody>
</table>
</div>
</div>
@endif
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script src="{{ asset('js/consultation/create.js') }}"></script>
<script type="text/javascript">
$(document).ready(function() {
//
})
</script>
@endpush
@@ -0,0 +1,329 @@
@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-7">
<h4 class="page-title">{{ __('anaesthetics.view_anaesthetics_history') }}</h4>
</div>
<div class="col-md-5">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('home.dashboard') }}</a></li>
<li class="active">{{ __('anaesthetics.view') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="white-box">
<div class="row">
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('anaesthetics.items') }}</th>
<th>{{ __('anaesthetics.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('anaesthetics.procedure') }}</td>
<td>{{ get_name($anaesthesia->procedure_id, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.date') }}</td>
<td>{{ streamline_date($anaesthesia->created_at) }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.time_anaesthesia_commenced') }}</td>
<td>{{ date('h:i:s A', strtotime($anaesthesia->time_commenced)) }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.primary_diagnosis') }}</td>
<td>{{ isset($diagnoses[$anaesthesia->primary_diagnosis]) ? $diagnoses[$anaesthesia->primary_diagnosis] : "" }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.other_diagnoses') }}</td>
<td>
@php
$other_diagnoses_array = @unserialize($anaesthesia->other_diagnoses);
@endphp
@if(!empty($other_diagnoses_array) && $other_diagnoses_array[0] != "")
@foreach($other_diagnoses_array as $diagnosis)
<ul>
@if($diagnosis != "")
<li>{{ $diagnoses[$diagnosis] }}</li>
@endif
</ul>
@endforeach
@endif
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.anaesthetist') }}</td>
<td>{{ get_full_name($anaesthesia->anaesthetist, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.anaesthetics') }}</td>
<td>{{ get_name($anaesthesia->anaesthesia_type, 'id', 'name', 'procedures') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.blood_given') }}</td>
<td>{{ $anaesthesia->blood_given }} units</td>
</tr>
<tr>
<td>{{ __('anaesthetics.anaesthesia_checklist') }}</td>
<td>
@php
$anaesthesia_checklist = '';
$anaesthesia_checklist_array = unserialize($anaesthesia->anaesthesia_checklist);
foreach ($anaesthesia_checklist_array as $key => $value) {
if ($value == 1) {
$anaesthesia_checklist .= $key . ', ';
}
}
@endphp
{{ rtrim($anaesthesia_checklist, ', ') }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('anaesthetics.items') }}</th>
<th>{{ __('anaesthetics.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('anaesthetics.checklist_confirmed_by') }}</td>
<td>{{ get_full_name($anaesthesia->checklist_confirmed_by, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.induction') }}</td>
<td>
@php
$induction_array = $anaesthesia->induction ? explode(",", $anaesthesia->induction) : [];
@endphp
<ul>
@for ($i = 0; $i < count($induction_array); $i++)
<li>{{ get_name($induction_array[$i], 'id', 'name', 'anaesthesia_inductions') }}</li>
@endfor
</ul>
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.antibiotics') }}</td>
<td>
@php
$antibiotics_array = explode(",", $anaesthesia->antibiotics)
@endphp
@for($i = 0; $i < count($antibiotics_array); $i++)
<b>{{ $i + 1 }}</b> - {{ get_name($antibiotics_array[$i], 'id', 'name', 'drugs') }} <br>
@endfor
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.airway') }}</td>
<td>{{ get_name($anaesthesia->airway, 'id', 'name', 'anaesthesia_airways') }}</td>
</tr>
<tr>
<td>ETT</td>
<td>{{ get_name($anaesthesia->ETT, 'id', 'name', 'anaesthesia_etts') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.agent_used') }}</td>
<td>
@php
$agent_used_array = $anaesthesia->agent_used ? explode(",", $anaesthesia->agent_used) : [];
@endphp
@for ($i = 0; $i < count($agent_used_array); $i++)
<ul>
{{ get_name($agent_used_array[$i], 'id', 'name', 'anaesthetic_agents') }}
</ul>
@endfor
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.technique') }}</td>
<td>
@php
$technique_array = $anaesthesia->technique ? explode(",", $anaesthesia->technique) : [];
@endphp
@for ($i = 0; $i < count($technique_array); $i++)
<ul>
{{ get_name($technique_array[$i], 'id', 'name', 'anaesthetic_techniques') }}
</ul>
@endfor
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('anaesthetics.items') }}</th>
<th>{{ __('anaesthetics.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('anaesthetics.monitoring_signs') }}</td>
<td>
@php
$monitoring_signs = '';
$monitoring_signs_array = unserialize($anaesthesia->monitoring_signs);
foreach ($monitoring_signs_array as $k => $v) {
if ($v == 1) {
$monitoring_signs .= $k . ', ';
}
}
@endphp
{{ rtrim($monitoring_signs, ', ') }}
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.type_of_needle_used') }}</td>
<td>{{ get_name($anaesthesia->needle_type, 'id', 'name', 'needle_types') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.volume_administered') }}</td>
<td>{{ $anaesthesia->volume_administered }} mls</td>
</tr>
<tr>
<td>{{ __('anaesthetics.muscle_relaxants') }}</td>
<td>{{ get_name($anaesthesia->muscle_relaxant, 'id', 'name', 'muscle_relaxants') }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.analgesics') }}</td>
<td>
@php
$analgesics_array = explode(",", $anaesthesia->analgesic);
@endphp
@if (count($analgesics_array) > 0)
<ul>
@for ($i = 0; $i < count($analgesics_array); $i++)
<li>{{ get_name($analgesics_array[$i], 'id', 'name', 'analgesics') }}</li>
@endfor
</ul>
@endif
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.volatile_liquid_anaethetics') }}</td>
<td>{{ get_name($anaesthesia->volatile_liquid_anaethetics, "id", "name", "volatile_liquid_anaesthetics") }}</td>
</tr>
<tr>
<td>{{ __('anaesthetics.volatile_liquid_anaesthetic_used') }}</td>
<td>{{ $anaesthesia->volatile_liquid_anaesthetic_used }} mls</td>
</tr>
<tr>
<td>{{ __('anaesthetics.iv_fluids_used') }}</td>
<td>
@php
$iv_fluids = '';
$iv_fluid_array = unserialize($anaesthesia->iv_fluids);
$iv_fluid_ids = $iv_fluid_array['iv_fluids'];
$iv_fluid_units = $iv_fluid_array['units'];
if (!empty($iv_fluid_ids)) {
foreach ($iv_fluid_ids as $x => $y) {
$iv_fluids .= '* ' . (isset($iv_fluid_units[$x]) ? $iv_fluid_units[$x] : "") . ': ' . $iv_fluid_units[$x] . ' mls<br>';
}
}
@endphp
{!! $iv_fluids !!}
</td>
</tr>
<tr>
<td>{{ __('anaesthetics.comments') }}</td>
<td>{!! nl2br(e($anaesthesia->comments)) !!}</td>
</tr>
<tr>
<td>
</td>
<td>
<a class="btn btn-success btn-sm" href="{{ url('anaesthetics') }}/{{ $anaesthesia->id }}/edit" target="_blank" id="print_btn"><i class="fa fa-pencil"></i>&nbsp;Edit</a> &nbsp;
<a class="btn btn-primary btn-sm" href="{{ url('anaesthesia_print') }}/{{ $anaesthesia->id }}" target="_blank" id="print_btn"><i class="fa fa-print"></i>&nbsp;Print</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
@php
$drugs_given_anae = unserialize($anaesthesia->other_drugs_given);
$drugs_given_anae_cost = unserialize($anaesthesia->other_drugs_cost);
$do_not_bill_other_drugs = explode(",", $anaesthesia->other_drugs_bill);
@endphp
@if(count($drugs_given_anae) > 0)
<div class="col-md-4">
<h4>{{ __('anaesthetics.other_drugs_given') }}</h4>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('inpatient.drug_name') }}</th>
<th>{{ __('inpatient.dose') }}</th>
<th>{{ __('inpatient.cost') }}</th>
<th></th>
</tr>
</thead>
<tbody>
@for($i = 0; $i < count($drugs_given_anae); $i++)
@php
$cost = isset($drugs_given_anae_cost[$i]) ? trim($drugs_given_anae_cost[$i]) : 0;
@endphp
<tr>
<td>{{ get_name($drugs_given_anae[$i]['id'], 'id', 'name', 'drugs') }}</td>
<td>{{ $drugs_given_anae[$i]['dose'] ?? "" }} {{ get_name($drugs_given_anae[$i]['unit'], 'id', 'name', 'drug_units') }}</td>
<td>{{ ugandan_shillings($cost) }}</td>
<td>
@if(in_array($drugs_given_anae[$i]['id'], $do_not_bill_other_drugs))
<a class="btn btn-sm btn-rounded btn-success" href="/anaesthetics/add_drug_to_inpatient_bill/{{ $id }}/{{ $drugs_given_anae[$i]['id'] }}">Add to inpatient bill</a>
@else
<a class="btn btn-sm btn-rounded btn-danger" href="/anaesthetics/remove_drug_from_inpatient_bill/{{ $id }}/{{ $drugs_given_anae[$i]['id'] }}">Remove from inpatient bill</a>
@endif
</td>
</tr>
@endfor
</tbody>
</table>
</div>
</div>
@endif
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
//
</script>
@endpush
@@ -0,0 +1,63 @@
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('first_name',__('theatre_surgeries.first_name')) }}
{{ Form::text('first_name','',['class' => 'form-control compulsory','id'=>'asg_first_name']) }}
</div>
<div class="form-group">
{{ Form::label('last_name',__('theatre_surgeries.last_name')) }}
{{ Form::text('last_name','',['class' => 'form-control compulsory','id'=>'asg_last_name']) }}
</div>
<div class="form-group">
{{ Form::label('username',__('theatre_surgeries.username')) }}
{{ Form::text('username','',['class' => 'form-control compulsory', 'id'=>'asg_user_name']) }}
</div>
<div class="form-group">
{{ Form::label('phone',__('theatre_surgeries.phone_number')) }}
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999", 'id'=>'asg_phone_number']) }}
<span class="font-13 text-muted">(07xx) 123-456</span>
</div>
<div class="form-group">
{{ Form::label('email',__('theatre_surgeries.email_address')) }}
{{ Form::email('email','',['class' => 'form-control','id'=>'asg_email']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group council_hide" style="display: block;">
{{ Form::label('registration_number',__('theatre_surgeries.registration_number')) }}
{{ Form::text('registration_number','',['class' => 'form-control','id'=>'asg_registration_number']) }}
</div>
<div class="form-group">
{{ Form::label('position_id',__('theatre_surgeries.position')) }}
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory', 'id'=>'asg_position_id']) }}
</div>
<div class="form-group">
{{ Form::label('pin',__('theatre_surgeries.secret_pin')) }}
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5', 'id'=>'asg_secret_pin']) }}
</div>
<div class="form-group">
{{ Form::label('security_question_id',__('theatre_surgeries.security_question')) }}
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control', 'id'=>'asg_security_question']) }}
</div>
<div class="form-group">
{{ Form::label('security_answer',__('theatre_surgeries.security_answer')) }}
{{ Form::text('security_answer','',['class' => 'form-control','id'=>'asg_security_answer']) }}
</div>
</div>
</div>
@@ -0,0 +1,63 @@
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('first_name',__('theatre_surgeries.first_name')) }}
{{ Form::text('first_name','',['class' => 'form-control compulsory','id'=>'n_first_name']) }}
</div>
<div class="form-group">
{{ Form::label('last_name',__('theatre_surgeries.last_name')) }}
{{ Form::text('last_name','',['class' => 'form-control compulsory','id'=>'n_last_name']) }}
</div>
<div class="form-group">
{{ Form::label('username',__('theatre_surgeries.username')) }}
{{ Form::text('username','',['class' => 'form-control compulsory', 'id'=>'n_user_name']) }}
</div>
<div class="form-group">
{{ Form::label('phone',__('theatre_surgeries.phone_number')) }}
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999", 'id'=>'n_phone_number']) }}
<span class="font-13 text-muted">(07xx) 123-456</span>
</div>
<div class="form-group">
{{ Form::label('email',__('theatre_surgeries.email_address')) }}
{{ Form::email('email','',['class' => 'form-control','id'=>'n_email']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group council_hide" style="display: block;">
{{ Form::label('registration_number',__('theatre_surgeries.registration_number')) }}
{{ Form::text('registration_number','',['class' => 'form-control', 'id'=>'n_registration_number']) }}
</div>
<div class="form-group">
{{ Form::label('position_id',__('theatre_surgeries.position')) }}
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory', 'id'=>'n_position_id']) }}
</div>
<div class="form-group">
{{ Form::label('pin',__('theatre_surgeries.secret_pin')) }}
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5', 'id'=>'n_secret_pin']) }}
</div>
<div class="form-group">
{{ Form::label('security_question_id',__('theatre_surgeries.security_question')) }}
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control', 'id'=>'n_security_question']) }}
</div>
<div class="form-group">
{{ Form::label('security_answer',__('theatre_surgeries.security_answer')) }}
{{ Form::text('security_answer','',['class' => 'form-control','id'=>'n_security_answer']) }}
</div>
</div>
</div>
@@ -0,0 +1,93 @@
@php
$procedure_categories = \Streamline\Models\ProcedureCategory::pluck('name', 'id')
->toArray();
$procedure_categories = ['' => '- select -'] + $procedure_categories;
$chart_of_accounts = \Streamline\Models\ChartOfAccount::orderBy('name', 'asc')
->pluck('name', 'id')
->toArray();
$chart_of_accounts = ['' => '- select -'] + $chart_of_accounts;
$hmis_categories = \DB::table('hmis_categories')->orderBy('title', 'asc')->pluck('title', 'id')->toArray();
$hmis_categories = ['' => '- select -'] + $hmis_categories;
@endphp
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('name', __('procedures.procedure_name')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'id' => 'new_procedure_name']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('non_insured_price', __('procedures.non_insured_price')) }}
{{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory', 'id' => 'new_procedure_non_insured_price']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('insured_price', __('procedures.insured_price')) }}
{{ Form::number('insured_price', 0, ['class' => 'form-control', 'id' => 'new_procedure_insured_price']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('', __('procedures.insurance_coverage'), ["class"=>'col-md-12']) }}
&nbsp;{{ __('procedures.yes') }} {{ Form::radio('insurance', 1, false, ['class' => 'check', 'data-radio'=>'iradio_flat-green', 'id' => 'new_procedure_insured_yes']) }}
&nbsp;{{ __('procedures.no') }} {{ Form::radio('insurance', 0, false, ['class' => 'check', 'data-radio'=>'iradio_flat-green', 'id' => 'new_procedure_insured_no']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('category', __('procedures.category')) }}
{{ Form::select('category', $procedure_categories, null, ['class' => 'form-control compulsory', 'id' => 'new_procedure_category']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('hmis_number', 'HMIS No.') }}
{{ Form::number('hmis_number', '', ['class'=>'form-control', 'id' => 'new_procedure_hmis_number']) }}
</div>
<div class="form-group">
{{ Form::label('account_id',__('procedures.chart_of_account_name')) }}
{{ Form::select('account_id',$chart_of_accounts,'',['class' => 'form-control compulsory', 'id' => 'new_procedure_account_id']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group" id="wrapper">
<div class="row input_fields_wrap1 copy1">
<div class="col-sm-5">
{{ Form::label('hmis_no_outpatient', 'HMIS-out-patient No.') }}
{{ Form::text('hmis_no_outpatient[]', '', ['class'=>'form-control', 'id' => 'new_procedure_hmis_no_outpatient']) }}
</div>
<div class="col-sm-6">
{{ Form::label('hmis_category', 'HMIS category (Out Patient)') }}
{{ Form::select('hmis_category[]', $hmis_categories, '', ['class' => 'form-control', 'id' => 'new_procedure_hmis_category']) }}
</div>
</div>
</div>
<!-- <a class="add_field_hmis" style="color: blue;">{{ __('procedures.add_more') }}</a><br><br> -->
<div class="form-group">
<div class="row input_fields_wrap2 copy2">
<div class="col-sm-5">
{{ Form::label('hmis_no_inpatient', __('diagnoses.hmis_inpatient_category')) }}
{{ Form::text('hmis_no_inpatient', '', ['class'=>'form-control', 'id' => 'new_procedure_hmis_no_inpatient']) }}
</div>
<div class="col-sm-6">
{{ Form::label('hmis_category_inpatient', 'HMIS category (In Patient)') }}
{{ Form::select('hmis_category_inpatient', $hmis_categories, '', ['class' => 'form-control', 'id' => 'new_procedure_hmis_category_inpatient']) }}
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,63 @@
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('first_name',__('theatre_surgeries.first_name')) }}
{{ Form::text('first_name','',['class' => 'form-control compulsory','id'=>'sn_first_name']) }}
</div>
<div class="form-group">
{{ Form::label('last_name',__('theatre_surgeries.last_name')) }}
{{ Form::text('last_name','',['class' => 'form-control compulsory','id'=>'sn_last_name']) }}
</div>
<div class="form-group">
{{ Form::label('username',__('theatre_surgeries.username')) }}
{{ Form::text('username','',['class' => 'form-control compulsory', 'id'=>'sn_user_name']) }}
</div>
<div class="form-group">
{{ Form::label('phone',__('theatre_surgeries.phone_number')) }}
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999", 'id'=>'sn_phone_number']) }}
<span class="font-13 text-muted">(07xx) 123-456</span>
</div>
<div class="form-group">
{{ Form::label('email',__('theatre_surgeries.email_address')) }}
{{ Form::email('email','',['class' => 'form-control','id'=>'sn_email']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group council_hide" style="display: block;">
{{ Form::label('registration_number',__('theatre_surgeries.registration_number')) }}
{{ Form::text('registration_number','',['class' => 'form-control','id'=>'sn_registration_number']) }}
</div>
<div class="form-group">
{{ Form::label('position_id',__('theatre_surgeries.position')) }}
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory', 'id'=>'sn_position_id']) }}
</div>
<div class="form-group">
{{ Form::label('pin',__('theatre_surgeries.secret_pin')) }}
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5', 'id'=>'sn_secret_pin']) }}
</div>
<div class="form-group">
{{ Form::label('security_question_id',__('theatre_surgeries.security_question')) }}
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control', 'id'=>'sn_security_question']) }}
</div>
<div class="form-group">
{{ Form::label('security_answer',__('theatre_surgeries.security_answer')) }}
{{ Form::text('security_answer','',['class' => 'form-control','id'=>'sn_security_answer']) }}
</div>
</div>
</div>
@@ -0,0 +1,65 @@
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('first_name',__('theatre_surgeries.first_name')) }}
{{ Form::text('first_name','',['class' => 'form-control compulsory','id'=>'ss_first_name']) }}
</div>
<div class="form-group">
{{ Form::label('last_name',__('theatre_surgeries.last_name')) }}
{{ Form::text('last_name','',['class' => 'form-control compulsory','id'=>'ss_last_name']) }}
</div>
<div class="form-group">
{{ Form::label('username',__('theatre_surgeries.username')) }}
{{ Form::text('username','',['class' => 'form-control compulsory', 'id'=>'ss_user_name']) }}
</div>
<div class="form-group">
{{ Form::label('phone',__('theatre_surgeries.phone_number')) }}
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999", 'id'=>'ss_phone_number']) }}
<span class="font-13 text-muted">(07xx) 123-456</span>
</div>
<div class="form-group">
{{ Form::label('email',__('theatre_surgeries.email_address')) }}
{{ Form::email('email','',['class' => 'form-control','id'=>'ss_email']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group council_hide" style="display: block;">
{{ Form::label('registration_number',__('theatre_surgeries.registration_number')) }}
{{ Form::text('registration_number','',['class' => 'form-control','id'=>'ss_registration_number']) }}
</div>
<div class="form-group">
{{ Form::label('position_id',__('theatre_surgeries.position')) }}
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory', 'id'=>'ss_position_id']) }}
</div>
<div class="form-group">
{{ Form::label('pin',__('theatre_surgeries.secret_pin')) }}
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5', 'id'=>'ss_secret_pin']) }}
</div>
<div class="form-group">
{{ Form::label('security_question_id',__('theatre_surgeries.security_question')) }}
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control', 'id'=>'ss_security_question']) }}
</div>
<div class="form-group">
{{ Form::label('security_answer',__('theatre_surgeries.security_answer')) }}
{{ Form::text('security_answer','',['class' => 'form-control','id'=>'ss_security_answer']) }}
</div>
</div>
</div>
@@ -0,0 +1,63 @@
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('first_name',__('theatre_surgeries.first_name')) }}
{{ Form::text('first_name','',['class' => 'form-control compulsory','id'=>'sg_first_name']) }}
</div>
<div class="form-group">
{{ Form::label('last_name',__('theatre_surgeries.last_name')) }}
{{ Form::text('last_name','',['class' => 'form-control compulsory','id'=>'sg_last_name']) }}
</div>
<div class="form-group">
{{ Form::label('username',__('theatre_surgeries.username')) }}
{{ Form::text('username','',['class' => 'form-control compulsory', 'placeholder'=>'eg Admin', 'id'=>'sg_user_name']) }}
</div>
<div class="form-group">
{{ Form::label('phone',__('theatre_surgeries.phone_number')) }}
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999", 'id'=>'sg_phone_number']) }}
<span class="font-13 text-muted">(07xx) 123-456</span>
</div>
<div class="form-group">
{{ Form::label('email',__('theatre_surgeries.email_address')) }}
{{ Form::email('email','',['class' => 'form-control','id'=>'sg_email']) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group council_hide" style="display: block;">
{{ Form::label('registration_number',__('theatre_surgeries.registration_number')) }}
{{ Form::text('registration_number','',['class' => 'form-control','id'=>'sg_registration_number']) }}
</div>
<div class="form-group">
{{ Form::label('position_id',__('theatre_surgeries.position')) }}
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory', 'id'=>'sg_position_id']) }}
</div>
<div class="form-group">
{{ Form::label('pin',__('theatre_surgeries.secret_pin')) }}
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5', 'id'=>'sg_secret_pin']) }}
</div>
<div class="form-group">
{{ Form::label('security_question_id',__('theatre_surgeries.security_question')) }}
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control', 'id'=>'sg_security_question']) }}
</div>
<div class="form-group">
{{ Form::label('security_answer',__('theatre_surgeries.security_answer')) }}
{{ Form::text('security_answer','',['class' => 'form-control','id'=>'sg_security_answer']) }}
</div>
</div>
</div>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,186 @@
@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-7">
<h4 class="page-title">
{{ __('surgery.details_of_surgery') }}
</h4>
</div>
<div class="col-md-5">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('home.dashboard') }}</a></li>
<li class="active">{{ __('surgery.view') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
<div class="white-box">
<div class="row">
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('surgery.item') }}</th>
<th>{{ __('surgery.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('surgery.surgery_performed') }}</td>
<td>
@php
$procedures_array = explode(",", $surgery->procedure_id);
@endphp
@for ($i = 0; $i < count($procedures_array); $i++)
- {{ get_name($procedures_array[$i],'id','name','procedures') }}<br>
@endfor
</td>
</tr>
<tr>
<td>{{ __('surgery.date') }}</td>
<td>{{ streamline_date($surgery->created_at) }}</td>
</tr>
<tr>
<td>{{ __('surgery.time_of_commencement') }}</td>
<td>{{ get_name($surgery->anaesthesia_id,'id','time_commenced','anaesthesias') }}</td>
</tr>
<tr>
<td>{{ __('surgery.surgeon') }}</td>
<td>{{ is_numeric($surgery->surgeon) ? get_full_name($surgery->surgeon, 'id', 'first_name', 'last_name', 'users') : $surgery->surgeon }}</td>
</tr>
<tr>
<td>{{ __('surgery.theatre') }}</td>
<td>{{ get_name($surgery->theatre_location, 'id', 'name', 'theatre_locations') }} </td>
</tr>
<tr>
<td>{{ __('surgery.theatre_incharge') }}</td>
<td>{{ is_numeric($surgery->theatre_in_charge) ? get_full_name($surgery->theatre_in_charge, 'id', 'first_name', 'last_name', 'users') : $surgery->theatre_in_charge }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('surgery.item') }}</th>
<th>{{ __('surgery.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('surgery.assistant_surgeon') }}</td>
<td>{{ get_full_name($surgery->assistant_surgeon, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('surgery.scrub_nurse') }}</td>
<td>{{ get_full_name($surgery->scrub_nurse, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('surgery.other_scrub_staff') }}</td>
<td>{{ get_full_name($surgery->other_scrub_staff, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<td>{{ __('surgery.primary_diagnosis') }}</td>
<td>{{ isset($diagnoses[$surgery->primary_diagnosis]) ? $diagnoses[$surgery->primary_diagnosis] : "" }}</td>
</tr>
<tr>
<td>{{ __('surgery.other_diagnoses') }}</td>
<td>
@php
$other_diagnoses_array = @unserialize($surgery->other_diagnoses);
@endphp
@if(!empty($other_diagnoses_array) && $other_diagnoses_array[0] != "")
@foreach($other_diagnoses_array as $diagnosis)
<ul>
@if($diagnosis != "")
<li>{{ $diagnoses[$diagnosis] }}</li>
@endif
</ul>
@endforeach
@endif
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-4">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-bordered">
<thead>
<tr>
<th>{{ __('surgery.item') }}</th>
<th>{{ __('surgery.details') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ __('surgery.estimated_blood_loss') }}</td>
<td>{{ $surgery->estimated_blood_loss }}</td>
</tr>
<tr>
<td>{{ __('surgery.number_of_vicryl_sutures_used') }}</td>
<td>{{ $surgery->vicryl_sutures_used }}</td>
</tr>
<tr>
<td>{{ __('surgery.other_sutures_used') }}</td>
<td>{{ $surgery->other_sutures_used }} </td>
</tr>
<tr>
<td>{{ __('surgery.outcome') }}</td>
<td>{{ (is_numeric($surgery->outcome)) ? get_name($surgery->outcome, 'id', 'name', 'outcomes') : "Not Available" }}</td>
</tr>
<tr>
<td>{{ __('surgery.time_surgery_completed') }}</td>
<td>{{ streamline_time($surgery->time_surgery_completed)}}</td>
</tr>
<tr>
<td>{{ __('surgery.date_of_surgery') }}</td>
<td>{{ streamline_date($surgery->date_surgery_completed) }}</td>
</tr>
<tr>
<td>{{ __('surgery.comments') }}</td>
<td>{!! nl2br(e($surgery->comments)) !!}</td>
</tr>
<tr>
<td>
</td>
<td>
<a class="btn btn-sm btn-info" href="/theatre_surgery/{{ $surgery->id }}/edit">Edit Details</a>
<a class="btn btn-primary btn-sm" href="{{ url('surgery_print') }}/{{ $surgery->id }}" target="_blank" id="print_btn"><i class="fa fa-print"></i>&nbsp;Print</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
//
</script>
@endpush
@@ -0,0 +1,122 @@
@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-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">Theatre Drugs Stock Sheet</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">Theatre Drugs Stock Sheet</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-sm-12">
<form action="{{ route('theatre.update_drugs_stock_sheet') }}" method="POST" name="stock_form" id="stock_form" style="width: 100%">
{{ csrf_field() }}
<input type="hidden" name="theatre_ward_id" value="{{ $theatre_ward_id }}">
<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-hover table-striped">
<thead>
<tr>
<th>Drug Name</th>
<th>Theatre Stock</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Drug Name</th>
<th>Theatre Stock</th>
</tr>
</tfoot>
<tbody>
@foreach($ward_stock_records as $record)
@php
$drug = \Streamline\Models\Drug::withTrashed()->find($record->item_id);
@endphp
<tr>
<td>
@if($drug->insurance_coverage == 1)
<span style="color: green;"> {{ $drug->name }} </span>
@else
<span style="color: orange;"> {{ $drug->name }} </span>
@endif
</td>
<td>
<div class="shown_input">
{{ $record->ward_item_stock }}
</div>
<div class="hidden_input" style="display: none;">
<input type="hidden" name="drug_id[]" value="{{ $drug->id }}">
<input type="text" name="quantity[]" class="form-control" value="{{ $record->ward_item_stock }}">
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
<div style="padding: 10px; float: right;">
<button class="btn btn-rounded btn-default" id="cancel_edit" style="display: none;">Cancel</button>
<button class="btn btn-rounded btn-success" id="edit_stock">Edit stock</button>
<input type="submit" value="Save stock" class="btn btn-rounded btn-success" id="save_stock" style="display: none;">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 100,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
$('#edit_stock').click(function(e){
e.preventDefault();
$('.hidden_input,#save_stock').show();
$('.shown_input').hide();
$(this).hide();
});
$('.expiry_date_input').datepicker({
autoclose: true,
todayHighlight: true,
format: 'yyyy-mm-dd',
});
</script>
@endpush
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,67 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
@endpush
@section('content')
<div class="row bg-title">
<div class="col-md-7">
<h4 class="page-title">{{ __('theatre_surgeries.view_surgery_history') }}</h4>
</div>
<div class="col-md-5">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('home.dashboard') }}</a></li>
<li class="active">{{ __('surgery.view') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('patients::allergies.header')
</div>
</div>
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table">
<thead>
<th>{{ __('surgery.surgery_performed') }}</th>
<th>{{ __('surgery.surgeon') }}</th>
<th>{{ __('theatre_surgeries.anaesthetist') }}</th>
<th>{{ __('surgery.time_surgery_completed') }}</th>
<th>{{ __('surgery.date_of_surgery') }}</th>
<th></th>
</thead>
<tbody>
@foreach($surgeries as $item)
<tr>
<td>
@php
$procedures_array = explode(",", $item->procedure_id);
@endphp
@for ($i = 0; $i < count($procedures_array); $i++)
- {{ get_name($procedures_array[$i],'id','name','procedures') }}<br>
@endfor
</td>
<td>{{ get_full_name($item->surgeon, 'id', 'first_name', 'last_name', 'users') }}</td>
<td>{{ get_full_name(get_name($item->anaesthesia_id,'id','anaesthetist','anaesthesias'),'id','first_name','last_name','users') }}</td>
<td>{{ streamline_date_time($item->time_surgery_completed) }}</td>
<td>{{ streamline_date($item->created_at) }}</td>
<td><a class="btn btn-sm btn-info" href="{{ route('theatre_surgery.details', $item->id) }}">{{ __('surgery.details') }}</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@@ -0,0 +1,122 @@
@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-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">Theatre Sundries Stock Sheet</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">Theatre Sundries Stock Sheet</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
<div class="row">
<div class="col-sm-12">
<form action="{{ route('theatre.update_sundries_stock_sheet') }}" method="POST" name="stock_form" id="stock_form" style="width: 100%">
{{ csrf_field() }}
<input type="hidden" name="theatre_ward_id" value="{{ $theatre_ward_id }}">
<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-hover table-striped">
<thead>
<tr>
<th>Sundry Name</th>
<th>Theatre Stock</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Sundry Name</th>
<th>Theatre Stock</th>
</tr>
</tfoot>
<tbody>
@foreach($ward_stock_records as $record)
@php
$sundry = \Streamline\Models\Sundry::withTrashed()->find($record->item_id);
@endphp
<tr>
<td>
@if($sundry->insurance_coverage == 1)
<span style="color: green;"> {{ $sundry->name }} </span>
@else
<span style="color: orange;"> {{ $sundry->name }} </span>
@endif
</td>
<td>
<div class="shown_input">
{{ $record->ward_item_stock }}
</div>
<div class="hidden_input" style="display: none;">
<input type="hidden" name="sundry_id[]" value="{{ $sundry->id }}">
<input type="text" name="quantity[]" class="form-control" value="{{ $record->ward_item_stock }}">
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
<div style="padding: 10px; float: right;">
<button class="btn btn-rounded btn-default" id="cancel_edit" style="display: none;">Cancel</button>
<button class="btn btn-rounded btn-success" id="edit_stock">Edit stock</button>
<input type="submit" value="Save stock" class="btn btn-rounded btn-success" id="save_stock" style="display: none;">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
$('.table').DataTable({
dom: 'Bfrtip',
pageLength: 100,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
$('#edit_stock').click(function(e){
e.preventDefault();
$('.hidden_input,#save_stock').show();
$('.shown_input').hide();
$(this).hide();
});
$('.expiry_date_input').datepicker({
autoclose: true,
todayHighlight: true,
format: 'yyyy-mm-dd',
});
</script>
@endpush
@@ -0,0 +1,200 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
<title>{{ config('app.name', 'Theatre Details - Stre@mline') }}</title>
<!-- Bootstrap Core CSS -->
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<style style="text-css">
thead {
display: table-header-group;
}
tfoot {
display: table-row-group;
}
tr {
page-break-before: always;
page-break-after: always;
page-break-inside: avoid;
}
</style>
</head>
<body>
<div class="container-fluid">
@include('layouts.header_pdf_print')
<h5 class="heading" style="text-align: center;">
{{ __('surgery.surgery_details') }} : <span style="color: #0000FF">{{ streamline_date($surgery->created_at) }}</span>
</h5>
<br>
@php
$total_amount_to_pay = 0;
@endphp
<div class="row">
<table class="table table-light table-sm table-borderless">
<tr>
<th scope="row">{{ __('surgery.patient_number') }}</th>
<td>{{ $patient->number}}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('surgery.theatre_location') }}</th>
<td>
{{ get_name($surgery->theatre_location , 'id', 'name', 'theatre_locations') }}
</td>
</tr>
<tr>
<th scope="row">{{ __('surgery.patient_names') }}</th>
<td>{{ $patient->first_name}} {{ $patient->last_name}}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('inpatient.age') }}</th>
<td>
{{ get_patients_age($patient->date_of_birth) }}
</td>
</tr>
<tr>
<th scope="row">{{ __('inpatient.residence') }}</th>
<td>{{ patient_residence($patient->id) }}</td>
<td width="60" style="border-top: 0px;">&nbsp;</td>
<th>{{ __('inpatient.gender') }}</th>
<td>
{{ $patient->gender == 1 ? __('inpatient.male') : __('inpatient.female') }}
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-6">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<th>{{ __('surgery.surgery_performed') }}</th>
<td>
@php
$procedures_array = explode(",", $surgery->procedure_id);
@endphp
@for ($i = 0; $i < count($procedures_array); $i++)
- {{ get_name($procedures_array[$i],'id','name','procedures') }}<br>
@endfor
</td>
</tr>
<tr>
<th>{{ __('surgery.primary_diagnosis') }}</th>
<td>{{ isset($diagnoses[$surgery->primary_diagnosis]) ? $diagnoses[$surgery->primary_diagnosis] : "" }}</td>
</tr>
<tr>
<th>{{ __('surgery.other_diagnoses') }}</th>
<td>
@php
$other_diagnoses_array = @unserialize($surgery->other_diagnoses);
@endphp
@if(!empty($other_diagnoses_array) && $other_diagnoses_array[0] != "")
@foreach($other_diagnoses_array as $diagnosis)
<ul>
@if($diagnosis != "")
<li>{{ $diagnoses[$diagnosis] }}</li>
@endif
</ul>
@endforeach
@endif
</td>
</tr>
<tr>
<th>{{ __('surgery.date') }}</th>
<td>{{ streamline_date($surgery->created_at) }}</td>
</tr>
<tr>
<th>{{ __('surgery.time_of_commencement') }}</th>
<td>{{ get_name($surgery->anaesthesia_id,'id','time_commenced','anaesthesias') }}</td>
</tr>
<tr>
<th>{{ __('surgery.surgeon') }}</th>
<td>{{ is_numeric($surgery->surgeon) ? get_full_name($surgery->surgeon, 'id', 'first_name', 'last_name', 'users') : $surgery->surgeon }}</td>
</tr>
<tr>
<th>{{ __('surgery.theatre') }}</th>
<td>{{ get_name($surgery->theatre_location, 'id', 'name', 'theatre_locations') }} </td>
</tr>
<tr>
<th>{{ __('surgery.theatre_incharge') }}</th>
<td>{{ is_numeric($surgery->theatre_in_charge) ? get_full_name($surgery->theatre_in_charge, 'id', 'first_name', 'last_name', 'users') : $surgery->theatre_in_charge }}</td>
</tr>
<tr>
<th>{{ __('surgery.assistant_surgeon') }}</th>
<td>{{ get_full_name($surgery->assistant_surgeon, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-6">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<th>{{ __('surgery.scrub_nurse') }}</th>
<td>{{ get_full_name($surgery->scrub_nurse, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th>{{ __('surgery.other_scrub_staff') }}</th>
<td>{{ get_full_name($surgery->other_scrub_staff, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th>{{ __('surgery.estimated_blood_loss') }}</th>
<td>{{ $surgery->estimated_blood_loss }}</td>
</tr>
<tr>
<th>{{ __('surgery.anaesthesia_duration') }}</th>
<td>{{ $surgery->anaesthesia_duration }}</td>
</tr>
<tr>
<th>{{ __('surgery.anaesthesia') }}</th>
<td>{{ is_null($surgery->anaesthesia_id) ? "None Given" : get_name(get_name($surgery->anaesthesia_id, "id", "anaesthesia_type", "anaesthesias"), "id", "name", "procedures") }} </td>
</tr>
<tr>
<th>{{ __('surgery.outcome') }}</th>
<td>{{ (is_numeric($surgery->outcome)) ? get_name($surgery->outcome, 'id', 'name', 'outcomes') : "Not Available" }}</td>
</tr>
<tr>
<th>{{ __('surgery.time_surgery_completed') }}</th>
<td>{{ streamline_time($surgery->time_surgery_completed)}}</td>
</tr>
<tr>
<th>{{ __('surgery.date_of_surgery') }}</th>
<td>{{ streamline_date($surgery->date_surgery_completed) }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<br><br>
<b>{{ __('surgery.comments') }}</b>
<div class="row">
<div class="col-12">
<table class="table color-bordered-table success-bordered-table table-bordered">
<tbody>
<tr>
<td>
{!! nl2br(e($surgery->comments)) !!}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>