You must tell DVLA if you have had an operation and you are still unable to drive three months later.    

You can be fined up to £1,000 if you do not tell DVLA about a medical condition that affects your driving. You may be prosecuted if you are involved in an accident as a result.

For more information about surgery and driving, go to Surgery and driving - GOV.UK (www.gov.uk)