To get this note you should consult a neurologist
and get yourself examined. You should also get Nerve
conduction test and electromyography
done from neurologist to confirm your state of decresed ability of writing. If everything goes in your favour then you can ask him to issue the required document.