@extends('layouts.main') @push('styles') @endpush @section('content')

Theatre module - anaesthetics

@include('patients::allergies.header')
@include('flash::message') @foreach ($errors->all() as $error)
{{ $error }}
@endforeach

EDIT ANAESTHESIA


{{ Form::model($anaesthesia_record,['method' => 'PUT','route' => ['anaesthetics.update',$anaesthesia_record->id],'data-toggle'=>'validator']) }}
{{ __('inpatient.primary_diagnosis') }} {{ __('inpatient.prompt') }} {{ __('inpatient.references') }}
{{ Form::select('primary_diagnosis', $diagnoses, $anaesthesia_record ? $anaesthesia_record->primary_diagnosis : "", ['class' => 'form-control select col-sm-12 compulsory', 'required', 'id' => 'primary_diagnosis']) }}
{{ (isset($anaesthesia_record->primary_diagnosis) && $anaesthesia_record->primary_diagnosis != 0) ? $diagnoses_all->firstWhere('id',$anaesthesia_record->primary_diagnosis)->prompts : "" }} 
@if(!is_null($anaesthesia_record) && $anaesthesia_record->primary_diagnosis != 0) @php $reference_names = explode(",", get_name($anaesthesia_record->primary_diagnosis, 'id', 'reference_names', 'diagnoses')); $reference_areas = explode(",", get_name($anaesthesia_record->primary_diagnosis, 'id', 'reference_areas', 'diagnoses')); @endphp @for($i = 0; $i < count($reference_names); $i++) @if(isset($reference_areas[$i]) && isset($reference_names[$i])) {{ $reference_names[$i] }} | @endif @endfor @endif

@php $other_diagnoses = []; if($anaesthesia_record){ $other_diagnoses = @unserialize($anaesthesia_record->other_diagnoses); } @endphp @if(empty($other_diagnoses)) @else @foreach($other_diagnoses as $diagnosis) @endforeach @endif
# {{ __('inpatient.other_diagnosis') }} {{ __('inpatient.prompt') }} {{ __('inpatient.references') }}
{{ Form::select('other_diagnosis[]', $diagnoses, '', ['class' => 'form-control col-sm-12 sec_d']) }}
 
 
{{ Form::select('other_diagnosis[]', $diagnoses, $diagnosis, ['class' => 'form-control col-sm-12 select sec_d']) }}
{{ is_object($diagnoses_all->firstWhere('id',$diagnosis)) ? $diagnoses_all->firstWhere('id',$diagnosis)->prompts : '' }} 
{{ is_object($diagnoses_all->firstWhere('id',$diagnosis)) ? $diagnoses_all->firstWhere('id',$diagnosis)->reference_names : '' }} 
{{ __('inpatient.add_row') }} {{ __('inpatient.delete_row') }}
@php $surgery_complete = false; @endphp @if(!is_null($surgery_done)) @php $surgery_complete = true; @endphp @endif {{ Form::hidden('patient_id', $patient_id) }} {{ Form::hidden('episode_id', $episode_id) }}


{{ Form::label('procedure_id','Surgical procedure') }} {{ Form::select('procedure_id', $procedures, $anaesthesia_record->procedure_id,['class' => 'form-control compulsory', 'required', 'data-error'=>'','id'=>'procedure_id']) }}
{{ Form::label('anaesthetist','Anaesthetist') }} {{ Form::select('anaesthetist',$all_staff,$anaesthesia_record->anaesthetist,['class' => 'form-control compulsory', 'required', 'data-error'=>'','id'=>'anaesthetist']) }}
add new doctor
{{ Form::label('anaesthetic_commence_time','Time anaesthesia commenced') }} {{ Form::time('anaesthetic_commence_time',$anaesthesia_record->time_commenced,['class' => 'form-control compulsory', 'required', 'data-error'=>'','id'=>'anaesthetic_commence_time']) }}
{{ Form::label('mallampati_score',__('anaesthetics.mallampati_score')) }} (Click To View Mallampati Details)
{{ Form::label('asa_classfication',__('anaesthetics.asa_classification')) }} (Click To View ASA Classification Details)
@php $sundries_unserialized_array = @unserialize($anaesthesia_record->sundries_used); $used_sundries_ids_array = isset($sundries_unserialized_array['sundries']) ? $sundries_unserialized_array['sundries'] : []; $used_sundries_quantities_array = isset($sundries_unserialized_array['quantity']) ? $sundries_unserialized_array['quantity'] : []; @endphp @if(!empty($used_sundries_ids_array)) @for($i=0; $i < count($used_sundries_ids_array) ; $i++)
{{ Form::label('sundries_used','Sundries used') }} {{ Form::select('sundries_used[]',$sundries_array,$used_sundries_ids_array[$i],['class' => 'form-control sundries_sutures', 'data-error'=>'']) }}
{{ Form::label('sundries_quantity_used','Quantity used') }} {{ Form::number('sundries_quantity_used[]',$used_sundries_quantities_array[$i],['class' => 'form-control', 'data-error'=>'']) }}
@endfor @else
{{ Form::label('sundries_used','Sundries used') }} {{ Form::select('sundries_used[]',$sundries_array,'',['class' => 'form-control sundries_sutures', 'data-error'=>'','id'=>'vicryl_sutures_used']) }}
{{ Form::label('sundries_quantity_used','Quantity used') }} {{ Form::number('sundries_quantity_used[]','',['class' => 'form-control', 'data-error'=>'']) }}
@endif
Add other sundries used

