Update Insurance changes

merge-update-with-lab-changes
haroon amjad 4 years ago
parent 6ba695f2c9
commit bc97cfa95b

@ -141,7 +141,7 @@ class InsuranceCardService extends BaseService {
return Future.value(localRes);
}
Future getPatientInsuranceDetails({String setupID, int projectID, String patientIdentificationID, int patientID}) async {
Future getPatientInsuranceDetails({String setupID, int projectID, String patientIdentificationID, int patientID, bool isFamily, int parentID = 0}) async {
error = "";
hasError = false;
insuranceCardDetails = null;
@ -159,7 +159,7 @@ class InsuranceCardService extends BaseService {
hasError = true;
super.error = error;
},
body: {'SetupID': setupID, 'ProjectID': projectID, 'PatientIdentificationID': patientIdentificationID, 'isDentalAllowedBackend': false, 'PatientID': patientID},
body: {'SetupID': setupID, 'ProjectID': projectID, 'PatientIdentificationID': patientIdentificationID, 'isDentalAllowedBackend': false, 'PatientID': patientID, 'IsFamily': isFamily, 'ParentID': parentID},
);
}

@ -234,7 +234,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
} else
return SizedBox(height: 0);
},
separatorBuilder: (context, index) => SizedBox(height: 0),
separatorBuilder: (context, index) => SizedBox(height: 12),
itemCount: familySharedRecordsList.length)
: getNoDataWidget(context);
}

@ -37,6 +37,8 @@ class InsurancePage extends StatelessWidget {
projectID: 15,
patientIdentificationID: model.user.patientIdentificationNo,
patientID: model.user.patientID,
parentID: 0,
isFamily: false,
name: model.user.firstName + " " + model.user.lastName,
context: context,
);
@ -90,6 +92,8 @@ class InsurancePage extends StatelessWidget {
setupID: '010266',
patientID: model.getAllSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList[index].responseID,
name: model.getAllSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList[index].patientName,
parentID: model.user.patientID,
isFamily: true,
context: context);
},
child: Container(
@ -138,9 +142,9 @@ class InsurancePage extends StatelessWidget {
);
}
getDetails({String setupID, int projectID, String patientIdentificationID, int patientID, String name, BuildContext context}) {
getDetails({String setupID, int projectID, String patientIdentificationID, int patientID, String name, bool isFamily, int parentID = 0, BuildContext context}) {
GifLoaderDialogUtils.showMyDialog(context);
_insuranceCardService.getPatientInsuranceDetails(setupID: setupID, projectID: projectID, patientID: patientID, patientIdentificationID: patientIdentificationID).then((value) {
_insuranceCardService.getPatientInsuranceDetails(setupID: setupID, projectID: projectID, patientID: patientID, patientIdentificationID: patientIdentificationID, isFamily: isFamily, parentID: parentID).then((value) {
GifLoaderDialogUtils.hideDialog(context);
if (!_insuranceCardService.hasError && _insuranceCardService.isHaveInsuranceCard) {
Navigator.push(

Loading…
Cancel
Save