I’m coeliac. In Scotland, that means I can get gluten-free staples such as bread, pasta and flour on prescription each month, up to a set number of units. As an adult man in NHS Grampian, my allowance is 18 units.
It’s a great service. Ordering, though, is a bit of a chore, so I asked AI to make it simple.
👉 Try the Gluten-Free Food Order app →
The process today
Every month the routine goes like this:
- Open the food list. It’s an 8-page PDF of approved products. Each one has a PIP code, a pack size and a unit value: a loaf might be 1 unit, a bag of pasta 2, and a case of fresh bread 8.
- Do the maths. Choose what you want, multiply each item by its units, and keep the total at or under your allowance.
- Fill in the order form. This is a one-page NHS Scotland PDF with your details and a table of manufacturer, PIP code, size, quantity and units.
- Email it to your pharmacy and wait for the order to come in.
None of this is hard, but it’s fiddly. It means two PDFs side by side, a calculator, and copying PIP codes by hand every single month. It’s exactly the kind of small, repetitive admin that AI is good at removing.
Here are the official documents:
- NHS Grampian: Gluten-Free Foods (GFF) service
- NHS inform: Gluten-free food order form
- North of Scotland prescribable gluten-free food list (May 2023, patient copy)
The new journey
The app turns all of that into five short steps on one page.
1. Your details, remembered
Enter your name, date of birth, CHI number, address and your pharmacy’s email address once. They’re saved in your own browser only: nothing is sent to my website or anywhere else. You can switch remembering off, use Forget my details, or Reset everything to wipe the lot.

2. Your units
Pick who the food is for and the app sets the allowance from the food list’s table. It defaults to 18 for an adult man, and women aged 19–74 get 14. You can also type the exact number your pharmacist or dietitian gave you.
3. Choose your food
Every product from the North of Scotland list is there, with its PIP code, pack size and units. You can search it or filter it by category. Tap + to add items, and a running total sticks to the bottom of the screen. Once an item would take you over your allowance, its + button switches off, so you can’t go over by mistake.

4. Download the official form
Download order form (PDF) fills in the real NHS Scotland order form on your device and saves it. Next month, Repeat my last order brings back what you had last time.

Here’s the result. It’s the official form, filled in neatly, with the units added up:

5. Email it your way
Not everyone uses Gmail, so there are four options:
- Gmail and Outlook / Hotmail open a new email in your web inbox.
- My email app opens your device’s default email app.
- Copy email text copies the address, subject and message so you can paste them anywhere.
Each email is already addressed to your pharmacy and lists your name, CHI and every item. Web links can’t attach files, so you add the PDF with the paperclip and press Send. On a phone, Share PDF skips that step and hands the form straight to your email app.
How it was built: one prompt in Claude Code
I built this with Claude Code. The first, personal version came from one prompt. Here it is, with my CHI number and pharmacy email taken out:
I am coeliac, living in NHS Grampian and can order up to 18 units of food each month, I want to build a tool to enable me to order food easily - up to 18 units. The guide is on here (NHS Grampian GFF page) and I have to email my pharmacy from my gmail. Can we make it easy to generate a pdf file with my order - CHI is (my CHI) and the email to send to is (my pharmacy). The PDF I have to complete is (NHS inform order form).
From that, Claude:
- Read the NHS Grampian page and found the links to the order form and the food list.
- Checked the order form PDF. It has no fillable fields; it’s a flat, printed form. So Claude measured the position of every box and table row, so text could be written into exactly the right place. It also spotted the grey example line (“Glutafin Fibre Loaf Sliced”) printed in the first row and blanked it out, so that row can be used too.
- Pulled every product from the 8-page food list, about 90 items with their PIP codes, pack sizes and units, and grouped them by category.
- Built a single web page that adds up the units, stops you going over, fills in the form with pdf-lib and opens a ready-written Gmail email.
- Tested it. It filled in a form with made-up details, displayed the PDF and checked that every value sat inside its box.
A second prompt made it something anyone in NHS Grampian can use. It took out everything personal, saved details and orders on the user’s device with options to clear them, made the unit allowance easy to change, added Outlook, the device’s email app and copy-and-paste, and turned it into an app on this blog.
What I like most is that I didn’t write any code. I described the problem and where the documents were, and the AI did the research, measured the form, transcribed the food list and tested the result.
Why this matters
This isn’t a big enterprise system. It’s a monthly ten-minute chore that’s now under a minute. A lot of everyday admin looks like this: a list in a PDF, a form to fill in, and an email to send. If you can describe the process in a paragraph, AI can probably build you a tool for it.
If you’re coeliac in NHS Grampian, I hope this saves you some time. If you’re somewhere else, the same idea applies to your area’s food list and form.
👉 Open the Gluten-Free Food Order app →
This app is an independent side project. It is not made, checked or endorsed by NHS Grampian, NHS Scotland or any pharmacy. The product list is from the North of Scotland food list (May 2023) and may have changed, so check with your pharmacy if an item is unavailable, and always follow your pharmacist's or dietitian's advice.