Signal Scripts: Dynamic Views -TOTALBALEVENTS

I wrote this procedure to dynamically generate fast performance views
that joins any type of signal data of any patient to his/her
TOTALBALEVENTS data, so that analyses can be performed over the
generated views using HANA's built-in data-visualization tools or any
other external tool.