From 4abd005499b1a22b2792e22de55be3f3b8a761ea Mon Sep 17 00:00:00 2001 From: hussam al-habibeh Date: Sun, 15 Aug 2021 15:20:22 +0300 Subject: [PATCH] SOAP For in patient --- lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart | 2 +- lib/models/SOAP/post_chief_complaint_request_model.dart | 2 +- .../profile/soap_update/subjective/update_subjective_page.dart | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart b/lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart index 6be95372..f04fd8d4 100644 --- a/lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart +++ b/lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart @@ -34,7 +34,7 @@ class GetChiefComplaintReqModel { data['DoctorID'] = this.doctorID; } if (this.admissionNo != null) { - data['admissionNo'] = this.admissionNo; + data['AdmissionNo'] = this.admissionNo; } return data; diff --git a/lib/models/SOAP/post_chief_complaint_request_model.dart b/lib/models/SOAP/post_chief_complaint_request_model.dart index eb3bea7f..682342df 100644 --- a/lib/models/SOAP/post_chief_complaint_request_model.dart +++ b/lib/models/SOAP/post_chief_complaint_request_model.dart @@ -62,7 +62,7 @@ class PostChiefComplaintRequestModel { data['EditedBy'] = this.editedBy; } if (admissionNo != null) { - data['admissionNo'] = this.admissionNo; + data['AdmissionNo'] = this.admissionNo; } return data; 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 7234d822..70bf95e4 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 @@ -436,6 +436,7 @@ class _UpdateSubjectivePageState extends State implements postChiefComplaintRequestModel.editedBy = ''; await model.postChiefComplaint(postChiefComplaintRequestModel); } else { + postChiefComplaintRequestModel.editedBy = ''; await model.patchChiefComplaint(postChiefComplaintRequestModel); } }