Added API to resolve result set into a list of patients