|
@@ -53,8 +53,8 @@ if(!@$summaryView) {
|
|
|
<th class="border-bottom-0 text-secondary text-center width-30px">Rel.</th>
|
|
|
@endif
|
|
|
<th class="border-bottom-0 text-secondary">Name</th>
|
|
|
- <th class="border-bottom-0 text-secondary w-30">Subjective</th>
|
|
|
- <th class="border-bottom-0 text-secondary w-30">Plan</th>
|
|
|
+ <th class="border-bottom-0 text-secondary w-30">Subj. Frequency / Experience</th>
|
|
|
+ <th class="border-bottom-0 text-secondary w-30">Plan Frequency</th>
|
|
|
@if(!@$summaryView) <th class="border-bottom-0 text-secondary width-30px"></th> @endif
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -88,7 +88,19 @@ if(!@$summaryView) {
|
|
|
<div>
|
|
|
@if(!@$summaryView)
|
|
|
<div moe huge relative>
|
|
|
- <a start show href="#" title="Edit"><?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?></a>
|
|
|
+ <a start show href="#" title="Edit">
|
|
|
+ <?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?>
|
|
|
+ <?php
|
|
|
+ if($medication->last_child_review_data) {
|
|
|
+ $review = json_decode($medication->last_child_review_data);
|
|
|
+ if(isset($review->value) && isset($review->experience)) {
|
|
|
+ ?>
|
|
|
+ <span class="text-dark text-sm ml-1">({{$review->value}})</span>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </a>
|
|
|
<form url="/api/visitPoint/updateTopLevel" no-auto-focus class="mcp-theme-1 frm-edit-medication">
|
|
|
<input type="hidden" name="uid" value="<?= $medication->uid ?>">
|
|
|
<input type="hidden" name="noteUid" value="<?= $note->uid ?>">
|
|
@@ -167,12 +179,15 @@ if(!@$summaryView) {
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
+ <?php
|
|
|
+ list($currentChildReview, $previousChildReview) = @$point ? \App\Models\Point::getCurrentAndPreviousChildReviews($medication, $note) : [null, null];
|
|
|
+ ?>
|
|
|
<div if-read-mode>
|
|
|
<div class="d-flex align-items-start position-relative">
|
|
|
<div class="flex-grow-1">
|
|
|
<?php
|
|
|
$point = $medication;
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_review/last-review-optimized.php');
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/medication/last-review-optimized.php');
|
|
|
?>
|
|
|
</div>
|
|
|
@if(!@$summaryView)
|
|
@@ -187,7 +202,7 @@ if(!@$summaryView) {
|
|
|
</a>
|
|
|
<?php
|
|
|
if($segment) {
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_review/edit-review-optimized.php');
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/medication/edit-review-optimized.php');
|
|
|
}
|
|
|
?>
|
|
|
</div>
|
|
@@ -197,17 +212,20 @@ if(!@$summaryView) {
|
|
|
<div if-edit-mode>
|
|
|
<?php
|
|
|
if($segment) {
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_review/edit-review-in-place-optimized.php');
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/medication/edit-review-in-place-optimized.php');
|
|
|
}
|
|
|
?>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
+ <?php
|
|
|
+ list($currentChildPlan, $previousChildPlan) = @$point ? \App\Models\Point::getCurrentAndPreviousChildPlans($medication, $note) : [null, null];
|
|
|
+ ?>
|
|
|
<div if-read-mode>
|
|
|
<div class="d-flex align-items-start position-relative">
|
|
|
<div class="flex-grow-1">
|
|
|
<?php
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_plan/last-plan-optimized.php');
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_plan/medication/last-plan-optimized.php');
|
|
|
?>
|
|
|
</div>
|
|
|
@if(!@$summaryView)
|
|
@@ -222,7 +240,7 @@ if(!@$summaryView) {
|
|
|
</a>
|
|
|
<?php
|
|
|
if($segment) {
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan-optimized.php');
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_plan/medication/edit-plan-optimized.php');
|
|
|
}
|
|
|
?>
|
|
|
</div>
|
|
@@ -232,7 +250,7 @@ if(!@$summaryView) {
|
|
|
<div if-edit-mode>
|
|
|
<?php
|
|
|
if($segment) {
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan-in-place-optimized.php');
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_plan/medication/edit-plan-in-place-optimized.php');
|
|
|
}
|
|
|
?>
|
|
|
</div>
|
|
@@ -270,86 +288,86 @@ if(!@$summaryView) {
|
|
|
@include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'medication', 'adder' => 'Prescriber'])
|
|
|
</div>
|
|
|
<div class="cm-tab d-none" tab-key="add-single">
|
|
|
- <div class="row">
|
|
|
- <div class="col-8">
|
|
|
- <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-medication" novalidate>
|
|
|
- <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
|
|
|
- <input type="hidden" name="category" value="MEDICATION">
|
|
|
- <input type="hidden" name="data">
|
|
|
-
|
|
|
- <input type="hidden" data-name="medId">
|
|
|
- <input type="hidden" data-name="routedMedId">
|
|
|
- <input type="hidden" data-name="routedDosageFormMedId">
|
|
|
- <input type="hidden" data-name="gcnSeqno">
|
|
|
-
|
|
|
- <input type="hidden" name="isRemovedDueToEntryError" value="0">
|
|
|
-
|
|
|
- <div class="d-flex align-items-baseline mb-2">
|
|
|
- <b>Add Medication</b>
|
|
|
- @if(count($favorites))
|
|
|
- <div class="d-inline position-relative on-click-menu ml-4">
|
|
|
- <span class="text-primary c-pointer">
|
|
|
- <i class="fa fa-bookmark text-info mr-1"></i> Common Medications <i class="ml-1 fa fa-caret-down"></i>
|
|
|
- </span>
|
|
|
- <div menu right class="bg-white border">
|
|
|
- @foreach($favorites as $favorite)
|
|
|
- <a native target="_blank" href="#"
|
|
|
- data-name="{{@($favorite->data->name)}}"
|
|
|
- data-medId="{{@($favorite->data->medId)}}"
|
|
|
- data-routedMedId="{{@($favorite->data->routedMedId)}}"
|
|
|
- data-routedDosageFormMedId="{{@($favorite->data->routedDosageFormMedId)}}"
|
|
|
- data-gcnSeqno="{{@($favorite->data->gcnSeqno)}}"
|
|
|
- class="px-2 py-1 d-block text-nowrap text-sm favorite-item">
|
|
|
- {{$favorite->data->name}}
|
|
|
- </a>
|
|
|
- @endforeach
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <label class="mb-0 font-weight-bold">Name</label>
|
|
|
- <input type="text"
|
|
|
- data-name="name"
|
|
|
- class="form-control form-control-sm"
|
|
|
- stag-suggest
|
|
|
- stag-suggest-bottom-left
|
|
|
- stag-suggest-ep="/fdb-med-suggest-v2/json"
|
|
|
- required>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-8">
|
|
|
+ <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-medication" novalidate>
|
|
|
+ <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
|
|
|
+ <input type="hidden" name="category" value="MEDICATION">
|
|
|
+ <input type="hidden" name="data">
|
|
|
+
|
|
|
+ <input type="hidden" data-name="medId">
|
|
|
+ <input type="hidden" data-name="routedMedId">
|
|
|
+ <input type="hidden" data-name="routedDosageFormMedId">
|
|
|
+ <input type="hidden" data-name="gcnSeqno">
|
|
|
+
|
|
|
+ <input type="hidden" name="isRemovedDueToEntryError" value="0">
|
|
|
+
|
|
|
+ <div class="d-flex align-items-baseline mb-2">
|
|
|
+ <b>Add Medication</b>
|
|
|
+ @if(count($favorites))
|
|
|
+ <div class="d-inline position-relative on-click-menu ml-4">
|
|
|
+ <span class="text-primary c-pointer">
|
|
|
+ <i class="fa fa-bookmark text-info mr-1"></i> Common Medications <i class="ml-1 fa fa-caret-down"></i>
|
|
|
+ </span>
|
|
|
+ <div menu right class="bg-white border">
|
|
|
+ @foreach($favorites as $favorite)
|
|
|
+ <a native target="_blank" href="#"
|
|
|
+ data-name="{{@($favorite->data->name)}}"
|
|
|
+ data-medId="{{@($favorite->data->medId)}}"
|
|
|
+ data-routedMedId="{{@($favorite->data->routedMedId)}}"
|
|
|
+ data-routedDosageFormMedId="{{@($favorite->data->routedDosageFormMedId)}}"
|
|
|
+ data-gcnSeqno="{{@($favorite->data->gcnSeqno)}}"
|
|
|
+ class="px-2 py-1 d-block text-nowrap text-sm favorite-item">
|
|
|
+ {{$favorite->data->name}}
|
|
|
+ </a>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-0 font-weight-bold">Name</label>
|
|
|
+ <input type="text"
|
|
|
+ data-name="name"
|
|
|
+ class="form-control form-control-sm"
|
|
|
+ stag-suggest
|
|
|
+ stag-suggest-bottom-left
|
|
|
+ stag-suggest-ep="/fdb-med-suggest-v2/json"
|
|
|
+ required>
|
|
|
+ </div>
|
|
|
|
|
|
- <?php $point = null; ?>
|
|
|
- @include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'medication', 'addVerbPT' => 'Prescribed'])
|
|
|
+ <?php $point = null; ?>
|
|
|
+ @include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'medication', 'addVerbPT' => 'Prescribed'])
|
|
|
|
|
|
- <div class="d-flex align-items-center">
|
|
|
- <button type="submit" class="btn btn-sm btn-primary mr-2">Save Medication</button>
|
|
|
- <button type="button" class="btn btn-sm btn-default border-secondary bg-white border mr-2" onclick="return closeStagPopup()">Close</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
+ <button type="submit" class="btn btn-sm btn-primary mr-2">Save Medication</button>
|
|
|
+ <button type="button" class="btn btn-sm btn-default border-secondary bg-white border mr-2" onclick="return closeStagPopup()">Close</button>
|
|
|
</div>
|
|
|
- <div class="col-4 border-left">
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div class="col-4 border-left">
|
|
|
|
|
|
- <?php
|
|
|
- $problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
|
|
|
- ?>
|
|
|
- @if(count($problems))
|
|
|
- <h6 class="my-0 font-weight-bold text-secondary mb-2">Active Problems</h6>
|
|
|
- <div class="bg-light border px-2 pt-2 pb-1 mb-0">
|
|
|
- @foreach($problems as $problem)
|
|
|
- <div class="mb-1">
|
|
|
- <b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
+ <?php
|
|
|
+ $problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
|
|
|
+ ?>
|
|
|
+ @if(count($problems))
|
|
|
+ <h6 class="my-0 font-weight-bold text-secondary mb-2">Active Problems</h6>
|
|
|
+ <div class="bg-light border px-2 pt-2 pb-1 mb-0">
|
|
|
+ @foreach($problems as $problem)
|
|
|
+ <div class="mb-1">
|
|
|
+ <b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
|
|
|
</div>
|
|
|
- <hr class="my-3 m-neg-3">
|
|
|
- @endif
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ <hr class="my-3 m-neg-3">
|
|
|
+ @endif
|
|
|
|
|
|
- <div class="fdb-rx-vigilance max-height-400px overflow-auto">
|
|
|
+ <div class="fdb-rx-vigilance max-height-400px overflow-auto">
|
|
|
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@endif
|