|
@@ -140,6 +140,9 @@
|
|
<th class="border-top-0 border-bottom-0 border-left-0"></th>
|
|
<th class="border-top-0 border-bottom-0 border-left-0"></th>
|
|
<th class="border-top-0 border-bottom-0"></th>
|
|
<th class="border-top-0 border-bottom-0"></th>
|
|
<th class="border-top-0 border-bottom-0"></th>
|
|
<th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
|
|
+ <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ @endif
|
|
@if($viewingAs === 'ADMIN')
|
|
@if($viewingAs === 'ADMIN')
|
|
<th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
<th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
<th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
<th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
@@ -178,6 +181,9 @@
|
|
<th class="border-bottom-0 border-top border-left-0 text-right">#</th>
|
|
<th class="border-bottom-0 border-top border-left-0 text-right">#</th>
|
|
<th class="border-bottom-0 border-top">Name</th>
|
|
<th class="border-bottom-0 border-top">Name</th>
|
|
<th class="border-bottom-0 border-top">Age</th>
|
|
<th class="border-bottom-0 border-top">Age</th>
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
|
|
+ <th class="border-bottom-0 border-top">ICDs</th>
|
|
|
|
+ @endif
|
|
@if($viewingAs === 'ADMIN')
|
|
@if($viewingAs === 'ADMIN')
|
|
<th class="border-bottom-0 border-top">MCP</th>
|
|
<th class="border-bottom-0 border-top">MCP</th>
|
|
<th class="border-bottom-0 border-top">RMM</th>
|
|
<th class="border-bottom-0 border-top">RMM</th>
|
|
@@ -441,42 +447,26 @@
|
|
let tr = $('<tr/>').attr('data-uid', m.uid);
|
|
let tr = $('<tr/>').attr('data-uid', m.uid);
|
|
|
|
|
|
// date, time
|
|
// date, time
|
|
- $('<td/>').addClass('p-1 text-sm').text(m.date_display + ' ' + m.time_display).appendTo(tr);
|
|
|
|
|
|
+ $('<td class="w-25 text-nowrap"/>').addClass('p-1 text-sm').text(m.date_display + ' ' + m.time_display).appendTo(tr);
|
|
|
|
|
|
// value
|
|
// value
|
|
if(_type === 'bp') {
|
|
if(_type === 'bp') {
|
|
- $('<td/>').addClass('p-1 text-sm').text(m.sbpMmHg + '/' + m.dbpMmHg).appendTo(tr);
|
|
|
|
|
|
+ $('<td class="pl-2"/>').addClass('p-1 text-sm').text(m.sbpMmHg + '/' + m.dbpMmHg).appendTo(tr);
|
|
}
|
|
}
|
|
else if(_type === 'weight') {
|
|
else if(_type === 'weight') {
|
|
- $('<td/>').addClass('p-1 text-sm').text(m.numericValue).appendTo(tr);
|
|
|
|
|
|
+ $('<td class="pl-2"/>').addClass('p-1 text-sm').text(m.numericValue).appendTo(tr);
|
|
}
|
|
}
|
|
|
|
|
|
// stamp
|
|
// stamp
|
|
// MCPs and RMMs get stamp UI
|
|
// MCPs and RMMs get stamp UI
|
|
let stamp = '';
|
|
let stamp = '';
|
|
@if($viewingAs === 'MCP')
|
|
@if($viewingAs === 'MCP')
|
|
- if(!m.hasBeenStampedByMcp) {
|
|
|
|
- $('<td/>').addClass('p-1')
|
|
|
|
- .append(
|
|
|
|
- $('<a/>').addClass('text-sm btn-quick-stamp c-pointer text-nowrap').attr('data-uid', m.uid).text('Stamp as normal')
|
|
|
|
- )
|
|
|
|
- .appendTo(tr);
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- $('<td/>').addClass('p-1')
|
|
|
|
- .append(
|
|
|
|
- $('<i/>').addClass('fa fa-check text-sm')
|
|
|
|
- )
|
|
|
|
- .append(
|
|
|
|
- $('<span/>').addClass('text-sm ml-1').text('Stamped')
|
|
|
|
- )
|
|
|
|
- .appendTo(tr);
|
|
|
|
- }
|
|
|
|
|
|
+ {{-- nop --}}
|
|
@elseif($viewingAs === 'RMM')
|
|
@elseif($viewingAs === 'RMM')
|
|
if(!m.hasBeenStampedByRmm) {
|
|
if(!m.hasBeenStampedByRmm) {
|
|
$('<td/>').addClass('p-1')
|
|
$('<td/>').addClass('p-1')
|
|
.append(
|
|
.append(
|
|
- $('<a/>').addClass('text-sm btn-quick-stamp c-pointer text-nowrap').attr('data-uid', m.uid).text('Stamp as normal')
|
|
|
|
|
|
+ $('<a/>').addClass('text-sm btn-quick-stamp c-pointer text-nowrap').attr('data-uid', m.uid).text('Stamp')
|
|
)
|
|
)
|
|
.appendTo(tr);
|
|
.appendTo(tr);
|
|
}
|
|
}
|