mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
940 lines
54 KiB
PHP
Executable File
940 lines
54 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<style type="text/css">
|
|
#t_header th {
|
|
background-color: #708090;
|
|
color: #000;
|
|
}
|
|
|
|
.color-tr{
|
|
background: #FFFF99;
|
|
}
|
|
|
|
.admitted_row_color{
|
|
background: #d9edf7;
|
|
}
|
|
|
|
.theatre_row_color{
|
|
background: #f2e6ff;
|
|
}
|
|
|
|
.appointment_row_color{
|
|
background: #e4e0a8;
|
|
}
|
|
|
|
.aTable tr {
|
|
background-color: #DDD;
|
|
}
|
|
|
|
.table_no_padding td{
|
|
padding: 4px;
|
|
}
|
|
</style>
|
|
@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">{{ __('patient_episode.patient_episodes') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('patient_episode.dashboard') }}</a></li>
|
|
<li><a href="{{ route('patients.index') }}">{{ __('patient_episode.patients') }}</a></li>
|
|
<li class="active">{{ __('patient_episode.episodes') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('patients::allergies.header')
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('patients::patient_episodes.menu')
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
{{ Form::open(['route' => 'patient_episodes.route_patient_episode', 'id' => 'episodesForm']) }}
|
|
|
|
{{ Form::hidden('patient_id', $patient->id, ['id' => 'patient_id']) }}
|
|
|
|
<div class="white-box">
|
|
@include('flash::message')
|
|
@if(Auth::user()->can('merge-patient-episodes'))
|
|
<p>
|
|
<a class="btn btn-warning btn-sm btn-rounded" style="background-color: #d4984a; float:right" target="_blank" href="{{ url('episode_merge_preview') }}"><strong>{{ __('patient_episode.merge_episodes') }}</strong></a><br>
|
|
</p>
|
|
@endif
|
|
<div class="table-responsive">
|
|
<table class="table color-table success-table">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('patient_episode.episode_date') }}</th>
|
|
<th>{{ __('patient_episode.clinic') }}</th>
|
|
<th>{{ __('patient_episode.primary_diagnosis') }}</th>
|
|
<th>{{ __('patient_episode.other_diagnosis') }}</th>
|
|
<th>{{ __('patient_episode.consultation_by') }}</th>
|
|
<th>{{ __('patient_episode.comments') }}</th>
|
|
<th>{{ __('patient_episode.select') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($patient_episodes as $patient_episode)
|
|
@php
|
|
$episode_id = $patient_episode->id;
|
|
$created_at = Carbon\Carbon::parse($patient_episode->created_at);
|
|
$triage_id = $patient_episode->triage_id;
|
|
$anc = \DB::table('ante_natal_clinic_followups')->where([['episode_id', $episode_id],['patient_id', $patient_episode->patient_id]])->first();
|
|
$consultation_id = !empty($anc->primary_diagnosis)? $anc->primary_diagnosis:$patient_episode->consultation_id;
|
|
$primary_diagnosis_id = '';
|
|
$other_diagnoses_ids = '';
|
|
$triage_comment = '';$other_diagnoses_explode =[];
|
|
$consultation_comment = '';
|
|
$clinic = (isset($clinics[$patient_episode->clinic_id]) && !is_null($patient_episode->clinic_id)) ? $clinics[$patient_episode->clinic_id] : '';
|
|
$primary_diagnosis = '';
|
|
$other_diagnoses = '';
|
|
$triage_and_consultation_comments = '';
|
|
@endphp
|
|
|
|
@if (!empty($consultation_id))
|
|
@php
|
|
$primary_diagnosis_id = !empty($anc->primary_diagnosis)? $anc->primary_diagnosis: get_name($consultation_id, 'id', 'primary_diagnosis', 'consultations');
|
|
$other_diagnoses_ids = !empty($anc->other_diagnoses)? explode(',',$anc->other_diagnoses): trim(get_name($consultation_id, 'id', 'other_diagnoses', 'consultations'));
|
|
$consultation_comment = !empty($anc->comments)? trim($anc->comments): trim(get_name($consultation_id, 'id', 'comments', 'consultations'));
|
|
$consultation_comment = clean_streamline_database_output($consultation_comment);
|
|
$triage_comment = !is_null($triage_id) ? trim(get_name($triage_id, 'id', 'comments', 'triage')) : '';
|
|
$triage_and_consultation_comments = '<b>Triage: </b>'.$triage_comment.' '.'<br><b>Consultation: </b>'.$consultation_comment;
|
|
@endphp
|
|
@else
|
|
@php
|
|
$temporary_consultation_id = get_name($patient_episode->id, 'episode_id', 'id', 'temporary_consultations');
|
|
@endphp
|
|
|
|
@if ($temporary_consultation_id != 'N/A')
|
|
@php
|
|
$primary_diagnosis_id = get_name($temporary_consultation_id, 'id', "primary_diagnosis", 'temporary_consultations');
|
|
$other_diagnoses_ids = trim(get_name($temporary_consultation_id, 'id', 'other_diagnoses', 'temporary_consultations'));
|
|
$consultation_comment = trim(get_name($temporary_consultation_id, 'id', 'comments', 'temporary_consultations'));
|
|
@endphp
|
|
@endif
|
|
@endif
|
|
|
|
@php
|
|
$primary_diagnosis = isset($diagnoses[$primary_diagnosis_id]) ? $diagnoses[$primary_diagnosis_id] : '';
|
|
if($other_diagnoses_ids != 'N/A' && $other_diagnoses_ids != '') $other_diagnoses_explode = (!is_array($other_diagnoses_ids))? unserialize($other_diagnoses_ids) : $other_diagnoses_ids;
|
|
$other_diagnoses = "";
|
|
for($s = 0; $s < count($other_diagnoses_explode); $s++) $other_diagnoses .= isset($diagnoses[$other_diagnoses_explode[$s]]) ? $diagnoses[$other_diagnoses_explode[$s]] . ", " : '';
|
|
@endphp
|
|
|
|
<tr id='my_row{{ $episode_id }}'>
|
|
<td>
|
|
<a href="#" style="color: #0099CC">{{ streamline_date_time($patient_episode->created_at) }} </a>
|
|
<br>
|
|
<small>{{ __('patient_episode.started_by') }}</small>
|
|
<small style="color: blue">{{ get_full_name($patient_episode->created_by, "id", "first_name", "last_name", "users") }}</small>
|
|
|
|
@if(check_if_episode_is_a_followup($patient_episode->id))
|
|
@php
|
|
$original_episode = \Streamline\Models\PatientEpisode::find($patient_episode->parent_episode_id);
|
|
@endphp
|
|
<small style="color: green"><br>({{ __('patient_episode.review_from') }} {{ $original_episode ? streamline_date($original_episode->created_at) : '' }})</small>
|
|
@endif
|
|
|
|
@if(Auth::user()->can('delete-empty-episode') && is_episode_safe_to_delete($patient_episode->id))
|
|
<br>
|
|
<br>
|
|
<a class="btn btn-danger btn-sm" href="/patient_episodes/delete_episode/{{ $patient_episode->id }}" onclick="return confirm('Are you sure you want to delete this episode?')">{{ __('patient_episode.remove_episode') }}</a>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if( Auth::user()->can('view-patient-episode-clinic-from-patient-home'))
|
|
{{ $clinic }}
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if( Auth::user()->can('view-patient-episode-primary-diagnoses'))
|
|
{{ $primary_diagnosis }}
|
|
@endif
|
|
</td>
|
|
<td class="hidden-phone">
|
|
@if( Auth::user()->can('view-patient-episode-other-diagnoses'))
|
|
{!! read_more($other_diagnoses, 'other_diagnoses_short' . $patient_episode->id, 'other_diagnoses_long' . $patient_episode->id) !!}
|
|
|
|
<div id="other_diagnoses_long{{ $patient_episode->id }}" style="display: none;">
|
|
{!! $other_diagnoses !!}<br/>
|
|
<a class="read_more" style="color : #0099CC;" onclick= "hide('other_diagnoses_long{{ $patient_episode->id }}');show('other_diagnoses_short{{ $patient_episode->id }}');">{{ __('patient_episode.read_less') }}</a>
|
|
</div>
|
|
@endif
|
|
</td>
|
|
<td class="hidden-phone">
|
|
@php
|
|
$consultation_done_by = !empty($anc->created_by)? $anc->created_by :get_doctor_who_completed_episode_consultation($patient_episode->id);
|
|
@endphp
|
|
|
|
@if(!is_null($consultation_done_by))
|
|
{{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }}
|
|
@endif
|
|
|
|
@if($patient_episode->episode_type == 1)
|
|
<span>{{ __('patient_flow_monitoring.lab_self_request') }}</span>
|
|
@endif
|
|
</td>
|
|
<td class="hidden-phone">
|
|
{!! read_more($triage_and_consultation_comments, 'short_comment' . $patient_episode->id, 'long_comment' . $patient_episode->id) !!}
|
|
|
|
<div id="long_comment{{ $patient_episode->id }}" style="display: none;">
|
|
{!! $triage_and_consultation_comments !!}<br/>
|
|
<a class="read_more" style="color : #0099CC;" onclick= "hide('long_comment{{ $patient_episode->id }}');show('short_comment{{ $patient_episode->id }}');">{{ __('patient_episode.read_less') }}</a>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<input type="radio" onchange="show('menu1'), hide('theatre_menu'), hide('menu2'), hide('pic1'), hide('menu_maternity')" class="radio-option center" name="episode_id" id="episode_id_{{ $patient_episode->id }}" value="{{ $patient_episode->id }}" />
|
|
</td>
|
|
</tr>
|
|
|
|
@php
|
|
$inpatient_info = get_all_first(['episode_id' => $patient_episode->id, 'patient_id' => $patient->id], 'inpatient_info');
|
|
$maternity_ward_id = get_name("maternity", "slug", "id", "wards");
|
|
@endphp
|
|
|
|
@if ($inpatient_info != 'N/A')
|
|
<tr id='my_row2{{ $inpatient_info->episode_id }}' class="admitted_row_color">
|
|
<td style='background-color: white; font-size: smaller;'>
|
|
@if($inpatient_info->discharged)
|
|
<a style="color: #0099CC">{{ __('patient_episode.discharged') }} on {{ streamline_date($inpatient_info->discharged_on) }}</a>
|
|
<br><small style="color: blue">By {{ get_full_name($inpatient_info->discharged_by, "id", "first_name", "last_name", "users") }}</small>
|
|
@else
|
|
<a style="color: #0099CC">{{ __('patient_episode.admitted') }} on {{ streamline_date($inpatient_info->admitted_on) }}</a>
|
|
<br><small style="color: blue">By {{ get_full_name($inpatient_info->created_by, "id", "first_name", "last_name", "users") }}</small>
|
|
@endif
|
|
</td>
|
|
<td> {{ get_name($inpatient_info->ward_id, "id", "name", "wards") }} </td>
|
|
@php
|
|
$sec_diagnoses = (!is_null($inpatient_info->other_diagnoses) && !is_null(unserialize($inpatient_info->other_diagnoses))) ? array_values(unserialize($inpatient_info->other_diagnoses)) : [] ;
|
|
$sec_diagnosis = "";
|
|
for ($s = 0; $s < count($sec_diagnoses); $s++) $sec_diagnosis .= get_name($sec_diagnoses[$s], "id", "name", "diagnoses") . ", ";
|
|
@endphp
|
|
<td>
|
|
@if( Auth::user()->can('view-patient-episode-primary-diagnoses'))
|
|
{{ get_name($inpatient_info->primary_diagnosis, "id", "name", "diagnoses") }}
|
|
@endif
|
|
</td>
|
|
<td class="hidden-phone">
|
|
@if( Auth::user()->can('view-patient-episode-other-diagnoses'))
|
|
{!! read_more($sec_diagnosis, 'sec_diagnosis_short' . $episode_id, 'sec_diagnosis_long' . $episode_id) !!}
|
|
<div id="sec_diagnosis_long{{ $episode_id }}" style="display: none;">
|
|
{!! $sec_diagnosis !!}<br/>
|
|
<a class="read_more" style="color : #0099CC;" onclick= "hide('sec_diagnosis_long{{ $episode_id }}');show('sec_diagnosis_short{{ $episode_id }}');">{{ __('patient_episode.read_less') }}</a>
|
|
</div>
|
|
@endif
|
|
</td>
|
|
<td class="hidden-phone">
|
|
@php
|
|
$consultation_done_by = !empty($anc->created_by)? $anc->created_by :get_doctor_who_has_done_episode_consultation($patient_episode->patient_id, $patient_episode->id);
|
|
@endphp
|
|
|
|
@if(!is_null($consultation_done_by))
|
|
{{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }}
|
|
@endif
|
|
</td>
|
|
<td> {{ $inpatient_info->comments }}</td>
|
|
<td>
|
|
@if(get_name($inpatient_info->ward_id, "id", "slug", "wards") == "maternity")
|
|
<input type="radio" onchange="show('menu_maternity'), hide('theatre_menu'), hide('menu1'), hide('menu2'), hide('pic1')" class="radio-option-inpatient center" name="episode_id" id="episode_id" value="{{ $patient_episode->id }}"/>
|
|
@else
|
|
<input type="radio" onchange="show('menu2'), hide('theatre_menu'), hide('menu_maternity'), hide('menu1'), hide('pic1')" class="radio-option-inpatient center" name="episode_id" id="episode_id" value="{{ $patient_episode->id }}"/>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
@php
|
|
$theatre_information = does_episode_have_theatre_information($patient_episode->id);
|
|
@endphp
|
|
|
|
@if ($theatre_information)
|
|
<tr id='my_row3' class="theatre_row_color">
|
|
<td style='background-color: white; font-size: smaller;'>
|
|
@if($theatre_information['surgery_completed'])
|
|
<span style="color: green">{{ __('patient_episode.surgery_complete') }}</span>
|
|
@else
|
|
<span style="color: red">{{ __('patient_episode.surgery_not_complete') }}</span>
|
|
@endif
|
|
|
|
<br>
|
|
|
|
@if($theatre_information['anaesthesia_completed'])
|
|
<span style="color: green">{{ __('patient_episode.anaesthesia_complete') }}</span>
|
|
@else
|
|
<span style="color: red">{{ __('patient_episode.anaesthesia_not_complete') }}</span>
|
|
@endif
|
|
</td>
|
|
<td>{{ __('patient_episode.procedure') }}: {{ $theatre_information['procedure_name'] }}</td>
|
|
<td>{{ __('patient_episode.surgery_type') }}: {{ $theatre_information['surgery_type'] }}</td>
|
|
<td>{{ __('patient_episode.outcome') }}: {{ $theatre_information['outcome'] }}</td>
|
|
<td class="hidden-phone">
|
|
@php
|
|
$consultation_done_by = !empty($anc->created_by)? $anc->created_by :get_doctor_who_has_done_episode_consultation($patient_episode->patient_id, $patient_episode->id);
|
|
@endphp
|
|
|
|
@if(!is_null($consultation_done_by))
|
|
{{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }}
|
|
@endif
|
|
</td>
|
|
<td>{{ $theatre_information['comments'] }}</td>
|
|
<td>
|
|
<input type="radio" onchange="show('theatre_menu'), hide('menu_maternity'), hide('menu1'), hide('menu2'), hide('pic1')" class="radio-option-inpatient center" name="episode_id" id="episode_id" value="{{ $patient_episode->id }}"/>
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
@php
|
|
$episode_appointment = get_all_first(['episode_id' => $patient_episode->id, 'patient_id' => $patient->id], 'patient_appointments');
|
|
@endphp
|
|
|
|
@if($episode_appointment != 'N/A' && $episode_appointment->appointment_fulfilled == 1)
|
|
<tr id='my_row4' class="appointment_row_color">
|
|
<td style='background-color: white; font-size: small;'>
|
|
@if($episode_appointment->appointment_fulfilled == 1)
|
|
<span style="color: red">{{ __('patient_episode.follow_up') }}</span>
|
|
@else
|
|
<span style="color: red">{{ __('patient_episode.follow_up_complete') }}</span>
|
|
@endif
|
|
</td>
|
|
<td><b>{{ __('patient_episode.clinic') }}:</b> {{ get_name($episode_appointment->clinic_allocation, 'id', 'name', 'clinics') }}</td>
|
|
<td><b>{{ __('patient_episode.appointment_date') }}:</b> {{ is_null($episode_appointment->appointment_date) ? '' : streamline_date($episode_appointment->appointment_date) }}</td>
|
|
<td><b>{{ __('patient_episode.in_charge') }}:</b> {{ get_full_name($episode_appointment->incharge_id, 'id', 'first_name', 'last_name', 'users') != "ALL STAFF" ? get_full_name($episode_appointment->incharge_id, 'id', 'first_name', 'last_name', 'users') : "N/A" }}</td>
|
|
<td class="hidden-phone">
|
|
@php
|
|
$consultation_done_by = !empty($anc->created_by)? $anc->created_by : get_doctor_who_has_done_episode_consultation($patient_episode->patient_id, $patient_episode->id);
|
|
@endphp
|
|
|
|
@if(!is_null($consultation_done_by))
|
|
{{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }}
|
|
@endif
|
|
</td>
|
|
<td>{{ $episode_appointment->comments }}</td>
|
|
<td>
|
|
<input type="radio" onchange="show('menu1'), hide('theatre_menu'), hide('menu2'), hide('pic1'), hide('menu_maternity')" class="radio-option center" name="episode_id" id="episode_id_{{ $patient_episode->id }}" value="{{ $patient_episode->id }}" />
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="" id="menu1" style="display: none;">
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('perform-triage'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="triage">{{ __('patient_episode.triage') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('create-consultation'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="consultation" id="consultation_button">{{ __('patient_episode.consultation') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('create-prescription'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="prescription">{{ __('patient_episode.prescriptions') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('order-for-investigations'))
|
|
<div class="btn-group dropup m-r-10 col-sm-12">
|
|
<button aria-expanded="false" data-toggle="dropdown" class="btn btn-sm btn-success dropdown-toggle waves-effect waves-light btn-block" type="button">{{ __('patient_episode.investigations') }} <span class="caret"></span></button>
|
|
<ul role="menu" class="dropdown-menu">
|
|
<li><button type="submit" name="submit" class="btn btn-link w-100 h-100" value="investigations" >{{ __('patient_episode.investigations') }}</button></li>
|
|
<li class="divider"></li>
|
|
<li><a href="/investigations/view_historical_results_labs/{{ $patient->id }}" style="text-align:center; color:black" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_investigations') }}</a></li>
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('order-for-procedures'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm btn-block" value="procedure">{{ __('patient_episode.procedures') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
<button class="btn btn-success btn-sm btn-block" type="submit" name="submit" value="patient_document">{{ __('patient_episode.add_document') }}</button>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('order-for-sundries'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm btn-block" value="sundries">{{ __('patient_episode.sundries') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('view-eye-clinic'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm btn-block" value="eye_clinic">{{ __('patient_episode.eye_clinic') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('view-episode-summary'))
|
|
<button type="button" class="btn btn-primary btn-sm btn-block" id="patient_file">{{ __('patient_episode.episode_summary') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('transfer-patient-internally'))
|
|
<div class="btn-group dropup m-r-10 col-sm-12">
|
|
<button aria-expanded="false" data-toggle="dropdown" class="btn btn-primary dropdown-toggle btn-block" type="button">{{ __('patient_episode.internal_transfer') }} <span class="caret"></span></button>
|
|
<ul role="menu" class="dropdown-menu">
|
|
<li><button type="button" class="btn btn-primary btn-sm btn-block" id="internal_transfer">{{ __('patient_episode.clinic_transfer') }}</button></li>
|
|
<li><button type="button" class="btn btn-info btn-sm btn-block" id="doctor_transfer">{{ __('patient_episode.doctor_transfer') }}</button></li>
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('view-death-report'))
|
|
<button type="submit" name="submit" id="death_report_btn" value="death_report_btn" class="btn btn-sm btn-block btn-inverse" >NIRA {{ __('patient_episode.death_report') }}</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('create-theatre-surgery') || Auth::user()->can('create-theatre-anaesthesia'))
|
|
<div class="btn-group dropup m-r-10 col-sm-12">
|
|
<button aria-expanded="false" data-toggle="dropdown" class="btn btn-info dropdown-toggle waves-effect waves-light col-sm-12" type="button">{{ __('patient_episode.theatre') }} <span class="caret"></span></button>
|
|
<ul role="menu" class="dropdown-menu">
|
|
<li><button type="submit" name="submit" value="create_anaesthetics" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.theatre_anaesthetics') }}</button></li>
|
|
<li><button type="submit" name="submit" value="anaesthetics_history" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_anaesthetics') }}</button></li>
|
|
<li><button type="submit" name="submit" value="create_surgery" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.theatre_surgery') }}</button></li>
|
|
<li><button type="submit" name="submit" value="surgery_index" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_surgeries') }}</button></li>
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('perform-triage-without-etat'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="triage_without_etat">{{ __('patient_episode.triage_without') }} ETAT</button>
|
|
@endif
|
|
</div>
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('create-consultation-with-notes'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="consultation_with_notes">{{ __('patient_episode.consultation_with_notes') }}</button>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('drug-refill'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="drug_refill">{{ __('patient_episode.drug_refill') }}</button>
|
|
@endif
|
|
</div>
|
|
|
|
@if(Auth::user()->can('drug-refill') && is_patient_category_pay_later($patient->category_id))
|
|
<div class="col-sm-2">
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="edit_claim_number">{{ __('patient_episode.edit_claim_number') }}</button>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('order-for-services-from-patient-home'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="services">{{ __('patient_episode.services') }}</button>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('record-staff-service-performance'))
|
|
<button type="submit" name="submit" class="btn btn-success btn-sm col-sm-12" value="record_all_items">{{ __('patient_episode.order_multiple_items') }}</button>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
@if(Auth::user()->can('admit-patient-from-patient-home'))
|
|
<button type="button" name="admit_patient" class="btn btn-success btn-sm col-sm-12" id="admit_patient">{{ __('patient_episode.admit_patient') }}</button>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- maternity menu at the shown at the bottom -->
|
|
<div class="white-box" id="menu_maternity" style="display: none;">
|
|
<div class="row">
|
|
@if(Auth::user()->can('view-maternity-admission'))
|
|
<div class="col-sm-2">
|
|
<button name="submit" value="maternity_admission" class="btn btn-success btn-sm btn-block">{{ __('patient_episode.maternity_admission') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-delivery-record'))
|
|
<div class="col-sm-2">
|
|
<button name="submit" value="delivery_record" class="btn btn-success btn-sm btn-block" >{{ __('patient_episode.delivery_record') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-inpatient-sheet'))
|
|
<div class="col-sm-2">
|
|
<button name="submit" value="maternity_summary" class="btn btn-success btn-sm btn-block" >{{ __('patient_episode.inpatient_sheet') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-birth-report'))
|
|
<div class="col-sm-2">
|
|
<button name="submit" value="birth_report" class="btn btn-sm btn-inverse btn-block" >NIRA {{ __('patient_episode.birth_report') }}</button>
|
|
</div>
|
|
@endif
|
|
<div class="col-sm-2"></div>
|
|
<div class="col-sm-2">
|
|
<div class="btn-group dropup m-r-10 col-sm-12">
|
|
<button aria-expanded="false" data-toggle="dropdown" class="btn btn-sm btn-info dropdown-toggle waves-effect waves-light btn-block" type="button">{{ __('patient_episode.theatre') }} <span class="caret"></span></button>
|
|
<ul role="menu" class="dropdown-menu">
|
|
@if(Auth::user()->can('create-anaesthetics'))
|
|
<li><button type="submit" name="submit" value="create_anaesthetics" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.theatre_anaesthetics') }}</button></li>
|
|
@endif
|
|
@if(Auth::user()->can('view-anaesthetics-history'))
|
|
<li><button type="submit" name="submit" value="anaesthetics_history" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_anaesthetics') }}</button></li>
|
|
@endif
|
|
@if(Auth::user()->can('create-surgery'))
|
|
<li><button type="submit" name="submit" value="create_surgery" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.theatre_surgery') }}</button></li>
|
|
@endif
|
|
@if(Auth::user()->can('view-surgery'))
|
|
<li><button type="submit" name="submit" value="surgery_index" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_surgeries') }}</button></li>
|
|
@endif
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="menu2" style="display: none;">
|
|
<div class="row">
|
|
@if(Auth::user()->can('view-inpatient-sheet'))
|
|
<div class="col-sm-2">
|
|
<button type="submit" name="submit" class="btn btn-success btn-block btn-sm" value="inpatient-sheet-button">{{ __('patient_episode.inpatient_sheet') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-inpatient-billing'))
|
|
<div class="col-sm-2">
|
|
<button type="submit" name="submit" class="btn btn-success btn-block btn-sm" value="inpatient_billing">{{ __('patient_episode.inpatient_billing') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('issue-inpatient-attendant-pass'))
|
|
<div class="col-sm-2">
|
|
<button type="submit" name="submit" class="btn btn-default btn-block btn-sm" value="inpatient_attendant_pass">{{ __('patient_episode.inpatient_attendant_pass') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-patient-file'))
|
|
<div class="col-sm-2">
|
|
<button type="submit" name="submit" class="btn btn-primary btn-block btn-sm" value="patient_file">{{ __('patient_episode.episode_summary') }}</button>
|
|
</div>
|
|
@endif
|
|
<div class="col-sm-2"></div>
|
|
<div class="col-sm-2">
|
|
<div class="btn-group dropup m-r-10 col-sm-12">
|
|
<button aria-expanded="false" data-toggle="dropdown" class="btn btn-info dropdown-toggle waves-effect waves-light btn-sm btn-block " type="button">{{ __('patient_episode.theatre') }} <span class="caret"></span></button>
|
|
<ul role="menu" class="dropdown-menu">
|
|
<li><button type="submit" name="submit" value="create_anaesthetics" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.theatre_anaesthetics') }}</button></li>
|
|
<li><button type="submit" name="submit" value="anaesthetics_history" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_anaesthetics') }}</button></li>
|
|
<li><button type="submit" name="submit" value="create_surgery" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.theatre_surgery') }}</button></li>
|
|
<li><button type="submit" name="submit" value="surgery_index" class="btn btn-default btn-sm btn-link">{{ __('patient_episode.historical_surgeries') }}</button></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="theatre_menu" style="display: none;">
|
|
<div class="row">
|
|
@if(Auth::user()->can('create-anaesthetics'))
|
|
<div class="col-md-3">
|
|
<button type="submit" name="submit" class="btn btn-success btn-block" value="create_anaesthetics">{{ __('patient_episode.theatre_anaesthetics') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-anaesthetics-history'))
|
|
<div class="col-md-3">
|
|
<button type="submit" name="submit" class="btn btn-success btn-block" value="anaesthetics_history">{{ __('patient_episode.historical_anaesthetics') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('create-surgery'))
|
|
<div class="col-md-3">
|
|
<button type="submit" name="submit" class="btn btn-success btn-block" value="create_surgery">{{ __('patient_episode.theatre_surgery') }}</button>
|
|
</div>
|
|
@endif
|
|
@if(Auth::user()->can('view-surgery'))
|
|
<div class="col-md-3">
|
|
<button type="submit" name="submit" class="btn btn-success btn-block" value="surgery_index">{{ __('patient_episode.historical_surgeries') }}</button>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="white-box" id="pic1" style="display: none;">
|
|
<div class="row">
|
|
<div class="col-sm-8"></div>
|
|
<div class="col-sm-4">
|
|
<img src="KH_photos/Picture3.jpg" style="max-height: 250px; margin: auto;" class="image-preview" alt="child" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
{{ Form::close() }}
|
|
<div class="modal hide fade" id="modal-age">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h3>{{ __('patient_episode.select_a_patient') }}</h3>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<p>
|
|
{{ __('patient_episode.select_patient_warning') }}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<a href="#" class="btn btn-danger" data-dismiss="modal">{{ __('patient_episode.close') }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="internal_transfer_dialog" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">{{ __('patient_episode.internal_transfer') }}</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
{{ Form::label('current_clinic', __('patient_episode.current_clinic')) }}
|
|
{{ Form::hidden('current_clinic_id', 0, ['id' => 'current_clinic_id']) }}
|
|
{{ Form::hidden('current_triage_id', 0, ['id' => 'current_triage_id']) }}
|
|
{{ Form::hidden('current_episode_id', 0, ['id' => 'current_episode_id']) }}
|
|
{{ Form::text('current_clinic', '', ['class' => 'form-control compulsory', 'readonly', 'id' => 'current_clinic_transfer']) }}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ Form::label('transfered_from_doctor', __('patient_episode.transfer_from_doctor')) }}
|
|
{{ Form::select('transfered_from_doctor', $users_array, '', ['class' => 'form-control transferedToDoctor', 'id' => 'transfer_from_doctor']) }}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{{ Form::label('transfer_to', __('patient_episode.transfer_to')) }}
|
|
{{ Form::select('transfer_to', $clinics, null, ['class' => 'form-control compulsory', 'required', 'id' => 'transfer_to']) }}
|
|
</div>
|
|
<div class="form-group">
|
|
{{ Form::label('transfered_to_doctor', __('patient_episode.transfer_to_doctor')) }}
|
|
{{ Form::select('transfered_to_doctor', $users_array, '', ['class' => 'form-control transferedToDoctor', 'id' => 'transfer_to_doctor']) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('patient_episode.close') }}</button>
|
|
<button type="button" class="btn btn-success" id="submit_clinic_transfer" >{{ __('patient_episode.transfer_patient') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="doctor_transfer_dialog" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">{{ __('patient_episode.transfer_doctor') }}</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
{{ Form::hidden('dt_episode_id', 0, ['id' => 'dt_episode_id']) }}
|
|
{{ Form::label('transfered_from_doctor', __('patient_episode.transfer_from_doctor')) }}
|
|
{{ Form::text('dt_from_doctor', '', ['class' => 'form-control', 'readonly', 'id' => 'dt_doctor_from']) }}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{{ Form::label('transfered_to_doctor', __('patient_episode.transfer_to_doctor')) }}
|
|
@php $users_array = ['remove_from_doctor' => 'Remove from assigned doctor'] + $users_array; @endphp
|
|
{{ Form::select('dt_doctor_to', $users_array, '', ['class' => 'form-control transferedDtToDoctor', 'id' => 'dt_doctor_to']) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('patient_episode.close') }}</button>
|
|
<button type="button" class="btn btn-success" id="submit_doctor_transfer" >{{ __('patient_episode.transfer_patient') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="ward_admission_episode" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">{{ __('layout.ward_admission') }}</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
{{ Form::open(['route' => 'patient_episodes.admit_patient_with_episode']) }}
|
|
{{ Form::hidden('patient_id', $patient->id, ['id' => 'patient_id']) }}
|
|
{{ Form::hidden('episode_admission_episode_id', 0, ['id' => 'episode_admission_episode_id']) }}
|
|
|
|
{{ Form::label('admission_ward_id', __('layout.select_ward')) }}
|
|
{{ Form::select('admission_ward_id', $wards, '', ['class' => 'form-control', 'required' => 'true']) }}
|
|
<br>
|
|
{{ Form::label('ward_admission_date', __('layout.admission_date')) }}
|
|
<input type="date" class="form-control" name="ward_admission_date" id="ward_admission_date" value="{{ date('Y-m-d') }}" required="true">
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-success btn-sm" onclick="return confirm('<?php echo __('layout.are_you_sure_admit'); ?>');">{{ __('layout.continue_ward_admission') }}</button>
|
|
{{ Form::close() }}
|
|
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">{{ __('layout.close') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@if(session()->has('consultation_not_paid'))
|
|
<div class="modal fade" id="unpaid_consultation_warning" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h4 style="color: red">{{ __('patient_episode.patient_not_paid_consultation') }}</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('patient_episode.okay') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@php session()->forget('consultation_not_paid'); @endphp
|
|
@endif
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$("#admit_patient").click(function () {
|
|
$.ajax({
|
|
url: '/inpatient/check_for_open_admissions/' + $('#patient_id').val(),
|
|
type: 'get',
|
|
success: function (response) {
|
|
if (response > 0) {
|
|
$("#modal_patient_already_admitted").modal("show");
|
|
} else {
|
|
let current_episode_id = $('input[name=episode_id]:checked').val();
|
|
$("#episode_admission_episode_id").val(current_episode_id);
|
|
$("#ward_admission_episode").modal("show");
|
|
}
|
|
},
|
|
error: function (response) {
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#patient_file").click(function () {
|
|
let current_episode_id = $('input[name=episode_id]:checked').val();
|
|
|
|
let win = window.open('/patients/episode_summary/' + current_episode_id, '_blank');
|
|
if (win) {
|
|
win.focus();
|
|
} else {
|
|
alert("Please allow pop-ups for this system")
|
|
}
|
|
});
|
|
|
|
$("#internal_transfer").click(function () {
|
|
let current_episode_id = $('input[name=episode_id]:checked').val();
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
url: "/patient_episodes/internal_clinic_transfer/" + current_episode_id,
|
|
success: function (result) {
|
|
if (result != 0) {
|
|
let arr = result.split(',');
|
|
$('#current_clinic_transfer').val(arr[2]);
|
|
$('#current_clinic_id').val(arr[1]);
|
|
$('#current_triage_id').val(arr[0]);
|
|
$('#current_episode_id').val(current_episode_id);
|
|
$('#internal_transfer_dialog').modal('show');
|
|
} else {
|
|
alert("<?php echo __('patient_episode.triage_not_performed') ?>");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#submit_clinic_transfer").click(function () {
|
|
let transfer_clinic = $("#transfer_to").val();
|
|
let clinic = $("#current_clinic_id").val();
|
|
let triage_id = $("#current_triage_id").val();
|
|
let episode_id = $("#current_episode_id").val();
|
|
let patient_id = $('#patient_id').val();
|
|
let transfer_to_doctor = $('#transfer_to_doctor').val();
|
|
let transfer_from_doctor = $('#transfer_from_doctor').val();
|
|
|
|
if (transfer_clinic == 0) {
|
|
alert("<?php echo __('patient_episode.select_new_clinic') ?>");
|
|
} else {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/patient_episodes/save_internal_clinic_transfer",
|
|
data: {new_clinic: transfer_clinic, old_clinic: clinic, triage_id: triage_id, episode_id: episode_id, patient_id: patient_id, transfer_from_doctor: transfer_from_doctor, transfer_to_doctor: transfer_to_doctor},
|
|
cache: false,
|
|
success: function (result) {
|
|
if (result == 1) {
|
|
alert("<?php echo __('patient_episode.patient_transfer_successful') ?>");
|
|
location.reload();
|
|
} else {
|
|
alert("<?php echo __('patient_episode.patient_transfer_failed') ?>");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
$("#doctor_transfer").click(function (e) {
|
|
e.preventDefault();
|
|
let episode_id = $('input[name=episode_id]:checked').val();
|
|
$.ajax({
|
|
type: "GET",
|
|
url: "/patient_episodes/get_assigned_doctor/" + episode_id,
|
|
success: function (result) {
|
|
console.log(result);
|
|
if (result != 0) {
|
|
$("#dt_doctor_from").val(result);
|
|
$("#doctor_transfer_dialog").modal('show');
|
|
} else {
|
|
//alert("No assigned doctor");
|
|
$("#doctor_transfer_dialog").modal('show');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#submit_doctor_transfer").click(function () {
|
|
let episode_id = $('input[name=episode_id]:checked').val();
|
|
let dt_doctor_to = $('#dt_doctor_to').val();
|
|
console.log('episode_id = ' + episode_id);
|
|
console.log('doctor_id = ' + dt_doctor_to);
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/patient_episodes/save_doctor_transfer",
|
|
data: {episode_id: episode_id, dt_doctor_to: dt_doctor_to},
|
|
cache: false,
|
|
success: function (result) {
|
|
if (result == 1) {
|
|
alert("<?php echo __('patient_episode.patient_transfer_successful') ?>");
|
|
location.reload();
|
|
} else {
|
|
alert("<?php echo __('patient_episode.patient_transfer_failed') ?>");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
function show(id) {
|
|
if (document.getElementById(id).style.display === 'none') {
|
|
document.getElementById(id).style.display = '';
|
|
}
|
|
}
|
|
|
|
function hide(id) {
|
|
document.getElementById(id).style.display = 'none';
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
$(".to_hide").each(function () {
|
|
$(this).hide();
|
|
});
|
|
$("#edit").click(function () {
|
|
$(this).hide();
|
|
$("#submit_edit").show();
|
|
$(".to_show").each(function () {
|
|
$(this).hide();
|
|
});
|
|
$(".to_hide").each(function () {
|
|
$(this).show();
|
|
});
|
|
});
|
|
$("#close_modal").click(function () {
|
|
$("#submit_edit").hide();
|
|
$(".to_show").each(function () {
|
|
$(this).show();
|
|
});
|
|
$(".to_hide").each(function () {
|
|
$(this).hide();
|
|
});
|
|
$("#edit").show();
|
|
});
|
|
|
|
$('.transferedToDoctor').select2({
|
|
placeholder: "Select",
|
|
width: "100%",
|
|
dropdownParent: $('#internal_transfer_dialog')
|
|
});
|
|
|
|
$('.transferedDtToDoctor').select2({
|
|
placeholder: "Select",
|
|
width: "100%",
|
|
dropdownParent: $('#doctor_transfer_dialog')
|
|
});
|
|
|
|
$("#unpaid_consultation_warning").modal("show");
|
|
});
|
|
|
|
/*$("#consultation_button").click(function(e){
|
|
let episode_to_check_for_payment = $('input[name=episode_id]:checked').val();
|
|
let unpaid = false;
|
|
e.preventDefault();
|
|
|
|
$.ajax({
|
|
method: 'POST',
|
|
url: '/check_clinical_consultation_payment',
|
|
data: {'episode_id' : episode_to_check_for_payment},
|
|
success: function(response){
|
|
if (response == "paid") {
|
|
console.log("man of valor with armour");
|
|
$("#episodesForm").submit();
|
|
console.log("submit the form please");
|
|
} else {
|
|
console.log("regular man");
|
|
$("#unpaid_consultation_warning").modal("show");
|
|
}
|
|
},
|
|
error:function(error){
|
|
console.log(error);
|
|
}
|
|
});
|
|
});*/
|
|
</script>
|
|
@endpush
|
|
|
|
@push('styles')
|
|
<style type="text/css">
|
|
.btn-default.btn-sm.btn-link{
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
@endpush |