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
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))))))))))))