Vijayakrishnan 4 роки тому
батько
коміт
12acc9900c

+ 1 - 1
app/Helpers/helpers.php

@@ -214,7 +214,7 @@ if(!function_exists('friendlier_date')) {
         if(!$value || empty($value)) return '';
         try {
             $result = strtotime($value);
-            $result = date("j M", $result);
+            $result = date("j M Y", $result);
             return $result;
         }
         catch (Exception $e) {

+ 4 - 0
app/Models/MBClaim.php

@@ -11,4 +11,8 @@ class MBClaim extends Model
     public function currentVersion(){
         return $this->hasOne(ClaimVersion::class, 'id', 'current_version_id');
     }
+
+    public function claim(){
+        return $this->hasOne(Claim::class, 'id', 'claim_id');
+    }
 }

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

@@ -1909,7 +1909,7 @@
                                                             <div>
                                                                     <span moe class="d-block" title="Submit Claim">
                                                                         <a class="" href="" show start>Generate Submission to Payer (1°)</a>
-                                                                        <form url="/api/mbClaim/create">
+                                                                        <form url="/api/mbClaim/createFromClaimForPrimaryPayer">
                                                                             <input type="hidden" name="claimUid" value="{{$claim->uid}}">
                                                                             <p>Generate Submission?</p>
                                                                             <div class="mb-0">

+ 34 - 0
resources/views/app/patient/mb-claim-single.blade.php

@@ -232,6 +232,40 @@
                     </tr>
                     </tbody>
                 </table>
+
+                <table class="table table-sm table-condensed mb-0 table-bordered">
+                    <thead>
+                    <tr class="bg-light">
+                        <th class="border-0 width-300px">CPT</th>
+                        <th class="border-0">DOS</th>
+                        <th class="border-0">ICDs</th>
+                    </tr>
+                    </thead>
+                    <tbody class="pb-3">
+                    @foreach($mbClaim->claim->lines as $line)
+                        <tr class="claim-line">
+                            <td>{{$line->cpt}}
+                                @if($line->numberOfUnits)
+                                    <div>Units: <b>{{$line->numberOfUnits}}</b></div>
+                                @endif
+                            </td>
+                            <td class="text-nowrap">{{friendlier_date($line->date_of_service)}}</td>
+                            <td>
+                                @if(count($line->claimLineIcds))
+                                    @foreach($line->claimLineIcds as $icd)
+                                        <div>
+                                            <b class="c-pointer border-secondary border-bottom" title="{{$icd->description}}">{{$icd->code}}</b>
+                                        </div>
+                                    @endforeach
+                                @else
+                                    <p>No ICDs set</p>
+                                @endif
+                            </td>
+                        </tr>
+                    @endforeach
+                    </tbody>
+                </table>
+
             </div>
         </div>
     </div>

+ 3 - 5
resources/views/app/patient/note/dashboard.blade.php

@@ -1577,7 +1577,6 @@
                             <tr>
                                 <th class="border-bottom-0 pl-2">IID</th>
                                 <th class="border-bottom-0">Details</th>
-                                <th class="border-bottom-0">Current Version</th>
                                 <th class="border-bottom-0">Status</th>
                                 <th class="border-bottom-0">Submissions</th>
                             </tr>
@@ -1591,6 +1590,8 @@
                                     <tr class="{{ $claim->status === 'CANCELLED' ? 'text-secondary bg-light on-hover-opaque' : '' }}">
                                         <td class="pl-2">
                                             <div>{{ $claim->iid }}</div>
+                                            <div class="text-sm text-secondary font-weight-bold mt-1">Current Version:</div>
+                                            <div class="text-sm text-secondary">{{$claim->currentVersion ? friendlier_date_time($claim->currentVersion->created_at) : '-'}}</div>
                                             @if($claim->status === 'CANCELLED')
                                                 <div class="text-secondary font-weight-bold text-sm mt-1">[CANCELLED]</div>
                                             @else
@@ -1650,9 +1651,6 @@
                                                 <p>No lines for this claim</p>
                                             @endif
                                         </td>
-                                        <td class="border-right">
-                                            {{$claim->currentVersion ? friendlier_date_time($claim->currentVersion->created_at) : '-'}}
-                                        </td>
                                         <td class="border-right p-0">
 
                                             <!-- status -->
@@ -1828,7 +1826,7 @@
                                                             <div>
                                                                 <span moe class="d-block" title="Submit Claim">
                                                                     <a class="" href="" show start>Generate Submission to Payer (1°)</a>
-                                                                    <form url="/api/mbClaim/create">
+                                                                    <form url="/api/mbClaim/createFromClaimForPrimaryPayer">
                                                                         <input type="hidden" name="claimUid" value="{{$claim->uid}}">
                                                                         <p>Generate Submission?</p>
                                                                         <div class="mb-0">