OC-5883: Programatically get subject-specific info and specific PForm URL. Updated logic in query that pulls next event.