A program through the Boston-based Beth Israel Deaconess Medical Center places doctors in residences primarily populated by the formerly homeless elderly. Now entering its second year, the Harvard Geriatrics Fellowship Program brings doctors, psychiatrists, and dentists into residences run by organizations dedicated to providing housing and healthcare for the elderly. The program is funded by a three-year federal grant worth about $1.8 million.