Skip to content

Commit

Permalink
FM2-640: renamed the variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojLL committed Jul 26, 2024
1 parent f79faa4 commit a487fe9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,18 @@ public ModelAndView processSubmit(@ModelAttribute("filter") Filter filter, Bindi
// create the model map
ModelMap model = new ModelMap();
model.addAttribute("allPatients", allPatients);
List<Map<String, Object>> fpl = new ArrayList<>();
List<Map<String, Object>> flaggedPatientList = new ArrayList<>();

Set<Integer> idsFp = flaggedPatients.getMemberIds();
for (Integer patientId : idsFp) {
Map<String, Object> mapFp = new HashMap<>();
Set<Integer> flaggedPatientIds = flaggedPatients.getMemberIds();
for (Integer patientId : flaggedPatientIds) {
Map<String, Object> mapFlaggerPatient = new HashMap<>();

mapFp.put("patientId", patientId);
mapFlaggerPatient.put("patientId", patientId);

fpl.add(mapFp);
flaggedPatientList.add(mapFlaggerPatient);
}

model.addAttribute("flaggedPatients", fpl);
model.addAttribute("flaggedPatients", flaggedPatientList);
model.addAttribute("patientLink", Context.getAdministrationService().getGlobalProperty("patientflags.defaultPatientLink", PatientFlagsConstants.DEFAULT_PATIENT_LINK));

// clears the command object from the session
Expand Down

0 comments on commit a487fe9

Please sign in to comment.