|
|
|
@ -31,48 +31,9 @@ class InsuranceCardService extends BaseService {
|
|
|
|
|
_cardUpdated.clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InsuranceCardModel _insuranceCardModel = InsuranceCardModel(
|
|
|
|
|
channel: 3,
|
|
|
|
|
deviceTypeID: 2,
|
|
|
|
|
generalid: "Cs2020@2016\$2958",
|
|
|
|
|
iPAdress: "10.20.10.20",
|
|
|
|
|
isDentalAllowedBackend: false,
|
|
|
|
|
languageID: 1,
|
|
|
|
|
patientID: 1231755,
|
|
|
|
|
patientOutSA: 0,
|
|
|
|
|
patientType: 1,
|
|
|
|
|
patientTypeID: 1,
|
|
|
|
|
sessionID: "uoKFXSLUwEaHYPwKZNA",
|
|
|
|
|
tokenID: "@dm!n",
|
|
|
|
|
versionID: 5.5,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
InsuranceUpdateModel _insuranceUpdateModel = InsuranceUpdateModel(
|
|
|
|
|
channel: 3,
|
|
|
|
|
deviceTypeID: 2,
|
|
|
|
|
generalid: "Cs2020@2016\$2958",
|
|
|
|
|
iPAdress: "10.20.10.20",
|
|
|
|
|
isDentalAllowedBackend: false,
|
|
|
|
|
patientID: 1231755,
|
|
|
|
|
patientType: 1,
|
|
|
|
|
versionID: 5.5,
|
|
|
|
|
languageID: 2,
|
|
|
|
|
patientOutSA: 0,
|
|
|
|
|
sessionID: "ENRSJBKXnzCuuVQ",
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
InsuranceApprovalModel _insuranceApprovalModel = InsuranceApprovalModel(
|
|
|
|
|
versionID: 5.5,
|
|
|
|
|
channel: 3,
|
|
|
|
|
languageID: LANGUAGE_ID,
|
|
|
|
|
iPAdress: "10.20.10.20",
|
|
|
|
|
generalid: "Cs2020@2016\$2958",
|
|
|
|
|
patientOutSA: 0,
|
|
|
|
|
sessionID: "DypNmtMkivzURHjeYg",
|
|
|
|
|
isDentalAllowedBackend: false,
|
|
|
|
|
deviceTypeID: 2,
|
|
|
|
|
patientID: 1231755,
|
|
|
|
|
tokenID: "@dm!n",
|
|
|
|
|
patientTypeID: 1,
|
|
|
|
|
patientType: 1,
|
|
|
|
|
eXuldAPPNO: 0,
|
|
|
|
@ -89,7 +50,7 @@ class InsuranceCardService extends BaseService {
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
super.error = error;
|
|
|
|
|
}, body: _insuranceCardModel.toJson());
|
|
|
|
|
}, body: Map());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getInsuranceUpdate() async {
|
|
|
|
@ -97,13 +58,14 @@ class InsuranceCardService extends BaseService {
|
|
|
|
|
// _cardList.clear();
|
|
|
|
|
await baseAppClient.post(GET_PAtIENTS_INSURANCE_UPDATED,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
_cardUpdated.clear();
|
|
|
|
|
response['List_PatientInsuranceCardHistory'].forEach((item) {
|
|
|
|
|
_cardUpdated.add(InsuranceUpdateModel.fromJson(item));
|
|
|
|
|
});
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
super.error = error;
|
|
|
|
|
}, body: _insuranceUpdateModel.toJson());
|
|
|
|
|
}, body: Map());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getInsuranceApproval({int appointmentNo}) async {
|
|
|
|
|