mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
updated streamline-setup v2
This commit is contained in:
+268
@@ -0,0 +1,268 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
@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.add_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.create') }}</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">
|
||||
{{ Form::open(['route' => 'diagnoses.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('diagnoses.diagnosis_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
@if (!empty($errors->get('name')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('name') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('icd10_code', __('diagnoses.icd_10_code')) }}
|
||||
{{ Form::text('icd10_code', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<p> HMIS Outpatient Report (105) </p>
|
||||
<div class="form-group">
|
||||
{{ Form::select('outpatient_hmis_category', $outpatient_hmis_categories, '', ['class' => 'form-control compulsory', 'id'=>'outpatient_hmis_category', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<select class="form-control" id="outpatient_hmis_category_option" name="outpatient_hmis_category_option" required>
|
||||
<option value="" selected disabled>- Select HMIS Outpatient category first -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_parent_dependent_option">
|
||||
{{ Form::label('outpatient_dependent_option', 'Outpatient Dependent Option') }}
|
||||
<select class="form-control" id="outpatient_dependent_option" name="outpatient_dependent_option">
|
||||
<option value="" selected disabled>- Select Dependent Option -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_district_code">
|
||||
{{ Form::label('district_code', 'District Disease Code') }}
|
||||
{{ Form::text('district_code', '', ['class' => 'form-control', 'id'=>'district_code']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<p> HMIS Inpatient Report (108) </p>
|
||||
<div class="form-group">
|
||||
{{-- {{ Form::label('hmis_category', __('diagnoses.hmis_category')) }} --}}
|
||||
{{ Form::select('hmis_category', $inpatient_hmis_categories, '', ['class' => 'form-control compulsory', 'id'=>'hmis_category_inpatient', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('hmis_category_inpatient_options', __('diagnoses.hmis_inpatient_category')) }}
|
||||
<select class="form-control" id="hmis_category_inpatient_options" name="hmis_no_inpatient" required>
|
||||
<option value="" selected disabled>- Select HMIS category first -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="dependent_option">
|
||||
{{ Form::label('hysterectomy_type', 'Dependent Option') }}
|
||||
<select class="form-control" id="parent_dependent_option" name="parent_dependent_option">
|
||||
<option value="" selected disabled>- Select Dependent Option -</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
@if(is_chi_enabled())
|
||||
<div class="form-group" id="drugs_dropdown">
|
||||
{{ Form::label('insurance_tariffs', 'Insurance Tariffs') }}
|
||||
{{ Form::select('insurance_tariffs[]', $insurance_tariffs,'',['id'=>'insurance_tariffs', 'multiple', 'class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompts', __('diagnoses.diagnosis_prompt')) }}
|
||||
{{ Form::textArea('prompts', '', ['class'=>'form-control', 'rows' => 5]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('diagnoses.chronic_status'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('chronic_status', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('chronic_status', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('diagnoses.is_diagnosis_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('diagnosis_category', __('diagnoses.diagnosis_category')) }}
|
||||
{{ Form::select('diagnosis_category', $diagnosis_categories, '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_areas', __('diagnoses.reference_areas')) }}
|
||||
<div class="row input_fields_wrap copy" id="copy">
|
||||
<br><br>
|
||||
<div class="col-md-5">
|
||||
{{ Form::text('reference_names[]', '', ['class' => 'form-control', 'placeholder' => 'Reference name']) }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{{ Form::text('reference_areas[]', '', ['class' => 'form-control', 'placeholder' => 'e.g. http://google.com']) }}
|
||||
</div>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
<a class="add_field btn btn-primary">{{ __('diagnoses.add_more')}}</a>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('diagnoses.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('diagnoses.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('js/diagnosis/create.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#insurance_tariffs').select2({
|
||||
placeholder: "Select",
|
||||
width: "100%"
|
||||
});
|
||||
$('#hmis_category_inpatient_options, #hmis_category_inpatient, #parent_dependent_option, #outpatient_hmis_category, #outpatient_hmis_category_option, #outpatient_dependent_option').select2();
|
||||
$('#dependent_option, #outpatient_parent_dependent_option, #outpatient_district_code').hide();
|
||||
|
||||
$('#hmis_category_inpatient_options').change(function(e) {
|
||||
var parent_id = $('#hmis_category_inpatient_options').val();
|
||||
var div = 'parent_dependent_option';
|
||||
const parents = Object.values(@json($parent_categories));
|
||||
// console.log(parents.findIndex(check_options));
|
||||
if (parents.findIndex(check_options) !== -1) {
|
||||
dependent_category_options(parent_id, div);
|
||||
$('#dependent_option').show();
|
||||
}else if ($('#dependent_option').is(':visible')) {
|
||||
$('#dependent_option').hide();
|
||||
$('#parent_dependent_option').prop('selectedIndex',0);
|
||||
$('#parent_dependent_option').prop('required',false);
|
||||
}
|
||||
|
||||
});
|
||||
$('#outpatient_hmis_category_option').change(function(){
|
||||
var option = $('#outpatient_hmis_category_option').val();
|
||||
var div = 'outpatient_dependent_option';
|
||||
const parent_options = Object.values(@json($parent_categories));
|
||||
if(option == '655'){
|
||||
$('#outpatient_district_code').show();
|
||||
$('#district_code').addClass('compulsory');
|
||||
$('#district_code').prop('required', true);
|
||||
}else {
|
||||
if($('#district_code').is(':visible')) $('#district_code').val('');
|
||||
if (parent_options.findIndex(check_option) !== -1) {
|
||||
dependent_category_options(option, div);
|
||||
$('#outpatient_parent_dependent_option').show();
|
||||
}else if ($('#outpatient_parent_dependent_option').is(':visible')) {
|
||||
$('#outpatient_parent_dependent_option').hide();
|
||||
$('#outpatient_dependent_option').prop('selectedIndex',0);
|
||||
$('#outpatient_dependent_option').prop('required',false);
|
||||
}else if ($('#outpatient_district_code').is(':visible')) {
|
||||
$('#district_code').prop('required', false);
|
||||
$('#district_code').removeClass('compulsory');
|
||||
$('#outpatient_district_code').hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function check_options(parent_id) {
|
||||
return parent_id == $('#hmis_category_inpatient_options').val();
|
||||
}
|
||||
|
||||
function check_option(parent_id) {
|
||||
return parent_id == $('#outpatient_hmis_category_option').val();
|
||||
}
|
||||
|
||||
|
||||
$('#hmis_category_inpatient').change(function(e) {
|
||||
category_options('hmis_category_inpatient');
|
||||
});
|
||||
|
||||
$('#outpatient_hmis_category').change(function(e) {
|
||||
category_options('outpatient_hmis_category');
|
||||
});
|
||||
|
||||
function category_options(data){
|
||||
let category = $('#'+data).val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_hmis_categories_options",
|
||||
data: {hmis_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
var option = (data == 'hmis_category_inpatient')? 'hmis_category_inpatient_options':'outpatient_hmis_category_option';
|
||||
$('#'+option).html(response);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function dependent_category_options(option, div){
|
||||
let category = option;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_dependent_hmis_category_options",
|
||||
data: {parent_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
$('#' + div).html(response);
|
||||
$('#' + div).prop('required',true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+275
@@ -0,0 +1,275 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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.edit_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.edit') }}</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">
|
||||
{{ Form::model($diagnosis, ['method' => 'PUT', 'route' => ['diagnoses.update',$diagnosis], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('diagnoses.diagnosis_name')) }}
|
||||
{{ Form::text('name', $diagnosis->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
@if (!empty($errors->get('name')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('name') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('icd10_code', __('diagnoses.icd_10_code')) }}
|
||||
{{ Form::text('icd10_code', $diagnosis->icd10_code, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<p> HMIS Outpatient Report (105) </p>
|
||||
<div class="form-group">
|
||||
{{ Form::label('outpatient_hmis_category', __('diagnoses.outpatient_hmis_category')) }}
|
||||
{{ Form::select('outpatient_hmis_category', $outpatient_hmis_categories, $diagnosis->outpatient_hmis_category?? '', ['class' => 'form-control compulsory', 'id'=>'outpatient_hmis_category', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('outpatient_hmis_category_option', __('diagnoses.hmis_outpatient_category')) }}
|
||||
{{ Form::select('outpatient_hmis_category_option', $outpatient_category_options, $diagnosis->outpatient_hmis_category_option?? '', ['class'=>'form-control', 'id'=>'outpatient_hmis_category_option', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_parent_dependent_option">
|
||||
{{ Form::label('outpatient_dependent_option', 'Outpatient Dependent Option') }}
|
||||
{{ Form::select('outpatient_dependent_option', $outpatient_dependent_options, $diagnosis->outpatient_dependent_option?? '', ['class'=>'form-control', 'id'=>'outpatient_dependent_option']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="outpatient_district_code" style="display: none">
|
||||
{{ Form::label('district_code', 'District Disease Code') }}
|
||||
@php
|
||||
$district_code = \Streamline\Models\HmisCategoryOptions::find($diagnosis->outpatient_dependent_option);
|
||||
@endphp
|
||||
{{ Form::text('district_code', $district_code->name?? '', ['class' => 'form-control', 'id'=>'district_code']) }}
|
||||
{{ Form::hidden('district_code_id', $district_code->id?? '') }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<p> HMIS Inpatient Report (108) </p>
|
||||
<div class="form-group">
|
||||
{{ Form::label('hmis_category', __('diagnoses.hmis_category')) }}
|
||||
{{ Form::select('hmis_category', $inpatient_hmis_categories, $diagnosis->hmis_category, ['class' => 'form-control compulsory', 'id'=>'hmis_category_inpatient', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('hmis_no_inpatient', __('diagnoses.hmis_inpatient_category')) }}
|
||||
{{ Form::select('hmis_no_inpatient', $inpatient_category_options, $diagnosis->hmis_no_inpatient?? '', ['class'=>'form-control', 'id'=>'hmis_category_inpatient_options', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="dependent_option">
|
||||
{{ Form::label('dependent_option', 'Dependent Option') }}
|
||||
{{ Form::select('parent_dependent_option', $dependent_options, $diagnosis->dependent_option, ['class'=>'form-control', 'id'=>'parent_dependent_option']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@if(is_chi_enabled())
|
||||
<div class="form-group" id="drugs_dropdown">
|
||||
{{ Form::label('insurance_tariffs', 'Insurance Tariffs') }}
|
||||
{{ Form::select('insurance_tariffs[]', $insurance_tariffs, explode(",", $diagnosis->insurance_tariffs),['id'=>'insurance_tariffs', 'multiple', 'class' => 'form-control']) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('prompts', __('diagnoses.diagnosis_prompt')) }}
|
||||
{{ Form::textArea('prompts', $diagnosis->prompts, ['class'=>'form-control', 'rows' => 5]) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('', __('diagnoses.chronic_status'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('chronic_status', 1, ($diagnosis->chronic_status) ? true : false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('chronic_status', 0, ($diagnosis->chronic_status) ? false : true, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('available', __('diagnoses.is_diagnosis_available'), ["class"=>'col-md-12']) }}
|
||||
{{ __('diagnoses.yes') }} {{ Form::radio('available', 1, $diagnosis->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
{{ __('diagnoses.no') }} {{ Form::radio('available', 0, $diagnosis->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('diagnosis_category', __('diagnoses.diagnosis_category')) }}
|
||||
{{ Form::select('diagnosis_category', $diagnosis_categories, $diagnosis->diagnosis_category, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_areas', __('diagnoses.reference_areas')) }}
|
||||
<?php
|
||||
$reference_areas_array = array_filter(explode(",", $diagnosis->reference_areas));
|
||||
$reference_names_array = array_filter(explode(",", $diagnosis->reference_names));
|
||||
?>
|
||||
@for ($x = 0; $x < count($reference_areas_array); $x++)
|
||||
<div class="row input_fields_wrap copy" id="copy">
|
||||
<br><br>
|
||||
<div class="col-md-5">
|
||||
{{ Form::text('reference_names[]', $reference_names_array ? $reference_names_array[$x] : '', ['class' => 'form-control', 'placeholder' => 'Reference name']) }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{{ Form::text('reference_areas[]', $reference_areas_array ? $reference_areas_array[$x] : '', ['class' => 'form-control', 'placeholder' => 'e.g. http://google.com']) }}
|
||||
</div>
|
||||
@if ($x > 0)
|
||||
<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a>
|
||||
@endif
|
||||
</div>
|
||||
@endfor
|
||||
</div>
|
||||
<a class="add_field btn btn-primary">{{ __('diagnoses.add_more')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('diagnoses.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('diagnoses.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('js/diagnosis/create.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<!-- icheck -->
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#insurance_tariffs').select2({
|
||||
placeholder: "Select",
|
||||
width: "100%"
|
||||
});
|
||||
|
||||
$('#hmis_category_inpatient_options, #hmis_category_inpatient, #parent_dependent_option, #outpatient_hmis_category, #outpatient_hmis_category_option, #outpatient_dependent_option').select2();
|
||||
var show = {!! json_encode($diagnosis->dependent_option) !!};
|
||||
if(show == null) $('#dependent_option').hide();
|
||||
var show2 = {!! json_encode($diagnosis->outpatient_dependent_option) !!};
|
||||
var show3 = {!! json_encode($diagnosis->outpatient_hmis_category_option) !!};
|
||||
console.log(show3);
|
||||
if(show2 == null || show3 == '655') $('#outpatient_parent_dependent_option').hide();
|
||||
if(show3 == '655') $('#outpatient_district_code').show();
|
||||
$('#hmis_category_inpatient_options').change(function(e) {
|
||||
var parent_id = $('#hmis_category_inpatient_options').val();
|
||||
var div = 'parent_dependent_option';
|
||||
const parents = Object.values(@json($parent_categories));
|
||||
// console.log(parents.findIndex(check_options));
|
||||
if (parents.findIndex(check_options) !== -1) {
|
||||
dependent_category_options(parent_id, div);
|
||||
$('#dependent_option').show();
|
||||
}else if ($('#dependent_option').is(':visible')) {
|
||||
$('#dependent_option').hide();
|
||||
$('#parent_dependent_option').prop('selectedIndex',0);
|
||||
$('#parent_dependent_option').prop('required',false);
|
||||
}
|
||||
|
||||
});
|
||||
$('#outpatient_hmis_category_option').change(function(){
|
||||
var option = $('#outpatient_hmis_category_option').val();
|
||||
var div = 'outpatient_dependent_option';
|
||||
const parent_options = Object.values(@json($parent_categories));
|
||||
if(option == '655'){
|
||||
$('#outpatient_district_code').show();
|
||||
$('#district_code').addClass('compulsory');
|
||||
$('#district_code').prop('required', true);
|
||||
}else{
|
||||
if($('#district_code').is(':visible')) $('#district_code').val('');
|
||||
if (parent_options.findIndex(check_option) !== -1) {
|
||||
dependent_category_options(option, div);
|
||||
$('#outpatient_parent_dependent_option').show();
|
||||
}else if ($('#outpatient_parent_dependent_option').is(':visible')) {
|
||||
$('#outpatient_parent_dependent_option').hide();
|
||||
$('#outpatient_dependent_option').prop('selectedIndex',0);
|
||||
$('#outpatient_dependent_option').prop('required',false);
|
||||
}else if ($('#outpatient_district_code').is(':visible')) {
|
||||
$('#district_code').prop('required', false);
|
||||
$('#district_code').removeClass('compulsory');
|
||||
$('#outpatient_district_code').hide();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
function check_options(parent_id) {
|
||||
return parent_id == $('#hmis_category_inpatient_options').val();
|
||||
}
|
||||
|
||||
function check_option(parent_id) {
|
||||
return parent_id == $('#outpatient_hmis_category_option').val();
|
||||
}
|
||||
|
||||
$('#hmis_category_inpatient').change(function(e) {
|
||||
category_options('hmis_category_inpatient');
|
||||
});
|
||||
|
||||
$('#outpatient_hmis_category').change(function(e) {
|
||||
category_options('outpatient_hmis_category');
|
||||
});
|
||||
|
||||
function category_options(data){
|
||||
let category = $('#'+data).val();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_hmis_categories_options",
|
||||
data: {hmis_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
var option = (data == 'hmis_category_inpatient')? 'hmis_category_inpatient_options':'outpatient_hmis_category_option';
|
||||
$('#'+option).html(response);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function dependent_category_options(option, div){
|
||||
let category = option;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/get_dependent_hmis_category_options",
|
||||
data: {parent_category: category},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('procedures.failed_options'); ?>");
|
||||
} else {
|
||||
$('#' + div).html(response);
|
||||
$('#' + div).prop('required',true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
@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.edit_all_diagnoses') }}</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.edit_all') }}</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">
|
||||
{{ Form::model($diagnoses, ['method' => 'ANY', 'route' => ['diagnoses.update_all'], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>{{ __('diagnoses.id') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_out_patient_number') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_inpatient_category') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th width="8%">{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.reference_names_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_category') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th hidden>{{ __('diagnoses.id') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_out_patient_number') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_inpatient_category') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th width="8%">{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.reference_names_seperate_with_commas') }}</th>
|
||||
<th>{{ __('diagnoses.hmis_category') }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($diagnoses as $diagnosis)
|
||||
<tr>
|
||||
<td hidden>{{ Form::text('id[]', $diagnosis->id, ['class' => 'form-control']) }}</td>
|
||||
<td>
|
||||
<p style="display: none">{{ $diagnosis->name }}</p>
|
||||
{{ Form::text('name[]', $diagnosis->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</td>
|
||||
<td>{{ Form::text('icd10_code[]', $diagnosis->icd10_code, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('hmis_no_outpatient[]', $diagnosis->hmis_no_outpatient, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('hmis_no_inpatient[]', $diagnosis->hmis_no_inpatient, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::textArea('prompts[]', $diagnosis->prompts, ['class' => 'form-control', 'rows' => 5]) }}</td>
|
||||
<td>{{ Form::select('chronic_status[]', [1 => 'Yes', 0 => 'No'], $diagnosis->chronic_status, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('reference_areas[]', $diagnosis->reference_areas, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::text('reference_names[]', $diagnosis->reference_names, ['class' => 'form-control']) }}</td>
|
||||
<td>{{ Form::select('hmis_category[]', $hmis_categories, $diagnosis->hmis_category, ['class' => 'form-control']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('diagnoses.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('diagnoses.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('clinical_data::diagnoses.menu')
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
@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.active_diagnoses') }}</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.activate') }}</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">
|
||||
<p class="text-muted m-b-30">Export data to Copy, CSV, Excel, PDF & Print</p>
|
||||
<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_number') }}</th>
|
||||
<th>{{ __('diagnoses.inpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas') }}</th>
|
||||
<th>{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('diagnoses.diagnosis_name') }}</th>
|
||||
<th>{{ __('diagnoses.icd_10_code') }}</th>
|
||||
<th>{{ __('diagnoses.outpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.inpatient_number') }}</th>
|
||||
<th>{{ __('diagnoses.diagnosis_prompt') }}</th>
|
||||
<th>{{ __('diagnoses.reference_areas') }}</th>
|
||||
<th>{{ __('diagnoses.chronic_status') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($diagnoses as $diagnosis)
|
||||
<tr>
|
||||
<td>{{ $diagnosis->name }}</td>
|
||||
<td>{{ $diagnosis->icd10_code }}</td>
|
||||
<td>{{ $diagnosis->hmis_no_outpatient }}</td>
|
||||
<td>{{ $diagnosis->hmis_no_inpatient }}</td>
|
||||
<td>{{ $diagnosis->prompts }}</td>
|
||||
<td>
|
||||
<?php
|
||||
$reference_areas_array = explode(",", $diagnosis->reference_areas);
|
||||
$reference_names_array = explode(",", $diagnosis->reference_names);
|
||||
?>
|
||||
|
||||
@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>
|
||||
{{ Form::model($diagnosis->id ,['method' => 'POST', 'route' => ['diagnoses.activate', $diagnosis->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('diagnoses.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('diagnoses.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
@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
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="/diagnoses/create" class="nav-item btn btn-default ti-plus">{{ __('diagnoses.add_new_diagnosis') }}</a>
|
||||
<a href="/diagnoses/edit/all" class="nav-item btn btn-default ti-pencil"> {{ __('diagnoses.edit_all_diagnoses') }}</a>
|
||||
<a href="/diagnoses/" class="nav-item btn btn-default ti-pencil"> {{ __('diagnoses.view_activate_diagnoses') }}</a>
|
||||
<a href="/diagnoses/inactive" class="nav-item btn btn-default ti-pencil"> {{ __('diagnoses.view_inactivate_diagnoses') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user