logicpowerhouse 5 years ago
parent
commit
8e427207e2

+ 2 - 1
app/Http/Controllers/PatientController.php

@@ -10,7 +10,8 @@ class PatientController extends Controller
 {
     public function dashboard(Request $request, Client $patient )
     {
-        $pros = Pro::where('is_enrolled_as_mcp', true)->get();
+        $mcpPros = Pro::where('is_enrolled_as_mcp', true)->get();
+        $pros = Pro::all();
         return view('app.patient.dashboard', compact('patient','pros'));
     }
 

+ 3 - 0
public/css/yemi.css

@@ -11,3 +11,6 @@
     padding: 10px;
     border: 1px solid gray;
 }
+#moe-form-mask {
+    cursor: pointer;
+}

+ 2 - 2
resources/views/app/dashboard.blade.php

@@ -13,7 +13,7 @@
                             </strong>
                         </div>
                         <div class="card-body p-0">
-                            <table class="table table-condensed">
+                            <table class="table table-condensed table-bordered m-0">
                                 <tbody>
                                 <tr>
                                     <th>0</th>
@@ -42,7 +42,7 @@
                             </strong>
                         </div>
                         <div class="card-body p-0">
-                            <table class="table table-condensed">
+                            <table class="table table-condensed table-bordered m-0">
                                 <tbody>
                                 <tr>
                                     <th>$1034.90</th>

+ 55 - 1
resources/views/app/patient/dashboard.blade.php

@@ -5,5 +5,59 @@
 @endsection
 
 @section('inner-content')
-    CONTENT
+    <pre>
+        CARE PLAN: [edit]
+
+            Current Medications:
+
+            Dx & Focus Areas:
+
+                Title | ICD | Chronic or Acute | Prognosis | Treatment Goal | Treatment Plan
+
+            Care Team:
+
+                Name | Specialty | Organization | Phone | Fax | Next Appointment | Memo
+
+            Recent Measurements:
+
+                Vitals:
+
+                    BP: 120 / 80
+                    HR: 100 bpm
+                    Temp: 103.0 F
+                    RR: 39 rpm
+                    Ht: 5' 10"
+                    Wt: 230 lbs
+                    BMI: 33
+                    SpO2: 3.0%
+                    Inhaled O2: 4.0%
+
+                Lab:
+
+                    A1c:
+                    LDL:
+                    HDL:
+                    Trigs:
+
+                Other:
+
+                    ...
+
+            History:
+
+                Medical:
+                Surgical:
+                Family:
+                Social:
+                OB & Preg:
+                Hospitalizations / Procedures:
+
+			Screenings:
+                Colonoscopy:
+                Mammogram:
+                ...//TODO checklist
+
+        RECENT E&M NOTES:
+            # | HCP | Date | Name | DOB | Title | Bill(s)
+    </pre>
 @endsection

+ 95 - 35
resources/views/layouts/patient.blade.php

@@ -81,10 +81,62 @@
                                         <div class="font-weight-bold" style="font-size: 1.4em">
                                             {{$patient->name_last}}, {{$patient->name_first}}
                                         </div>
+                                        @if(!$patient->was_medicare_validation_successful)
+                                            <div moe class="ml-2">
+                                                <a href="" start show>
+                                                    <i class="fas fa-edit"></i>
+                                                </a>
+                                                <form url="/api/client/editName">
+                                                    <input type="hidden" name="uid" value="{{$patient->uid}}">
+                                                    <div class="form-group">
+                                                        Prefix: <input type="text" name="namePrefix"
+                                                                       value="{{$patient->name_prefix}}"><br>
+                                                        First: <input type="text" name="nameFirst"
+                                                                      value="{{$patient->name_first}}"><br>
+                                                        Middle: <input type="text" name="nameMiddle"
+                                                                       value="{{$patient->name_middle}}"><br>
+                                                        Last: <input type="text" name="nameLast"
+                                                                     value="{{$patient->name_last}}"><br>
+                                                        Suffix: <input type="text" name="nameSuffix"
+                                                                       value="{{$patient->name_suffix}}"><br>
+                                                        Credential: <input type="text" name="nameCredential"
+                                                                           value="{{$patient->name_credential}}"><br>
+                                                        Nickname: <input type="text" name="nameNickname"
+                                                                         value="{{$patient->name_nickname}}"><br>
+                                                        Maiden: <input type="text" name="nameMaiden"
+                                                                       value="{{$patient->name_maiden}}"><br>
+                                                        Previous: <input type="text" name="namePrevious"
+                                                                         value="{{$patient->name_previous}}">
+                                                    </div>
+                                                    <div class="form-group">
+                                                        <button class="btn btn-success btn-sm" submit>Submit</button>
+                                                        <button class="btn btn-secondary btn-sm" cancel>Cancel</button>
+                                                    </div>
+                                                </form>
+                                            </div>
+                                        @endif
                                         <span class="pl-2">
                                             {{$patient->dob}}
                                             {{$patient->age_in_years}} y.o. {{$patient->sex}}
                                         </span>
+                                        @if(!$patient->was_medicare_validation_successful)
+                                            <div moe class="ml-2">
+                                                <a href="" start show>
+                                                    <i class="fas fa-edit"></i>
+                                                </a>
+                                                <form url="/api/client/editDob">
+                                                    <input type="hidden" name="uid" value="{{$patient->uid}}">
+                                                    <div class="form-group">
+                                                        <input type="date" class="" name="dob"
+                                                               value="{{$patient->dob}}">
+                                                    </div>
+                                                    <div class="form-group">
+                                                        <button class="btn btn-success btn-sm" submit>Submit</button>
+                                                        <button class="btn btn-secondary btn-sm" cancel>Cancel</button>
+                                                    </div>
+                                                </form>
+                                            </div>
+                                        @endif
                                     </div>
                                     <div class="align-items-center d-flex">
                                         <i class="badge badge-info ml-3">
