Bläddra i källkod

coverage updates

Peter Muturi 3 år sedan
förälder
incheckning
6c3f910c34

+ 52 - 19
resources/views/app/patient/coverage-status.blade.php

@@ -4,7 +4,13 @@
         $mcnDetails = json_decode($patient->mcn_response_detail ?? null);
     @endphp
     @if(!$coverage)
-        <span><b>No coverage info!</b></span>
+        <table class="table table-sm table-bordered">
+          <tr>
+            <td>
+              <b>No coverage info!</b>
+            </td>
+          </tr>
+        </table>
     @elseif($coverage->plan_type === 'MEDICARE')
       @if($coverage->creation_strategy == 'NEW' || $coverage->creation_strategy == 'AUTO_REFRESH')
       <table class="table table-sm table-bordered">
@@ -41,6 +47,12 @@
           <td>{{number_format($coverage->auto_medicare_mpb_remaining,2, '.',',') ?? '-'}}</td>
         </tr>
         @endif
+        @if($coverage->manual_determination_category_memo)
+        <tr>
+          <td><b>Manual Determination Memo: </b></td>
+          <td>{{$coverage->manual_determination_category_memo}}</td>
+        </tr>
+        @endif
       </table>
       @else
       <!-- Manual determination -->
@@ -57,15 +69,15 @@
               @endforeach
             @endif
 
-            @if($coverage->manual_medicare_is_partbprimary)
-              <span><i class="fas fa-check-circle text-success"></i>  ({{$coverage->manual_determination_strategy}})</span>
+            @if($coverage->manual_medicare_is_partbprimary == 'YES')
+              <span><i class="fas fa-check-circle text-success"></i> <b>Part B Primary:</b> YES ({{$coverage->manual_determination_strategy}})</span>
             @elseif(!$coverage->manual_medicare_is_match_found)
-            <span><i class="fas fa-times text-danger"></i> record not found ({{$coverage->manual_determination_strategy}})</span>
+              <span><i class="fas fa-times text-danger"></i> record not found ({{$coverage->manual_determination_strategy}})</span>
             @else
-            <span><i class="fas fa-times text-danger"></i> not primary! ({{$coverage->manual_determination_strategy}})</span> <br>
-            <span><i class="fas fa-check-circle text-success"></i> record found</span> <br>
-            <span><b>Part B:</b> {{$coverage->manual_medicare_is_partbactive}}</span> <br>
-            <span><b>Part C:</b> {{$coverage->manual_medicare_is_partcactive}}</span>
+              <span><i class="fas fa-times text-danger"></i> <b>Part B Primary:</b> {{$coverage->manual_medicare_is_partbprimary}}</span> <br>
+              <span><i class="fas fa-check-circle text-success"></i> record found</span> <br>
+              <span><b>Part B:</b> {{$coverage->manual_medicare_is_partbactive}}</span> <br>
+              <span><b>Part C:</b> {{$coverage->manual_medicare_is_partcactive}}</span>
             @endif
           </td>
         </tr>
@@ -79,11 +91,14 @@
           <td>{{number_format($coverage->auto_medicare_mpb_remaining, 2, '.',',') ?? '-'}}</td>
         </tr>
         @endif
+        @if($coverage->manual_determination_category_memo)
+        <tr>
+          <td><b>Manual Determination Memo: </b></td>
+          <td>{{$coverage->manual_determination_category_memo}}</td>
+        </tr>
+        @endif
       </table>
       @endif
-      <div class="w-50">
-        {{$coverage->manual_determination_category_memo}}
-      </div>
 
     @elseif($coverage->plan_type === 'MEDICAID')
       @if($coverage->creation_strategy == 'NEW' || $coverage->creation_strategy == 'AUTO_REFRESH')
@@ -99,6 +114,12 @@
           <td class="font-weight-bold">Date Created:</td>
           <td><span>{{date_format($coverage->created_at, 'm/d/Y')}}</span></td>
         </tr>
+        @if($coverage->manual_determination_category_memo)
+        <tr>
+          <td><b>Manual Determination Memo: </b></td>
+          <td>{{$coverage->manual_determination_category_memo}}</td>
+        </tr>
+        @endif
       </table>
       @else
         <table class="table table-sm table-bordered">
@@ -109,7 +130,7 @@
               @if($coverage->manual_determination_category == 'COVERED')
               <span><i class="fas fa-check-circle text-success"></i></span>
               @elseif($coverage->manual_determination_category == 'NOT_COVERED')
-              <span><i class="fas fa-check-circle text-danger"></i> record found</span> <br>
+              <span><i class="fas fa-check-circle text-success"></i> record found</span> <br>
               <span><i class="fas fa-times text-danger"></i> not covered ({{$coverage->manual_determination_strategy}})</span>
               @elseif($coverage->manual_determination_category == 'INVALID')
               <span><i class="fas fa-times text-danger"></i> record not found ({{$coverage->manual_determination_strategy}})</span>
