EDMONTON - A judge has ordered a psychiatric assessment for an Alberta teen charged with terror-related offences.

The 17-year-old boy, who cannot be identified, was arrested last month on allegations he was planning to leave Canada to fight with Islamic State militants.

Provincial court Judge Steven Andrew granted the 30-day assessment, but details of the application hearing are subject to a publication ban.

RCMP arrested the boy in Beaumont, a bedroom community south of Edmonton.

The youth is charged with attempting to leave the country to participate in a terrorist group and attempting to leave the country to commit a terrorist activity, "namely murder."

He is to appear in court again May 7.