angshu | refactoring. replaced EncounterRepository.findAll with findEncountersForPatient(). Saving patient-encounter association in enc_by_patient table. added migration. fixed tests.