finalized visit history and patient visit history