AI Starts with the Data Pipeline, Not the Model
Why reliable healthcare AI starts with comprehensive patient records, validated clinical findings, and a transparent data pipeline.

I recently wrote about why the data layer closest to a patient's identity is where trust matters most, as every downstream process and technology is built on top of it. AI is arguably the most consequential downstream technology in healthcare today, so the role of transparency in its pipeline is worth a deeper dive.
Building an AI-Ready Data Pipeline
Getting from a fragmented patient record to data that’s useful for AI requires solving three problems:
Access: collecting complete patient records
- Query thousands of endpoints across the country, scattered across however many hospitals, labs, and pharmacies a patient has touched.
- Convert the data into FHIR R4, the standard for healthcare interoperability.
- Reconcile overlapping documents and duplicate encounters, then consolidate the results into a single record.
- Fill remaining terminology gaps through code crosswalking, mapping legacy and local codes to standards such as SNOMED CT.
Transformation: turning records into analysis-ready data
- Start with the standardized record produced by the access layer, which still isn’t structured for analytics.
- Normalize the data into an analytics-specific schema designed for querying and analysis.
- Enrich it with derived fields such as condition categories, then validate its quality.
Insight: turning patient data into established clinical facts
- Run clinically validated rules and queries against the transformed data to surface findings such as open care gaps or conditions supported by lab evidence.
- Hand those findings to the LLM as context, along with the record they came from.
LLMs are routinely used for tasks that deterministic rules can handle more reliably and cheaply. They're strong at nondeterministic work: summarizing a messy history, drafting a note, reasoning about what a clinician might want to know next. They're weaker at deterministic work, where the same input must always produce the same answer.
Take a simple example: two A1C results at or above 6.5% meet the American Diabetes Association's diagnostic criteria for diabetes. A rule can establish that every time, for a fraction of the cost. Asking an LLM to work it out means paying more for an answer that might be wrong. When the deterministic work is done up front, the model starts from established facts and can spend its effort on second-order inferences, the work it's actually good at.
Why "AI-Ready" Often Isn't
"AI-ready" is often claimed by companies that have only addressed one of these steps. Some find a patient's scattered records and hand them over as PDFs and C-CDAs, duplicates included, because they’re technically readable by AI. Others have clean, well-modeled data in a warehouse, but only for the limited data that’s already on hand.
Either way, the model inherits the gap. LLMs are most useful when they have the full clinical context to work from. They can flag apparent gaps or inconsistencies, but they can't recover an ED visit from a hospital nobody queried or reconcile a medication list when they only see half of it. If the pipeline drops something, the model never knows it existed.
An incomplete answer is often obvious. An answer built on incomplete data usually isn't.
Show Your Work
Claims that can be checked are more trustworthy than claims that are simply asserted. That applies to the data pipeline as much as the AI output itself. You should be able to inspect how the data was transformed before it reached the model and trace the result back to its source.
Medical code crosswalks illustrate why that transparency matters. Source documents arrive coded in a mix of standard, legacy, and proprietary vocabularies. Metriport enriches each record through code lookup, normalization, and crosswalks, so a single diagnosis can carry both ICD-10-CM and SNOMED CT codes, alongside any legacy ICD-9 code from the source document and added classifications such as CCSR category and chronicity.
Those lookups and crosswalks run through Metriport’s open-source terminology server. Anyone can inspect the code behind the mapping.

conceptMapTranslate.ts in Metriport's open-source terminology server. The highlighted query retrieves a concept map by source system, source code, and target system.
The transformed data also points back to its source. Every FHIR resource Metriport returns carries a meta.source value identifying the C-CDA document it was derived from. Passing that value to the Get Document URL endpoint downloads the original document, so any value in the record can be checked against its source.
Without that transparency, a crosswalk is just another output to trust: a code goes in, a different code comes out, and there’s no way to inspect how the system got from one to the other. The same principle applies to AI. A summary or recommendation may be useful, but without the underlying data and transformation logic, there’s no way to verify it.
Inspectability is more than a product preference. It also factors into how the FDA distinguishes certain clinical decision support software from software regulated as a medical device.
The Clear Box Principle
The FDA's recent guidance on clinical decision support software draws an important regulatory line. Certain tools can be excluded from the definition of a medical device (and the regulatory requirements that come with it) if specific criteria are met. Among them, clinicians must be able to independently review the basis for a recommendation rather than relying primarily on the software's output.
The guidance points to the importance of identifying the inputs, explaining the basis for the recommendation, and surfacing patient-specific knowns and unknowns, including missing or unexpected data. Part of the goal is to counter automation bias: our tendency to over-rely on a technology system's recommendations.
That principle should extend to the data pipeline informing AI as well. Clinicians should be able to understand how an AI-generated recommendation was reached and inspect the patient data that informed it.
The model may be the most visible part of healthcare AI, but the data pipeline is the foundation its output rests on. Without transparency at every step, from access through insight, every downstream conclusion rests on assumptions about what the AI knew and what it didn't.