AI Compass / Knowledge cards
A tool instead of an AI tool
recurring documents from existing data
In the medical device industry, many documents are created again and again from the same pattern: item lists, declarations of conformity, summaries of the technical documentation. The data for them usually sits in the ERP and the DMS already. The obvious idea is to let an AI tool generate the documents. I often think the other way is better: AI writes a tool, a small program with fixed rules, and the tool creates the documents. At runtime, no AI is involved any more.
What it is for
Same input, same result. The tool can be validated once, costs no tokens at runtime and sends no data to a model provider.
Steps
- Pick a task that comes up often and follows fixed rules: copying values from an export into a template, comparing two lists, sorting references into the chapters of a file.
- Sort every step: fixed rule → tool; judgement or unclear text → human, at most with a suggestion from AI.
- Describe inputs and result: which exports go in, which template comes out, what gets marked. Regulatory fields that appear in no source stay empty and are marked, never guessed.
- Let AI write the code, following a guide in the repository: versioning, change log, offline, no data transfer.
- Check with test data, including deliberately faulty data: wrong column, missing value, contradiction with the existing list. Every mark has to be right.
- Treat the tool like other software in the quality management system. ISO 13485 requires in clause 4.1.6 that such software is validated before first use and, as appropriate, after changes, proportionate to the risk. With fixed rules that’s easier than with a model whose answers can vary.
- Changes only as a new version with an entry in the change log, then check again.
What the example shows
Among the case studies there’s a tool example with made-up data: a tool compares the item list of a fictitious company with an ERP export, marks contradictions, missing details and new items, and writes a check report. It’s a single HTML file, runs locally in the browser and uploads nothing.
Limits
- A tool can only do what fits into rules. Assessments, such as whether a change is significant, stay with a human.
- The validation only holds as long as the code and the input format don’t change. If the ERP export changes, you check the tool again.
- How much validation is needed depends on the risk and on your quality management system. You settle that with your quality assurance.
- For unclear text, such as free text in complaints, a language model is often the better means. Then counter-tests and repeat tests belong before use.
Links
- AI process audit: the same split into software, AI and human, for any workflow.
- Decision models: if a step is just a choice, a rule or a small model is often enough.
- “Done” only with evidence: test data with a known result is the check command for the tool.
Sources
- ISO 13485:2016, Medical devices – Quality management systems, clause 4.1.6 (validation of software used in the quality management system): ISO
- Regulation (EU) 2017/745 (MDR), Annex II (technical documentation) and Annex IV (EU declaration of conformity): EUR-Lex
- AI as a document checker: run a counter-test and a repeat test before relying on it, news item of 27 October 2026 with two studies on varying AI verdicts
Status
Checked 2 November 2026 · Maturity new (my assessment, shown with an example using made-up data) · I work in regulatory affairs for medical devices. This is my personal view, not my employer’s.
You can try this with your team in the AI Lab. See the AI Lab