@php $theatre_extras_used = @unserialize($anaesthesia_record->extras_used); $extras_array = isset($theatre_extras_used['extras']) ? $theatre_extras_used['extras'] : []; $extras_cost_array = isset($theatre_extras_used['cost']) ? $theatre_extras_used['cost'] : []; @endphp @if(count($extras_array) > 0) @for($j = 0; $j < count($extras_array); $j++)
{{ Form::label('extras_used','Extras used') }} {{ Form::text('extras_used[]','',['class' => 'form-control', 'data-error'=>'']) }}
{{ Form::label('extras_cost','Cost') }} {{ Form::number('extras_cost[]',$extras_cost_array[$j],['class' => 'form-control', 'data-error'=>'']) }}
@endfor @else
{{ Form::label('extras_used','Extras used') }} {{ Form::text('extras_used[]','',['class' => 'form-control', 'data-error'=>'']) }}
{{ Form::label('extras_cost','Cost') }} {{ Form::number('extras_cost[]','',['class' => 'form-control', 'data-error'=>'']) }}
@endif
Add other extras used

{{ Form::select('drugs[]', $drugs, '', ['class' => 'form-control select','style'=>'margin-bottom: 5px;']) }}
{{ Form::number('dose[]', '', ['class' => 'form-control']) }}
{{ Form::select("units[]", $units, "", ["class" => "form-control select"]) }}


{{ Form::label('checklist_confirmed_by','WHO Safe Surgery Checklist confirmed by') }} {{ Form::select('checklist_confirmed_by',$all_staff,$anaesthesia_record->checklist_confirmed_by,['class' => 'form-control compulsory', 'required', 'data-error'=>'','id' => 'checklist_confirmed_by']) }}
add new nurse
{{ Form::label('anaesthesia_type','Type of anaesthesia') }} {{ Form::select('anaesthesia_type',$anaesthesia_types, $anaesthesia_record->anaesthesia_type,['class' => 'form-control compulsory', 'required', 'data-error'=>'','id' => 'anaesthesia_type']) }}
@php $anaesthesia_type = $anaesthesia_record->anaesthesia_type; $procedure = \Streamline\Models\Procedure::find($anaesthesia_type); $procedure_slug = $procedure->slug; $induction_array = $anaesthesia_record->induction ? explode(",", $anaesthesia_record->induction) : []; @endphp @if($procedure_slug == "General")
{{ Form::label('induction','Induction') }} {{ Form::select('induction[]',$anaesthesia_inductions,$induction_array, ['class' => 'form-control', 'id' => 'induction', 'multiple' => 'true']) }}
@else @endif
@php $anaesthesia_checklist = unserialize($anaesthesia_record->anaesthesia_checklist); @endphp
Adrenaline Atropine Diazepam
Ergometrine Ephedrine Hydralazine
Misoprostol Oxygen Oxytocin
Paracetamol Suppository Tranexamic acid

{{ Form::label('antibiotics','Antibiotics') }} @php $antibiotics_array = explode(',', $anaesthesia_record->antibiotics); @endphp
@if(!empty($antibiotics_array)) @for($i = 0; $i < count($antibiotics_array); $i++) {{ Form::select('antibiotics[]',$anti_biotics,$antibiotics_array[$i],['class' => 'form-control compulsory antibiotics', 'required', 'data-error'=>'', 'style' => 'width: 85%; display: inline-block']) }} @endfor @else {{ Form::select('antibiotics[]',$anti_biotics,'',['class' => 'form-control compulsory antibiotics', 'required', 'data-error'=>'', 'style' => 'width: 85%; display: inline-block']) }} @endif Add +
{{ Form::label('airway','Airway') }} {{ Form::select('airway', $airways, $anaesthesia_record->airway,['class' => 'form-control compulsory', 'required', 'data-error'=>'','id' => 'airway']) }}
Add new
@if($procedure_slug == "General")
{{ Form::label('ett','ETT (mm)') }} {{ Form::select('ett',$anaesthesia_etts,$anaesthesia_record->ETT,['class' => 'form-control', 'data-error'=>'','id' => 'ett']) }}
@else @endif @php $agent_used_array = $anaesthesia_record->agent_used ? explode(",", $anaesthesia_record->agent_used) : []; $technique_array = $anaesthesia_record->technique ? explode(",", $anaesthesia_record->technique) : []; @endphp


