Skip to content
Healthcare SoftwareEngineering

Guide · AI Engineering

Healthcare AI Engineering Guide: From Prototype to Governed Production

A model that performs well in a notebook is the beginning of the work, not the end. This guide covers the engineering and governance needed to run AI safely inside clinical and operational workflows.

12 min read Updated

Why production healthcare AI is a different problem

Prototypes answer the question 'can a model do this?' Production systems have to answer harder ones: does it keep doing it when the data shifts, who notices when it is wrong, what happens to the patient or the claim when it fails, and can you explain to a compliance officer what version produced a given output last March.

Healthcare adds specific pressures. Inputs are messy and heterogeneous: scanned faxes, free-text notes, HL7 feeds with local codes. Populations differ by site, so a model validated at one health system may behave differently at another. Outputs may influence care, which puts some software inside FDA's device framework and brings ONC transparency requirements for certified health IT. And the data is PHI, so every prompt, embedding, and log line falls under HIPAA safeguards.

Treat AI features as socio-technical systems. The model is one component; the workflow, the user interface, the fallback path, and the people reviewing outputs determine whether the system is safe and useful.

Selecting use cases worth building

Good first use cases have a measurable baseline, a clear human owner for every output, a tolerable cost of error, and available data. Prior authorization packet assembly, inbox message triage suggestions, coding assistance with coder review, and structured extraction from referral documents often fit. Autonomous diagnosis rarely does as a first project.

Screening questions for a candidate AI use case
QuestionWhy it mattersRed flag
What decision or task does the output inform?Defines risk level and the regulatory pathNobody can name the user or the decision
What happens when the output is wrong?Sets error tolerance and review designErrors would reach patients without a human check
How is the task done today, and how well?Provides the baseline for evaluationNo measurable baseline exists
Can we get representative data legally?Determines feasibility and timelineData access depends on an agreement nobody has started
Could this meet the FDA device definition?Device software needs a different lifecycleThe team assumes 'it is just software' without analysis
Who will own it after launch?Monitoring and retraining need an ownerOwnership ends at deployment

Data access, privacy, and model inputs

Data access is often the longest pole. Training or tuning on PHI requires a permissible purpose under HIPAA, agreements with the data source, and a decision about whether de-identified data (Safe Harbor or Expert Determination under 45 CFR 164.514(b)) or a limited data set under a data use agreement is sufficient. Using a third-party model API with PHI requires a BAA with that provider and confirmation that the specific service is covered.

Design inputs deliberately. Retrieval-augmented generation pipelines should retrieve only the records the requesting user is authorized to see; an embedding store that ignores the EHR's access controls is a privacy incident waiting to happen. Apply the minimum necessary standard to prompts, strip identifiers where the task does not need them, and log prompts and outputs in a store with the same protections as the source data.

Evaluation before and after launch

Evaluation is the core engineering discipline of production AI. Build an evaluation set that reflects the real population and workflow, labeled by qualified reviewers with documented guidelines and inter-rater agreement. Stratify results by site, demographic group, document type, and other subgroups that matter; aggregate metrics can hide poor performance for a subgroup.

For generative systems, combine automated checks (schema validity, citation presence, groundedness against retrieved sources) with structured human review on a sample. Track failure categories, not only scores: fabricated medications, wrong laterality, omitted allergies, and stale information each need different mitigations. Re-run the full evaluation suite on every model, prompt, or retrieval change, the same way you would run regression tests.

Checklist

  • Evaluation set drawn from the target population and workflow, with provenance recorded
  • Labeling guidelines and reviewer qualifications documented
  • Metrics chosen with clinical or operational owners, including subgroup analysis
  • Explicit acceptance thresholds agreed before results are seen
  • Error taxonomy with examples and severity ratings
  • Silent or shadow-mode run in the real workflow before outputs are shown to users
  • Evaluation automated in CI for prompts, models, and retrieval configuration

Designing human-in-the-loop workflows

Human review only works if the interface makes review practical. Show the source evidence next to each AI-generated claim, highlight uncertainty, make editing faster than accepting, and record what the reviewer changed. A draft note that requires the clinician to re-read the whole encounter to verify it saves no time and invites rubber-stamping.

Measure the human side too. Track acceptance rates, edit distance, time to review, and override reasons. A sudden rise in acceptance with falling review time can signal automation bias as easily as improved quality.

  • Every output has a named accountable role (clinician, coder, care manager)
  • Fallback path when the AI service is unavailable or returns low confidence
  • Clear labeling that content is AI-generated until a human signs it
  • Feedback captured in structured form for evaluation and retraining
  • Escalation route for reviewers who spot a systematic error

Monitoring in production

