fix final join to join on visit_id instead of unique pt identifier