refactored EmrApiDAO to EmrEncounterDAO