@@ -118,11 +139,14 @@
               @endif
             </td>
           </tr>
+          @if($coverage->manual_determination_category_memo)
+          <tr>
+            <td><b>Manual Determination Memo: </b></td>
+            <td>{{$coverage->manual_determination_category_memo}}</td>
+          </tr>
+          @endif
         </table>
       @endif
-      <div class="w-50">
-        {{$coverage->manual_determination_category_memo}}
-      </div>
 
     @elseif($coverage->plan_type === 'COMMERCIAL')
       @if($coverage->creation_strategy == 'NEW' || $coverage->creation_strategy == 'AUTO_REFRESH')
@@ -138,6 +162,12 @@
           <td class="font-weight-bold">Date Created:</td>
           <td><span>{{date_format($coverage->created_at, 'm/d/Y')}}</span></td>
         </tr>
+        @if($coverage->manual_determination_category_memo)
+        <tr>
+          <td><b>Manual Determination Memo: </b></td>
+          <td>{{$coverage->manual_determination_category_memo}}</td>
+        </tr>
+        @endif
       </table>
       @else
         <table class="table table-sm table-bordered">
@@ -148,7 +178,7 @@
               @if($coverage->manual_determination_category == 'COVERED')
               <span><i class="fas fa-check-circle text-success"></i></span>
               @elseif($coverage->manual_determination_category == 'NOT_COVERED')
-              <span><i class="fas fa-check-circle text-danger"></i> record found</span> <br>
+              <span><i class="fas fa-check-circle text-success"></i> record found</span> <br>
               <span><i class="fas fa-times text-danger"></i> not covered ({{$coverage->manual_determination_strategy}})</span>
               @elseif($coverage->manual_determination_category == 'INVALID')
               <span><i class="fas fa-times text-danger"></i> record not found ({{$coverage->manual_determination_strategy}})</span>
@@ -157,10 +187,13 @@
               @endif
             </td>
           </tr>
+          @if($coverage->manual_determination_category_memo)
+          <tr>
+            <td><b>Manual Determination Memo: </b></td>
+            <td>{{$coverage->manual_determination_category_memo}}</td>
+          </tr>
+          @endif
         </table>
       @endif
-      <div class="w-50">
-        {{$coverage->manual_determination_category_memo}}
-      </div>
     @endif
 </div>

+ 2 - 2
resources/views/app/patient/primary-coverage-manual-determination-commercial-modal.blade.php

@@ -30,7 +30,7 @@
 							<td>Record Found?</td>
 							<td>{{$cpc->auto_commercial_is_match_found ? 'YES' : 'NO'}}</td>
 							<td>
-								<div class="form-group">
+								<div class="form-group mb-0">
 									<div class="form-check form-check-inline">
 										<label class="form-check-label"><input class="form-check-input" type="radio" name="manualCommercialIsMatched" value="YES" @change="onInputChange">Yes</label>
 									</div>
@@ -138,7 +138,7 @@
 						<tr>
 							<td>Is Part C Active?</td>
 							<td>{{$cpc->auto_medicare_is_partcactive}}</td>
-							<td>
+							<td style="max-width:200px;">
 								<div class="alert alert-danger" v-if="(cpc.auto_medicare_is_partcactive == 'YES' && cpc.auto_medicare_is_partbprimary == 'YES') || (uiState.manualMedicareIsPartBPrimary == 'YES' && uiState.manualMedicareIsPartCActive == 'YES')">
 									Oops! Patient Medicare Part B Primary is set to <b>Yes</b>.
 								</div>

+ 1 - 1
resources/views/app/patient/primary-coverage-manual-determination-medicare-modal.blade.php

@@ -82,7 +82,7 @@
 						<tr>
 							<td>Is Part C Active?</td>
 							<td>{{$cpc->auto_medicare_is_partcactive}}</td>
-							<td>
+							<td style="max-width:200px;">
 								<div class="alert alert-danger p-1 mb-1" v-if="(cpc.auto_medicare_is_partcactive == 'YES' && cpc.auto_medicare_is_partbprimary == 'YES') || (uiState.manualMedicareIsPartBPrimary == 'YES' && uiState.manualMedicareIsPartCActive == 'YES')">
 									Oops! Patient Medicare Part B Primary is set to <b>Yes</b>.
 								</div>

+ 6 - 2
resources/views/app/patient/primary-coverage-manual-determination-view-commercial.blade.php

@@ -13,7 +13,7 @@
 				<td>Record Found?</td>
 				<td>{{$cpc->auto_commercial_is_match_found ? 'YES' : 'NO'}}</td>
 				<td>
