FIX_STATUS_WRONGLY_MAPPED
This commit is contained in:
parent
0928dc852b
commit
30e9d9dd6d
@ -85,7 +85,7 @@ class ClaimReportDashboardController extends BaseController
|
|||||||
'status' => false,
|
'status' => false,
|
||||||
'message' => 'Unknown KPI. Pass Metabase id or method slug.',
|
'message' => 'Unknown KPI. Pass Metabase id or method slug.',
|
||||||
'allowed' => ClaimsCollectionV2DashboardModel::KPI_MAP,
|
'allowed' => ClaimsCollectionV2DashboardModel::KPI_MAP,
|
||||||
], 404);
|
], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
$model = new ClaimReportDashboardModel();
|
$model = new ClaimReportDashboardModel();
|
||||||
@ -610,7 +610,7 @@ class ClaimReportDashboardController extends BaseController
|
|||||||
return $this->respond([
|
return $this->respond([
|
||||||
'status' => false,
|
'status' => false,
|
||||||
'message' => 'No claim_report records with dump linkage found for this policy.',
|
'message' => 'No claim_report records with dump linkage found for this policy.',
|
||||||
], 404);
|
], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Group dump IDs by source_table
|
// Group dump IDs by source_table
|
||||||
@ -631,7 +631,7 @@ class ClaimReportDashboardController extends BaseController
|
|||||||
return $this->respond([
|
return $this->respond([
|
||||||
'status' => false,
|
'status' => false,
|
||||||
'message' => 'No valid TPA dump table references found for this policy.',
|
'message' => 'No valid TPA dump table references found for this policy.',
|
||||||
], 404);
|
], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
$spreadsheet = new Spreadsheet();
|
$spreadsheet = new Spreadsheet();
|
||||||
@ -687,7 +687,7 @@ class ClaimReportDashboardController extends BaseController
|
|||||||
return $this->respond([
|
return $this->respond([
|
||||||
'status' => false,
|
'status' => false,
|
||||||
'message' => 'No dump table rows found for the linked claim_report records.',
|
'message' => 'No dump table rows found for the linked claim_report records.',
|
||||||
], 404);
|
], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
$spreadsheet->setActiveSheetIndex(0);
|
$spreadsheet->setActiveSheetIndex(0);
|
||||||
|
|||||||
@ -264,12 +264,12 @@ class FhplApiController extends BaseController
|
|||||||
$tpa_ailments = $claimData['AILMENT'] ?? '';
|
$tpa_ailments = $claimData['AILMENT'] ?? '';
|
||||||
|
|
||||||
$validStatuses = [
|
$validStatuses = [
|
||||||
"In-Progress" => 5,
|
"In-Progress" => 61,
|
||||||
"Under Process" => 5,
|
"Under Process" => 61,
|
||||||
"Query" => 4,
|
"Query" => 4,
|
||||||
"Paid" => 11,
|
"Paid" => 11,
|
||||||
"Rejected" => 8,
|
"Rejected" => 8,
|
||||||
"Approved" => 8,
|
"Approved" => 9,
|
||||||
"Required Information" => 4,
|
"Required Information" => 4,
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -806,10 +806,10 @@ class FhplApiController extends BaseController
|
|||||||
$status = $row['CLAIM_STATUS'];
|
$status = $row['CLAIM_STATUS'];
|
||||||
|
|
||||||
$map = [
|
$map = [
|
||||||
"Under Process"=>5,
|
"Under Process"=>61,
|
||||||
"Paid"=>11,
|
"Paid"=>11,
|
||||||
"Rejected"=>8,
|
"Rejected"=>8,
|
||||||
"Approved"=>8
|
"Approved"=>9
|
||||||
];
|
];
|
||||||
|
|
||||||
$claimStatus = $map[$status] ?? 1;
|
$claimStatus = $map[$status] ?? 1;
|
||||||
@ -900,10 +900,10 @@ class FhplApiController extends BaseController
|
|||||||
$status = $row['CLAIM_STATUS'] ?? null;
|
$status = $row['CLAIM_STATUS'] ?? null;
|
||||||
|
|
||||||
$map = [
|
$map = [
|
||||||
"Under Process"=>5,
|
"Under Process"=>61,
|
||||||
"Paid"=>11,
|
"Paid"=>11,
|
||||||
"Rejected"=>8,
|
"Rejected"=>8,
|
||||||
"Approved"=>8
|
"Approved"=>9
|
||||||
];
|
];
|
||||||
|
|
||||||
$claimStatus = $map[$status] ?? 61;
|
$claimStatus = $map[$status] ?? 61;
|
||||||
|
|||||||
@ -322,12 +322,12 @@ class HealthIndiaApiController extends BaseController
|
|||||||
$tpa_ailments = $claimData['ailment'] ?? '';
|
$tpa_ailments = $claimData['ailment'] ?? '';
|
||||||
|
|
||||||
$validStatuses = [
|
$validStatuses = [
|
||||||
"In-Progress" => 5,
|
"In-Progress" => 61,
|
||||||
"Under Process" => 5,
|
"Under Process" => 61,
|
||||||
"Query" => 4,
|
"Query" => 7,
|
||||||
"Paid" => 11,
|
"Paid" => 11,
|
||||||
"Rejected" => 8,
|
"Rejected" => 8,
|
||||||
"Approved" => 8,
|
"Approved" => 9,
|
||||||
"Required Information" => 4,
|
"Required Information" => 4,
|
||||||
"Intimated and File NOT received" => 4,
|
"Intimated and File NOT received" => 4,
|
||||||
];
|
];
|
||||||
@ -800,12 +800,12 @@ class HealthIndiaApiController extends BaseController
|
|||||||
$status = $row['Claim_Status'] ?? 'Under Process';
|
$status = $row['Claim_Status'] ?? 'Under Process';
|
||||||
|
|
||||||
$map = [
|
$map = [
|
||||||
"Under Process" => 5,
|
"Under Process" => 61,
|
||||||
"Pending for Bill Entry" => 5,
|
"Pending for Bill Entry" => 61,
|
||||||
"Paid" => 11,
|
"Paid" => 11,
|
||||||
"Rejected" => 8,
|
"Rejected" => 8,
|
||||||
"Approved" => 8,
|
"Approved" => 9,
|
||||||
"Outstanding" => 5,
|
"Outstanding" => 61,
|
||||||
];
|
];
|
||||||
|
|
||||||
$claimStatus = $map[$status] ?? 1;
|
$claimStatus = $map[$status] ?? 1;
|
||||||
@ -899,12 +899,12 @@ class HealthIndiaApiController extends BaseController
|
|||||||
$status = $row['Claim_Status'] ?? 'Under Process';
|
$status = $row['Claim_Status'] ?? 'Under Process';
|
||||||
|
|
||||||
$map = [
|
$map = [
|
||||||
"Under Process" => 5,
|
"Under Process" => 61,
|
||||||
"Pending for Bill Entry" => 5,
|
"Pending for Bill Entry" => 61,
|
||||||
"Paid" => 11,
|
"Paid" => 11,
|
||||||
"Rejected" => 8,
|
"Rejected" => 8,
|
||||||
"Approved" => 8,
|
"Approved" => 9,
|
||||||
"Outstanding" => 5,
|
"Outstanding" => 61,
|
||||||
];
|
];
|
||||||
|
|
||||||
$claimStatus = $map[$status] ?? 1;
|
$claimStatus = $map[$status] ?? 1;
|
||||||
|
|||||||
@ -555,11 +555,11 @@ class VidalApiController extends BaseController
|
|||||||
|
|
||||||
// VALID STATUS LIST
|
// VALID STATUS LIST
|
||||||
$validStatuses = [
|
$validStatuses = [
|
||||||
"In-Progress" => 5,
|
"In-Progress" => 61,
|
||||||
"Required Information" => 4,
|
"Required Information" => 4,
|
||||||
"Paid" => 11,
|
"Paid" => 11,
|
||||||
"Rejected" => 8,
|
"Rejected" => 8,
|
||||||
"Approved" => 8,
|
"Approved" => 9,
|
||||||
];
|
];
|
||||||
|
|
||||||
$updateArray = [
|
$updateArray = [
|
||||||
@ -685,11 +685,11 @@ class VidalApiController extends BaseController
|
|||||||
|
|
||||||
// VALID STATUS LIST
|
// VALID STATUS LIST
|
||||||
$validStatuses = [
|
$validStatuses = [
|
||||||
"In-Progress" => 5,
|
"In-Progress" => 61,
|
||||||
"Required Information" => 4,
|
"Required Information" => 4,
|
||||||
"Paid" => 11,
|
"Paid" => 11,
|
||||||
"Rejected" => 8,
|
"Rejected" => 8,
|
||||||
"Approved" => 8,
|
"Approved" => 9,
|
||||||
];
|
];
|
||||||
|
|
||||||
$updateArray = [
|
$updateArray = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user