From 70114b8f192e28b696512d4492462dd4e2288ddd Mon Sep 17 00:00:00 2001 From: "taha.alam" Date: Sun, 1 Dec 2024 10:51:56 +0300 Subject: [PATCH] WD: reverting the value of enum --- lib/config/localized_values.dart | 2 +- lib/core/enum/master_lookup_key.dart | 4 ++-- lib/core/service/base/lookup-service.dart | 2 +- .../profile/soap_update/objective/add_examination_page.dart | 2 +- .../profile/soap_update/objective/update_objective_page.dart | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index 10820435..3a0b56bd 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -1223,7 +1223,7 @@ const Map> localizedValues = { "areYouSureYouWantToDeleteDiagnosis": { "en": "Are you sure you want to delete diagnosis", "ar": "هل أنت متأكد من أنك تريد حذف التشخيص" - } + }, "activate": {"en": "Activate", "ar":"فعل"}, "resolved": {"en": "Resolved", "ar":"تم الحل"}, diff --git a/lib/core/enum/master_lookup_key.dart b/lib/core/enum/master_lookup_key.dart index 514caf56..04608719 100644 --- a/lib/core/enum/master_lookup_key.dart +++ b/lib/core/enum/master_lookup_key.dart @@ -5,7 +5,7 @@ enum MasterKeysService { HistorySocial, HistorySports, HistorySurgical, - PostPhysicalExaminationModel, + PhysicalExamination, AllergySeverity, physiotherapyGoals, DiagnosisCondition, @@ -45,7 +45,7 @@ extension SelectedMasterKeysService on MasterKeysService { case MasterKeysService.HistorySurgical: return 66; break; - case MasterKeysService.PostPhysicalExaminationModel: + case MasterKeysService.PhysicalExamination: return 59; break; case MasterKeysService.AllergySeverity: diff --git a/lib/core/service/base/lookup-service.dart b/lib/core/service/base/lookup-service.dart index d7254814..b9f6a69f 100644 --- a/lib/core/service/base/lookup-service.dart +++ b/lib/core/service/base/lookup-service.dart @@ -109,7 +109,7 @@ class LookupService extends BaseService { _historySurgicalList.add(MasterKeyModel.fromJson(v)); }); break; - case MasterKeysService.PostPhysicalExaminationModel: + case MasterKeysService.PhysicalExamination: _physicalExaminationList.clear(); entryList.forEach((v) { _physicalExaminationList.add(MasterKeyModel.fromJson(v)); diff --git a/lib/screens/patients/profile/soap_update/objective/add_examination_page.dart b/lib/screens/patients/profile/soap_update/objective/add_examination_page.dart index 238f8dd8..7be4b062 100644 --- a/lib/screens/patients/profile/soap_update/objective/add_examination_page.dart +++ b/lib/screens/patients/profile/soap_update/objective/add_examination_page.dart @@ -38,7 +38,7 @@ class _AddExaminationPageState extends State { if (model.physicalExaminationList.length == 0) { WidgetsBinding.instance.addPostFrameCallback((_) async { await model.getMasterLookup( - MasterKeysService.PostPhysicalExaminationModel, + MasterKeysService.PhysicalExamination, ); }); } diff --git a/lib/screens/patients/profile/soap_update/objective/update_objective_page.dart b/lib/screens/patients/profile/soap_update/objective/update_objective_page.dart index d9d4ed1b..b44c35db 100644 --- a/lib/screens/patients/profile/soap_update/objective/update_objective_page.dart +++ b/lib/screens/patients/profile/soap_update/objective/update_objective_page.dart @@ -63,11 +63,11 @@ class _UpdateObjectivePageState extends State implements Ob await model.getPatientPhysicalExam(widget.patientInfo); if (model.patientPhysicalExamList.isNotEmpty) { if (model.physicalExaminationList.length == 0) { - await model.getMasterLookup(MasterKeysService.PostPhysicalExaminationModel); + await model.getMasterLookup(MasterKeysService.PhysicalExamination); } model.patientPhysicalExamList.forEach((element) { MasterKeyModel? examMaster = model.getOneMasterKey( - masterKeys: MasterKeysService.PostPhysicalExaminationModel, + masterKeys: MasterKeysService.PhysicalExamination, id: element.examId, ); MySelectedExamination tempEam = SoapUtils.generateMySelectedExamination(