HYANNIS — A 12-year-old boy on his way to school was swiped by a pickup truck at the intersection of Route 28 and Whitehall Way at around 8:30 a.m. Friday, according to Hyannis firefighter-paramedic Andrew Kleamenakis.

The boy was taken to Cape Cod Hospital accompanied by his mother, Kleamenakis said. He was treated for minor injuries and released, he said.

The boy was crossing the street, and the driver did not see him, Kleamenakis said. The rear-view mirror on the truck swiped the boy and knocked him down, he said.

The driver was within the speed limit in the school zone, he said. There is no crosswalk where the incident occurred, Kleamenakis said.

The incident took place at the beginning of the school day in front of Barnstable Intermediate School, Kleamenakis said. The road, which is typically busy, was filled with people traveling to work and school buses pulling in and out, he said.

Traffic in both directions stopped as the student was lying in the middle of the road, according to a statement by school Principal James Anderson.

An announcement at school told students that the boy was physically OK, but some were upset by what they had seen and school personnel were made available to speak with them, the statement says.