@extends('layouts.main') @push('styles') @endpush @section('content')
| # | {{ __('prescriptions.drug') }} | {{ __('prescriptions.dosage') }} | {{ __('prescriptions.prompt') }} | {{ __('prescriptions.duration') }} | {{ __('prescriptions.dispense') }} | {{ __('prescriptions.price') }} | {{ __('prescriptions.instructions') }} |
|---|---|---|---|---|---|---|---|
| Selected | |||||||
| @php $total_stock = (($prescription->pharmacy_stock < 0) ? 0 : $prescription->pharmacy_stock) + (($prescription->store_stock < 0) ? 0 : $prescription->store_stock); @endphp @if ($total_stock > 0 && !$patient_is_allergic) @endif |
@php
$insurance_color = ($prescription->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) ? "green" : "orange";
@endphp
@if ($patient_is_allergic)
{{ __('prescriptions.patient_is_allergic') }}
@endif
@if ($total_stock <= 0)
{{ __('prescriptions.out_of_stock') }}
@endif
{{ $prescription->name }}
pharmacy_comment);
$reference_array = explode(",", $prescription->reference_areas);
$reference_name = explode(",", $prescription->reference_name);
?>
@for ($x = 0; $x < count($reference_array); $x++)
@if(isset($reference_array[$x]) && isset($reference_name[$x]))
{{ $reference_name[$x] }} @endif @endfor @if (!empty($pharm_comment)) {{ $pharm_comment }}
@endif
|
unit_id); ?>
{{ $drugunit }}
|
prompt)):
echo ' ';
echo $prescription->prompt;
echo " ";
endif;
// Hidden field for Long Term
echo "";
?>
|
Duration in days | form_id); ?> @if($prescription->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) @else @endif | ||
| {{ __('prescriptions.grand_total') }} | |||||||
| {{ __('prescriptions.no_drugs_searched') }} | |||||||
| {{ __('prescriptions.drug_refill_from') }} {{ streamline_date(get_name($parent_episode_id, 'id', 'created_at', 'patient_episodes')) }} | |||||||
| @php $total_stock = $drug_details->pharmacy_stock; @endphp @if ($total_stock > 0) @endif |
@php
$insurance_color = ($drug_details->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) ? "green" : "orange";
@endphp
@if ($total_stock <= 0)
{{ __('prescriptions.out_of_stock') }}
@endif
{{ $drug_details->name }}
pharmacy_comment);
$reference_array = explode(",", $drug_details->reference_areas);
$reference_name = explode(",", $drug_details->reference_name);
?>
@for ($x = 0; $x < count($reference_array); $x++)
@if(isset($reference_array[$x]) && isset($reference_name[$x]))
{{ $reference_name[$x] }} @endif @endfor @if (!empty($pharm_comment)) {{ $pharm_comment }}
@endif
|
unit_id); ?>
{{ $drugunit }}
|
prompt)):
echo ' ';
echo $drug_details->prompt;
echo " ";
endif;
// Hidden field for Long Term
echo "";
?>
|
@php $duration_with_days_text = explode(" ", $duration_array[$j]); @endphp {{ __('prescriptions.duration_in_days') }} | form_id); ?> @if($drug_details->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) @else @endif | ||
| @php $total_stock = $drug_details->pharmacy_stock; @endphp @if ($total_stock > 0) @endif |
@php
$insurance_color = ($drug_details->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) ? "green" : "orange";
@endphp
@if ($total_stock <= 0)
{{ __('prescriptions.out_of_stock') }}
@endif
{{ $drug_details->name }}
pharmacy_comment);
$reference_array = explode(",", $drug_details->reference_areas);
$reference_name = explode(",", $drug_details->reference_name);
?>
@for ($x = 0; $x < count($reference_array); $x++)
@if(isset($reference_array[$x]) && isset($reference_name[$x]))
{{ $reference_name[$x] }} @endif @endfor @if (!empty($pharm_comment)) {{ $pharm_comment }}
@endif
|
unit_id); ?>
{{ $drugunit }}
|
prompt)):
echo ' ';
echo $drug_details->prompt;
echo " ";
endif;
// Hidden field for Long Term
echo "";
?>
|
@php $duration_with_days_text = explode(" ", $duration_array[$k]); @endphp {{ __('prescriptions.duration_in_days') }} | form_id); ?> @if($drug_details->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) @else @endif | ||
| Pending | |||||||
| "; echo ""; echo " | " . ""
. "" . $treament_drug->name . "";
$pharm_comment = trim($treament_drug->pharmacy_comment);
if (!empty($pharm_comment)):
echo " " . $pharm_comment . " ";
endif;
echo " | ";
?>
unit_id);
?>
|
" . $treament_drug->prompt . ""; ?> | Duration in days | form_id); ?> @if($treament_drug->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) @else @endif | insurance_coverage == 1 && patient_insurance_status($patient_id) == 1){ $drug_price = $treament_drug->insured_price * $quantity_dispensed_array[$x]; } else { $drug_price = $treament_drug->non_insured_price * $quantity_dispensed_array[$x]; } $total_drug_price += $drug_price; echo "" . ugandan_shillings($drug_price) . " | "; ?>"; } } $final_total = ugandan_shillings($total_drug_price); ?> |
| Grand total | {{ $final_total }} | ||||||
| DATE | DRUG NAME | DOSAGE | DURATION | QUANTITY | STATUS | INSTRUCTION |
|---|---|---|---|---|---|---|
| {{ streamline_date_time($treatment->updated_at) }} | {{ get_name($drugs_array[$x], 'id', "name", 'drugs') }} | {{ $dosage_array[$x] }} {!! $drug_unit !!} {{ $dose2 }} {{ $frequency_name }} | {{ $duration_array[$x] }} | {{ $quantity_dispensed_array[$x] }} | @if($treatment->altered == 0) {{ __('prescriptions.dispensed') }} @else {{ __('prescriptions.altered_and_dispensed') }} @endif | {{ isset($instructions_array[$x]) ? trim($instructions_array[$x]) : 'N/A' }} |
No treatment history for this episode |
||||||