ahhh ok, that's a little different then. Did you actually complete the certificate program? If so, you could list those years as student pursuing certifcate program, which might reduce your gap by a year or two?
Are you in the US? The medical issues are a protected subject, so employers aren't allowed to ask questions about it (unless you volunteer something to start it). The biggest concern an employer is likely to have with a medical that kept you out of the workforce for ten years is "is the situation fully resolved? will it possibly happen again? what kind of special accommodations am I going to have to provide?" etc. Now some of these questions could easily lead to illegal discrimation, but the truth of the matter is darn few companies would be stupid enough to give that as the real reason they didn't hire you. It's definitely a tricky issue, potentially. But you HAVE to be prepared with a reasonable answer if someone says, "you were out of work for ten years??? Why?"
Here is a really nice site with ideas for explaining gaps - be sure to read through all the comments - lots of interaction between the author and people writing in with questions to which the author responds:
http://www.pongoresume.com/blogPosts/125/-so-about-this-gap-in-your-resume-.cfm