Jelajahi Sumber

Patient list and single: new ins. updates

Vijayakrishnan Krishnan 2 minggu lalu
induk
melakukan
3673e599bc

+ 10 - 0
public/css/style.css

@@ -3832,3 +3832,13 @@ table.v-top th {
     padding: 0.5rem 1.25rem;
     width: 250px;
 }
+
+/* new - 2025 - vj */
+.legacy-badge {
+    position: absolute;
+    right: 3px;
+    top: 0;
+    opacity: 0.4;
+    height: 30px;
+    line-height: 30px;
+}

+ 8 - 3
resources/views/app/admin/patients-table-extended.blade.php

@@ -110,9 +110,14 @@ $patientEngagementColorCodes = @Config::get('constants.client_engagement_status_
                         </td>
                     @endif
                     <td>{{ $patient->mailing_address_state }}</td>
-                    <td class="{{ $patient->mpb_remaining === 0 ? 'deductible-zero' : '' }}">
-                        @include('app.patient.insurance_card_renderer', ['insurance_cards' => $patient->insurance_cards])
-
+                    <td class="position-relative {{ $patient->mpb_remaining === 0 ? 'deductible-zero' : '' }}">
+                        @if(!!@$patient->insurance_cards)
+                            @include('app.patient.insurance_card_renderer', ['insurance_cards' => $patient->insurance_cards])
+                        @else
+                            {{-- legacy --}}
+                            @include('app.patient.coverage_column_fast_renderer', ['patient'=>$patient])
+                            <div class="legacy-badge" title="Legacy Coverage Data"><i class="fa fa-clock"></i></div>
+                        @endif
                     </td>
                     @if ($performer->pro->pro_type == 'ADMIN')
                         <td>

+ 7 - 1
resources/views/app/mcp/patients-table.blade.php

@@ -42,7 +42,13 @@
 				<td>{{ $patient->age_in_years ?  $patient->age_in_years : '-' }}</td>
 				<td>{{ $patient->sex }}</td>
 				<td>
-                    @include('app.patient.insurance_card_renderer', ['insurance_cards' => $patient->insurance_cards])
+					@if(!!@$patient->insurance_cards)
+						@include('app.patient.insurance_card_renderer', ['insurance_cards' => $patient->insurance_cards])
+					@else
+						{{-- legacy --}}
+						@include('app.patient.coverage_column_fast_renderer', ['patient'=>$patient])
+						<div class="legacy-badge" title="Legacy Coverage Data"><i class="fa fa-clock"></i></div>
+					@endif
 				</td>
 				<td>
 					{{ friendly_date($patient->most_recent_completed_mcp_note_date) }}

+ 2 - 2
resources/views/app/patient/coverage_column_fast_renderer.blade.php

@@ -35,16 +35,16 @@
                 <span class="{{ @$truncateName ? 'coverage-payer-name':'' }}"
                       title="{{$patient->insuranceDisplayName()}}">{{$patient->insuranceDisplayName()}}</span>
             @endif
-        @else
-            <small class="ml-2 text-muted">(No insurance)</small>
         @endif
         <div class="">
             @if($patient->plan_type === 'MEDICARE')
+                Medicare
                 @if(@$patient->mpb_remaining)
                     <span class="text-muted d-block text-sm ml-1">(Ded: {{format_number(@$patient->mpb_remaining)}})</span>
                 @endif
             @endif
             @if($patient->plan_type === 'COMMERCIAL')
+                Commercial
                 @if(@$patient->deductible_amount && !!+@$patient->deductible_amount)
                     <span class="text-muted d-block text-sm ml-1">(Ded: {{format_number(@$patient->deductible_amount)}})</span>
                 @endif

+ 5 - 5
resources/views/app/patient/insurance_card_renderer.blade.php

@@ -17,7 +17,7 @@
     @else
         <div>
             @foreach($cardsArray as $card)
-                <div class="w-100 d-flex justify-content-start">
+                <div class="min-width-110px w-100 d-flex justify-content-start align-items-baseline">
 
                     <?php
                         if(property_exists($card, 'effective_eligibility_check')) {
@@ -40,14 +40,14 @@
                     </span>
 
                     @if($card->carrier_category == 'MEDICARE')
-                        <span class="ml-1">Medicare</span>
+                        <span class="ml-1 pr-2">Medicare</span>
                     @elseif($card->carrier_category == 'MEDICAID')
-                        <span class="ml-1">Medicaid</span>
+                        <span class="ml-1 pr-2">Medicaid</span>
                     @elseif($card->carrier_category == 'COMMERCIAL')
-                        <span class="ml-1">{{$card->carrier_name}}</span>
+                        <span class="ml-1 pr-2">{{$card->carrier_name}}</span>
                     @endif
 
-                    <span class="ml-1 text-muted">({{substr(strtolower($card->coverage_order), 0, 3)}})</span>
+                    <span class="ml-auto text-muted text-sm">{{substr($card->coverage_order, 0, 3)}}</span>
                 </div>
             @endforeach
         </div>

+ 11 - 4
resources/views/layouts/patient-header.blade.php

@@ -436,14 +436,21 @@ $addressParts .= implode(", ", $addressPart2);
             </div>
         </div>
 
-        @if($hasCoverageColumn)
+        <?php $cards = $patient->insuranceCards(); ?>
+        @if($cards && count($cards) > 0)
             <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 305px;">
                 @include('app.patient.insurance_card_renderer', ['insurance_cards' => $patient->insuranceCards()])
             </div>
         @else
-            <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 350px;">
-                @include('layouts.patient-header-meta-info')
-            </div>
+            @if($hasCoverageColumn)
+                <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 305px;">
+                    @include('app.patient.coverage-status')
+                </div>
+            @else
+                <div class="d-flex bg-light p-2 border header-coverage-status" style="max-width: 350px;">
+                    @include('layouts.patient-header-meta-info')
+                </div>
+            @endif
         @endif
         <div class="bg-light p-2 border d-none">
             @if($patientMcp && $patientMcp->id === $pro->id || $pro->pro_type == 'ADMIN')