Skip to content

AI Compass / Knowledge cards

A tool instead of an AI tool

recurring documents from existing data

Checked RA & medtech Automation

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

  1. 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.
  2. Sort every step: fixed rule → tool; judgement or unclear text → human, at most with a suggestion from AI.
  3. 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.
  4. Let AI write the code, following a guide in the repository: versioning, change log, offline, no data transfer.
  5. Check with test data, including deliberately faulty data: wrong column, missing value, contradiction with the existing list. Every mark has to be right.
  6. 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.
  7. 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

Sources

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