Jelajahi Sumber

Patient updates

Vijayakrishnan Krishnan 4 tahun lalu
induk
melakukan
a618e51a1e

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

@@ -6,7 +6,7 @@
         {{-- CARE PLAN START --}}
         <?php $infoLines = json_decode($patient->info_lines);?>
         <?php $infoLines = !$infoLines ? [] : $infoLines; ?>
-        <?php $vitalLabels = ['Ht. (in.)','Wt. (lbs.)','Temp. (F)','Pulse','Resp.','Pulse Ox.','SBP','DBP','Smoking Status']; ?>
+        <?php $vitalLabels = ['Ht. (in.)','Wt. (lbs.)','Temp. (F)','Pulse','Resp.','Pulse Ox.','SBP','DBP','Smoking Status', 'BMI']; ?>
 
 	    <div class="row">
             <div class="col-6">

+ 28 - 4
resources/views/app/patients.blade.php

@@ -25,8 +25,8 @@
                     <th class="border-0">Sex</th>
                     <th class="border-0">MCN</th>
                     <th class="border-0">PCP</th>
-                    <th class="border-0">Assistant</th>
-                    <th class="border-0">Next E&M</th>
+                    <th class="border-0">RMM</th>
+                    <th class="border-0">Upcoming Appointments</th>
                 </tr>
                 </thead>
                 <tbody>
@@ -66,10 +66,34 @@
                             {{ $patient->mcp ? $patient->mcp->displayName() : '-' }}
                         </td>
                         <td>
-                            {{ $patient->cm ? $patient->cm->displayName() : '-' }}
+                            {{ $patient->rmm ? $patient->rmm->displayName() : '-' }}
                         </td>
                         <td>
-                            {{$patient->next_appointment ? friendly_date_time($patient->next_appointment, false) : '-'}}
+                            <table class="table table-sm border-0 my-0">
+                                <tbody>
+                                @foreach($patient->appointments as $appointment)
+                                    <tr>
+                                        <td class="text-black p-0 border-0">
+                                            <div class="pb-0">
+                                                {{ friendly_date_time($appointment->start_time, false) }}, {{ friendly_time($appointment->start_time) }}
+                                                &nbsp;/&nbsp;
+                                                {{--<span class="d-inline-block ml- 2 text-secondary">{{ $appointment->title }}</span>
+                                                &nbsp;/&nbsp;--}}
+                                                <b class="mr-1">{{$appointment->pro->displayName()}}</b>
+                                                <span class="text-secondary text-sm">({{ $appointment->status }})</span>
+                                            </div>
+                                        </td>
+                                    </tr>
+                                @endforeach
+                                @if(!$patient->appointments || count($patient->appointments) === 0)
+                                    <tr>
+                                        <td class="text-secondary p-0 border-0">
+                                            No appointments
+                                        </td>
+                                    </tr>
+                                @endif
+                                </tbody>
+                            </table>
                         </td>
                     </tr>
                 @endforeach

+ 1 - 1
routes/web.php

@@ -96,7 +96,7 @@ Route::middleware('pro.auth')->group(function () {
             Route::get('', 'NoteController@dashboard')->name('dashboard');
         });
         Route::get('flowsheets', 'PatientController@flowSheets')->name('flowsheets');
-        Route::get('demographics', 'PatientController@demographics')->name('demographics');
+        Route::get('settings', 'PatientController@settings')->name('settings');
         Route::get('account', 'PatientController@account')->name('account');
         Route::get('care-checklist', 'PatientController@careChecklist')->name('care-checklist');
         Route::get('documents', 'PatientController@documents')->name('documents');