A doctor accused of sexually assaulting a teenage patient at the Children's Hospital in Winnipeg this week has been granted bail.

Walid Abdelhamid, 29, a resident doctor at the hospital at the time of the incident on Monday, was arrested Tuesday after an investigation by the Winnipeg police sex crimes unit.

Provincial court Judge Patti-Anne Umpherville imposed a number of conditions on the release of the Libyan-born doctor, a postgraduate medical resident at the University of Manitoba sponsored under a visa trainee agreement program with international partners.

Abdelhamid has been ordered to surrender his passport and pay a $5,000 cash deposit as a surety. He is also prohibited from contacting the victim, banned from going to any medical facility unless seeking treatment, and must obey a curfew of 10 p.m. to 6 a.m.

He is also prohibited from being with children under the age of 16 unless they are with an adult.

A publication ban has been issued on details of the alleged assault because the alleged victim is a youth.

Abdelhamid's next court date is set for July 22. A date for a trial has yet to be set.

According to police, the patient was allegedly assaulted on two occasions between 2 a.m. and 4 a.m. on June 15. Authorities would not provide an exact age for the victim, only saying he is between 13 and 17 years old.

Abdelhamid has also been suspended from the Winnipeg Regional Health Authority as well as the U of M postgraduate medical education program.