Code for custom reports for patient feedback challenge