@@ -96,14 +148,16 @@
                                         @if($patient->mcp)
                                             {{$patient->mcp->name_display}}...
                                             @if($patient->has_mcp_done_onboarding_visit == 'YES')
-                                                <strong>First E&M Visit:</strong> {{$patient->mcp_onboarding_visit_date}}...
-                                                <strong>Last E&M Visit:</strong>{$patient->most_recent_mcp_em_visit_date}...
+                                                <strong>First E&M
+                                                    Visit:</strong> {{$patient->mcp_onboarding_visit_date}}...
+                                                <strong>Last E&M Visit:</strong>
+                                                {$patient->most_recent_mcp_em_visit_date}...
                                                 <strong>Next E&M Visit:</strong> {$patient->next_mcp_em_visit_date}
                                             @else
-                                                <div class="alert alert-success text-sm p-1">
+                                                <span class="alert alert-success text-sm p-1">
                                                     <i class="fa fa-exclamation-circle" aria-hidden="true"></i>
                                                     Patient has not been seen yet!
-                                                </div>
+                                                </span>
                                             @endif
                                         @else
                                             <div moe>
@@ -114,10 +168,11 @@
                                                 <form url="/api/client/putMcp">
                                                     <input type="hidden" name="uid" value="{{$patient->uid}}">
                                                     <div class="form-group">
-                                                        <select name="mcpProUid"  class="form-control">
+                                                        <select name="mcpProUid" class="form-control">
                                                             <option value="">-- select mcp --</option>
                                                             @foreach ($pros as $pro)
-                                                            <option value="{{$pro->uid}}">{{$pro->name_display}}</option>
+                                                                <option
+                                                                    value="{{$pro->uid}}">{{$pro->name_display}}</option>
                                                             @endforeach
                                                         </select>
                                                     </div>
@@ -135,24 +190,8 @@
                                             @if($patient->cm)
                                                 {{$patient->cm->name_display}}
                                             @else
-                                                <div moe>
+                                                <div>
                                                     none!
-                                                    <a href="" start show><i class="fas fa-edit"></i></a>
-                                                    <form url="/api/client/putCmPro">
-                                                        <input type="hidden" name="uid" value="{{$patient->uid}}">
-                                                        <div class="form-group">
-                                                            <select name="cmProUid"  class="form-control">
-                                                                <option value="">-- select cm --</option>
-                                                                @foreach ($pros as $pro)
-                                                                <option value="{{$pro->uid}}">{{$pro->name_display}}</option>
-                                                                @endforeach
-                                                            </select>
-                                                        </div>
-                                                        <div class="form-group">
-                                                            <button class="btn btn-success btn-sm" submit>Submit</button>
-                                                            <button class="btn btn-secondary btn-sm" cancel>Cancel</button>
-                                                        </div>
-                                                    </form>
                                                 </div>
                                             @endif
                                         </div>
@@ -163,24 +202,45 @@
                                         <strong>MCN:</strong>
                                         @if($patient->mcn)
                                             @if($patient->was_medicare_validation_successful)
-                                                Valid #,
-                                                @if($patient->is_part_b_primary == 'YES')
-                                                    Medicare Part B <i class="fa fa-check"></i>
-                                                @else
-                                                    Not Medicare Part B <i class="fa fa-times"></i>
-                                                    @if($patient->is_medicare_advantage == 'YES')
-                                                        , Medicare Advantage,
-                                                        {{$patient->medicare_advantage_plan}}
+                                                <span
+                                                    class="badge badge-{{$patient->is_part_b_primary == 'YES' ? 'success' : 'danger'}}">
+                                                    Valid #,
+                                                    @if($patient->is_part_b_primary == 'YES')
+                                                        Medicare Part B <i class="fa fa-check"></i>
+                                                    @else
+                                                        Not Medicare Part B <i class="fa fa-times"></i>
+                                                        @if($patient->is_medicare_advantage == 'YES')
+                                                            , Medicare Advantage,
+                                                            {{$patient->medicare_advantage_plan}}
+                                                        @endif
                                                     @endif
-                                                @endif
+                                                </span>
                                             @else
-                                                {{$patient->mcn}}
-                                                INVALID! <i class="fa fa-times"></i>
-                                                [Update MCN]
+                                                <span class="badge badge-warning">
+                                                    {{$patient->mcn}}
+                                                    INVALID! <i class="fa fa-times"></i>
+                                                </span>
                                             @endif
                                         @else
                                             None provided. <i class="fa fa-times"></i>
                                         @endif
+                                        @if(!$patient->was_medicare_validation_successful)
+                                            <div moe>
+                                                <a href="" start show><i class="fas fa-edit"></i></a>
+                                                <form url="/api/client/putMcn">
+                                                    <input type="hidden" name="uid" value="{{$patient->uid}}">
+                                                    <div class="form-group">
+                                                        <input type="text" name="mcn" value="{{$patient->mcn}}">
+                                                    </div>
+                                                    <div class="form-group">
+                                                        <button class="btn btn-success btn-sm" submit>Submit
+                                                        </button>
+                                                        <button class="btn btn-secondary btn-sm" cancel>Cancel
+                                                        </button>
+                                                    </div>
+                                                </form>
+                                            </div>
+                                        @endif
                                     </div>
                                 </div>
                                 <div class="d-flex">