residency (n.)youdaoicibaDictYouDict
1570s, "residence;" see resident + -cy. Hospital sense is from 1924.