mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
77 lines
4.4 KiB
PHP
Executable File
77 lines
4.4 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
|
@endpush
|
|
|
|
@section('content')
|
|
<div class="row bg-title">
|
|
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
|
|
<h4 class="page-title">{{ $patient->last_name }} {{ __('prescriptions.treatment_for_episode') }}:<a>{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</h4>
|
|
</div>
|
|
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('prescriptions.dashboard') }}</a></li>
|
|
<li><a href="{{ route('patient_episodes.index') }}">{{ __('prescriptions.patient_home') }}</a></li>
|
|
<li class="active">{{ __('prescriptions.prescription') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="white-box">
|
|
<div class="table-responsive">
|
|
<strong>{{ __('prescriptions.patient_treatment') }}</strong><span class="glyphicon glyphicon-print" style="float: right;" onclick="window.print()"></span>
|
|
<table class="table color-bordered-table success-bordered-table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{ __('prescriptions.drug') }}</th>
|
|
<th>{{ __('prescriptions.dosage') }}</th>
|
|
<th>{{ __('prescriptions.duration') }}</th>
|
|
<th>{{ __('prescriptions.quantity') }}</th>
|
|
<th>{{ __('prescriptions.total_cost') }}</th>
|
|
<th>{{ __('prescriptions.instructions') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
$drugs_array = explode(",", $treatment->drugs);
|
|
$dosage_array = explode(",", $treatment->doses);
|
|
$dosage2_array = explode(",", $treatment->dose2);
|
|
$frequencies_array = explode(",", $treatment->frequencies);
|
|
$duration_array = explode(",", $treatment->durations);
|
|
$quantity_dispensed_array = explode(",", $treatment->quantities_dispensed);
|
|
$total_drug_price = 0;
|
|
$instructions_array = explode(",", $treatment->instruction);
|
|
?>
|
|
<tbody>
|
|
@for ($x = 0; $x < count($drugs_array); $x++)
|
|
<tr>
|
|
<td>{{ $x+1 }}</td>
|
|
<td>{{ get_name($drugs_array[$x], 'id', 'name', 'drugs') }} </td>
|
|
<td>{{ $dosage_array[$x] }} {{ get_name($frequencies_array[$x], 'id', 'name', 'dosage_frequencies') }} </td>
|
|
<td> {{ $duration_array[$x] }} </td>
|
|
<td> {{ $quantity_dispensed_array[$x] }} </td>
|
|
@php
|
|
if(get_name($drugs_array[$x], "id", "insurance_coverage", "drugs") == 1 && patient_insurance_status($patient->id) == 1){
|
|
$cost_price = get_name($drugs_array[$x], "id", "insured_price", "drugs");
|
|
} else {
|
|
$cost_price = get_name($drugs_array[$x], "id", "non_insured_price", "drugs");
|
|
}
|
|
|
|
$drug_price = $cost_price * $quantity_dispensed_array[$x];
|
|
$total_drug_price += $drug_price;
|
|
@endphp
|
|
<td> {{ ugandan_shillings($drug_price) }} </td>
|
|
<td> {{ trim($instructions_array[$x]) }}</td>
|
|
</tr>
|
|
@endfor
|
|
<tr><td></td><td colspan="4">{{ __('prescriptions.total') }}</td><td style="font-weight: bold;">{{ ugandan_shillings($total_drug_price) }}</td><td></td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|