mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
287 lines
10 KiB
PHP
Executable File
287 lines
10 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
<style type="text/css">
|
|
label{
|
|
background-color: #3a87ad;
|
|
color: #fff;
|
|
border-radius: 3px;
|
|
display: inline-block;
|
|
padding: 2px 4px;
|
|
font-size: 11.844px;
|
|
font-weight: bold;
|
|
line-height: 14px;
|
|
vertical-align: baseline;
|
|
white-space: nowrap;
|
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
}
|
|
</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">{{ __('patients.view') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('patients.dashboard') }}</a></li>
|
|
<li><a href="{{ route('patients.index') }}">{{ __('patients.patients') }}</a></li>
|
|
<li class="active">{{ __('patients.view') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="white-box">
|
|
@include('flash::message')
|
|
{{ Form::open(['route' => 'patients.select', 'method' => 'ANY', 'role' => 'search']) }}
|
|
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="patient_numbers">
|
|
{{ Form::label('number', __('patients.patient_number')) }}
|
|
{{ Form::text('number', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient number', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="first_names">
|
|
{{ Form::label('first_name', __('patients.first_name')) }}
|
|
{{ Form::text('first_name', '', ['class' => 'form-control typeahead', 'placeholder' => 'First name', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="last_names">
|
|
{{ Form::label('last_name', __('patients.last_name')) }}
|
|
{{ Form::text('last_name', '', ['class' => 'form-control typeahead', 'placeholder' => 'Last name', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="national_ids">
|
|
{{ Form::label('national_id', __('patients.national_id')) }}
|
|
{{ Form::text('national_id', '', ['class' => 'form-control typeahead', 'placeholder' => 'National ID', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
@if(is_chi_enabled())
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="insurance_groups">
|
|
{{ Form::label('insurance_group', __('patients.insurance_group')) }}
|
|
{{ Form::text('insurance_group', '', ['class' => 'form-control typeahead', 'placeholder' => 'Insurance Group', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="patient_categorys">
|
|
{{ Form::label('patient_category', __('patients.patient_category')) }}
|
|
{{ Form::text('patient_category', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient Category', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="subcountys">
|
|
{{ Form::label('subcounty', __('patients.sub_county')) }}
|
|
{{ Form::text('subcounty', '', ['class' => 'form-control typeahead', 'placeholder' => 'SubCounty', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="parishs">
|
|
{{ Form::label('parish', __('patients.parish')) }}
|
|
{{ Form::text('parish', '', ['class' => 'form-control typeahead', 'placeholder' => 'Parish', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="villages">
|
|
{{ Form::label('village', __('patients.village')) }}
|
|
{{ Form::text('village', '', ['class' => 'form-control typeahead', 'placeholder' => 'Village', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
{{ Form::label('date_of_birth', __('patients.date_of_birth')) }}
|
|
<div class="input-group">
|
|
{{ Form::text('date_of_birth','',['class' => 'form-control', 'readonly', 'id'=>'datepicker-autoclose']) }}
|
|
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="form-group" id="phone_number">
|
|
{{ Form::label('phone_number', __('patients.phone_number')) }}
|
|
{{ Form::text('phone_number', '', ['class' => 'form-control typeahead', 'placeholder' => __('patients.phone_number'), 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-1" style="padding-top: 23px;">
|
|
<button type="submit" class="btn btn-success">{{ __('patients.search') }}</button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<img src="/uploads/streamline_images/two_surgeons.jpg" class="img-rounded" style=" height: 150px; margin: auto;" alt="surgery" />
|
|
</div>
|
|
</div>
|
|
|
|
{{ Form::close() }}
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
|
<!-- Typehead Plugin JavaScript -->
|
|
<script src="{{ asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.min.js') }}"></script>
|
|
<script type="text/javascript">
|
|
|
|
$('#datepicker-autoclose').datepicker(
|
|
{
|
|
autoclose: true,
|
|
todayHighlight: true,
|
|
format: 'dd/mm/yyyy'
|
|
}
|
|
);
|
|
|
|
let substringMatcher = function(strs) {
|
|
return function findMatches(q, cb) {
|
|
let matches, substrRegex;
|
|
|
|
// an array that will be populated with substring matches
|
|
matches = [];
|
|
|
|
// regex used to determine if a string contains the substring `q`
|
|
substrRegex = new RegExp(q, 'i');
|
|
|
|
// iterate through the pool of strings and for any string that
|
|
// contains the substring `q`, add it to the `matches` array
|
|
$.each(strs, function(i, str) {
|
|
if (substrRegex.test(str)) {
|
|
matches.push(str);
|
|
}
|
|
});
|
|
|
|
cb(matches);
|
|
};
|
|
};
|
|
|
|
$('#patient_numbers .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'patient_numbers',
|
|
source: substringMatcher(<?php echo json_encode($patient_numbers); ?>)
|
|
}
|
|
);
|
|
|
|
$('#first_names .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'first_names',
|
|
source: substringMatcher(<?php echo json_encode($first_names); ?>)
|
|
}
|
|
);
|
|
|
|
$('#last_names .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'last_names',
|
|
source: substringMatcher(<?php echo json_encode($last_names); ?>)
|
|
}
|
|
);
|
|
|
|
$('#national_ids .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'national_ids',
|
|
source: substringMatcher(<?php echo json_encode($national_ids); ?>)
|
|
}
|
|
);
|
|
|
|
$('#insurance_groups .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'insurance_groups',
|
|
source: substringMatcher(<?php echo json_encode($insurance_groups); ?>)
|
|
}
|
|
);
|
|
|
|
$('#patient_categorys .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'patient_categorys',
|
|
source: substringMatcher(<?php echo json_encode($patient_categories); ?>)
|
|
}
|
|
);
|
|
|
|
$('#subcountys .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'subcountys',
|
|
source: substringMatcher(<?php echo json_encode($subcounties); ?>)
|
|
}
|
|
);
|
|
|
|
$('#parishs .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'parishs',
|
|
source: substringMatcher(<?php echo json_encode($parishes); ?>)
|
|
}
|
|
);
|
|
|
|
$('#villages .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'villages',
|
|
source: substringMatcher(<?php echo json_encode($villages); ?>)
|
|
}
|
|
);
|
|
</script>
|
|
@endpush
|
|
|
|
|