I would not use it in a sick note. You could say "I have been confined to bed", although this is a bit formal.
We never say "I had to be bedridden" but "I have been bedridden since yesterday".
Of course, bedridden is used in both speech and writing, but it is more likely to refer to a long period, e.g. She has been bedridden for the last six months.