Eloping Prevention, Occupancy Detection and Localizing System for Smart Healthcare Applications