From 03dd4b343a5fa6eb02ccb4aeea780b0bfd774009 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Thu, 22 Aug 2024 16:12:47 +0200 Subject: [PATCH] include patient, user, business & business User to perscription widget --- Frontend/patient_manager/lib/components/patientFiles.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Frontend/patient_manager/lib/components/patientFiles.dart b/Frontend/patient_manager/lib/components/patientFiles.dart index bc3656d8..32a159ff 100644 --- a/Frontend/patient_manager/lib/components/patientFiles.dart +++ b/Frontend/patient_manager/lib/components/patientFiles.dart @@ -109,7 +109,7 @@ class _PatientFilesState extends State { "Med-Cert-${widget.selectedPatient.first_name} ${widget.selectedPatient.last_name}-${date.toString().substring(0, 10)}.pdf"; if (response1.statusCode == 200) { var response2 = await http.post( - Uri.parse(endpointInsertFiles), + Uri.parse("${AppEnviroment.baseApiUrl}/files/insert/"), headers: { "Content-Type": "application/json; charset=UTF-8" }, @@ -379,6 +379,10 @@ class _PatientFilesState extends State { noDaysController: noDaysController, noRepeatsController: noRepeatsController, outputController: outputController, + selectedPatient: widget.selectedPatient, + signedInUser: widget.signedInUser, + business: widget.business, + businessUser: widget.businessUser, ), ], ),