瀏覽代碼

added na join

= 3 年之前
父節點
當前提交
4e9578f705

+ 3 - 0
app/Http/Controllers/PracticeManagementController.php

@@ -3288,6 +3288,8 @@ ORDER BY c.name_last, c.name_first
     public function notesResolutionCenter(Request $request) {
 
         $columns = "(c.name_first || ' ' || c.name_last) as client_name,
+            (hcp.name_first || ' ' || hcp.name_last) as hcp_name,
+            (na.name_first || ' ' || na.name_last) as na_name,
             c.chart_number,
             c.uid as client_uid,
             n.effective_dateest,
@@ -3296,6 +3298,7 @@ ORDER BY c.name_last, c.name_first
             ";
         $from = "FROM note AS n
             JOIN pro AS hcp ON n.hcp_pro_id = hcp.id
+            JOIN pro AS na ON n.ally_pro_id = na.id
             JOIN client AS c ON n.client_id = c.id
             ";
         $where = "WHERE

+ 7 - 1
resources/views/app/practice-management/notes-resolution-center.blade.php

@@ -29,6 +29,8 @@
             <tr>
                 <th class="border-bottom-0 text-nowrap text-right pr-2">Visit #</th>
                 <th class="border-bottom-0 text-nowrap">Name</th>
+                <th class="border-bottom-0 text-nowrap">MCP</th>
+                <th class="border-bottom-0 text-nowrap">NA</th>
                 <th class="border-bottom-0 text-nowrap">Chart #</th>
                 <th class="border-bottom-0 text-nowrap">Date</th>
                 <th class="border-bottom-0 text-nowrap">Note Link</th>
@@ -65,6 +67,8 @@
                 <tr>
                     <td class="text-nowrap text-right pr-2">{{$visitCount}}</td>
                     <td class="text-nowrap">{{$row->client_name}}</td>
+                    <td class="text-nowrap">{{$row->mcp_name}}</td>
+                    <td class="text-nowrap">{{$row->na_name}}</td>
                     <td class="text-nowrap">{{$row->chart_number}}</td>
                     <td class="text-nowrap">{{friendly_date($row->effective_dateest)}}</td>
                     <td class="text-nowrap">
@@ -76,7 +80,9 @@
                     <td class="font-weight-bold text-success">{!! @$parsedDetailJson->shawn_decision && @$parsedDetailJson->shawn_decision === 'green' ? '<i class="fa fa-check"></i> Yes' : '' !!}</td>
                     <td class="font-weight-bold text-danger">{!! @$parsedDetailJson->shawn_decision && @$parsedDetailJson->shawn_decision === 'red' ? '<i class="fa fa-times"></i> Rejected' : '' !!}</td>
                     <td class="font-weight-bold text-success">{!! @$parsedDetailJson->kyle_billed && @$parsedDetailJson->kyle_billed === 'yes' ? '<i class="fa fa-check"></i> Yes' : '' !!}</td>
-                    <td></td>
+                    <td>
+                        <a href="/patients/view/{{ $row->client_uid }}/notes/view/{{ $row->uid }}">Go to note</a>
+                    </td>
                 </tr>
             @endforeach
             </tbody>

+ 4 - 0
resources/views/app/practice-management/process-claims.blade.php

@@ -36,6 +36,10 @@
                                    class="form-control form-control-sm w-100 min-width-unset"
                                    :class="filter.to ? 'bg-aliceblue' : ''">
                         </div>
+                        <div class="width-150px mr-2 form-check mt-2">
+                          <input type="checkbox" class="form-check-input" name="zero_deductibles_only">
+                          <label for="" class="form-check-label">Zero Deductibles Only</label>
+                        </div>
                         <div class="">
                             <label class="mb-1 text-sm text-secondary">&nbsp;</label>
                             <div class="d-flex align-items-center">