DEV Community

James Whitfield
James Whitfield

Posted on

Where AI helps my QMS — and the lines I never let it cross

I pushed a language model into our QMS experiment drawer because the backlog of paperwork was doing that slow, quiet thing where everything becomes due yesterday. What I expected was draft content and a way to stop engineers from rewriting the same SOP intro five different ways. What I learned is more useful and more obvious: AI is a great drafting and brainstorming tool, terrible as a lone decision-maker for anything that affects patient safety or regulatory status.

Below are the practical patterns that worked for me, the places I treat AI as "controlled assistance", and the bright red lines I never let it cross. I'm talking ISO 13485 and FDA 21 CFR 820 level responsibilities here — YMMV depending on device class and notified-body expectations.

Good, productive uses (where AI actually helps)

Think of the model as an intelligent grunt worker: it drafts, summarizes, suggests, and translates. Specific wins we've had:

  • Jargon translation and summaries

    • Convert a regulatory paragraph into a one-paragraph engineer-friendly brief (useful during design reviews).
    • Summarize audit findings into actionable bullets for a 1-hour standup.
  • SOP and protocol outlines

    • Generate a skeleton SOP or inspection checklist from a short prompt (we always treat the output as a starting template).
    • Standardize section headings and recommended content so doc authors spend time on substance not structure.
  • FMEA brainstorming

    • Produce potential failure modes, causes, and detection ideas based on a short description of the subsystem.
    • We use the model to expand the set of candidate risks, then have the engineering/QM team assign severity, likelihood, and controls.
  • Document extraction and tagging (with safeguards)

    • Extract metadata from legacy docs to create a migration checklist (helps when moving into a new eQMS).
    • Create suggested tags/keywords for controlled documents — always reviewed before import.
  • Drafting CAPA narratives (first pass only)

    • Model can draft a clear problem statement or help structure a Root Cause Analysis (RCA) narrative.
    • We require the CAPA owner to rewrite and sign off; the model never files a CAPA or sets corrective actions.

These uses are high-leverage because they reduce rote work and improve consistency across documents. They also integrate well into a connected workflow: model output lands in a draft state inside the QMS, tagged as "AI-assisted", then flows through normal review and approval.

Where AI must never decide (hard lines)

There are decisions that, by regulation or common sense, must remain human and well-documented:

  • Risk acceptance and release-to-market decisions

    • Never let a model determine acceptable residual risk or sign device release. Those are accountable decisions under ISO 13485 / 21 CFR 820.
  • Final root-cause determination for CAPA

    • AI can suggest hypotheses but cannot be the documented, signed root cause. Investigators must own that conclusion.
  • Supplier qualification and contractual commitments

    • Don’t let a model approve a supplier or generate contractual terms without legal/regulatory review and signature.
  • Vigilance, MDR/FDA submissions, and regulatory replies

    • Drafts are okay. Final submissions or decisions about reportability must be human-reviewed and recorded.
  • Clinical decision-making or anything that affects patient treatment

    • This should be obvious, but we explicitly block any PHI or clinical data in prompts to models we don't fully control.

Treat these as non-negotiable: AI-assisted content can be used as a draft, but the human must be the decision-maker, and the decision must be auditable.

Practical guardrails that made this usable

We adopted a few rules early to keep the tool helpful and compliant:

  • "AI-assisted" label and provenance capture

    • Every AI output saved to the QMS includes model name/version, prompt text, timestamp, and the person who pushed it into the system.
  • Draft-only and review checkpoints

    • AI outputs are explicitly draft documents. They cannot move to "controlled" status without a human reviewer signing the revision history.
  • No PHI / no proprietary IP in model prompts

    • We stripped patient identifiers and sensitive supplier pricing before using models. For high-sensitivity content we run internal LLMs or keep it offline.
  • Prompt templates and prompt versioning

    • We keep approved prompt templates and version them. That both standardizes outputs and supports repeatability for audits.
  • Logging for traceability

    • Store the model response, the user edits, and the reviewer approver. This makes the "who decided what" question easy in an audit.
  • Validation and periodic review

    • For any AI-generated checklist or template we use repeatedly (e.g., inspection checklists), we validate its completeness and effectiveness and schedule periodic re-review.

A few gotchas I learned the hard way

  • Hallucinations: Models will invent plausible-sounding facts. We enforced "cite it or delete it" — no unsupported claims survive review.
  • Drift and model updates: A model update changed phrasing and broke a prompt template. We started recording model version on outputs.
  • Over-reliance: An engineer once accepted an AI-generated control without independent verification. We fixed that with an automated gate: controls suggested by AI appear with a red flag until verified.

Final thought

AI is best deployed as part of a connected workflow where it speeds creation and discovery but never replaces accountable people. That means building guardrails for reviewability and traceability, and making "human-in-the-loop" a hard requirement for decisions that affect safety, regulatory status, or supplier relationships.

What's a guardrail or prompt template you've used in a regulated workflow that actually saved time without creating audit headaches?

Top comments (0)