What's causing these green and gold nails?

A patient with a number of chronic conditions presents on this occasion with oddly coloured nails

Earl is 78; he retired from the public service more than 20 years ago because of his rheumatoid arthritis.

He received what was conventional treatment at the time but unfortunately the disease progressed.

Now he is very disabled in spite of bilateral knee joint replacements.