mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
186 lines
8.7 KiB
PHP
Executable File
186 lines
8.7 KiB
PHP
Executable File
@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" />
|
|
@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">{{ __('diagnoses.diagnosis') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('diagnoses.dashboard') }}</a></li>
|
|
<li><a href="{{ route('diagnoses.index') }}">{{ __('diagnoses.diagnosis') }}</a></li>
|
|
<li class="active">{{ __('diagnoses.view') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
@include('clinical_data::diagnoses.menu')
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<!--Flash messages at the top -->
|
|
@include('flash::message')
|
|
<div class="white-box">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
|
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
|
<th>{{ __('diagnoses.outpatient_hmis_category') }}</th>
|
|
<th>{{ __('diagnoses.inpatient_hmis_category') }}</th>
|
|
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
|
<th>{{ __('diagnoses.reference_areas') }}</th>
|
|
<th>{{ __('diagnoses.chronic_status') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
|
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
|
<th>{{ __('diagnoses.outpatient_hmis_category') }}</th>
|
|
<th>{{ __('diagnoses.inpatient_hmis_category') }}</th>
|
|
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
|
<th>{{ __('diagnoses.reference_areas') }}</th>
|
|
<th>{{ __('diagnoses.chronic_status') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
@foreach($diagnoses as $diagnosis)
|
|
<tr>
|
|
<td>{{ $diagnosis->name }}</td>
|
|
<td>{{ $diagnosis->icd10_code }}</td>
|
|
<td>
|
|
@if (!empty($diagnosis->outpatient_dependent_option))
|
|
{{ $hmis_category_options[$diagnosis->outpatient_hmis_category_option] .' ('. $hmis_category_options[$diagnosis->outpatient_dependent_option].')' }}
|
|
@else
|
|
{{ (!empty($diagnosis->outpatient_hmis_category_option) && is_int($diagnosis->outpatient_hmis_category_option))? $hmis_category_options[$diagnosis->outpatient_hmis_category_option]:'' }}
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if (!empty($diagnosis->dependent_option))
|
|
{{ $hmis_category_options[$diagnosis->hmis_no_inpatient] .' ('. $hmis_category_options[$diagnosis->dependent_option].')' }}
|
|
@else
|
|
{{ $hmis_category_options[$diagnosis->hmis_no_inpatient]?? '' }}
|
|
@endif
|
|
</td>
|
|
<td>{{ $diagnosis->prompts }}</td>
|
|
<td>
|
|
@php
|
|
$reference_areas_array = explode(",", $diagnosis->reference_areas);
|
|
$reference_names_array = explode(",", $diagnosis->reference_names);
|
|
@endphp
|
|
|
|
@for ($x = 0; $x < count($reference_areas_array); $x++)
|
|
@if(isset($reference_areas_array[$x]))
|
|
<a href="{{ $reference_areas_array[$x] }}" target="_blank">
|
|
{{ isset($reference_names_array[$x]) ? $reference_names_array[$x] : '' }}
|
|
</a>
|
|
@endif
|
|
@endfor
|
|
</td>
|
|
<td>
|
|
@if ($diagnosis->chronic_status)
|
|
{{ __('diagnoses.yes') }}
|
|
@else
|
|
{{ __('diagnoses.no') }}
|
|
@endif
|
|
</td>
|
|
<td>
|
|
<a href="/diagnoses/{{ $diagnosis->id }}/edit/" class="btn btn-info"><i class="fa fa-pencil"></i> {{ __('diagnoses.edit') }}</a>
|
|
</td>
|
|
<td>
|
|
@if (!in_array($diagnosis->id, $issued_diagnoses))
|
|
{{ Form::model($diagnosis->id,['method' => 'DELETE', 'route' => ['diagnoses.destroy', $diagnosis->id]]) }}
|
|
<button type="submit" class="btn btn-danger" onclick="return confirm('<?php echo __('diagnoses.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('diagnoses.delete') }}</button>
|
|
{{ Form::close() }}
|
|
@else
|
|
<b class="text-success">Diagnosis given </b>
|
|
@endif
|
|
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</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 type="text/javascript">
|
|
$('.table').DataTable({
|
|
dom: 'Bfrtip',
|
|
pageLength: 100,
|
|
aaSorting: [],
|
|
columnDefs: [ {
|
|
targets: [4, 5, 6, 7, 8], /* column index */
|
|
orderable: false, /* true or false */
|
|
}],
|
|
buttons: [
|
|
'copy',
|
|
{extend: 'csv',
|
|
message: 'LIST OF DIAGNOSIS'
|
|
},
|
|
{extend: 'excel',
|
|
message: 'LIST OF DIAGNOSIS',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 6]
|
|
},
|
|
sheetName: 'LIST OF DIAGNOSIS'
|
|
},
|
|
{extend: 'pdf',
|
|
message: 'LIST OF DIAGNOSIS',
|
|
orientation: 'portrait',
|
|
pageSize: 'LETTER',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 6]
|
|
},
|
|
customize: function (doc) {
|
|
doc.defaultStyle.fontSize = 10;
|
|
// doc.styles.tableHeader.alignment = 'left';
|
|
}
|
|
},
|
|
{extend: 'print',
|
|
message: 'LIST OF DIAGNOSIS',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 6]
|
|
},
|
|
customize: function (win) {
|
|
$(win.document.body)
|
|
.css('font-size', '10pt')
|
|
.css('background', '#fff')
|
|
.prepend(
|
|
'<img src="<?php echo asset('uploads/logo/logo-sm.png'); ?>" style="position:absolute; top:0; right:0;" />'
|
|
);
|
|
$(win.document.body).find('table')
|
|
.addClass('compact')
|
|
.css('font-size', 'inherit');
|
|
}
|
|
}
|
|
]
|
|
});
|
|
</script>
|
|
@endpush
|