|
@@ -2,7 +2,8 @@
|
|
|
$thumbnail = $patient->profile_picture_base64;
|
|
|
$initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : '';
|
|
|
$online = $patient->is_online ? 'online' : '';
|
|
|
-$patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first]));
|
|
|
+$patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first])) .
|
|
|
+ ($patient->name_nickname ? ' (' . $patient->name_nickname . ')' : '');
|
|
|
|
|
|
$confirmedCell = empty($patient->cell_number) ? '-' : $patient->cell_number;
|
|
|
$hasConfirmedEmail = empty($patient->email_address) ? false:true;
|
|
@@ -54,8 +55,46 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
@endif
|
|
|
<div class="d-flex justify-content-between pt-2 {{request()->route()->getName() === 'patients.view.notes.view.dashboard' ? 'sticky-note-header' : ''}}" id="patient-top-most-header">
|
|
|
<div class="d-flex align-items-center header-info mb-2">
|
|
|
- <h6 class="font-weight-bold">{{$patientName}},</h6>
|
|
|
- <h6 class="ml-2">{{$patient->age_in_years}} Y, {{$patient->sex}}</h6>
|
|
|
+
|
|
|
+ <h6 class="font-weight-bold">{{$patientName}}</h6>
|
|
|
+ <div moe wide class="ml-2">
|
|
|
+ <a start show><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/client/editName" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="namePrefix" placeholder="Name Prefix" value="{{$patient->name_prefix}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameFirst" placeholder="Name First" value="{{$patient->name_first}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameMiddle" placeholder="Name Middle" value="{{$patient->name_middle}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameLast" placeholder="Name Last" value="{{$patient->name_last}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameSuffix" placeholder="Name Suffix" value="{{$patient->name_suffix}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameCredential" placeholder="Name Credential" value="{{$patient->name_credential}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameNickname" placeholder="Name Nickname" value="{{$patient->name_nickname}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameMaiden" placeholder="Name Maiden" value="{{$patient->name_maiden}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="namePrevious" placeholder="Name Previous" value="{{$patient->name_previous}}">
|
|
|
+ </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>
|
|
|
+ <h6 class="ml-3">{{$patient->age_in_years}} Y, {{$patient->sex}}</h6>
|
|
|
<h6 class="d-inline-flex align-items-baseline ml-2">
|
|
|
<span><i class="chart mr-2">#{{$patient->chart_number}}</i></span>
|
|
|
<span class="on-hover-show d-inline-block on-hover-opaque">
|
|
@@ -150,6 +189,8 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <?php $hasCoverageColumn = !$patient->getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES'; ?>
|
|
|
+
|
|
|
<div class="flex-header text-dark">
|
|
|
<div class="d-flex bg-light p-2 border">
|
|
|
<!-- <div class="">
|
|
@@ -304,82 +345,22 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
</div>
|
|
|
@include('app.patient.partials.quick-actions-buttons')
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="">
|
|
|
- @if($patient->has_mcp_done_onboarding_visit !== 'YES')
|
|
|
- <span class="text-dark d-inline-flex align-items-center">
|
|
|
- <span class="mr-2">
|
|
|
- <i class="fa fa-exclamation-triangle"></i>
|
|
|
- <span>MCP Onboarding Visit Pending</span>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- @include('app.patient.partials.update-mcp-onboarding-visit-info')
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- @if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')
|
|
|
- <div class="">
|
|
|
- <label>Follow-up Freq (days):</label>
|
|
|
- <span>{!! is_null($patient->mcp_usual_follow_up_frequency_in_days) ? '<span class="text-danger">Not Set</span>' : $patient->mcp_usual_follow_up_frequency_in_days !!}</span>
|
|
|
- <div moe relative class="ml-2">
|
|
|
- <a href="#" start show class="text-sm"><i class="fa fa-edit on-hover-opaque"></i></a>
|
|
|
- <form url="/api/client/putMcpUsualFollowUpFrequencyInDays">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-sm text-secondary mb-1 text-nowrap">Follow-up Frequency (days)</label>
|
|
|
- <input type="number" required name="mcpUsualFollowUpFrequencyInDays" class="form-control form-control-sm" value="{{@$patient->mcp_usual_follow_up_frequency_in_days}}">
|
|
|
- </div>
|
|
|
- <div class="d-flex align-items-center">
|
|
|
- <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
- <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
</div>
|
|
|
+
|
|
|
+ @if($hasCoverageColumn)
|
|
|
+ @include('layouts.patient-header-meta-info')
|
|
|
@endif
|
|
|
- <?php $_cpc = $patient->getPrimaryCoverage();?>
|
|
|
- <div class="d-flex">
|
|
|
- <div>DOB: {{friendly_date($patient->dob, false,null, true)}} </div>
|
|
|
- @if($_cpc && $patient->getPrimaryCoverageStatus() === 'YES')
|
|
|
- <div class="text-nowrap screen-only ml-2 pl-2 border-left">
|
|
|
- <a href="{{ route('patients.view.primary-coverage', $patient) }}">{{$_cpc->insuranceDisplayPayerName()}}</a>
|
|
|
- <span class="on-hover-show d-inline-block on-hover-opaque">
|
|
|
- <i class="fa fa-check-circle text-success"></i>
|
|
|
- <div class="on-hover-content py-2 pl-3 text-nowrap">
|
|
|
- Covered
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- @if($_cpc->is_manually_determined)
|
|
|
- <a href="{{ route('patients.view.primary-coverage', $patient) }}" class="on-hover-show">
|
|
|
- <i class="ml-1 fas fa-code-branch text-info"></i>
|
|
|
- <div class="on-hover-content py-2 pl-3 text-nowrap">
|
|
|
- Manually determined at {{ friendly_date($_cpc->created_at) }}
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- @if($performer->pro->pro_type == 'ADMIN')
|
|
|
- @if($_cpc->plan_type === 'MEDICARE')
|
|
|
- @if(@$patient->mpb_remaining !== null)
|
|
|
- <div class="ml-2">Deductible: {{format_number(@$patient->mpb_remaining)}} </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- @if($_cpc->plan_type === 'COMMERCIAL')
|
|
|
-
|
|
|
- <div class="ml-2">Deductible: {{@$_cpc->deductible_amount}} </div>
|
|
|
-
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
- @if(!$patient->getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES')
|
|
|
+ @if($hasCoverageColumn)
|
|
|
<div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 305px;">
|
|
|
@include('app.patient.coverage-status')
|
|
|
</div>
|
|
|
+ @else
|
|
|
+ <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 350px;">
|
|
|
+ @include('layouts.patient-header-meta-info')
|
|
|
+ </div>
|
|
|
@endif
|
|
|
<div class="bg-light p-2 border d-none">
|
|
|
@if($patient->mcp && $patient->mcp->id === $pro->id || $pro->pro_type == 'ADMIN')
|
|
@@ -579,3 +560,51 @@ $addressParts .= implode(", ", $addressPart2);
|
|
|
@endif
|
|
|
@endif
|
|
|
|
|
|
+<?php
|
|
|
+if($patient->latest_vitals_json) {
|
|
|
+ try {
|
|
|
+ $parsed = json_decode($patient->latest_vitals_json);
|
|
|
+ ?>
|
|
|
+ <div class="mx-2 mb-2 p-2 mcp-theme-1 rounded-0 border bg-aliceblue">
|
|
|
+ <div class="d-flex align-items-baseline flex-wrap">
|
|
|
+ <div class="mr-2 font-weight-bold text-secondary">Latest Vitals @if($patient->latest_vitals_set_at)({{friendly_date($patient->latest_vitals_set_at)}})@endif:</div>
|
|
|
+ <?php $hasPre = false; ?>
|
|
|
+ @if($parsed->heightInInches)
|
|
|
+ <div>Height {{toFeetAndInches($parsed->heightInInches, "'", '"')}}</div>
|
|
|
+ <?php $hasPre = true; ?>
|
|
|
+ @endif
|
|
|
+ @if($parsed->weightPounds)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>Weight {{$parsed->weightPounds}} lbs</div>
|
|
|
+ @endif
|
|
|
+ @if($parsed->bmi)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>BMI {{$parsed->bmi}}</div>
|
|
|
+ @endif
|
|
|
+ @if($parsed->temperatureF)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>Temp. {{$parsed->bmi}} F</div>
|
|
|
+ @endif
|
|
|
+ @if($parsed->systolicBP && $parsed->diastolicBP)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>BP {{$parsed->systolicBP}}/{{$parsed->diastolicBP}}</div>
|
|
|
+ @endif
|
|
|
+ @if($parsed->pulseRatePerMinute)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>Pulse {{$parsed->pulseRatePerMinute}}/m</div>
|
|
|
+ @endif
|
|
|
+ @if($parsed->respirationRatePerMinute)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>Resp. {{$parsed->respirationRatePerMinute}}/m</div>
|
|
|
+ @endif
|
|
|
+ @if($parsed->smokingStatus)
|
|
|
+ @if($hasPre)<span class="mr-2">,</span>@endif
|
|
|
+ <div>{{$parsed->smokingStatus}}</div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ catch (Exception $ex) {}
|
|
|
+}
|
|
|
+?>
|