Re: Cost is the smaller concern
"...will they charge you less than a commercial supplier would for support?"
I would hope that anyone charging money is commercial and not simply feeding a drug habit. I would expect that the NHS are prepared to pay for the work. As for spaghetti why would someone write untidy code if they knew others would look at it?
It sounds to me as if you think people never get paid for writing open source software.