|
@@ -1,256 +1,144 @@
|
|
|
@extends ('layouts.patient')
|
|
|
|
|
|
@section('inner-content')
|
|
|
-@foreach ($patient->notes as $note)
|
|
|
-<div class="card mb-3">
|
|
|
- <div class="card-header d-flex align-items-start px-3">
|
|
|
- <div class="pr-2">
|
|
|
- {{$note->title}}
|
|
|
- <div moe>
|
|
|
- <a href="" show start><i class="fa fa-edit"></i></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>
|
|
|
+
|
|
|
+ @if($patient->has_mcp_done_onboarding_visit !== 'YES')
|
|
|
+ <div class="pt-2 d-flex align-items-start">
|
|
|
+ <h6 class="my-0 text-secondary d-flex align-items-start">
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ <span class="text-dark font-weight-bold">Notes</span>
|
|
|
</div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="px-2 border-left">
|
|
|
- <div class="d-flex">
|
|
|
- <span class="mr-2">{{friendly_date_time($note->effective_dateest, false)}}</span>
|
|
|
- <span moe class="ml-auto">
|
|
|
- <a href="" show start><i class="fa fa-calendar"></i></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>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="d-flex">
|
|
|
- <span class="mr-2">{{friendly_time($note->effective_time)}}</span>
|
|
|
- <span moe class="ml-auto">
|
|
|
- <a href="" show start><i class="fa fa-clock"></i></a>
|
|
|
- <form url="/api/note/putEffectiveTime">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label for="" class="text-secondary text-sm">Effective time </label>
|
|
|
- <input type="time" name="effectiveTime" value="{{ date("H:i", strtotime($note->effective_time)) }}" 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 class="text-dark d-inline-flex align-items-center mt-2">
|
|
|
+ <span class="mr-2">
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>
|
|
|
+ MCP Onboarding Visit Pending
|
|
|
+ </span>
|
|
|
+ <div moe>
|
|
|
+ <a start show>Update</a>
|
|
|
+ <form url="/api/client/updateMcpOnboardingVisitInfo" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hasMcpDoneOnboardingVisit"
|
|
|
+ class="form-control form-control-sm"
|
|
|
+ onchange="toggleDisabledAsNeeded(this, 'YES', 'if-visit-done')">
|
|
|
+ <option value="">-- Select Status --</option>
|
|
|
+ <option value="YES" {{ $patient->has_mcp_done_onboarding_visit === 'YES' ? 'selected' : '' }}>YES</option>
|
|
|
+ <option value="NO" {{ $patient->has_mcp_done_onboarding_visit === 'NO' ? 'selected' : '' }}>NO</option>
|
|
|
+ <option value="UNKNOWN" {{ $patient->has_mcp_done_onboarding_visit === 'UNKNOWN' ? 'selected' : '' }}>UNKNOWN</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="date" class="if-visit-done form-control form-control-sm" disabled name="mcpOnboardingVisitDate" max="{{ date('Y-m-d') }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="mcpOnboardingVisitNoteUid" disabled
|
|
|
+ class="form-control form-control-sm if-visit-done"
|
|
|
+ onchange="toggleVisibilityAsNeeded(this, '', 'if-note-outside-system')">
|
|
|
+ <option value="">-- Visit Note --</option>
|
|
|
+ @foreach ($notes as $note)
|
|
|
+ @if(!empty($note->title))
|
|
|
+ <option value="{{$note->uid}}">{{$note->title}}</option>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2 if-note-outside-system">
|
|
|
+ <textarea class="form-control form-control-sm"
|
|
|
+ name="reasonOnboardingVisitNoteOutsideSystem"
|
|
|
+ placeholder="Visit note outside the system reason"></textarea>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </h6>
|
|
|
</div>
|
|
|
+ @else
|
|
|
|
|
|
- <div class="px-2 border-left">
|
|
|
- <div class="d-flex">
|
|
|
- <span class="mr-2"><span class="text-secondary">HCP:</span> {{$note->hcpPro->name_display}}</span>
|
|
|
- <div moe class="ml-auto">
|
|
|
- <a href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/note/putHcp">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="pt-2 d-flex align-items-start">
|
|
|
+ <h6 class="my-0 text-secondary d-flex align-items-start">
|
|
|
+ <span class="font-weight-bold text-secondary">Notes</span>
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <div moe>
|
|
|
+ <a start show class="py-0 mb-3">Add</a>
|
|
|
+ <form url="/api/note/createUsingFreeTextHtml" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
<div class="mb-2">
|
|
|
<select name="hcpProUid" class="form-control form-control-sm">
|
|
|
<option value="">-- Select HCP Pro --</option>
|
|
|
- @foreach ($pros as $pro)
|
|
|
- <option value="{{$pro->uid}}" {{ $pro->id === $note->hcpPro->id ? 'selected' : '' }}>{{$pro->name_display}}</option>
|
|
|
+ @foreach ($pros as $iPro)
|
|
|
+ <option
|
|
|
+ value="{{$iPro->uid}}">{{$iPro->name_display}}</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>
|
|
|
- </div>
|
|
|
- <div class="d-flex">
|
|
|
- <span class="mr-2"><span class="text-secondary">Ally:</span> {{$note->allyPro->name_display}}</span>
|
|
|
- <div moe class="ml-auto">
|
|
|
- <a href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/note/putAlly">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
<div class="mb-2">
|
|
|
<select name="allyProUid" class="form-control form-control-sm">
|
|
|
<option value="">-- Select Ally Pro --</option>
|
|
|
- @foreach ($pros as $pro)
|
|
|
- <option value="{{$pro->uid}}" {{ $pro->id === $note->allyPro->id ? 'selected' : '' }}>{{$pro->name_display}}</option>
|
|
|
+ @foreach ($pros as $iPro)
|
|
|
+ <option
|
|
|
+ value="{{$iPro->uid}}">{{$iPro->name_display}}</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 class="mb-2">
|
|
|
+ <input type="text" name="title" placeholder="Title" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Effective Date</label>
|
|
|
+ <input type="date" name="effectiveDateEST" placeholder="Effective Date" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Effective Time</label>
|
|
|
+ <input type="time" name="effectiveTime" placeholder="Effective Time" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <textarea name="freeTextHtml" id="" cols="30" rows="5" placeholder="Content" class="form-control form-control-sm"></textarea>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="ml-auto d-flex align-items-start">
|
|
|
- <div class="pr-2 border-right">
|
|
|
- <div>
|
|
|
- @if($note->is_signed_by_hcp)
|
|
|
- <span class="text-secondary">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- HCP Signed
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <div moe>
|
|
|
- <a class="" href="" show start>Sign as HCP</a>
|
|
|
- <form url="/api/note/signAsHcp">
|
|
|
- <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>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- @if($note->is_signed_by_ally)
|
|
|
- <span class="text-secondary">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- Ally Signed
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <div moe>
|
|
|
- <a class="" href="" show start>Sign as Ally</a>
|
|
|
- <form url="/api/note/signAsAlly">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <p>Sign this note as Ally?</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>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div moe relatve class="pl-2">
|
|
|
- <a class="" href="" show start>Create Bill</a>
|
|
|
- <form url="/api/bill/createForNote" right>
|
|
|
- <input type="hidden" name="noteUid" value="{{$note->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label for="" class="text-secondary text-sm">Effective Date</label>
|
|
|
- <input type="date" name="effectiveDate" class="form-control form-control-sm" required>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" name="code" placeholder="Code" class="form-control form-control-sm" required>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" name="reason1" placeholder="Reason 1" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" name="reason2" placeholder="Reason 2" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" name="serviceLocation" placeholder="Service Location" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" name="modifier" placeholder="Modifier" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="number" name="numberOfUnits" placeholder="Number of Units" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="">
|
|
|
- <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
+ </h6>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="card-body p-3">
|
|
|
- <div>
|
|
|
|
|
|
- <div class="mb-2">
|
|
|
- <div>
|
|
|
- {!! $note->free_text_html !!}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <table class="table table-sm table-striped table-bordered mb-0 mt-2">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0">Created</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0">Title</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0">HCP</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0">Ally</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach ($patient->notes as $note)
|
|
|
+ <tr>
|
|
|
+ <td class="px-2">
|
|
|
+ {{ friendly_date_time($note->created_at, true) }}
|
|
|
+ </td>
|
|
|
+ <td class="px-2">
|
|
|
+ <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">
|
|
|
+ {{ $note->title }}
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ <td class="px-2">
|
|
|
+ {{$note->hcpPro->name_display}}
|
|
|
+ </td>
|
|
|
+ <td class="px-2">
|
|
|
+ {{$note->allyPro->name_display}}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
|
|
|
- @if($note->bills->count())
|
|
|
- <div class="mt-2">
|
|
|
- <table class="table table-sm tabe-striped mb-0">
|
|
|
- <thead class="bg-light">
|
|
|
- <tr>
|
|
|
- <th class="border-bottom-0 w-25">Code</th>
|
|
|
- <th class="border-bottom-0"></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach ($note->bills as $bill)
|
|
|
- <tr>
|
|
|
- <td class="{{ $bill->is_cancelled ? 'text-secondary' : '' }}">{{$bill->code}}</td>
|
|
|
- <td>
|
|
|
- <div class="d-flex align-items-center">
|
|
|
- @if(!$bill->is_cancelled)
|
|
|
- @if($bill->is_signed_by_hcp)
|
|
|
- <span class="text-secondary">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- HCP Signed
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <div moe>
|
|
|
- <a class="" href="" show start>Sign as HCP</a>
|
|
|
- <form url="/api/bill/signAsHcp">
|
|
|
- <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
- <p>Sign this bill 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>
|
|
|
- @endif
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- @endif
|
|
|
- @if($bill->is_cancelled)
|
|
|
- <span class="text-secondary">
|
|
|
- Cancelled
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <div moe>
|
|
|
- <a class="" href="" show start>Cancel</a>
|
|
|
- <form url="/api/bill/markCancelled">
|
|
|
- <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
- <p>Cancel this bill?</p>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-danger btn-sm" submit>Yes</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>No</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-@endforeach
|
|
|
+ @endif
|
|
|
@endsection
|