|
|
@ -20,6 +20,8 @@ class AncillaryOrdersService extends BaseService {
|
|
|
|
_ancillaryLists = [];
|
|
|
|
_ancillaryLists = [];
|
|
|
|
response['AncillaryOrderList'].forEach((item) {
|
|
|
|
response['AncillaryOrderList'].forEach((item) {
|
|
|
|
ancillaryLists.add(AncillaryOrdersListModel.fromJson(item));
|
|
|
|
ancillaryLists.add(AncillaryOrdersListModel.fromJson(item));
|
|
|
|
|
|
|
|
print("response of ancillary Lists__________");
|
|
|
|
|
|
|
|
print(response);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
@ -27,175 +29,183 @@ class AncillaryOrdersService extends BaseService {
|
|
|
|
}, body: body);
|
|
|
|
}, body: body);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future getOrdersDetails(appointmentNo, orderNo) async {
|
|
|
|
Future getOrdersDetails(appointmentNo, orderNo, projectID) async {
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
|
|
|
body['AppointmentNo_Vida'] = appointmentNo;
|
|
|
|
|
|
|
|
body['OrderNo'] = orderNo;
|
|
|
|
|
|
|
|
body['ProjectID'] = projectID;
|
|
|
|
|
|
|
|
// "OrderNo=$orderNo&AppointmentNo_Vida=$appointmentNo&ProjectID=$projectID"
|
|
|
|
hasError = false;
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(GET_ANCILLARY_ORDERS_DETAILS,
|
|
|
|
await baseAppClient.post(GET_ANCILLARY_ORDERS_DETAILS,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
_ancillaryProcLists = [];
|
|
|
|
// _ancillaryProcLists.clear();
|
|
|
|
response['AncillaryOrderProcList'] = [
|
|
|
|
_ancillaryProcLists = [];
|
|
|
|
{
|
|
|
|
// response['AncillaryOrderProcList'] = [
|
|
|
|
"AncillaryOrderProcList": [
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// "AncillaryOrderProcList": [
|
|
|
|
"ApprovalLineItemNo": 0,
|
|
|
|
// {
|
|
|
|
"ApprovalNo": 0,
|
|
|
|
// "ApprovalLineItemNo": 0,
|
|
|
|
"ApprovalStatus": "",
|
|
|
|
// "ApprovalNo": 0,
|
|
|
|
"ApprovalStatusID": 0,
|
|
|
|
// "ApprovalStatus": "",
|
|
|
|
"CompanyShare": 501.3,
|
|
|
|
// "ApprovalStatusID": 0,
|
|
|
|
"CompanyShareWithTax": 576.5,
|
|
|
|
// "CompanyShare": 501.3,
|
|
|
|
"CompanyTaxAmount": 75.19,
|
|
|
|
// "CompanyShareWithTax": 576.5,
|
|
|
|
"DiscountAmount": 55.7,
|
|
|
|
// "CompanyTaxAmount": 75.19,
|
|
|
|
"DiscountCategory": 1,
|
|
|
|
// "DiscountAmount": 55.7,
|
|
|
|
"DiscountType": "P",
|
|
|
|
// "DiscountCategory": 1,
|
|
|
|
"DiscountTypeValue": 10,
|
|
|
|
// "DiscountType": "P",
|
|
|
|
"IsApprovalCreated": false,
|
|
|
|
// "DiscountTypeValue": 10,
|
|
|
|
"IsApprovalRequired": false,
|
|
|
|
// "IsApprovalCreated": false,
|
|
|
|
"IsCovered": false,
|
|
|
|
// "IsApprovalRequired": false,
|
|
|
|
"OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
// "IsCovered": false,
|
|
|
|
"OrderLineItemNo": 1,
|
|
|
|
// "OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
"OrderNo": 2020000001,
|
|
|
|
// "OrderLineItemNo": 1,
|
|
|
|
"PartnerID": 0,
|
|
|
|
// "OrderNo": 2020000001,
|
|
|
|
"PartnerShare": 0,
|
|
|
|
// "PartnerID": 0,
|
|
|
|
"PartnerShareType": "P",
|
|
|
|
// "PartnerShare": 0,
|
|
|
|
"PatientShare": 0,
|
|
|
|
// "PartnerShareType": "P",
|
|
|
|
"PatientShareWithTax": 0,
|
|
|
|
// "PatientShare": 0,
|
|
|
|
"PatientTaxAmount": 0,
|
|
|
|
// "PatientShareWithTax": 0,
|
|
|
|
"ProcPrice": 557,
|
|
|
|
// "PatientTaxAmount": 0,
|
|
|
|
"ProcedureCategoryID": 2,
|
|
|
|
// "ProcPrice": 557,
|
|
|
|
"ProcedureCategoryName": "LABORATORY",
|
|
|
|
// "ProcedureCategoryID": 2,
|
|
|
|
"ProcedureID": "02013001",
|
|
|
|
// "ProcedureCategoryName": "LABORATORY",
|
|
|
|
"ProcedureName": "11-DESOXYCORTISOL (COMPOUND S) - S.O",
|
|
|
|
// "ProcedureID": "02013001",
|
|
|
|
"TaxAmount": 75.19,
|
|
|
|
// "ProcedureName": "11-DESOXYCORTISOL (COMPOUND S) - S.O",
|
|
|
|
"TaxPct": 15
|
|
|
|
// "TaxAmount": 75.19,
|
|
|
|
},
|
|
|
|
// "TaxPct": 15
|
|
|
|
{
|
|
|
|
// },
|
|
|
|
"ApprovalLineItemNo": 0,
|
|
|
|
// {
|
|
|
|
"ApprovalNo": 0,
|
|
|
|
// "ApprovalLineItemNo": 0,
|
|
|
|
"ApprovalStatus": "",
|
|
|
|
// "ApprovalNo": 0,
|
|
|
|
"ApprovalStatusID": 0,
|
|
|
|
// "ApprovalStatus": "",
|
|
|
|
"CompanyShare": 90,
|
|
|
|
// "ApprovalStatusID": 0,
|
|
|
|
"CompanyShareWithTax": 103.5,
|
|
|
|
// "CompanyShare": 90,
|
|
|
|
"CompanyTaxAmount": 13.5,
|
|
|
|
// "CompanyShareWithTax": 103.5,
|
|
|
|
"DiscountAmount": 10,
|
|
|
|
// "CompanyTaxAmount": 13.5,
|
|
|
|
"DiscountCategory": 1,
|
|
|
|
// "DiscountAmount": 10,
|
|
|
|
"DiscountType": "P",
|
|
|
|
// "DiscountCategory": 1,
|
|
|
|
"DiscountTypeValue": 10,
|
|
|
|
// "DiscountType": "P",
|
|
|
|
"IsApprovalCreated": false,
|
|
|
|
// "DiscountTypeValue": 10,
|
|
|
|
"IsApprovalRequired": true,
|
|
|
|
// "IsApprovalCreated": false,
|
|
|
|
"IsCovered": false,
|
|
|
|
// "IsApprovalRequired": true,
|
|
|
|
"OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
// "IsCovered": false,
|
|
|
|
"OrderLineItemNo": 4,
|
|
|
|
// "OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
"OrderNo": 2020000001,
|
|
|
|
// "OrderLineItemNo": 4,
|
|
|
|
"PartnerID": 0,
|
|
|
|
// "OrderNo": 2020000001,
|
|
|
|
"PartnerShare": 0,
|
|
|
|
// "PartnerID": 0,
|
|
|
|
"PartnerShareType": "P",
|
|
|
|
// "PartnerShare": 0,
|
|
|
|
"PatientShare": 0,
|
|
|
|
// "PartnerShareType": "P",
|
|
|
|
"PatientShareWithTax": 0,
|
|
|
|
// "PatientShare": 0,
|
|
|
|
"PatientTaxAmount": 0,
|
|
|
|
// "PatientShareWithTax": 0,
|
|
|
|
"ProcPrice": 100,
|
|
|
|
// "PatientTaxAmount": 0,
|
|
|
|
"ProcedureCategoryID": 2,
|
|
|
|
// "ProcPrice": 100,
|
|
|
|
"ProcedureCategoryName": "LABORATORY",
|
|
|
|
// "ProcedureCategoryID": 2,
|
|
|
|
"ProcedureID": "02014011",
|
|
|
|
// "ProcedureCategoryName": "LABORATORY",
|
|
|
|
"ProcedureName": "CBC (COMPLETE BLOOD COUNT PROFILE)",
|
|
|
|
// "ProcedureID": "02014011",
|
|
|
|
"TaxAmount": 13.5,
|
|
|
|
// "ProcedureName": "CBC (COMPLETE BLOOD COUNT PROFILE)",
|
|
|
|
"TaxPct": 15
|
|
|
|
// "TaxAmount": 13.5,
|
|
|
|
},
|
|
|
|
// "TaxPct": 15
|
|
|
|
{
|
|
|
|
// },
|
|
|
|
"ApprovalLineItemNo": 0,
|
|
|
|
// {
|
|
|
|
"ApprovalNo": 0,
|
|
|
|
// "ApprovalLineItemNo": 0,
|
|
|
|
"ApprovalStatus": "",
|
|
|
|
// "ApprovalNo": 0,
|
|
|
|
"ApprovalStatusID": 0,
|
|
|
|
// "ApprovalStatus": "",
|
|
|
|
"CompanyShare": 347.76,
|
|
|
|
// "ApprovalStatusID": 0,
|
|
|
|
"CompanyShareWithTax": 399.92,
|
|
|
|
// "CompanyShare": 347.76,
|
|
|
|
"CompanyTaxAmount": 52.16,
|
|
|
|
// "CompanyShareWithTax": 399.92,
|
|
|
|
"DiscountAmount": 38.64,
|
|
|
|
// "CompanyTaxAmount": 52.16,
|
|
|
|
"DiscountCategory": 1,
|
|
|
|
// "DiscountAmount": 38.64,
|
|
|
|
"DiscountType": "P",
|
|
|
|
// "DiscountCategory": 1,
|
|
|
|
"DiscountTypeValue": 10,
|
|
|
|
// "DiscountType": "P",
|
|
|
|
"IsApprovalCreated": false,
|
|
|
|
// "DiscountTypeValue": 10,
|
|
|
|
"IsApprovalRequired": false,
|
|
|
|
// "IsApprovalCreated": false,
|
|
|
|
"IsCovered": false,
|
|
|
|
// "IsApprovalRequired": false,
|
|
|
|
"OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
// "IsCovered": false,
|
|
|
|
"OrderLineItemNo": 3,
|
|
|
|
// "OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
"OrderNo": 2020000001,
|
|
|
|
// "OrderLineItemNo": 3,
|
|
|
|
"PartnerID": 0,
|
|
|
|
// "OrderNo": 2020000001,
|
|
|
|
"PartnerShare": 0,
|
|
|
|
// "PartnerID": 0,
|
|
|
|
"PartnerShareType": "P",
|
|
|
|
// "PartnerShare": 0,
|
|
|
|
"PatientShare": 0,
|
|
|
|
// "PartnerShareType": "P",
|
|
|
|
"PatientShareWithTax": 0,
|
|
|
|
// "PatientShare": 0,
|
|
|
|
"PatientTaxAmount": 0,
|
|
|
|
// "PatientShareWithTax": 0,
|
|
|
|
"ProcPrice": 386.4,
|
|
|
|
// "PatientTaxAmount": 0,
|
|
|
|
"ProcedureCategoryID": 2,
|
|
|
|
// "ProcPrice": 386.4,
|
|
|
|
"ProcedureCategoryName": "LABORATORY",
|
|
|
|
// "ProcedureCategoryID": 2,
|
|
|
|
"ProcedureID": "02019302",
|
|
|
|
// "ProcedureCategoryName": "LABORATORY",
|
|
|
|
"ProcedureName": "21-HYDROXYLASE ABS - S.O",
|
|
|
|
// "ProcedureID": "02019302",
|
|
|
|
"TaxAmount": 52.16,
|
|
|
|
// "ProcedureName": "21-HYDROXYLASE ABS - S.O",
|
|
|
|
"TaxPct": 15
|
|
|
|
// "TaxAmount": 52.16,
|
|
|
|
},
|
|
|
|
// "TaxPct": 15
|
|
|
|
{
|
|
|
|
// },
|
|
|
|
"ApprovalLineItemNo": 0,
|
|
|
|
// {
|
|
|
|
"ApprovalNo": 0,
|
|
|
|
// "ApprovalLineItemNo": 0,
|
|
|
|
"ApprovalStatus": "",
|
|
|
|
// "ApprovalNo": 0,
|
|
|
|
"ApprovalStatusID": 0,
|
|
|
|
// "ApprovalStatus": "",
|
|
|
|
"CompanyShare": 1323,
|
|
|
|
// "ApprovalStatusID": 0,
|
|
|
|
"CompanyShareWithTax": 1521.45,
|
|
|
|
// "CompanyShare": 1323,
|
|
|
|
"CompanyTaxAmount": 198.45,
|
|
|
|
// "CompanyShareWithTax": 1521.45,
|
|
|
|
"DiscountAmount": 147,
|
|
|
|
// "CompanyTaxAmount": 198.45,
|
|
|
|
"DiscountCategory": 1,
|
|
|
|
// "DiscountAmount": 147,
|
|
|
|
"DiscountType": "P",
|
|
|
|
// "DiscountCategory": 1,
|
|
|
|
"DiscountTypeValue": 10,
|
|
|
|
// "DiscountType": "P",
|
|
|
|
"IsApprovalCreated": false,
|
|
|
|
// "DiscountTypeValue": 10,
|
|
|
|
"IsApprovalRequired": true,
|
|
|
|
// "IsApprovalCreated": false,
|
|
|
|
"IsCovered": false,
|
|
|
|
// "IsApprovalRequired": true,
|
|
|
|
"OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
// "IsCovered": false,
|
|
|
|
"OrderLineItemNo": 5,
|
|
|
|
// "OrderDate": "/Date(1601758800000+0300)/",
|
|
|
|
"OrderNo": 2020000001,
|
|
|
|
// "OrderLineItemNo": 5,
|
|
|
|
"PartnerID": 0,
|
|
|
|
// "OrderNo": 2020000001,
|
|
|
|
"PartnerShare": 0,
|
|
|
|
// "PartnerID": 0,
|
|
|
|
"PartnerShareType": "P",
|
|
|
|
// "PartnerShare": 0,
|
|
|
|
"PatientShare": 0,
|
|
|
|
// "PartnerShareType": "P",
|
|
|
|
"PatientShareWithTax": 0,
|
|
|
|
// "PatientShare": 0,
|
|
|
|
"PatientTaxAmount": 0,
|
|
|
|
// "PatientShareWithTax": 0,
|
|
|
|
"ProcPrice": 1470,
|
|
|
|
// "PatientTaxAmount": 0,
|
|
|
|
"ProcedureCategoryID": 3,
|
|
|
|
// "ProcPrice": 1470,
|
|
|
|
"ProcedureCategoryName": "RADIOLOGY",
|
|
|
|
// "ProcedureCategoryID": 3,
|
|
|
|
"ProcedureID": "03033065",
|
|
|
|
// "ProcedureCategoryName": "RADIOLOGY",
|
|
|
|
"ProcedureName": "CT SCAN - ABDOMEN (WITH CONTRAST)",
|
|
|
|
// "ProcedureID": "03033065",
|
|
|
|
"TaxAmount": 198.45,
|
|
|
|
// "ProcedureName": "CT SCAN - ABDOMEN (WITH CONTRAST)",
|
|
|
|
"TaxPct": 15
|
|
|
|
// "TaxAmount": 198.45,
|
|
|
|
}
|
|
|
|
// "TaxPct": 15
|
|
|
|
],
|
|
|
|
// }
|
|
|
|
"AppointmentDate": "/Date(1601499600000+0300)/",
|
|
|
|
// ],
|
|
|
|
"AppointmentNo": 2016053756,
|
|
|
|
// "AppointmentDate": "/Date(1601499600000+0300)/",
|
|
|
|
"ClinicID": 1,
|
|
|
|
// "AppointmentNo": 2016053756,
|
|
|
|
"ClinicName": "INTERNAL MEDICINE CLINIC",
|
|
|
|
// "ClinicID": 1,
|
|
|
|
"CompanyID": 0,
|
|
|
|
// "ClinicName": "INTERNAL MEDICINE CLINIC",
|
|
|
|
"CompanyName": "Blood Donation Investigation",
|
|
|
|
// "CompanyID": 0,
|
|
|
|
"DoctorID": 1485,
|
|
|
|
// "CompanyName": "Blood Donation Investigation",
|
|
|
|
"DoctorName": "ANAS ABDULLAH",
|
|
|
|
// "DoctorID": 1485,
|
|
|
|
"ErrCode": null,
|
|
|
|
// "DoctorName": "ANAS ABDULLAH",
|
|
|
|
"GroupID": 2,
|
|
|
|
// "ErrCode": null,
|
|
|
|
"InsurancePolicyNo": "45976500",
|
|
|
|
// "GroupID": 2,
|
|
|
|
"Message": "Success",
|
|
|
|
// "InsurancePolicyNo": "45976500",
|
|
|
|
"PatientCardID": "232332323",
|
|
|
|
// "Message": "Success",
|
|
|
|
"PatientID": 3072055,
|
|
|
|
// "PatientCardID": "232332323",
|
|
|
|
"PatientName": "MAYA KHALED SADDIQ",
|
|
|
|
// "PatientID": 3072055,
|
|
|
|
"PatientType": 1,
|
|
|
|
// "PatientName": "MAYA KHALED SADDIQ",
|
|
|
|
"PolicyID": 2,
|
|
|
|
// "PatientType": 1,
|
|
|
|
"PolicyName": "Test",
|
|
|
|
// "PolicyID": 2,
|
|
|
|
"ProjectID": 15,
|
|
|
|
// "PolicyName": "Test",
|
|
|
|
"SetupID": "010266",
|
|
|
|
// "ProjectID": 15,
|
|
|
|
"StatusCode": 1,
|
|
|
|
// "SetupID": "010266",
|
|
|
|
"SubCategoryID": 2,
|
|
|
|
// "StatusCode": 1,
|
|
|
|
"SubPolicyNo": "234234"
|
|
|
|
// "SubCategoryID": 2,
|
|
|
|
}
|
|
|
|
// "SubPolicyNo": "234234"
|
|
|
|
];
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ];
|
|
|
|
|
|
|
|
|
|
|
|
response['AncillaryOrderProcList'].forEach((item) {
|
|
|
|
response['AncillaryOrderProcList'].forEach((item) {
|
|
|
|
ancillaryProcLists.add(AncillaryOrdersListProcListModel.fromJson(item));
|
|
|
|
ancillaryProcLists.add(AncillaryOrdersListProcListModel.fromJson(item));
|
|
|
|
|
|
|
|
// ancillaryProcLists.add(AncillaryOrdersListProcListModel.fromJson(response['AncillaryOrderProcList']));
|
|
|
|
|
|
|
|
print("----------------------------------");
|
|
|
|
|
|
|
|
print("Test data");
|
|
|
|
|
|
|
|
print(response);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//Future.value(_ancillaryProcLists);
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
|
super.error = error;
|
|
|
|
super.error = error;
|
|
|
|