|
@@ -50,7 +50,7 @@ $medications = $points;
|
|
|
@if($medication->is_removed)
|
|
|
<i class="text-warning-mellow fa fa-circle text-sm on-hover-opaque mr-2"></i>
|
|
|
@else
|
|
|
- <i class="text-success fa fa-circle text-sm on-hover-opaque mr-2"></i>
|
|
|
+ <i class="text-success fa fa-circle text-sm on-hover-opaque mr-2 active-record"></i>
|
|
|
@endif
|
|
|
<div>
|
|
|
<b><?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?></b>
|
|
@@ -555,6 +555,20 @@ $medications = $points;
|
|
|
initStagSuggest();
|
|
|
|
|
|
$('.additionReasonCategory_ui').trigger('change');
|
|
|
+
|
|
|
+ // add button for "reconcile active medications"
|
|
|
+ if($('.active-record').length) {
|
|
|
+ let titleElem = $('#medications-center-{{$note->id}}').closest('.stag-popup').find('.stag-popup-title>span');
|
|
|
+ titleElem.next().removeClass('ml-auto');
|
|
|
+ $('.btn-reconcile-active').remove();
|
|
|
+ $('<a ' +
|
|
|
+ 'href="/medications-reconcile/{{$patient->uid}}/{{$note->uid}}" ' +
|
|
|
+ 'title="Reconcile Active Medications" ' +
|
|
|
+ 'open-in-stag-popup ' +
|
|
|
+ 'popup-style="stag-popup-md" ' +
|
|
|
+ 'class="btn-reconcile-active ml-auto mr-3 btn btn-sm btn-info text-white font-weight-bold">Reconcile Active Medications</a>').insertAfter(titleElem);
|
|
|
+ titleElem.parent().addClass('align-items-baseline');
|
|
|
+ }
|
|
|
}
|
|
|
addMCInitializer('medications-center-{{$note->id}}', init, '#medications-center-{{$note->id}}')
|
|
|
}).call(window);
|