Claim number updated repeatedly issue in mediassist : GWM
This commit is contained in:
parent
78aab2055d
commit
391a2f314c
@ -506,6 +506,8 @@ class MediAssistApiController extends BaseController
|
|||||||
tm.id,
|
tm.id,
|
||||||
tm.tpa_no as memberId,
|
tm.tpa_no as memberId,
|
||||||
tm.tpa_claim_push_reference_no as claimRefNo,
|
tm.tpa_claim_push_reference_no as claimRefNo,
|
||||||
|
tm.tpa_claim_id,
|
||||||
|
tm.claim_number,
|
||||||
cp.policy_no as policyNo,
|
cp.policy_no as policyNo,
|
||||||
cp.policy_start_date as startDate,
|
cp.policy_start_date as startDate,
|
||||||
cp.policy_end_date as endDate,
|
cp.policy_end_date as endDate,
|
||||||
@ -521,6 +523,7 @@ class MediAssistApiController extends BaseController
|
|||||||
return ['status' => false,'message' => 'Invalid Claim ID' ];
|
return ['status' => false,'message' => 'Invalid Claim ID' ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// REQUEST BODY
|
// REQUEST BODY
|
||||||
if($ticket['claimRefNo'] != null)
|
if($ticket['claimRefNo'] != null)
|
||||||
{
|
{
|
||||||
@ -617,13 +620,18 @@ class MediAssistApiController extends BaseController
|
|||||||
|
|
||||||
$updateArray = [
|
$updateArray = [
|
||||||
'tpa_claim_status' => $currentStatus,
|
'tpa_claim_status' => $currentStatus,
|
||||||
'tpa_claim_id' => $tpa_claim_no,
|
|
||||||
'claim_number' => $tpa_claim_no,
|
|
||||||
'updated_at' => date('Y-m-d H:i:s'),
|
'updated_at' => date('Y-m-d H:i:s'),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isset($validStatuses[$currentStatus])) {
|
if (isset($validStatuses[$currentStatus])) {
|
||||||
$updateArray['claim_status_id'] = $validStatuses[$currentStatus];
|
$updateArray['claim_status_id'] = $validStatuses[$currentStatus];
|
||||||
}
|
}
|
||||||
|
if (empty($ticket['tpa_claim_id']) || $ticket['tpa_claim_id'] === null) {
|
||||||
|
$updateArray['tpa_claim_id'] = $tpa_claim_no;
|
||||||
|
}
|
||||||
|
if (empty($ticket['claim_number']) || $ticket['claim_number'] === null) {
|
||||||
|
$updateArray['claim_number'] = $tpa_claim_no;
|
||||||
|
}
|
||||||
if (!empty($tpa_claim_type)) {
|
if (!empty($tpa_claim_type)) {
|
||||||
$updateArray['tpa_claim_type'] = $tpa_claim_type;
|
$updateArray['tpa_claim_type'] = $tpa_claim_type;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user