Refactored a lot of EmrUtils functionality into new wrapper classes for encounters, visits and patientprograms