At least according to Glyn Moody of LinuxJournal. I am inclined to agree. Citizens should have the right to see the source code for any projects that are funded by their tax dollars:
For example, publicly funded code that is released as open source can be used by different departments, and even different governments, to solve similar problems. That opens the way for feedback and collaboration, producing better code and faster innovation. And open-source code is automatically available to the people who paid for it—members of the public. They too might be able to offer suggestions for improvement, find bugs or build on it to produce exciting new applications. None of these is possible if government code is kept locked up by companies that write it on behalf of taxpayers.
This should be the case no matter if the code is for a simple website, or a complex IoT project, or a health or medical device.