From a1aa1d56899d903741ad0f439f547faeeaf2e2d3 Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Mon, 9 Aug 2021 12:04:21 +0300 Subject: [PATCH] small on in patient cases --- .../soap_update/subjective/update_subjective_page.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart b/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart index 850ab5a9..134805c6 100644 --- a/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart +++ b/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart @@ -219,7 +219,7 @@ class _UpdateSubjectivePageState extends State ? 0 : int.parse(widget.patientInfo.admissionNo), patientMRN: widget.patientInfo.patientMRN, - appointmentNo: + appointmentNo:widget.patientInfo.appointmentNo == null?0: int.parse(widget.patientInfo.appointmentNo.toString()), episodeId: widget.patientInfo.episodeNo, episodeID: widget.patientInfo.episodeNo, @@ -236,9 +236,11 @@ class _UpdateSubjectivePageState extends State '\n \n' : model.patientChiefComplaintList[0].currentMedication; } + if(widget.patientInfo.appointmentNo != null) { + await getHistory(model); + await getAllergies(model); + } - await getHistory(model); - await getAllergies(model); widget.changeLoadingState(false); },