Police are investigating a woman who allegedly posed as a doctor at Sydney hospital for almost eight months.

The woman had worked for almost eight months at the hospital and had been "supervised" throughout her entire employment.

She has since been removed from the facility and the matter has been referred to the NSW Police department