From 3c591c398147499ad32845191830438447f08e5a Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Mon, 10 Jun 2024 12:38:49 +0530 Subject: [PATCH] Add prescription request key in patient summary fragment result listener --- .../java/org/simple/clinic/summary/PatientSummaryScreen.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/simple/clinic/summary/PatientSummaryScreen.kt b/app/src/main/java/org/simple/clinic/summary/PatientSummaryScreen.kt index dd7d29b5e74..e9ca4f38202 100644 --- a/app/src/main/java/org/simple/clinic/summary/PatientSummaryScreen.kt +++ b/app/src/main/java/org/simple/clinic/summary/PatientSummaryScreen.kt @@ -282,7 +282,12 @@ class PatientSummaryScreen : override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - setFragmentResultListener(ScreenRequest.ScheduleAppointmentSheet, ScreenRequest.SelectFacility, ScreenRequest.ReassignPatientWarningSheet) { requestKey, result -> + setFragmentResultListener( + ScreenRequest.ScheduleAppointmentSheet, + ScreenRequest.SelectFacility, + ScreenRequest.ReassignPatientWarningSheet, + DrugSummaryView.PrescriptionsRequest + ) { requestKey, result -> if (result is Succeeded) { handleScreenResult(requestKey, result) }