Program indicator showing false in indicator widget

Hello.
I have designed a program indicator that assigns numbers based on the option selected in various data element fields. These numbers are summed up to form a score (ASOS Risk Score - Basically determines how sick a patient is to determine next course of action after surgery)

The indicator works in event reports but displays ‘false’ in the indicator widget in tracker capture. What causes that? DHIS2 Version: 2.37.9
image

if( A{naGccXD30fz} < 5, 3, 
if(A{naGccXD30fz} >= 5 && A{naGccXD30fz} <= 17 ,1,
if(A{naGccXD30fz} >= 18 && A{naGccXD30fz} <= 29, 0, 
if(A{naGccXD30fz} >=30 && A{naGccXD30fz} <=69, 1, 
if(A{naGccXD30fz} >=70, 3, '0')))))

+ if(#{uoaQsgxix57.TnIpJ0gH6T7} == 'I', 0, 
if(#{uoaQsgxix57.TnIpJ0gH6T7} == 'II', 2, 
if(#{uoaQsgxix57.TnIpJ0gH6T7} == 'III', 5, 
if(#{uoaQsgxix57.TnIpJ0gH6T7} == 'IV', 8, 
if(#{uoaQsgxix57.TnIpJ0gH6T7} == 'IV', 8, '0'))))) 

+ if(#{uoaQsgxix57.iZUkL3xWGSa} == 'Elective', 0, 
if(#{uoaQsgxix57.iZUkL3xWGSa} ==  'Urgent', 3, 
if(#{uoaQsgxix57.iZUkL3xWGSa} == 'Emergency', 4, '0'))) 

+ if(#{uoaQsgxix57.otHT4XzxiwO} == 'Minor', 0, 
if(#{uoaQsgxix57.otHT4XzxiwO} == 'Intermediate', 2, 
if(#{uoaQsgxix57.otHT4XzxiwO} == 'Major', 4, '0'))) 

+ if(#{uoaQsgxix57.ThKPHA5YyJd} == 'Non-communicable disease', 0, 
if(#{uoaQsgxix57.ThKPHA5YyJd} == 'Caeserean section', -2, 
if(#{uoaQsgxix57.ThKPHA5YyJd} == 'Trauma', 1, 
if(#{uoaQsgxix57.ThKPHA5YyJd} == 'Infection', 2, '0'))))
 
+ if(#{uoaQsgxix57.bxcsphaLuZy} == 'Gynaecology', -1, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Obstetrics', -1, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Plastic surgery', 1, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Breast surgery', 1, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Urology', 2, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Hepatobiliary surgery', 3, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Vascular surgery', 3, 
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Head & Neck surgery', 3,
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Oesophagogastric surgery', 3,
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Colorectal surgery', 3,
if(#{uoaQsgxix57.bxcsphaLuZy} == 'General surgery', 3,
if(#{uoaQsgxix57.bxcsphaLuZy} == 'Neurosurgery', 4, 0))))))))))))

This is interesting! Are you able to reproduce this issue on play and share the steps to reproduce because it might be a bug and if so we can create a jira bug issue?

Thanks!

Thanks @Gassim

Not sure how to reproduce it on there. Can you share some generic steps on how I can go about this? Do i need to design the entire program with it’s data elements and attributes on DHIS 2 Demo - Sierra Leone?

Thanks @herbert_kiwalya!

Yes, please, only what is necessary to show the issue and as a result the possibility to debug/test it.

I have the same issue. how to solve it