Enrolls a patient in a program when an encounter form is submitted