|
@@ -7,6 +7,9 @@
|
|
|
<table class="table table-sm table-bordered stag-sheet allow-row-addition bg-white mb-2 point-table read" style="table-layout: fixed">
|
|
|
<thead>
|
|
|
<tr class="bg-light">
|
|
|
+ @if(in_array($label, ['allergy', 'medication', 'problem']) && @$favorites && count($favorites))
|
|
|
+ <th class="border-bottom-0 text-secondary width-30px text-center"><i class="fa fa-bookmark text-info text-sm on-hover-opaque"></i></th>
|
|
|
+ @endif
|
|
|
<th class="border-bottom-0 text-secondary text-nowrap">{{ucwords($label)}}</th>
|
|
|
@if($label === 'problem')
|
|
|
<th class="border-bottom-0 text-secondary width-70px">ICD</th>
|
|
@@ -23,6 +26,35 @@
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
+ @if(in_array($label, ['allergy', 'medication', 'problem']) && @$favorites && count($favorites))
|
|
|
+ <td class="text-center align-middle">
|
|
|
+ <div class="d-inline position-relative on-click-menu">
|
|
|
+ <span class="text-primary c-pointer"><i class="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)}}"
|
|
|
+ @if($label === 'allergy')
|
|
|
+ data-damConceptId="{{@($favorite->data->damConceptId)}}"
|
|
|
+ data-damConceptIdType="{{@($favorite->data->damConceptIdType)}}"
|
|
|
+ @elseif($label === 'medication')
|
|
|
+ data-medId="{{@($favorite->data->medId)}}"
|
|
|
+ data-routedMedId="{{@($favorite->data->routedMedId)}}"
|
|
|
+ data-routedDosageFormMedId="{{@($favorite->data->routedDosageFormMedId)}}"
|
|
|
+ data-gcnSeqno="{{@($favorite->data->gcnSeqno)}}"
|
|
|
+ @elseif($label === 'problem')
|
|
|
+ data-dxid="{{@($favorite->data->dxid)}}"
|
|
|
+ data-icd="{{@($favorite->data->icd)}}"
|
|
|
+ data-icd-type="{{@($favorite->data->{'icd-type'})}}"
|
|
|
+ @endif
|
|
|
+ class="px-2 py-1 d-block text-nowrap text-sm multi-favorite-item text-left">
|
|
|
+ {{$favorite->data->name}}
|
|
|
+ </a>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ @endif
|
|
|
<td class="p-0">
|
|
|
<input type="text" key="{{$label === 'goal' ? 'goal' : 'name'}}" bucket="data" required
|
|
|
@if($label === 'medication')
|