WD: reverting the value of enum

update_flutter_3.24_vida_plus_episode_MDS
taha.alam 1 year ago
parent 0526896745
commit 70114b8f19

@ -1223,7 +1223,7 @@ const Map<String, Map<String, String>> localizedValues = {
"areYouSureYouWantToDeleteDiagnosis": { "areYouSureYouWantToDeleteDiagnosis": {
"en": "Are you sure you want to delete diagnosis", "en": "Are you sure you want to delete diagnosis",
"ar": "هل أنت متأكد من أنك تريد حذف التشخيص" "ar": "هل أنت متأكد من أنك تريد حذف التشخيص"
} },
"activate": {"en": "Activate", "ar":"فعل"}, "activate": {"en": "Activate", "ar":"فعل"},
"resolved": {"en": "Resolved", "ar":"تم الحل"}, "resolved": {"en": "Resolved", "ar":"تم الحل"},

@ -5,7 +5,7 @@ enum MasterKeysService {
HistorySocial, HistorySocial,
HistorySports, HistorySports,
HistorySurgical, HistorySurgical,
PostPhysicalExaminationModel, PhysicalExamination,
AllergySeverity, AllergySeverity,
physiotherapyGoals, physiotherapyGoals,
DiagnosisCondition, DiagnosisCondition,
@ -45,7 +45,7 @@ extension SelectedMasterKeysService on MasterKeysService {
case MasterKeysService.HistorySurgical: case MasterKeysService.HistorySurgical:
return 66; return 66;
break; break;
case MasterKeysService.PostPhysicalExaminationModel: case MasterKeysService.PhysicalExamination:
return 59; return 59;
break; break;
case MasterKeysService.AllergySeverity: case MasterKeysService.AllergySeverity:

@ -109,7 +109,7 @@ class LookupService extends BaseService {
_historySurgicalList.add(MasterKeyModel.fromJson(v)); _historySurgicalList.add(MasterKeyModel.fromJson(v));
}); });
break; break;
case MasterKeysService.PostPhysicalExaminationModel: case MasterKeysService.PhysicalExamination:
_physicalExaminationList.clear(); _physicalExaminationList.clear();
entryList.forEach((v) { entryList.forEach((v) {
_physicalExaminationList.add(MasterKeyModel.fromJson(v)); _physicalExaminationList.add(MasterKeyModel.fromJson(v));

@ -38,7 +38,7 @@ class _AddExaminationPageState extends State<AddExaminationPage> {
if (model.physicalExaminationList.length == 0) { if (model.physicalExaminationList.length == 0) {
WidgetsBinding.instance.addPostFrameCallback((_) async { WidgetsBinding.instance.addPostFrameCallback((_) async {
await model.getMasterLookup( await model.getMasterLookup(
MasterKeysService.PostPhysicalExaminationModel, MasterKeysService.PhysicalExamination,
); );
}); });
} }

@ -63,11 +63,11 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> implements Ob
await model.getPatientPhysicalExam(widget.patientInfo); await model.getPatientPhysicalExam(widget.patientInfo);
if (model.patientPhysicalExamList.isNotEmpty) { if (model.patientPhysicalExamList.isNotEmpty) {
if (model.physicalExaminationList.length == 0) { if (model.physicalExaminationList.length == 0) {
await model.getMasterLookup(MasterKeysService.PostPhysicalExaminationModel); await model.getMasterLookup(MasterKeysService.PhysicalExamination);
} }
model.patientPhysicalExamList.forEach((element) { model.patientPhysicalExamList.forEach((element) {
MasterKeyModel? examMaster = model.getOneMasterKey( MasterKeyModel? examMaster = model.getOneMasterKey(
masterKeys: MasterKeysService.PostPhysicalExaminationModel, masterKeys: MasterKeysService.PhysicalExamination,
id: element.examId, id: element.examId,
); );
MySelectedExamination tempEam = SoapUtils.generateMySelectedExamination( MySelectedExamination tempEam = SoapUtils.generateMySelectedExamination(

Loading…
Cancel
Save