CheckMemberClaimSubmission method
dynamic
CheckMemberClaimSubmission(
- dynamic patientId
Implementation
CheckMemberClaimSubmission(patientId) async {
var checkStatusCode;
try {
http.Response response = await http.post(
Uri.parse('${choice_Base_Url}check-member-claim-details'),
body: {
"corporate_id":
claimsController.employeeDetails['corporate_id'].toString(),
"policy_no_id": claimsController
.policyTabsList[claimsController.tabIndex]['policy_id']
.toString(),
"employee_id":
claimsController.employeeDetails['emp_id'].toString(),
"emp_member_id": "${patientId}"
},
headers: {
"Authorization": choiceToken,
});
TokenRefresh(refreshtoken: response.headers['authorization'].toString());
checkStatusCode = response.statusCode;
var decodedResponse = await json.decode(response.body);
CheckMemberClaimListData = await decodedResponse;
} catch (err) {
AutoLogoutThreeTry();
if (checkStatusCode == 401) {
await CheckMemberClaimSubmission(patientId);
(commonContext as Element).reassemble();
} else {}
}
}