Skip to content

Commit 09e79cc

Browse files
authored
Merge pull request #2122 from makombe/cd4
Remove system logs for cd4
2 parents e324693 + 1ffc8ba commit 09e79cc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

omod/src/main/java/org/openmrs/module/kenyaemr/web/controller/KenyaemrCoreRestController.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -2556,12 +2556,11 @@ public Object getPatientSummary(@RequestParam("patientUuid") String patientUuid)
25562556
// All CD4 Count
25572557
CalculationResult allCd4CountResults = EmrCalculationUtils.evaluateForPatient(AllCd4CountCalculation.class,
25582558
null, patient);
2559-
System.out.println(
2560-
"allCd4CountResults============================================================================================================"
2561-
+ allCd4CountResults);
2562-
patientSummary.put("allCd4CountResults",
2563-
!allCd4CountResults.isEmpty() && allCd4CountResults.getValue() != null ? allCd4CountResults.getValue()
2564-
: "");
2559+
if (allCd4CountResults != null && allCd4CountResults.getValue() != null) {
2560+
patientSummary.put("allCd4CountResults", allCd4CountResults.getValue());
2561+
} else {
2562+
patientSummary.put("allCd4CountResults", "");
2563+
}
25652564

25662565
return patientSummary;
25672566

0 commit comments

Comments
 (0)