refactored to remove the :patients prefix to paths and in objects