Browse Source

added claims resolver view

unknown 4 năm trước cách đây
mục cha
commit
455fdad2d6
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      resources/views/app/patient/claims-resolver.blade.php

+ 5 - 2
resources/views/app/patient/claims-resolver.blade.php

@@ -34,8 +34,11 @@
                     }
                 }
                 $dayInProgram = (strtotime($d) - strtotime($firstDateEverSeenByAnyone)) / (60 * 60 * 24);
-                $dayInMcpProgram = (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24);
-                $daysSinceLastMcpVisit = null;
+                $dayInMcpProgram = null;
+                if($firstDateEverSeenByMcpTypePro){
+                    $dayInMcpProgram = (strtotime($d) - strtotime($firstDateEverSeenByMcpTypePro)) / (60 * 60 * 24);
+                }
+                $daysSinceLastMcpTypeVisit = null;
                 if($note->hcpPro->is_mcp){
                     $daysSinceLastMcpTypeVisit = (strtotime($d) - strtotime($loopLastDateSeenByMcpTypePro)) / (60 * 60 * 24);
                 }