Models degrade when inputs change: a new document template, a lab that switches reference ranges, a coding update, a population shift after a new clinic joins. Monitor input distributions, output distributions, latency, cost, error rates, and the human feedback signals described above. Sample outputs for ongoing human review on a fixed cadence.

Version everything that affects behavior: model weights or provider model version, prompts, retrieval indexes, feature pipelines, and configuration. When an incident occurs you need to reconstruct exactly which combination produced a given output. Keep a rollback path that is tested, not theoretical.

What to monitor and why
SignalExampleTypical response
Input driftShare of notes from a new template rises sharplyRe-run evaluation on the new slice
Output driftProportion of 'high risk' flags doubles in a weekInvestigate upstream data change before trusting the trend
Human feedbackEdit rate on drafted letters climbsReview failure categories; adjust prompt or retrieval
Operationalp95 latency exceeds the workflow budgetScale, cache, or degrade gracefully
Safety eventsReviewer reports a fabricated medicationIncident process, root cause, regression test added

Regulatory context: FDA, ONC HTI-1, and NIST AI RMF

Three frameworks shape most US healthcare AI work. FDA regulates software that meets the medical device definition. ONC's HTI-1 final rule sets transparency and risk management requirements for decision support in certified health IT. NIST's AI Risk Management Framework is voluntary but widely used as the backbone of internal AI governance programs.

FDA and clinical decision support

Section 520(o)(1)(E) of the FD&C Act excludes certain clinical decision support software from the device definition when it meets all four statutory criteria, including that the software is intended to enable a health care professional to independently review the basis for its recommendations. FDA's 2022 Clinical Decision Support Software guidance explains how the agency interprets those criteria; software that analyzes medical images or signals, or that is intended to replace clinician judgment, generally falls outside the exclusion. Make this analysis early with regulatory counsel, because it changes the development lifecycle.

ONC HTI-1 decision support interventions

The HTI-1 final rule replaced the prior CDS certification criterion with a decision support interventions criterion at 45 CFR 170.315(b)(11). Certified health IT developers must support source attribute information for evidence-based and predictive DSIs and apply intervention risk management practices. If your model will be delivered through a certified EHR, expect the developer to ask you for source attributes such as intended use, training data description, and validation information.

NIST AI Risk Management Framework

NIST AI RMF 1.0 organizes AI risk work into Govern, Map, Measure, and Manage functions, and NIST has published a Generative AI Profile (NIST AI 600-1). It is a voluntary framework, not a regulation, but it gives governance committees a shared vocabulary and a structure for documenting risks, controls, and decisions.

Governance that engineers can actually work with

Governance fails when it is a one-time approval meeting. Make it a lifecycle: intake with a risk tier, documented evaluation evidence before launch, defined monitoring obligations after launch, and a re-review trigger whenever the model, data, or intended use changes. Keep a model inventory with owner, intended use, version history, evaluation results, and known limitations for every deployed AI component.

Engineering can make governance cheaper. Generate model cards and evaluation reports from the CI pipeline, store decisions alongside code, and expose monitoring dashboards to the governance committee directly. When evidence is produced automatically, reviews focus on judgment rather than chasing documents.

References

This guide is educational and is not legal or regulatory advice.

Frequently asked questions

Does our healthcare AI tool need FDA clearance?

It depends on intended use and function. Software that meets the medical device definition is regulated by FDA, but section 520(o) of the FD&C Act excludes certain clinical decision support that lets a clinician independently review the basis for a recommendation. Tools that analyze images or physiological signals, or are meant to drive decisions without independent review, generally fall outside that exclusion. Work through the analysis with regulatory counsel before building.

What is HTI-1 and does it apply to us?

HTI-1 is an ONC final rule that, among other things, created the decision support interventions certification criterion at 45 CFR 170.315(b)(11). It applies directly to developers of certified health IT. If you supply a predictive model delivered through a certified EHR, the EHR developer may ask you for source attribute information such as intended use, data used in development, and validation results so it can meet its obligations.

How do you evaluate a generative AI feature in healthcare?

Combine automated checks with structured human review. Build a representative evaluation set, define failure categories such as fabricated facts or omitted allergies, agree acceptance thresholds with clinical owners in advance, and analyze results by subgroup. Run the suite on every model, prompt, or retrieval change, and continue sampling production outputs for human review after launch.

Can we send PHI to a third-party LLM API?

Only with a Business Associate Agreement in place with that provider covering the specific service, plus appropriate safeguards such as encryption, access controls, and retention settings. Apply the minimum necessary standard to what goes into prompts, ensure retrieval respects user authorization, and treat logged prompts and outputs as PHI.

Discuss your healthcare engineering project

Tell us about the system, the integrations it depends on, and the constraints you are working within. A senior engineer will review it and reply with questions, not a sales script.