add notify to select query in getHospitalUserDeviceIds