Spent some years working on an a class 2b diagnostic device. Potential for harm not that high, but the lack of rigour in testing leaves me wondering to this day whether it worked at all as advertised.
If medical devices are ever open sourced, millions of critical bugs are going to fall out.