Skip to content
Lexyno
Back to Academy
Legal TechNov 30, 20269 min readJun LeeJun Lee

AI Legal Document Review: How It Works, How to Check It

AI Legal Document Review: How It Works, How to Check It

AI legal document review runs in five steps, and each one fails in its own way. What happens to a 600-page medical file, and one check per step.

Jun Lee
Jun Lee
Co-Founder & CTO

You upload 600 pages of medical records. A little later, there's a summary. Headings, dates, confident sentences. It looks like someone read the file.

Nobody did. AI legal document review isn't reading in the sense you mean. It's five separate steps, and each one can go wrong in its own way.

I build this kind of software, so here's the inside of the box. What happens at each step, what a failure looks like when it reaches your screen, and one check for each.

Hand with a marker sketching a process diagram of boxes, arrows and a pie chart on white paper
It's a pipeline, not a reader. Each box hands its mistakes to the next one.

It works in five steps. The tool turns each scanned page into text. It splits the text into pieces. It finds the pieces that matter for the task. It pulls out facts such as dates, providers and amounts. Then it writes. A mistake at any step is carried forward, and the writing step makes it sound fine.

StepWhat happensHow it fails on a PI fileWhat you see
1. Read the pageA scan becomes textA faxed, handwritten note is misread. One digit in a date or dose changesA visit date that matches nothing else in the file
2. SplitText is cut into pieces the model can handleA bill's header lands in one piece and its line items in anotherA charge with no provider attached
3. FindThe tool picks the pieces relevant to the taskThe page with the ER discharge note isn't pickedNothing. The visit is just missing
4. ExtractThe model pulls dates, providers, diagnoses, amountsTwo similar PT visits are merged into oneTwelve visits where the bills show thirteen
5. WriteThe model turns facts into proseIt smooths a gap into "treated consistently"A sentence that reads well and isn't in the records

Look at the last column. Only step 1 produces something that looks wrong. The other four produce output that looks normal.

That's why spot-reading the summary doesn't catch much for you. The errors that matter are absences, and you can't see what isn't there.

The Myth: The AI Read Every Page

Here's the comfortable version. A person skims. The machine doesn't get tired, so it read all 600 pages with the same attention.

It processed all 600 pages. That's a different claim.

A 2023 study tested how language models use long inputs. Performance was "often highest when relevant information occurs at the beginning or end of the input context." It "significantly degrades when models must access relevant information in the middle of long contexts" (Liu et al.).

The authors found this "even for explicitly long-context models."

Think about where things sit in a medical file. The ER visit is at the front. The discharge summary is at the back. Three months of PT notes are in the middle.

There's a second problem. A file that's too big for the model has to be cut down somehow. Some tools tell you. Some trim and keep going.

So "it read everything" isn't something to assume. Ask how the tool handles a long file, then test it.

Clinician in teal scrubs writing in a notebook at a desk beside an open laptop
Every record starts as somebody's note. Some are typed. Some are handwritten, then faxed twice.

Where Do Medical Records Trip It Up?

Medical records are harder than contracts. They come from many providers in many formats, often as scans of faxes. The same visit can appear twice. Bills and chart notes arrive separately and don't always agree. Each of those is ordinary for a paralegal and a real hazard for a pipeline that takes text at face value.

  • Faxed and handwritten pages. The text layer under a bad scan can be wrong while the image looks readable to you.
  • Duplicates. You requested records twice, so the same visit is in the file twice. Is it counted once?
  • Repeated chart text. Many charts carry the same exam findings forward from visit to visit. A summary can report "unchanged" when nobody re-examined.
  • Bills without notes. A charge appears with no matching visit note, or the reverse.
  • Scrambled order. Pages arrive out of sequence, and a date on page 300 belongs to a visit on page 12.
  • Other people's records. A page for a different patient is stapled into the file.

None of these is exotic. If you've built a chronology by hand, you've met all six. Our medical chronology guide and record review guide cover how a person handles them.

Review and Drafting Are Two Different Jobs

Vendors sell them together. They fail differently, so you should check them differently.

Review (extraction)Drafting
The questionWhat do these documents say?What should we say about it?
The outputDates, providers, diagnoses, amountsParagraphs
A typical errorA fact that's missing or wrongA sentence that claims more than the facts support
How you checkAgainst the pageAgainst the extracted facts, then against your judgment
Who owns itThe paralegal can verify itThe attorney decides it

Review has a right answer. The MRI was on Oct 3 or it wasn't.

Drafting doesn't. Whether to lead with the surgery recommendation or the wage loss is a choice, and it's yours. An AI draft can help with wording. It can't tell you what the case is about.

The trouble starts when a tool does both in one pass. Then a drafting flourish and an extracted fact look the same on the page. Ask whether the tool keeps the facts in a list you can inspect before any prose is written.

Does Search Make It Accurate?

It helps, and it doesn't finish the job. Many tools search the documents first and hand the model only the relevant pages. That cuts down on invented facts. But the model can still misread the page it was given, and the search can still miss the page that mattered. Step 3 and step 4 fail separately.

Legal research tools use the same design, and it's been tested there. A preregistered Stanford study found that providers' claims about it were "overstated." The research tools it tested "each hallucinate between 17% and 33% of the time" (Magesh et al.).

That number is for legal research, not for medical record review. We haven't found an independent measurement for record review, and we won't invent one.

The direction of the finding is what carries over to your records. Search reduces the problem. It doesn't remove it.

