Show patient last appointment in patient dashboard

Hello everybody, We are working on an implementation of Bahmni, so we would like to show patient last appointment in the patient dashboard. we have used custom display control but its not working below are the codes and images of the files you can see. Can someone advise us how to troubleshoot this? thanks in advance the first image is the configuration in the dashboard.json and the second image is customDisplayControl.js