refactor apis for easily showing single patients