Question special

What, if any, aspects of the residency program affect an applicant's application? For example, does the academic "prestige" of the residency program matter? Do fellowship programs have a sense of which residency programs are more clinically rigorous vs research focused, which may affect the applicant's research production? Does the performance of prior fellows from the same residency affect how programs see future applicants from that program?