|
@@ -33,24 +33,30 @@
|
|
|
<tr>
|
|
|
<th class="border-0 text-secondary width-150px">Created</th>
|
|
|
<th class="border-0 text-secondary" :class="currentPrescription ? 'width-200px' : ''">Clinical</th>
|
|
|
+ <th v-if="!currentPrescription">Prescriber</th>
|
|
|
+ <th v-if="!currentPrescription">Status</th>
|
|
|
+ <th v-if="!currentPrescription">Sign</th>
|
|
|
+ <th v-if="!currentPrescription">Client Status</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr v-for="(prescription, index) in prescriptions" :class="currentPrescription && currentPrescription.id === prescription.id ? 'bg-aliceblue' : ''">
|
|
|
<td class="width-150px" :class="currentPrescription && currentPrescription.id === prescription.id ? 'row-selection-highlight' : ''">
|
|
|
- <a href="#" v-on:click.prevent="setCurrentPrescription(prescription, '');"
|
|
|
- class="text-nowrap"
|
|
|
- :class="currentPrescription && currentPrescription.id === prescription.id ? 'font-weight-bold' : ''">
|
|
|
- @{{prescription.created_at_friendly_short}}
|
|
|
- </a>
|
|
|
- <div class="mt-1">
|
|
|
- <b class="text-sm">@{{prescription.erx_category}}</b>
|
|
|
- /
|
|
|
- <span class="text-sm">@{{prescription.hcpProDisplayName}}</span>
|
|
|
+ <div :class="prescription.pro_declared_status === 'CANCELLED' ? 'on-hover-opaque' : ''">
|
|
|
+ <a href="#" v-on:click.prevent="setCurrentPrescription(prescription, '');"
|
|
|
+ class="text-nowrap"
|
|
|
+ :class="currentPrescription && currentPrescription.id === prescription.id ? 'font-weight-bold' : ''">
|
|
|
+ @{{prescription.created_at_friendly_short}}
|
|
|
+ </a>
|
|
|
+ <div class="mt-1">
|
|
|
+ <b class="text-sm">@{{prescription.erx_category}}</b>
|
|
|
+ /
|
|
|
+ <span class="text-sm">@{{prescription.hcpProDisplayName}}</span>
|
|
|
+ </div>
|
|
|
+ @if(@$note)
|
|
|
+ <div v-if="prescription.note_id === {{$note->id}}" class="text-sm text-info mt-1 text-nowrap">* From this note</div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if(@$note)
|
|
|
- <div v-if="prescription.note_id === {{$note->id}}" class="text-sm text-info mt-1 text-nowrap">* From this note</div>
|
|
|
- @endif
|
|
|
<div v-if="prescription.pro_declared_status === 'CANCELLED'" class="text-sm text-secondary font-weight-bold mt-1 text-sm d-flex align-items-baseline">
|
|
|
<i class="fa fa-ban mr-1 text-sm"></i>
|
|
|
CANCELLED
|
|
@@ -62,7 +68,7 @@
|
|
|
<a v-if="!prescription.has_hcp_pro_signed" class="mr-2" href="#" v-on:click.prevent="editClinicalDetails(prescription)"><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
<span v-else class="mr-2" title="Cannot edit. Prescription already signed."><i class="fa fa-edit on-hover-opaque text-secondary"></i></span>
|
|
|
--}}
|
|
|
- <div v-if="prescription.clinical_detail_json" class="d-inline-flex align-items-baseline">
|
|
|
+ <div v-if="prescription.clinical_detail_json" class="d-inline-flex align-items-baseline" :class="prescription.pro_declared_status === 'CANCELLED' ? 'on-hover-opaque' : ''">
|
|
|
<div class="" v-if="prescription.erx_category === 'DRUG'">
|
|
|
<div class="d-flex align-items-baseline mb-1" v-for="drug in prescription.clinical_detail_json.items">
|
|
|
<span class="mr-2">@{{drug.medication ?? '-'}}</span>
|
|
@@ -96,6 +102,32 @@
|
|
|
<div v-else>-</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
+ <td v-if="!currentPrescription">
|
|
|
+ <div :class="prescription.pro_declared_status === 'CANCELLED' ? 'on-hover-opaque' : ''">
|
|
|
+ @{{ prescription.hcpProDisplayName }}
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td v-if="!currentPrescription">
|
|
|
+ <div :class="prescription.pro_declared_status === 'CANCELLED' ? 'on-hover-opaque' : ''">
|
|
|
+ @{{ sanitizeStatus(prescription.pro_declared_status) }}
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td v-if="!currentPrescription">
|
|
|
+ <div :class="prescription.pro_declared_status === 'CANCELLED' ? 'on-hover-opaque' : ''">
|
|
|
+ <div v-if="prescription.has_hcp_pro_signed" class="d-inline-flex align-items-baseline">
|
|
|
+ <i class="text-secondary fa fa-check mr-1"></i>
|
|
|
+ <span class="text-secondary">Signed</span>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ -
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td v-if="!currentPrescription">
|
|
|
+ <div :class="prescription.pro_declared_status === 'CANCELLED' ? 'on-hover-opaque' : ''">
|
|
|
+ @{{ sanitizeStatus(prescription.client_declared_status) }}
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -1246,6 +1278,7 @@ GROUP BY erx_category");
|
|
|
|
|
|
// sane display status
|
|
|
sanitizeStatus: function(_s) {
|
|
|
+ if(!_s) return '-';
|
|
|
_s = _s.toLowerCase().replaceAll('_', ' ');
|
|
|
_s = _s[0].toUpperCase() + _s.substr(1);
|
|
|
return _s;
|
|
@@ -1442,7 +1475,7 @@ GROUP BY erx_category");
|
|
|
}
|
|
|
|
|
|
@if(@$note)
|
|
|
- localStorage['currentErx_{{$note->id}}'] = _prescription.id;
|
|
|
+ localStorage['currentErx_{{$note->id}}'] = _prescription ? _prescription.id : -1;
|
|
|
@endif
|
|
|
},
|
|
|
setAddMode: function(_mode) {
|