Commit 1ffc8ba 1 parent e324693 commit 1ffc8ba Copy full SHA for 1ffc8ba
File tree 1 file changed +5
-6
lines changed
omod/src/main/java/org/openmrs/module/kenyaemr/web/controller
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2556,12 +2556,11 @@ public Object getPatientSummary(@RequestParam("patientUuid") String patientUuid)
2556
2556
// All CD4 Count
2557
2557
CalculationResult allCd4CountResults = EmrCalculationUtils .evaluateForPatient (AllCd4CountCalculation .class ,
2558
2558
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
+ }
2565
2564
2566
2565
return patientSummary ;
2567
2566
You can’t perform that action at this time.
0 commit comments