Try Lexyno FreeGenerate a mock demand letter from your own records.

How Do You Check AI Document Review?

Check each step with its own test. Compare the worst scans with their text. Count providers and visits yourself. Verify facts from the middle of the file. Re-add the bills. Open the page behind anything you'll rely on. Then read the draft against the extracted facts. Reading the summary top to bottom isn't a check.

Calculator and a metal pen resting on printed forms covered in numbered fields
The check for a number is arithmetic, done somewhere other than the model.
  1. Worst pages. You compared the three ugliest scans with the text the tool pulled from them.
  2. Counts. The number of providers and visits matches your own count from the bills.
  3. The middle. Three facts from the middle third of the file check out against their pages.
  4. Totals. The bills were re-added in a spreadsheet, and duplicates were counted once.
  5. Sources. Every fact you'll rely on opens to the page it came from.
  6. Gaps. Visit dates are laid out so a gap is visible, not written around.
  7. Draft. Each factual sentence in the draft maps to an extracted fact.
  8. Sign-off. An attorney read the final version.

Item 8 isn't optional in California. The State Bar's 2026 guidance says an attorney "must review all outputs produced using AI tools for accuracy."

Item 2 is the one that catches the most. A missing visit doesn't look like an error. It looks like nothing. Only a count finds it.

Medical chronology visit table listing providers, treatment periods, visit counts and the source file and page for each row
Visit counts by provider, each with a source page. This is the table to hold against the bills. Demo case (synthetic data).

Bad Output, Better Output

You can often tell how a tool was built from one sentence of its output. Here's an invented example.

Weak: "The patient reported ongoing neck pain throughout treatment and showed gradual improvement."

Better: "Neck pain 6/10 at the PT evaluation on Sept 18 (p. 41). 3/10 at the visit on Nov 25 (p. 212)."

The first sentence could be written without opening the file. The second can't. It names two visits and two pages, so you can check both.

Models lean toward the first kind for a reason. One research team argues that models "hallucinate because the training and evaluation procedures reward guessing over acknowledging uncertainty" (Kalai et al.). A smooth general sentence is a safe guess.

When you compare tools, look for the second kind of sentence. Our guide to testing legal AI tools has a full scorecard for that.

Treatment timeline with colored dots for three providers from the September 12, 2025 incident date through November 2025
Extracted visits on a timeline. The empty stretches are information too. Demo case (synthetic data).

When This Advice Is Wrong

I've written this for PI firms using AI on medical records and bills. Here's where it fits less well.

  • Contracts. Typed, structured documents skip most of step 1 and step 2. The drafting risks still apply.
  • Large discovery sets. Sorting thousands of documents for relevance is a different technique with its own validation methods. We didn't cover it.
  • Small files. For forty clean pages from one provider, reading them yourself may be faster than checking a tool.
  • Privilege review. Deciding what's privileged is legal judgment. A tool can flag candidates. It can't make the call.

Where Lexyno Fits

Lexyno doesn't decide causation, value a case or give advice. It handles the middle of the pipeline above, and keeps review and drafting apart.

The AI medical chronology software pulls dates, providers and diagnoses out of the records first, with the source page for each. It lays visits on a timeline and flags gaps over 30 days. The AI demand letter software then drafts from those extracted facts and exports to Word.

On long files, Lexyno has a hard page limit per case and doesn't accept files above it. Squeezing an oversized record into a model can drop pages silently, and we'd sooner refuse.

We won't tell you it catches everything. The eight checks above apply to our output too. For prepaid credit details, contact Lexyno through the pricing page.

More on the pieces: how an AI medical chronology works, why AI gets numbers wrong, and what Fact-Lock™ is. For general chat tools, see our posts on ChatGPT and Claude. For the bigger picture, see AI for personal injury lawyers and the medical record summary guide.

It Didn't Read the File. It Processed It.

AI legal document review turns pages into text, text into facts, and facts into sentences. Each turn can lose something, and the last one hides the loss.

So don't check the prose. Check the steps, and you'll know what your summary is worth.

Start from our PI demand letter template, or try Lexyno on one case from your own file, free.

Frequently asked questions

In five steps. The tool turns each scanned page into text, splits the text into pieces, finds the pieces relevant to the task, pulls facts such as dates, providers and amounts, and then writes a summary or draft. An error at any step carries into the steps after it.

It processes every page it was given, which isn’t the same as using every page. Research on long inputs found that models do worse with information in the middle than at the beginning or end. Some tools also trim files that are too large.

It depends on the scan quality, the tool’s design and the task, and we haven’t found an independent measurement for medical record review. A Stanford study of legal research tools found the ones it tested each hallucinated between 17% and 33% of the time.

Review pulls out what’s already in the documents: dates, providers, diagnoses, bills. Drafting writes something new from those facts. Review errors are missing or wrong facts. Drafting errors are sentences that claim more than the facts support. They need different checks.

Check each step. Compare the worst scanned pages with the text. Count providers and visits against your own count. Verify three facts from the middle of the file. Re-add the bills in a spreadsheet. Open the source page behind any fact you rely on.

Lexyno pulls dates, providers and bills from the case records first, then builds the chronology and drafts the demand from those extracted facts, with source references you can check. It doesn’t accept files above its page limit. An attorney reviews everything before it goes out.

Related posts

What's next?

Ready to see the difference in your next case?

Put these strategies to work. Try a mock demand generated by Lexyno today.

Request Evaluation Access