Patient listing & S2D discharge

Patient listing javascript has been unified in a single place and S2D
discharge now shows on the selection of the 'Outcome' dropdown, not
'Referrer'
Merge branch 'master' of https://github.com/Organization-Of-MelSol/Web