#382 trying to get visit ids that have an encounter with diagnosis