-					<div class="form-group">
+					<div class="form-group mb-0">
 						<p class="mb-1 text-secondary">Manual Determination Category</p>
 						<span>{{$cpc->manual_determination_category ?? '-'}}</span>
 					</div>
@@ -34,7 +34,7 @@
 				<td>Part B Primary?</td>
 				<td>{{$cpc->auto_medicare_is_partbprimary}}</td>
 				<td>
-					<div class="form-group">
+					<div class="form-group mb-1">
 						<p class="mb-1 text-secondary">Manual Determination Category</p>
 						<span>{{$cpc->manual_determination_category  ?? '-'}}</span>
 					</div>
@@ -97,6 +97,10 @@
 					</div>
 				</td>
 			</tr>
+			<tr>
+				<td>Memo</td>
+				<td colspan="2">{{$cpc->manual_determination_category_memo ?? '-'}}</td>
+			</tr>
 		</tbody>
 	</table>
 </div>

+ 6 - 2
resources/views/app/patient/primary-coverage-manual-determination-view-medicaid.blade.php

@@ -13,7 +13,7 @@
 				<td>Record Found?</td>
 				<td>{{$cpc->auto_medicaid_is_match_found ? 'YES' : 'NO'}}</td>
 				<td>
-					<div class="form-group">
+					<div class="form-group mb-0">
 						<p class="mb-1 text-secondary">Is Matched?</p>
 						<span>{{$cpc->manual_medicaid_is_matched ?? '-'}}</span>
 					</div>
@@ -23,12 +23,16 @@
 				<td>Coverage Status?</td>
 				<td>UNKNOWN</td>
 				<td>
-					<div class="form-group">
+					<div class="form-group mb-0">
 						<p class="mb-1 text-secondary">Manual Determination Category</p>
 						<span>{{$cpc->manual_determination_category ?? '-'}}</span>
 					</div>
 				</td>
 			</tr>
+			<tr>
+				<td>Memo</td>
+				<td colspan="2">{{$cpc->manual_determination_category_memo ?? '-'}}</td>
+			</tr>
 		</tbody>
 	</table>
 </div>

+ 6 - 2
resources/views/app/patient/primary-coverage-manual-determination-view-medicare.blade.php

@@ -17,7 +17,7 @@
 				<td>Record Found?</td>
 				<td>{{$cpc->auto_medicare_is_match_found ? 'YES' : 'NO'}}</td>
 				<td>
-					<div class="form-group">
+					<div class="form-group mb-0">
 						<p class="mb-1 text-secondary">Is Matched?</p>
 						<span>{{$cpc->manual_medicare_is_matched ?? '-'}}</span>
 					</div>
@@ -39,7 +39,7 @@
 				<td>Part B Primary?</td>
 				<td>{{$cpc->auto_medicare_is_partbprimary}}</td>
 				<td>
-					<div class="form-group">
+					<div class="form-group mb-1">
 						<p class="mb-1 text-secondary">Manual Determination Category</p>
 						<span>{{$cpc->manual_determination_category  ?? '-'}}</span>
 					</div>
@@ -103,6 +103,10 @@
 					</div>
 				</td>
 			</tr>
+			<tr>
+				<td>Memo</td>
+				<td colspan="2">{{$cpc->manual_determination_category_memo ?? '-'}}</td>
+			</tr>
 		</tbody>
 	</table>
 </div>

+ 5 - 5
resources/views/layouts/patient.blade.php

@@ -394,7 +394,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 											</div>
 										</div>
 										<div class="screen-only">
-											<div class=separators>											
+											<div class=separators>
 												<div>
 													<label>MCP:</label> {{$mcpName}}
 													@if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
@@ -510,7 +510,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 												@endif
 											</div>
 											</div>
-										
+
 										<div>
 											<label>Physician:</label> {{$patient->pcp ? $patient->pcp->displayName() : '-' }}
 											@if($pro->pro_type == 'ADMIN')
@@ -560,7 +560,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
                               @endif
                           @endif
                       </div>
-											
+
                                         </div>
                                     </section>
                                     {{--<section>
@@ -738,10 +738,10 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
 																									class="on-hover-opaque fa fa-video text-secondary"></i>&nbsp;Join</button>
 																				</div>
                                     </section>
-									
+
 									@if(!$patient->getPrimaryCoverage() || $patient->getPrimaryCoverageStatus() !== 'YES')
 									<section class="hide-inside-popup screen-only vbox align-self-start mt-2 mx-2">
-											@include('app.patient.coverage-status')										
+											@include('app.patient.coverage-status')
 									</section>
 									@endif
 									<ul class="vbox mt-2 align-self-start patient-header-address ml-auto">