Просмотр исходного кода

Note header - coverage mismatch warning

Vijayakrishnan 4 лет назад
Родитель
Сommit
4d58da2e47

+ 14 - 0
resources/views/app/patient/note/dashboard.blade.php

@@ -20,6 +20,20 @@
     }
     ?>
 
+    @if(!count($pro->companyProPayers) ||  /* pro has no assoc with any payer */
+                    ($patient->is_part_b_primary !== 'YES' && !$patient->non_mc_primary_payer_id) ||    /* patient is not part_b and has no primary non-mc payer */
+                    ($patient->is_part_b_primary === 'YES' && !$pro->isAssociatedWithMCPayer()) ||      /* patient is part_b but pro has no mc payer assoc */
+                    ($patient->is_part_b_primary !== 'YES' && $patient->non_mc_primary_payer_id &&      /* patient is not part_b and has non-mc-primary, but pro has no assoc with that payer */
+                        !$pro->isAssociatedWithNonMCPayer($patient->non_mc_primary_payer_id))
+                )
+        <div class="alert alert-warning mcp-theme-1 p-3 hide-inside-ticket-popup">
+            <div class="font-size-14 font-weight-bold">
+                <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
+                This patient may not be covered for this visit. Please check with practice administrator.
+            </div>
+        </div>
+    @endif
+
     <div id="note-single-header" class="pt-2 pb-3 d-flex align-items-start">
         <h6 class="my-0 text-secondary d-flex align-items-start w-100">
             <a href="/patients/view/{{ $patient->uid }}/notes" class="small text-decoration-none mr-3">

+ 0 - 15
resources/views/layouts/patient.blade.php

@@ -190,21 +190,6 @@
             </nav>
             @endif
             <main role="main" class="w-100">
-
-                @if(!count($pro->companyProPayers) ||  /* pro has no assoc with any payer */
-                    ($patient->is_part_b_primary !== 'YES' && !$patient->non_mc_primary_payer_id) ||    /* patient is not part_b and has no primary non-mc payer */
-                    ($patient->is_part_b_primary === 'YES' && !$pro->isAssociatedWithMCPayer()) ||      /* patient is part_b but pro has no mc payer assoc */
-                    ($patient->is_part_b_primary !== 'YES' && $patient->non_mc_primary_payer_id &&      /* patient is not part_b and has non-mc-primary, but pro has no assoc with that payer */
-                        !$pro->isAssociatedWithNonMCPayer($patient->non_mc_primary_payer_id))
-                )
-                    <div class="alert alert-warning mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
-                        <div class="font-size-14 font-weight-bold">
-                            <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
-                            This patient may not be covered for this visit. Please check with practice administrator.
-                        </div>
-                    </div>
-                @endif
-
                 @if($pro->is_enrolled_as_mcp && !$patient->mcp)
                     <div class="alert alert-info bg-white mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
                         <div class="font-size-16">