mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
resolved conflicts
This commit is contained in:
+110
@@ -0,0 +1,110 @@
|
||||
<!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', 'Inpatient Bill - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body{
|
||||
/*font-size: 1.2em;*/
|
||||
}
|
||||
|
||||
thead {
|
||||
/*display: table-header-group;*/
|
||||
}
|
||||
|
||||
tfoot {
|
||||
/*display: table-row-group;*/
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
<h5 class="heading" style="text-align: center;">{{ __('investigations.lab_result_details') }}</h5>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-light table-sm table-borderless">
|
||||
<tr>
|
||||
<th>{{ __('investigations.patient_number') }}</th>
|
||||
<td>{{ $patient->number}}</td>
|
||||
<th>{{ __('investigations.patient_category') }}</th>
|
||||
<td>{{ get_name($patient->category_id, 'id', 'name', 'patient_categories') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.patient_names') }}</th>
|
||||
<td>{{ $patient->first_name}} {{ $patient->last_name}}</td>
|
||||
<th>{{ __('investigations.residence') }}</th>
|
||||
<td>{{ patient_residence($patient_id) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.age') }}</th>
|
||||
<td>
|
||||
<?php echo \Carbon\Carbon::parse($patient->date_of_birth)->age; ?> {{ __('investigations.years') }}
|
||||
</td>
|
||||
<th></th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.gender') }}</th>
|
||||
<td>
|
||||
@if($patient->gender == 1)
|
||||
{{ __('investigations.male') }}
|
||||
@else
|
||||
{{ __('investigations.female') }}
|
||||
@endif
|
||||
</td>
|
||||
<th>{{ __('investigations.printed_on') }}</th>
|
||||
<td> <?php echo streamline_date(date('d-m-Y')); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>{{ __('investigations.investigation') }}</th>
|
||||
@foreach($dates as $date)
|
||||
<th>{{ $date }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@for($i = 0; $i < count($invs_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($invs_array[$i], 'id', 'name', 'investigations') }}</td>
|
||||
@foreach($values[$i] as $value)
|
||||
<td>
|
||||
@if(get_name($invs_array[$i], 'id', 'type', 'investigations') == 1)
|
||||
<i style="color: blue"> {{ __('investigations.refer_to_investigation_report') }} </i>
|
||||
@else
|
||||
@if(!is_array($value) && !is_numeric($value))
|
||||
{{ $value }}
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+291
@@ -0,0 +1,291 @@
|
||||
<!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', 'Inpatient Bill - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
<h5 class="heading" style="text-align: center;">{{ __('investigations.lab_result_details') }}</h5>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-light table-sm table-borderless">
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.patient_number') }}</th>
|
||||
<td>{{ $patient->number}}</td>
|
||||
<th>{{ __('investigations.lab_number') }}</th>
|
||||
<td>
|
||||
{{ $ordered_investigation->lab_number ?? $ordered_investigation->id }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.patient_names') }}</th>
|
||||
<td>{{ ucwords($patient->first_name) }} {{ ucwords($patient->last_name) }}</td>
|
||||
<th>{{ __('investigations.hospital_unit') }}</th>
|
||||
<td>
|
||||
@if($ordered_investigation->inpatient == 1)
|
||||
{{ get_ward_name($ordered_investigation->patient_id, $ordered_investigation->episode_id) }}
|
||||
@else
|
||||
OPD
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.age') }}</th>
|
||||
<td>
|
||||
@php $dob = get_name($ordered_investigation->patient_id, 'id', 'date_of_birth', 'patients'); @endphp
|
||||
{{ get_patients_age($dob, $ordered_investigation->created_at) }}
|
||||
</td>
|
||||
<th>{{ __('investigations.requested') }}</th>
|
||||
<td>{{ streamline_date_time($ordered_investigation->created_at) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.gender') }}</th>
|
||||
<td>
|
||||
{{ get_name($ordered_investigation->patient_id, 'id', 'gender', 'patients') == 1 ? "Male" : "Female" }}
|
||||
</td>
|
||||
<th>{{ __('investigations.received') }}</th>
|
||||
<td>{{ streamline_date_time($ordered_investigation->request_received_date) }}</td>
|
||||
</tr>
|
||||
@php
|
||||
$invs_results = DB::table('investigation_results')->where('investigation_id', $ordered_investigation->investigation_id)
|
||||
->where('patient_id', $ordered_investigation->patient_id)
|
||||
->where('episode_id', $ordered_investigation->episode_id)
|
||||
->first();
|
||||
|
||||
$user_id = $invs_results ? $invs_results->created_by : $ordered_investigation->request_received_by;
|
||||
$performed_at = $invs_results ? streamline_date_time($invs_results->created_at) : "N/A";
|
||||
@endphp
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.patient_category') }}</th>
|
||||
<td>
|
||||
{{ get_name($patient->category_id, 'id', 'name', 'patient_categories') }}
|
||||
</td>
|
||||
<th>{{ __('investigations.performed_at') }}</th>
|
||||
<td>{{ $performed_at }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.residence') }}</th>
|
||||
<td>{{ patient_residence($patient->id) }}</td>
|
||||
<th>{{ __('investigations.doctor') }}</th>
|
||||
<td>
|
||||
@php
|
||||
$created_by = Streamline\Models\User::find($ordered_investigation->created_by);
|
||||
|
||||
if ($ordered_investigation->ordered_by) {
|
||||
$ordered_by_name = $ordered_investigation->ordered_by;
|
||||
} elseif ($created_by && $created_by->hasRole('Doctors')) {
|
||||
$ordered_by_name = get_full_name($ordered_investigation->created_by, 'id', 'first_name', 'last_name', 'users');
|
||||
} else {
|
||||
$ordered_by_name = __('investigations.self_request');
|
||||
}
|
||||
@endphp
|
||||
{{ $ordered_by_name }}
|
||||
{{--{{ getDNS1DBarcodePNG($ordered_investigation->id) }}
|
||||
<span>{{ sprintf("%04u", $ordered_investigation->id) }}</span>--}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<table class='table table-sm'>
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>{{ __('investigations.tests') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($investigation_ids as $record)
|
||||
<tr>
|
||||
<td>{{ get_name($record, 'id', 'name', 'investigations') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<table class='table table-sm'>
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>{{ __('investigations.specimens') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@php
|
||||
$records = explode(",", $ordered_investigation->specimen);
|
||||
$status_array = explode(",", $ordered_investigation->specimen_status);
|
||||
@endphp
|
||||
@for($i = 0; $i < count($records); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($records[$i], 'id', 'name', 'laboratory_specimens') }}</td>
|
||||
<td>
|
||||
@if ($status_array[$i] == 1)
|
||||
<font color='green'>{{ __('investigations.taken') }}</font>
|
||||
@elseif ($status_array[$i] == 2)
|
||||
<font color='orange'>{{ __('investigations.not_taken') }}</font>
|
||||
@elseif ($status_array[$i] == 3)
|
||||
<font color='#ff4500'>{{ __('investigations.rejected') }}</font>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="col-auto">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h6>{{ __('investigations.test_results') }}</h6>
|
||||
<table class='table table-sm'>
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>{{ __('investigations.investigation_name') }}</th>
|
||||
<th>{{ __('investigations.results') }}</th>
|
||||
<th>{{ __('investigations.normal_ranges') }}</th>
|
||||
<th>{{ __('investigations.unit') }}</th>
|
||||
<th>{{ __('investigations.comment') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($results as $result)
|
||||
@if($result['type'] == 0)
|
||||
<tr>
|
||||
<td><b>{{ $result['name'] }}</b></td>
|
||||
<td>{!! nl2br(e($result['result'])) !!}</td>
|
||||
<td>{{ $result['range'] }}</td>
|
||||
<td>
|
||||
@if(get_name($result['units'], 'id', 'name', 'unit_of_measure') != "N/A")
|
||||
{{ get_name($result['units'], 'id', 'name', 'unit_of_measure') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{!! nl2br(e($result['comment'])) !!}</td>
|
||||
</tr>
|
||||
@elseif($result['type'] == 1)
|
||||
<tr>
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><b>{{ $result['name'] }}</b></td>
|
||||
</tr>
|
||||
@php
|
||||
$specialised_results = \Streamline\Models\InvestigationSpecialisedResult::where('id', $result['result'])->first();
|
||||
|
||||
if($specialised_results){
|
||||
$variable_id_array = explode(',', $specialised_results->specialised_variable_id);
|
||||
$variable_value_array = explode(',', $specialised_results->value);
|
||||
$variable_comment_array = explode(',', $specialised_results->comment);
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if($specialised_results)
|
||||
@for($i = 0; $i < count($variable_id_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($variable_id_array[$i], 'id', 'name', 'investigation_specialised_variables') }}</td>
|
||||
<td>{!! nl2br(e($variable_value_array[$i])) !!}</td>
|
||||
<td>
|
||||
@if(get_name($variable_id_array[$i], 'id', 'range_type', 'investigation_specialised_variables') == 1)
|
||||
{{ get_dynamic_normal_range_specialized($variable_id_array[$i], get_patient_age_group($patient->id), get_name($patient->id, 'id', 'gender', 'patients')) }}
|
||||
@else
|
||||
{{ get_name($variable_id_array[$i], 'id', 'normal_ranges', 'investigation_specialised_variables') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(get_name(get_name($variable_id_array[$i], 'id', 'units', 'investigation_specialised_variables'), 'id', 'name', 'unit_of_measure') != "N/A")
|
||||
{{ get_name(get_name($variable_id_array[$i], 'id', 'units', 'investigation_specialised_variables'), 'id', 'name', 'unit_of_measure') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{!! nl2br(e($variable_comment_array[$i])) !!}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
@if(count($results) < 1)
|
||||
<tr><td colspan="5" class="text-center"><p><code>{{ __('investigations.no_results_available') }}</code></p></td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
@php
|
||||
$counter=0; $auth='';
|
||||
if(!empty($results)) {
|
||||
foreach($results as $result) if ($result['authenticated'] == '1') $counter++;
|
||||
if($counter == count($results)) $auth='1';
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if (is_add_lab_stamp_feature_enabled() && !empty($hospitalInfo->lab_stamp) && $auth =='1')
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h6>{{ __('investigations.performed_by') }} :
|
||||
<span @if (Auth::user()->can('hide-performed-by-on-lab-results-print-out')) style="display: none;" @endif><b>{{ get_full_name($user_id, 'id', 'first_name', 'last_name', 'users') }}</b></span>
|
||||
</h6>
|
||||
</td>
|
||||
<td>
|
||||
<h6>{{ __('investigations.verified_by') }} : <span>............................................................</span></h6>
|
||||
<img style="max-width: 300px; max-height: 140px;" src="{{ asset($hospitalInfo->lab_stamp) }}" class="img-fluid mx-auto d-block mx-3" alt="{{ $hospitalInfo->name}} stamp">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<h6>
|
||||
{{ __('investigations.performed_by') }} :
|
||||
<span @if (Auth::user()->can('hide-performed-by-on-lab-results-print-out')) style="display: none;" @endif><b>{{ get_full_name($user_id, 'id', 'first_name', 'last_name', 'users') }}</b></span>
|
||||
</h6>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<h6>{{ __('investigations.verified_by') }} : <span>............................................................</span></h6>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
<!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', 'Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
<h5 class="heading" style="text-align: center;">{{ __('investigations.investigation_results') }}</h5>
|
||||
|
||||
<table class="table table-light table-sm table-borderless">
|
||||
<tr>
|
||||
<th>{{ __('investigations.patient_number') }}</th>
|
||||
<td>{{ $patient->number}}</td>
|
||||
<th>{{ __('investigations.patient_category') }}</th>
|
||||
<td>{{ get_name($patient->category_id, 'id', 'name', 'patient_categories') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('investigations.patient_names') }}</th>
|
||||
<td>{{ $patient->first_name}} {{ $patient->last_name}}</td>
|
||||
<th>{{ __('investigations.gender') }}</th>
|
||||
<td>
|
||||
@if($patient->gender == 1)
|
||||
{{ __('investigations.male') }}
|
||||
@else
|
||||
{{ __('investigations.female') }}
|
||||
@endif
|
||||
|
||||
({{ get_patients_age($patient->date_of_birth, $created_at) }})
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('investigations.requested') }}</th>
|
||||
<td>{{ $requested_at }}</td>
|
||||
<th>{{ __('investigations.performed_at') }}</th>
|
||||
<td>{{ $performed_at }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th style="width: 20%">{{ __('investigations.investigation_name') }}</th>
|
||||
<th style="width: 60%">{{ __('investigations.results') }}</th>
|
||||
<th style="width: 20%">{{ __('investigations.comments') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($inv['data'] as $value)
|
||||
@if($value['type'] == 0)
|
||||
<tr>
|
||||
<td>{{ $value['name'] }}</td>
|
||||
<td>{!! nl2br(e($value['result'])) !!}</td>
|
||||
<td>{!! nl2br(e($value['comment'])) !!}</td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">{{ $value['name'] }}</td>
|
||||
</tr>
|
||||
@php
|
||||
$specialised_results = \Streamline\Models\InvestigationSpecialisedResult::where('id', $value['result'])->first();
|
||||
|
||||
if (!$specialised_results) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$variable_id_array = explode(',', $specialised_results->specialised_variable_id);
|
||||
$variable_value_array = explode(',', $specialised_results->value);
|
||||
$variable_comment_array = explode(',', $specialised_results->comment);
|
||||
@endphp
|
||||
@for($i = 0; $i < count($variable_id_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($variable_id_array[$i], 'id', 'name', 'investigation_specialised_variables') }}</td>
|
||||
<td>{{ $variable_value_array[$i] }}</td>
|
||||
<td>{{ $variable_comment_array[$i] }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<strong>{{ __('investigations.performed_by') }}: </strong> {{ get_full_name($created_by, 'id', 'first_name', 'last_name', 'users') }}
|
||||
</div>
|
||||
<div class="col"><b>{{ __('investigations.sign') }}:</b> ............................................................</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+433
@@ -0,0 +1,433 @@
|
||||
<!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', 'Inpatient Bill - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style style="text-css">
|
||||
|
||||
@page {
|
||||
margin-left:20px;
|
||||
margin-right:45px;
|
||||
}
|
||||
|
||||
|
||||
body{
|
||||
font-size: 13px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
table, tr, td {
|
||||
page-break-inside: avoid;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
thead {
|
||||
/*display: table-header-group;*/
|
||||
}
|
||||
|
||||
tfoot {
|
||||
/*display: table-row-group;*/
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
page-break-before: avoid;
|
||||
}
|
||||
|
||||
|
||||
td {
|
||||
word-wrap: break-word;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.center-align-image {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: -60px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
height: 50px;
|
||||
text-align: center;
|
||||
line-height: 35px;
|
||||
background-color:white;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@php
|
||||
$hospital_info = \Streamline\Models\HospitalInformation::find(1);
|
||||
@endphp
|
||||
|
||||
|
||||
{{-- footer --}}
|
||||
<footer>
|
||||
<?php echo '<i>© ' . date('Y') . ' Stre@mline</i>' ?>
|
||||
</footer>
|
||||
|
||||
<div class="container-fluid ">
|
||||
{{-- header --}}
|
||||
@if(is_null($hospital_info->pdf_print_header))
|
||||
<div class="center-align-image">
|
||||
<img style="max-width: 300px; max-height: 140px;" src="{{ asset($hospital_info->logo) }}" class="mx-auto d-block mx-3" alt="Responsive image">
|
||||
<br>
|
||||
<p class="h6 text-center mt-0 font-weight-bold">
|
||||
{{ $hospital_info->name . ' | ' . $hospital_info->phone_number . ' | ' . $hospital_info->email . ' | ' . $hospital_info->address . ' ' . $hospital_info->country }}
|
||||
</p>
|
||||
</div>
|
||||
@else
|
||||
<div class="center-align-image">
|
||||
<img style="max-height: 150px;" src="{{ asset($hospital_info->pdf_print_header) }}" alt="Responsive image">
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
|
||||
<h5 class="heading" style="text-align: center;">{{ __('investigations.obstetric_ultrasound_order_details') }}</h5>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-light table-sm table-borderless" >
|
||||
<tr>
|
||||
<th scope="row" width='18%'>{{ __('investigations.patient_number') }}</th>
|
||||
<td width='30%'>{{ $patient->number}}</td>
|
||||
<th width='16%'>{{ __('investigations.patient_category') }}</th>
|
||||
<td>{{ get_name($patient->category_id, 'id', 'name', 'patient_categories') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.patient_names') }}</th>
|
||||
<td>{{ $patient->first_name}} {{ $patient->last_name}}</td>
|
||||
<th>{{ __('investigations.residence') }}</th>
|
||||
<td rowspan="2">{{ patient_residence($patient->id) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.age') }}</th>
|
||||
<td>
|
||||
<?php echo \Carbon\Carbon::parse($patient->date_of_birth)->age; ?> {{ __('investigations.years') }}
|
||||
</td>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('investigations.gender') }}</th>
|
||||
<td>
|
||||
@if($patient->gender == 1)
|
||||
{{ __('investigations.male') }}
|
||||
@else
|
||||
{{ __('investigations.female') }}
|
||||
@endif
|
||||
</td>
|
||||
<th>{{ __('investigations.printed_on') }}</th>
|
||||
<td> <?php echo streamline_date(date('d-m-Y')); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"></th>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<th> </tH>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
@php
|
||||
$no_of_foetus = $report->no_of_foetus;
|
||||
@endphp
|
||||
|
||||
<div class="row " >
|
||||
<table class="table table-sm" style="width:100%;">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>{{ __('investigations.date_of_scan') }}</th>
|
||||
<th>{{ __('investigations.sonographer') }}</th>
|
||||
<th>{{ __('investigations.number_of_foetus') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ streamline_date($report->scan_date) }}</td>
|
||||
<td>{{ get_full_name($report->sonographer, 'id', 'first_name', 'last_name', 'users') }}</td>
|
||||
<td>{{ $report->no_of_foetus ?? '' }}</td>
|
||||
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row " >
|
||||
<table class="table table-sm" style="width:100%;">
|
||||
<tr>
|
||||
<th>{{ __('investigations.order_date') }}</th>
|
||||
<td colspan="5">{{ streamline_date($invs_order->created_at) }}</td>
|
||||
</tr>
|
||||
@if($anc_details)
|
||||
<tr>
|
||||
<th>{{ __('investigations.gravida') }}</th>
|
||||
<td>{{ $anc_details->gravida }}</td>
|
||||
<th>{{ __('investigations.para') }}</th>
|
||||
<td>{{ $anc_details->para }}</td>
|
||||
<th>{{ __('investigations.abortions') }}</th>
|
||||
<td>{{ $anc_details->abortion }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('investigations.lmp') }}</th>
|
||||
<td>{{ streamline_date($anc_details->lmp) }}</td>
|
||||
<th>{{ __('investigations.accuracy') }}</th>
|
||||
<td>{{ get_name($anc_details->accuracy, 'id', 'name', 'ante_natal_clinic_accuracies') }}</td>
|
||||
<th>{{ __('investigations.edd') }}</th>
|
||||
<td>{{ streamline_date($anc_details->edd) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>{{ __('investigations.clinic') }}</th>
|
||||
<td>{{ get_name(get_name($episode_id, 'id', 'clinic_id', 'patient_episodes'), 'id', 'name', 'clinics') }}</td>
|
||||
<th>{{ __('investigations.requested_by') }}</th>
|
||||
<td>
|
||||
{{ get_full_name($invs_order->created_by, 'id', 'first_name', 'last_name', 'users') }}
|
||||
</td>
|
||||
<th>{{ __('investigations.phone') }}</th>
|
||||
<td>{{ get_name($invs_order->created_by, 'id', 'phone', 'users') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('investigations.comment') }}</th>
|
||||
<td colspan="5">{{ $invs_order->comment }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- start foetus table --}}
|
||||
<div class="row " >
|
||||
<table class="table table-sm">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th width="30%">{{ __('investigations.item') }}</th>
|
||||
<th><div class="foetus1header hiddenx">1</div></th>
|
||||
<th style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">2</th>
|
||||
<th style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ __('investigations.crown_rump_length') }} (cm)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->crown_rump, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->crown_rump, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->crown_rump, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.bi_parietal_diameter') }} (cm)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->bi_parietal_diameter, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->bi_parietal_diameter, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->bi_parietal_diameter, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.head_circumference') }} (cm)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->head_circumference, 0)}}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->head_circumference, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->head_circumference, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.abdominal_circumference') }} (cm)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->abdominal_circumference, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->abdominal_circumference, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->abdominal_circumference, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.femur_length') }} (cm)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->femur_length, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->femur_length, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->femur_length, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.estimated_foetal_weight') }} (kg)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->estimated_foetal_weight, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->estimated_foetal_weight, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->estimated_foetal_weight, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.average_gestation_age') }} ({{ __('investigations.weeks') }})</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->average_gestational_age, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->average_gestational_age, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->average_gestational_age, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.edd') }}</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->expected_delivery_date, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->expected_delivery_date, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->expected_delivery_date, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.presentation') }}</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->presentation, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->presentation, 1)}}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->presentation, 2)}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.placental_site') }}</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->placental_site, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->placental_site, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->placental_site, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.liquor_volume') }} (mls)</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->liquor_volume, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->liquor_volume, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->liquor_volume, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('investigations.cord_artery_doppler') }}</td>
|
||||
<td>
|
||||
{{ split_string_null_check($report->cord_artery_doppler, 0) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->cord_artery_doppler, 1) }}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ split_string_null_check($report->cord_artery_doppler, 2) }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$comments = !is_null($report->comments) ? explode(",,,",$report->comments) : '';
|
||||
|
||||
?>
|
||||
|
||||
<tr >
|
||||
<td>{{ __('investigations.comments_additional_info') }}</td>
|
||||
<td>
|
||||
{{ $comments[0] ?? ''}}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 2 ? '' : 'display:none;' }}">
|
||||
{{ $comments[1] ?? ''}}
|
||||
</td>
|
||||
<td style="{{ $no_of_foetus >= 3 ? '' : 'display:none;' }}">
|
||||
{{ $comments[2] ?? ''}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{{-- End foetus table --}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user