1) They have a nurse in the prison to take care of sick guards.
2) They have a nurse to take care of sick guards in the prison.
3) In the prison, they have a nurse to take care of sick guards.
Do all three mean the same?
Could all be used if in the prison there are other nurses who are supposed to take care of sick prisoners?
Could all be used if the nurse in question also takes care of prisoners?
I think '2' might make 'in the prison' modify 'to take care of'. Then the nurse wouldn't necessarily be in the prison. But could '2' also have the same meaning as '1'?