Fetching details from the dictionary...
(prison) inmate; detainee; internee
in-patient (hospital); resident (institution)