angshu | #1529 | changed SQL for all admitted patients