Samson Mutunga 3 years ago
parent
commit
45fbf003b9

BIN
public/img/p-phone.png


+ 37 - 28
resources/views/app/patient/partials/fu-form.blade.php

@@ -1,14 +1,35 @@
+<?php
+    $nextFUReasons = [
+        "Appointment Confirmation",
+        "New Appointment",
+        "Missed Appointment",
+        "Appointment Reschedule",
+        "Appointment Cancellation",
+        "Response to Pt's Voicemail",
+        "Regarding ERx/Lab/Image Orders",
+        "Regarding Supply Orders",
+        "Regarding RPM",
+        "Pt Profile Related Matters",
+        "Pt Insurance Related Matters",
+        "Incoming Referrals",
+        "Outgoing Referrals",
+        "Insurance Verification",
+        "Questions Related to Past Visit",
+        "Provider Recommended follow-up",
+        "Care Coordination",
+        "Patient Consent",
+        "Patient Feedback",
+        "Goals Follow Up",
+        "Other-- (check recent memo)",
+    ];
+?>
 <div moe wide>
-    <a href="#" start show class="d-flex align-items-baseline" title="Next FU">Next FU</a>
+    <a href="#" start show class="d-flex align-items-baseline" title="Next FU"><img src="{{ asset('img/p-phone.png') }}" alt="" style="width:24px"></a>
     <form url="/api/client/putClientRepFollowUp" class="mcp-theme-1">
         <div id="viewNextFuData" class="{{ $patient->clientRepFollowUp ? '':'d-none' }}">
             @if($patient->clientRepFollowUp)
             <a id="updateNextFu" class="c-pointer">Update</a>
             <table class="table table-sm table-striped table-bordered">
-                <tr>
-                    <td><b>Created At</b></td>
-                    <td>{{ friendly_date_time($patient->clientRepFollowUp->created_at) }}</td>
-                </tr>
                 <tr>
                     <td><b>Updated At</b></td>
                     <td>{{ friendly_date_time($patient->clientRepFollowUp->updated_at) }}</td>
@@ -37,43 +58,31 @@
             <input type="hidden" name="uid" value="{{ $patient->uid }}">
             <div class="mb-2">
                 <label for="" class="text-sm text-secondary mb-1">Next Calling Date</label>
-                <input type="date" class="form-control input-sm" name="nextFollowUpDate" value="{{ $patient->next_follow_up_date }}" />
+                <input type="date" class="form-control input-sm" name="nextFollowUpDate" value="{{ $patient->clientRepFollowUp ? $patient->clientRepFollowUp->next_follow_up_date : '' }}" />
             </div>
             <div class="mb-2">
                 <label for="" class="text-sm text-secondary mb-1">Call Assigned To</label>
                 <select provider-search name="clientRepProUid" class="form-control input-sm">
+                    @if($patient->clientRepFollowUp)
+                    <option value="{{ $patient->clientRepFollowUp->pro->uid }}">{{ $patient->clientRepFollowUp->pro->displayName() }}</option>
+                    @endif
                 </select>
+                @if($patient->clientRepFollowUp)
+                    <small class="text-muted">Current: <b>{{ $patient->clientRepFollowUp->pro->displayName() }}</b></small>
+                @endif
             </div>
             <div class="mb-2">
                 <label for="" class="text-sm text-secondary mb-1">Call Reason</label>
                 <select name="nextFollowUpReason" class="form-control input-sm">
                     <option value=""></option>
-                    <option>Appointment Confirmation</option>
-                    <option>New Appointment</option>
-                    <option>Missed Appointment</option>
-                    <option>Appointment Reschedule</option>
-                    <option>Appointment Cancellation</option>
-                    <option>Response to Pt's Voicemail</option>
-                    <option>Regarding ERx/Lab/Image Orders</option>
-                    <option>Regarding Supply Orders</option>
-                    <option>Regarding RPM</option>
-                    <option>Pt Profile Related Matters</option>
-                    <option>Pt Insurance Related Matters</option>
-                    <option>Incoming Referrals</option>
-                    <option>Outgoing Referrals</option>
-                    <option>Insurance Verification</option>
-                    <option>Questions Related to Past Visit</option>
-                    <option>Provider Recommended follow-up</option>
-                    <option>Care Coordination</option>
-                    <option>Patient Consent</option>
-                    <option>Patient Feedback</option>
-                    <option>Goals Follow Up</option>
-                    <option>Other-- (check recent memo)</option>
+                    @foreach($nextFUReasons as $fuReason)
+                        <option @if($patient->clientRepFollowUp){{ $patient->clientRepFollowUp->next_follow_up_reason == $fuReason ? 'selected':'' }} @endif>{{ $fuReason }}</option>
+                    @endforeach
                 </select>
             </div>
             <div class="mb-2">
                 <label for="" class="text-sm text-secondary mb-1">Memo</label>
-                <textarea class="form-control input-sm" name="nextFollowUpMemo"></textarea>
+                <textarea class="form-control input-sm" name="nextFollowUpMemo">{{ $patient->clientRepFollowUp ? $patient->clientRepFollowUp->next_follow_up_memo :'' }}</textarea>
             </div>
             <div class="d-flex align-items-center">
                 <button class="btn btn-sm btn-primary mr-2" submit>Submit</button>

+ 1 - 1
resources/views/app/patient/partials/quick-actions-buttons.blade.php

@@ -1,4 +1,4 @@
-<div class="d-flex justify-content-around">
+<div class="d-flex justify-content-around align-items-center">
 	<div>
 		<div moe relative>
 			<a href="#" start show class="ml-3 d-flex align-items-baseline"><i class="fa fa-comment mr-1"></i></a>