The ‘Group’ section of setup has an option to ‘Restrict Patient Search’ results to those at the branches that the currently logged in user has been given access to.