projectID added in birth notification API

Dev_3.3_InPatient_CR
haroon amjad 2 years ago
parent 8818611dbc
commit 488c01b100

@ -308,7 +308,7 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
void openBirthNotificationsPage(BuildContext context) {
ClinicListService service = new ClinicListService();
GifLoaderDialogUtils.showMyDialog(context);
service.getBirthNotification(projectViewModel.user.patientID, context).then((res) {
service.getBirthNotification(projectViewModel.user.patientID, projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.projectID : projectViewModel.getAdmissionRequestInfoResponseModel.projectId, context).then((res) {
GifLoaderDialogUtils.hideDialog(context);
if (res["MessageStatus"] == 1) {
print(res['birthNotification']);

@ -297,10 +297,11 @@ class ClinicListService extends BaseService {
return Future.value(localRes);
}
Future<Map> getBirthNotification(num motherMRN, context) async {
Future<Map> getBirthNotification(num motherMRN, int projectID, context) async {
Map<String, dynamic> request;
request = {
"mothermrn": motherMRN,
"ProjectID": projectID,
};
dynamic localRes;

Loading…
Cancel
Save