浏览代码

Show deductible if is MEDICARE

Samson Mutunga 3 年之前
父节点
当前提交
4cf332c330

+ 4 - 2
resources/views/app/patient/coverage_column_renderer.blade.php

@@ -36,6 +36,8 @@
         <small class="ml-2 text-muted">(No insurance)</small>
     @endif
 </div>
-@if(@$patient->mpb_remaining)
-    <small class="text-muted d-block ml-3">Deductible: {{format_number(@$patient->mpb_remaining)}} </small>
+@if($coverage->plan_type === 'MEDICARE')
+    @if(@$patient->mpb_remaining)
+        <small class="text-muted d-block ml-3">Deductible: {{format_number(@$patient->mpb_remaining)}} </small>
+    @endif
 @endif

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

@@ -349,8 +349,10 @@ $addressParts .= implode(", ", $addressPart2);
                 @endif
             </div>
             @if($performer->pro->pro_type == 'ADMIN')
-              @if(@$patient->mpb_remaining)
-                <div class="ml-2">Deductible: {{format_number(@$patient->mpb_remaining)}} </div>
+              @if($_cpc->plan_type === 'MEDICARE')
+                @if(@$patient->mpb_remaining)
+                  <div class="ml-2">Deductible: {{format_number(@$patient->mpb_remaining)}} </div>
+                @endif
               @endif
             @endif 
           @endif