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) { void openBirthNotificationsPage(BuildContext context) {
ClinicListService service = new ClinicListService(); ClinicListService service = new ClinicListService();
GifLoaderDialogUtils.showMyDialog(context); 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); GifLoaderDialogUtils.hideDialog(context);
if (res["MessageStatus"] == 1) { if (res["MessageStatus"] == 1) {
print(res['birthNotification']); print(res['birthNotification']);

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

Loading…
Cancel
Save