mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
updated streamline-setup v2
This commit is contained in:
+95
@@ -0,0 +1,95 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">Import Data</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li class="active">Import Data</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<h3 class="text-center">
|
||||
Import {{ $tag_name }} Data
|
||||
</h3>
|
||||
|
||||
<h3 style="color: red"><u>Important note, the document columns must be arranged in the order below. Do not add column headers.</u></h3>
|
||||
|
||||
<ol>
|
||||
<li>Item Code</li>
|
||||
<li>Item Name</li>
|
||||
@if(in_array($tag_id, [3, 5]))<li>Cost Price</li>@endif
|
||||
<li>Cash Selling Price</li>
|
||||
@if($tag_id == 3)<li>Unit ID</li>@endif
|
||||
@if($tag_id == 3)<li>Form ID</li>@endif
|
||||
@if($tag_id == 3)<li>Strength</li>@endif
|
||||
</ol>
|
||||
|
||||
<br>
|
||||
|
||||
{{ Form::open(['route' => 'data_extraction.import_csv_upload', 'data-toggle' => 'validator', 'files' => true, 'enctype'=>'multipart/form-data']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="name">Upload CSV File</label>
|
||||
{{ Form::file('file', ['class' => 'form-control compulsory', 'required', 'accept' => '.csv']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('account_id', 'Income Account') }}
|
||||
{{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($tag_id == 5 || $tag_id == 3)
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }}
|
||||
{{ Form::select('cog_account', $cost_of_goods_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }}
|
||||
{{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ Form::hidden('tag_id', $tag_id) }}
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success pull-right waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">Import Data Progress</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li class="active">Import Data</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<h3 class="text-center"> Please be patient whilst the data is imported... </h3>
|
||||
|
||||
<br><br><br>
|
||||
|
||||
<div class="progress text-lg" style="height: 30px">
|
||||
<div class="progress-bar progress-bar-striped active" role="progressbar"
|
||||
aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%" id="progressbar"></div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
@if(get_name($id, 'id', 'has_price_list', 'csv_imports_processes') == 1)
|
||||
<a class="btn btn-primary btn-block" onclick="start_price_list_manually();">Stuck? Manually Start Process</a>
|
||||
@else
|
||||
<a class="btn btn-primary btn-block" onclick="start_manually();">Stuck? Manually Start Process</a>
|
||||
@endif
|
||||
|
||||
{{ Form::hidden('progress_id', $id, ['id' => 'progress_id'])}}
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
check_progress();
|
||||
|
||||
function check_progress(){
|
||||
var progress_id = $("#progress_id").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/data_extraction/fetch_progress/' + progress_id,
|
||||
success: function(response){
|
||||
$('#progressbar').css({
|
||||
'width' : response + '%'
|
||||
});
|
||||
|
||||
if(response == 100){
|
||||
alert("Records have been imported. Continue...");
|
||||
window.location.href = "/home";
|
||||
} else {
|
||||
check_progress();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function start_manually(){
|
||||
var progress_id = $("#progress_id").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/data_extraction/start_process/' + progress_id,
|
||||
success: function(response){
|
||||
alert("Process has been started");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function start_price_list_manually(){
|
||||
var progress_id = $("#progress_id").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/data_extraction/start_price_list_process/' + progress_id,
|
||||
success: function(response){
|
||||
alert("Process has been started");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">Import Data With Price List</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li class="active">Import Data With Price List</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<h3 class="text-center">
|
||||
Import {{ $tag_name }} Price List
|
||||
</h3>
|
||||
|
||||
<h3 style="color: red"><u>Important note, the document columns must be arranged in the order below. Column headers for patient category price lists must have the same name as the patient category in Stre@mline.</u></h3>
|
||||
|
||||
<ol>
|
||||
<li>Item Name</li>
|
||||
<li>Add As Many Columns For The Patient Category Price Lists...</li>
|
||||
</ol>
|
||||
|
||||
<br>
|
||||
|
||||
{{ Form::open(['route' => 'data_extraction.import_price_list_csv_upload', 'data-toggle' => 'validator', 'files' => true, 'enctype'=>'multipart/form-data']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="name">Upload CSV File</label>
|
||||
{{ Form::file('file', ['class' => 'form-control compulsory', 'required', 'accept' => '.csv']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::hidden('tag_id', $tag_id) }}
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success pull-right waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-6">
|
||||
<h4 class="page-title">Select CSV Import Type</h4>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Select CSV Import Type</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/3" class="btn btn-success btn-rounded btn-outline btn-block">Drugs</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/2" class="btn btn-success btn-rounded btn-outline btn-block">Investigations</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/4" class="btn btn-success btn-rounded btn-outline btn-block">Procedures</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/6" class="btn btn-success btn-rounded btn-outline btn-block">Services</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="/data_extraction/import_csv/5" class="btn btn-success btn-rounded btn-outline btn-block">Sundries</a>
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/3" class="btn btn-primary btn-rounded btn-outline btn-block">Drugs Price List</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/2" class="btn btn-primary btn-rounded btn-outline btn-block">Investigations Price List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/4" class="btn btn-primary btn-rounded btn-outline btn-block">Procedures Price List</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/6" class="btn btn-primary btn-rounded btn-outline btn-block">Services Price List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="/data_extraction/import_price_list_csv/5" class="btn btn-primary btn-rounded btn-outline btn-block">Sundries Price List</a>
|
||||
|
||||
<br><br><br>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@endpush
|
||||
Reference in New Issue
Block a user