Instead, when prog.has_post_calc_screen = ''Null''write when prog.has_post_calc_screen IS NULLTHEN ... (You can also write ELSE ...because you already processed true and false, so the only possible value is NULL).
UPDATE
You can also write
case
when prog.has_post_calc_screen = true then 'True'
else 'False'
END ....