search from dde when registering patient