@if($procedure_slug == "General" || $procedure_slug == "Regional" || $procedure_slug == "Local" || $procedure_slug == "Spinal") @php $monitoring_signs = unserialize($anaesthesia_record->monitoring_signs); @endphp
MONITORING in addition to routine manual pulse, respiration,bp,auscultation in all patients.
Continuous SaO2
Intermittent SaO2
Full vital signs monitor
End tidal CO2

@else @endif @if($procedure_slug == "Spinal")
{{ Form::label('needle_type','Type of needle used') }} {{ Form::select('needle_type',$needle_types,$anaesthesia_record->needle_type,['class' => 'form-control', 'data-error'=>'','id' => 'needle_type']) }}
@php $agent_used_array = $anaesthesia_record->agent_used ? explode(",", $anaesthesia_record->agent_used) : []; $technique_array = $anaesthesia_record->technique ? explode(",", $anaesthesia_record->technique) : []; @endphp
{{ Form::label('agent_used','Agent used') }} {{ Form::select('agent_used',$anaesthetic_agents,$agent_used_array,['class' => 'form-control', 'multiple'=>'true','id' => 'agent_used']) }}
{{ Form::label('volume_administered','Volume administered (mls)') }} {{ Form::number('volume_administered',$anaesthesia_record->volume_administered,['class' => 'form-control compulsory', 'step'=>'0.1','id' => 'volume_administered']) }}
@else @endif @if($procedure_slug == "General")
{{ Form::label('muscle_relaxant','Muscle relaxants') }} {{ Form::select('muscle_relaxant',$muscle_relaxants,$anaesthesia_record->muscle_relaxant,['class' => 'form-control', 'data-error'=>'','id' => 'muscle_relaxant']) }}
{{ Form::label('volatile_liquid_anaethetics', __('anaesthetics.volatile_liquid_anaethetics')) }} {{ Form::select('volatile_liquid_anaethetics',$volatile_liquid_anaethetics,$anaesthesia_record->volatile_liquid_anaethetics,['class' => 'form-control', 'data-error'=>'','id' => 'volatile_liquid_anaethetics']) }}
{{ Form::label('volatile_liquid_anaesthetic_used',__('anaesthetics.volatile_liquid_anaesthetic_used')) }} {{ Form::number('volatile_liquid_anaesthetic_used',$anaesthesia_record->volatile_liquid_anaesthetic_used,['class' => 'form-control compulsory', 'step'=>'0.1','id' => 'volatile_liquid_anaesthetic_used']) }}
@else @endif
@php $analgesic_array = explode(",", $anaesthesia_record->analgesic); @endphp {{ Form::label('analgesic','Analgesics') }} {{ Form::select('analgesic[]',$analgesics,$analgesic_array,['class' => 'form-control', 'data-error'=>'','id' => 'analgesic', 'multiple' => 'true']) }}
add new
@php $iv_fluids_array = unserialize($anaesthesia_record->iv_fluids); $fluids_array = []; $units_array = []; if(!empty($iv_fluids_array)){ $fluids_array = $iv_fluids_array['iv_fluids']; $units_array = $iv_fluids_array['units']; } @endphp
Iv fluids given during surgery
@foreach($iv_fluid_ids as $k => $v) @endforeach @if(!empty($iv_fluids_array)) @for($i=0; $i < count($iv_fluids_array); $i++) {{ Form::select('iv_fluid_id[]',$iv_fluids,isset($iv_fluids_array[$i]) ? $iv_fluids_array[$i] : '',['class' => 'form-control col-sm-7']) }}   (mls)
@endfor @endif
{{ Form::label('blood_given','Blood given (units)') }} {{ Form::number('blood_given',$anaesthesia_record->blood_given,['class' => 'form-control compulsory', 'step'=>'0.1','id' => 'blood_given']) }}
{{ Form::label('comments','Comments') }} {{ Form::textarea('comments',$anaesthesia_record->comments,['class' => 'form-control', 'data-error'=>'','cols'=>'4']) }}
If any risks identified for future procedures, please note them in Alerts box on top of Patient Home page.

@endsection @push('scripts') @endpush