story#741, initial version of merging patient visits