|
@@ -148,31 +148,223 @@ use App\Models\Handout;
|
|
<div class="card-header d-flex align-items-start px-3 py-2 border-bottom rounded-0" id="note-card-header">
|
|
<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-2">
|
|
{{$note->title}}
|
|
{{$note->title}}
|
|
|
|
+ @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
|
+ <div moe class="d-block" relative id="note-edit-title">
|
|
|
|
+ <a href="" show start></a>
|
|
|
|
+ <form url="/api/note/putTitle">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <input type="text" name="title" value="{{$note->title}}" class="form-control form-control-sm"
|
|
|
|
+ placeholder="Title">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group 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>
|
|
- <div class="px-2 border-left border-right">
|
|
|
|
|
|
+ <div class="pl-2 pr-3">
|
|
<div class="d-flex">
|
|
<div class="d-flex">
|
|
<span>{{friendly_date_time($note->effective_dateest, false, '')}}</span>
|
|
<span>{{friendly_date_time($note->effective_dateest, false, '')}}</span>
|
|
</div>
|
|
</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>
|
|
|
|
|
|
- <div class="px-2 border-right">
|
|
|
|
|
|
+ <div class="pr-3">
|
|
<div class="d-flex">
|
|
<div class="d-flex">
|
|
- <span><span class="text-secondary">{{$note->hcpPro->is_hcp ? 'HCP' : 'Pro'}}:</span> {{$note->hcpPro->name_first}} {{$note->hcpPro->name_last}}</span>
|
|
|
|
|
|
+ <span><span class="text-secondary">{{$note->hcpPro && $note->hcpPro->is_hcp ? 'HCP' : 'Pro'}}:</span> @if($note->hcpPro) {{$note->hcpPro->name_first}} {{$note->hcpPro->name_last}} @endif</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
|
+ <div moe relative class="d-block ml-2" id="note-edit-hcp">
|
|
|
|
+ <a href="" show start></a>
|
|
|
|
+ <form url="/api/note/putHcp">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <select provider-search data-pro-uid="{{ $note->hcpPro ? @$note->hcpPro->uid : '' }}"
|
|
|
|
+ name="hcpProUid" class="form-control form-control-sm">
|
|
|
|
+ <option value="">-- Select HCP 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-hcp">
|
|
|
|
+ <a href="" show start></a>
|
|
|
|
+ <form url="/api/note/removeHcp">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <p class="mb-2">Remove HCP?</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>
|
|
|
|
|
|
- <div class="px-2 border-right">
|
|
|
|
|
|
+ <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>
|
|
|
|
+ @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">
|
|
<div class="d-flex">
|
|
<span><span class="text-secondary">Type:</span> {{$note->new_or_fu_or_na ? ($note->new_or_fu_or_na === 'NEW' ? 'New Patient' : $note->new_or_fu_or_na) : '-'}}</span>
|
|
<span><span class="text-secondary">Type:</span> {{$note->new_or_fu_or_na ? ($note->new_or_fu_or_na === 'NEW' ? 'New Patient' : $note->new_or_fu_or_na) : '-'}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
|
+ <div moe class="ml-auto d-block" relative id="note-edit-type">
|
|
|
|
+ <a href="" show start></a>
|
|
|
|
+ <form url="/api/note/updateNewOrFuOrNa">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <select name="newOrFuOrNa" class="form-control form-control-sm" required>
|
|
|
|
+ <option value="">-- select --</option>
|
|
|
|
+ <option value="NEW" {{ $note->new_or_fu_or_na === "NEW" ? "selected" : "" }}>New</option>
|
|
|
|
+ <option value="FU" {{ $note->new_or_fu_or_na === "FU" ? "selected" : "" }}>Follow-up</option>
|
|
|
|
+ <option value="NA" {{ $note->new_or_fu_or_na === "NA" ? "selected" : "" }}>N/A</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>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="px-2">
|
|
|
|
|
|
+ <div class="pr-3">
|
|
<div class="d-flex">
|
|
<div class="d-flex">
|
|
<span><span class="text-secondary">Method:</span> {{$note->method ? noteMethodDisplay($note->method) : '-'}}</span>
|
|
<span><span class="text-secondary">Method:</span> {{$note->method ? noteMethodDisplay($note->method) : '-'}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if(!$note->is_signed_by_hcp || $pro->pro_type === 'ADMIN')
|
|
|
|
+ <div moe class="ml-auto d-block" relative id="note-edit-method">
|
|
|
|
+ <a href="" show start></a>
|
|
|
|
+ <form url="/api/note/updateMethod" hook="onNoteMethodUpdate">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <select name="method" class="form-control form-control-sm note-method-select" required>
|
|
|
|
+ <option value="AUDIO" {{ $note->method === "AUDIO" ? "selected" : "" }}>Audio</option>
|
|
|
|
+ <option value="VIDEO" {{ $note->method === "VIDEO" ? "selected" : "" }}>Video</option>
|
|
|
|
+ <option value="IN_CLINIC" {{ $note->method === "IN_CLINIC" ? "selected" : "" }}>In-Clinic</option>
|
|
|
|
+ <option value="HOUSE_CALL" {{ $note->method === "HOUSE_CALL" ? "selected" : "" }}>House Call</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group if-in-clinic">
|
|
|
|
+ <label for="" class="text-secondary text-sm mb-1">Location</label>
|
|
|
|
+ <select name="hcpCompanyLocationUid" class="form-control">
|
|
|
|
+ <option value=""></option>
|
|
|
|
+ @foreach($pro->companyLocations() as $location)
|
|
|
|
+ <option value="{{$location->uid}}" {{$location->id === $note->hcp_company_location_id ? 'selected' : ''}}>{{$location->line1}} {{$location->city}}</option>
|
|
|
|
+ @endforeach
|
|
|
|
+ </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>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
|
+ <div class="d-block position-relative on-click-menu mr-2">
|
|
|
|
+ <span class="text-sm text-primary c-pointer border px-2 p-1 rounded bg-white">
|
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <div menu left class="bg-white border">
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-edit-title>a:first').trigger('click'); return false;">
|
|
|
|
+ Edit Title
|
|
|
|
+ </a>
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-edit-date>a:first').trigger('click'); return false;">
|
|
|
|
+ Edit Date
|
|
|
|
+ </a>
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-edit-hcp>a:first').trigger('click'); return false;">
|
|
|
|
+ Edit HCP
|
|
|
|
+ </a>
|
|
|
|
+ @if($note->hcpPro)
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-remove-hcp>a:first').trigger('click'); return false;">
|
|
|
|
+ Remove HCP
|
|
|
|
+ </a>
|
|
|
|
+ @endif
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-edit-na>a:first').trigger('click'); return false;">
|
|
|
|
+ Edit NA
|
|
|
|
+ </a>
|
|
|
|
+ @if($note->allyPro)
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-remove-na>a:first').trigger('click'); return false;">
|
|
|
|
+ Remove NA
|
|
|
|
+ </a>
|
|
|
|
+ @endif
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 pt-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-edit-type>a:first').trigger('click'); return false;">
|
|
|
|
+ Edit Type
|
|
|
|
+ </a>
|
|
|
|
+ <a native target="_blank" href="#" class="pl-2 pr-3 py-1 d-block text-nowrap text-sm"
|
|
|
|
+ onclick="$(this).closest('.on-click-menu').find('[menu]').hide(); $('#note-edit-method>a:first').trigger('click'); return false;">
|
|
|
|
+ Edit Method
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
<div class="px-2 border-left screen-only">
|
|
<div class="px-2 border-left screen-only">
|
|
<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', ['patient' => $patient, 'note' => $note])}}" native target="_blank" class=""><i class="fa fa-print"></i></a>
|
|
</div>
|
|
</div>
|
|
@@ -357,35 +549,37 @@ use App\Models\Handout;
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
- @if(!$note->is_signed_by_hcp )
|
|
|
|
- @if($note->hcp_pro_id !== $pro->id)
|
|
|
|
- <span class="text-sm text-secondary screen-only">Only the note's HCP can sign</span>
|
|
|
|
- @else
|
|
|
|
- @if(!$isVisitTemplateBased)
|
|
|
|
- <div moe relative
|
|
|
|
- class="{{ $note->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }} screen-only"
|
|
|
|
- title="{{ $note->hcp_pro_id !== $pro->id ? 'Only the note\'s HCP can sign' : '' }}">
|
|
|
|
- <a class="" href="" show start>Sign As HCP</a>
|
|
|
|
- <form url="/api/note/signAsHcp" right>
|
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
- <p>Sign this note as HCP?</p>
|
|
|
|
- <div class="mb-0">
|
|
|
|
- <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
- </div>
|
|
|
|
|
|
+ @if($note->hcpPro)
|
|
|
|
+ @if(!$note->is_signed_by_hcp )
|
|
|
|
+ @if($note->hcp_pro_id !== $pro->id)
|
|
|
|
+ <span class="text-sm text-secondary screen-only">Only the note's HCP can sign</span>
|
|
@else
|
|
@else
|
|
- <a native target="_blank"
|
|
|
|
- open-in-stag-popup
|
|
|
|
- update-parent
|
|
|
|
- mc-initer="note-sign-confirmation-{{$note->id}}"
|
|
|
|
- popup-style="stag-popup-md"
|
|
|
|
- title="Confirm and Sign"
|
|
|
|
- class="screen-only"
|
|
|
|
- href="{{route('patients.view.notes.view.sign-confirmation', compact('patient', 'note'))}}">
|
|
|
|
- Sign Note As {{$note->hcpPro->is_hcp ? 'HCP' : 'Pro'}}
|
|
|
|
- </a>
|
|
|
|
|
|
+ @if(!$isVisitTemplateBased)
|
|
|
|
+ <div moe relative
|
|
|
|
+ class="{{ $note->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }} screen-only"
|
|
|
|
+ title="{{ $note->hcp_pro_id !== $pro->id ? 'Only the note\'s HCP can sign' : '' }}">
|
|
|
|
+ <a class="" href="" show start>Sign As HCP</a>
|
|
|
|
+ <form url="/api/note/signAsHcp" right>
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <p>Sign this note as HCP?</p>
|
|
|
|
+ <div class="mb-0">
|
|
|
|
+ <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <a native target="_blank"
|
|
|
|
+ open-in-stag-popup
|
|
|
|
+ update-parent
|
|
|
|
+ mc-initer="note-sign-confirmation-{{$note->id}}"
|
|
|
|
+ popup-style="stag-popup-md"
|
|
|
|
+ title="Confirm and Sign"
|
|
|
|
+ class="screen-only"
|
|
|
|
+ href="{{route('patients.view.notes.view.sign-confirmation', compact('patient', 'note'))}}">
|
|
|
|
+ Sign Note As {{$note->hcpPro->is_hcp ? 'HCP' : 'Pro'}}
|
|
|
|
+ </a>
|
|
|
|
+ @endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|