Disclosure: I used AI to help draft this article. I ran the code and tests myself. I work at an accounting software partner in Dubai, and this is a general programming tutorial. The tax categories in the examples are placeholders, not tax advice.
UAE clinics are preparing for structured electronic invoices. Under the published timetable, businesses with annual revenue of AED 50 million or more go live on 1 January 2027, and other businesses go live on 1 July 2027. A pilot phase is open now, and no fines apply while businesses test.
For a clinic, one problem comes up early: the price list. Over the years it fills with short names such as "Consultation" or "Whitening", and the tax category for each item often lives in someone's head. Healthcare is a good example of why that matters. Preventive and basic care is generally zero-rated, elective and cosmetic services are charged at 5%, and the standard rate applies where the patient and the recipient of the supply are not the same. A wrong category on one item repeats on every invoice that uses it.
This post builds a small Python tool that checks a clinic's service list against a rules table. It sorts each item into three groups: matched, needs review, or conflict. The tool never guesses. If it cannot decide, it says so, and a person decides.


