Quellcode durchsuchen

fixed claims display

= vor 4 Jahren
Ursprung
Commit
7c9ba00424

+ 9 - 0
app/Models/ClaimLine.php

@@ -13,4 +13,13 @@ class ClaimLine extends Model
         return $this->hasMany(ClaimLineIcd::class, 'claim_line_id', 'id');
     }
 
+    public function icds(){
+        $icdList = [];
+        foreach($this->claimLineIcds as $icd){
+            $icdList[] = $icd->code;
+        }
+
+        return implode (", ", $icdList);
+    }
+
 }

+ 20 - 1
resources/views/app/practice-management/billing-manager.blade.php

@@ -94,9 +94,28 @@
                                 <tbody>
                                     @foreach($note->claims as $claim)
                                     <tr>
-                                        <td>{{$claim->uid}}</td>
+                                        <td>{{$claim->iid}}</td>
                                         <td>{{$claim->was_submitted?'Yes':'No'}}</td>
                                     </tr>
+                                    <tr>
+                                        <td colspan="2">
+                                            <strong>Claim Lines</strong>
+                                            <table class="table table-sm table-condensed table-striped">
+                                                <tr>
+                                                    <th>CPT</th>
+                                                    <th>ICDs</th>
+                                                    <th>Date of Service</th>
+                                                </tr>
+                                                @foreach($claim->lines as $claimLine)
+                                                <tr>
+                                                    <td>{{$claimLine->cpt}}</td>
+                                                    <td>{{$claimLine->icds()}}</td>
+                                                    <td>{{$claimLine->date_of_service}}</td>
+                                                </tr>
+                                                @endforeach
+                                            </table>
+                                        </td>
+                                    </tr>
                                     @endforeach
                                 </tbody>
                             </table>