|
@@ -39,7 +39,9 @@ use App\Models\Handout;
|
|
|
|
|
|
$segmentMap = [];
|
|
|
foreach($note->segments as $segment):
|
|
|
- $segmentMap[$segment->segmentTemplate->internal_name] = $segment;
|
|
|
+ if($segment->segmentTemplate){
|
|
|
+ $segmentMap[$segment->segmentTemplate->internal_name] = $segment;
|
|
|
+ }
|
|
|
endforeach;
|
|
|
|
|
|
$hasRightSegments = $isVisitTemplateBased && !!count($note->segmentsRight);
|
|
@@ -146,7 +148,7 @@ use App\Models\Handout;
|
|
|
|
|
|
<div class="card mb-0 {{ $note->is_cancelled ? 'cancelled-item' : '' }} border-0 rounded-0">
|
|
|
<div class="card-header d-flex align-items-start px-3 py-2 border-bottom rounded-0" id="note-card-header">
|
|
|
- <div class="pr-2">
|
|
|
+ <div class="pr-3">
|
|
|
{{$note->title}}
|
|
|
@if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
<div moe class="d-inline" relative id="note-edit-title">
|
|
@@ -206,27 +208,27 @@ use App\Models\Handout;
|
|
|
</div>
|
|
|
@endif
|
|
|
</div>
|
|
|
- <div class="pl-2 pr-3">
|
|
|
- <div class="d-flex">
|
|
|
- <span>{{friendly_date_time($note->effective_dateest, false, '')}}</span>
|
|
|
- </div>
|
|
|
- @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
- <div moe relative class="d-block ml-auto" id="note-edit-date">
|
|
|
- <a href="" show start></a>
|
|
|
- <form url="/api/note/putEffectiveDateEST">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label for="" class="text-secondary text-sm">Effective date EST</label>
|
|
|
- <input type="date" name="effectiveDateEST" value="{{$note->effective_dateest}}"
|
|
|
- class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
+ <div class="pr-3">
|
|
|
+ <div class="d-flex">
|
|
|
+ <span>{{friendly_date_time($note->effective_dateest, false, '')}}</span>
|
|
|
+ </div>
|
|
|
+ @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
+ <div moe relative class="d-block ml-auto" id="note-edit-date">
|
|
|
+ <a href="" show start></a>
|
|
|
+ <form url="/api/note/putEffectiveDateEST">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="text-secondary text-sm">Effective date EST</label>
|
|
|
+ <input type="date" name="effectiveDateEST" value="{{$note->effective_dateest}}"
|
|
|
+ class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
|
|
|
<div class="pr-3">
|
|
@@ -263,41 +265,41 @@ use App\Models\Handout;
|
|
|
</div>
|
|
|
@endif
|
|
|
</div>
|
|
|
-
|
|
|
<div class="pr-3">
|
|
|
- <div class="d-flex">
|
|
|
- <span><span class="text-secondary">NA:</span> @if($note->allyPro) {{$note->allyPro->name_first}} {{$note->allyPro->name_last}} @endif</span>
|
|
|
+ <div class="d-flex">
|
|
|
+ <span><span class="text-secondary">NA:</span> @if($note->allyPro) {{$note->allyPro->name_first}} {{$note->allyPro->name_last}} @endif</span>
|
|
|
+ </div>
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
+ <div moe relative class="d-block ml-2" id="note-edit-na">
|
|
|
+ <a href="" show start></a>
|
|
|
+ <form url="/api/note/putNa">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select provider-search data-pro-uid="{{ $note->allyPro ? @$note->allyPro->uid : '' }}"
|
|
|
+ name="naProUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- Select NA Pro --</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div moe relative class="d-block ml-2" id="note-remove-na">
|
|
|
+ <a href="" show start></a>
|
|
|
+ <form url="/api/note/removeNa">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p class="mb-2">Remove NA?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
- @if($pro->pro_type === 'ADMIN')
|
|
|
- <div moe relative class="d-block ml-2" id="note-edit-na">
|
|
|
- <a href="" show start></a>
|
|
|
- <form url="/api/note/putNa">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select provider-search data-pro-uid="{{ $note->allyPro ? @$note->allyPro->uid : '' }}"
|
|
|
- name="naProUid" class="form-control form-control-sm">
|
|
|
- <option value="">-- Select NA Pro --</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- <div moe relative class="d-block ml-2" id="note-remove-na">
|
|
|
- <a href="" show start></a>
|
|
|
- <form url="/api/note/removeNa">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <p class="mb-2">Remove NA?</p>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+
|
|
|
|
|
|
<div class="pr-3">
|
|
|
<div class="d-flex">
|
|
@@ -408,6 +410,7 @@ use App\Models\Handout;
|
|
|
Clone
|
|
|
</a>
|
|
|
@endif
|
|
|
+ <a href="{{route('print-note', ['patient' => $patient, 'note' => $note])}}" native target="_blank" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm">Print <i class="fa fa-print"></i></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
@elseif(!$note->is_signed_by_hcp && ($note->hcp_pro_id === $pro->id || $note->ally_pro_id === $pro->id))
|
|
@@ -447,8 +450,7 @@ use App\Models\Handout;
|
|
|
{{-- v1. print-note --}}
|
|
|
{{-- v2. print-note-v2 --}}
|
|
|
{{-- v3. print-note-v3 --}}
|
|
|
- <a href="{{route('print-note', ['patient' => $patient, 'note' => $note])}}" native target="_blank" class=""><i class="fa fa-print"></i></a>
|
|
|
- <a href="{{route('print-note-v3', ['patient' => $patient, 'note' => $note])}}" native target="_blank" class="ml-2"><i class="fa fa-print"></i><sup class="text-danger" style="font-weight:bold;font-size: 10px;">NEW</sup></a>
|
|
|
+ <a href="{{route('print-note-v3', ['patient' => $patient, 'note' => $note])}}" native target="_blank"><i class="fa fa-print"></i></a>
|
|
|
@if($performer->pro->is_admin)
|
|
|
<a href="{{'/practice-management/notes-resolution-center-v2?uid='.$note->uid}}" target="_blank">NRC</a>
|
|
|
@endif
|