|
@@ -108,8 +108,25 @@ if(!@$summaryView) {
|
|
|
|
|
|
<input type="hidden" name="data" value='{{json_encode($medication->data)}}'>
|
|
|
|
|
|
- @if($medication->added_in_note_id === $note->id)
|
|
|
+ @if($medication->added_in_note_id !== $note->id)
|
|
|
|
|
|
+ <div class="mb-2 bg-light p-2 border">
|
|
|
+ <p class="mb-1 font-weight-bold">
|
|
|
+ {{ @$medication->data->name }}
|
|
|
+ </p>
|
|
|
+ @if($patient->core_note_id !== $note->id)
|
|
|
+ <div class="text-secondary">This medication was added outside of this visit.
|
|
|
+ <a href="#" class="update-core-data ml-2">
|
|
|
+ <i class="fa fa-edit on-hover-opaque"></i>
|
|
|
+ Update
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ @endif
|
|
|
+
|
|
|
+ <div class="mb-2 {{$medication->added_in_note_id === $note->id ? '' : 'd-none'}}" if-core-data-edit-confirmed>
|
|
|
<input type="hidden" data-name="medId" value="{{@$medication->data->medId}}">
|
|
|
<input type="hidden" data-name="routedMedId" value="{{@$medication->data->routedMedId}}">
|
|
|
<input type="hidden" data-name="routedDosageFormMedId" value="{{@$medication->data->routedDosageFormMedId}}">
|
|
@@ -123,21 +140,7 @@ if(!@$summaryView) {
|
|
|
stag-suggest
|
|
|
stag-suggest-ep="/fdb-med-suggest-v2/json">
|
|
|
</div>
|
|
|
-
|
|
|
- @else
|
|
|
-
|
|
|
- <div class="mb-2 bg-light p-2 border">
|
|
|
- <p class="mb-1 font-weight-bold">
|
|
|
- {{ @$medication->data->name }}
|
|
|
- </p>
|
|
|
- @if($patient->core_note_id !== $note->id)
|
|
|
- <div class="text-secondary text-sm">Clinical details cannot be modified since the medication was added prior to this visit.</div>
|
|
|
- @else
|
|
|
- <div class="text-secondary text-sm">Clinical details cannot be modified since the medication was added on a previous visit.</div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
-
|
|
|
- @endif
|
|
|
+ </div>
|
|
|
|
|
|
@include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'medication', 'point' => $medication, 'addVerbPT' => 'Prescribed'])
|
|
|
|