https://www.cbc.ca/news/canada/saskatchewan/canadian-dies-ukraine-medic-1.6716143
They're literally posting pictures of him armed (one where he looks like he's sleeping with his rifle) and then claiming he was a medic.
The law itself is written in typically stupid Canadian fashion where terms are poorly defined, i.e. foreign state is defined but then used as friendly foreign state in the relevant section.
As per the letter of the law, CBC is violating it as well. They're obviously misrepresenting this guy as a medic which may induce others to go be "medics".
"Any person who induces any other person to leave Canada or to go on board any conveyance within Canada under a misrepresentation or false representation of the service in which such person is to be engaged, with the intent or in order that such person may accept or agree to accept any commission or engagement in the armed forces of any foreign state at war with any friendly foreign state, is guilty of an offence."
Since you know what a combat medic is, then you can google the term to see for yourself that they do carry weapons.
Here's an example (from the US military):
"Corpsmen and medics with combat troops carry a double burden. They do everything that Army soldiers and Marines do – although officially noncombatants, they are authorized to carry weapons to protect themselves and their patients – until a soldier or Marine gets hurt, and then they have to become lifesavers, sometimes under fire." https://www.ocregister.com/2006/08/04/medics-carry-a-double-burden/
Okay, good to know, I stand corrected.
However, that seems kind of nonsensical to have them do dual duties and then have rules about them being non-combatants while also being armed and allowed to engage. If situations like in this story are to be prevented (which is apparently desired since there's rules about it), it doesn't make sense to have them be armed and also off-limits, that just creates confusion. Strategically, a military might as well just throw red crosses on everyone's arms and then complain about war crimes every time they get shot.
Yes, they could put red crosses all over, but for some enemies this means nothing, just makes them a more desirable target. I guess they're allowed to engage if their patients or their own lives are in danger, but not engage in combat. It would make sense for them to stay out of the fight because they're the ones who have to deal with everyone else getting wounded.