Document type

Extracting data from food sensitivity reports

A reference laboratory returns one report per panel, scoring a fixed list of foods for IgG antibody response. Every lab picks its own panel, its own codes and its own layout. Clinics receive them in a steady stream by portal download, secure email and fax, one per patient tested.

A clinician needs each food, its category and its reactivity level, plus the Total IgE result and whether it falls in range. Those populate the patient record and set the elimination diet the practice sends the patient home with.

Page 1 of a sample Food Sensitivity Report, with extracted values outlined
DPT-3 ProParse model
4pages
12,530Markdown characters
1.3parse credits per page
21.3 sparse time
13fields extracted
The problem

What makes food sensitivity reports hard

  • The results are a picture

    87 foods sit in four columns under category headings that break at different heights, with nothing ruled between the cells.

  • Color is a value

    Each result is a code and a colored box, with a legend mapping five colors to five reactivity levels.

  • Panels change between laboratories

    Each lab sets its own food list, its own reactivity scale and its own page design, so no two panels line up field for field.

How it works

Parse, extract, verify

  1. 1

    Parse

    Parse turns the document into reading-order Markdown and a hierarchy of blocks (text, tables, figures), and grounds each block to its exact location on the page.

  2. 2

    Extract

    You define the fields in a JSON schema, and Extract returns their values in a consistent, structured format, each linked back to where it appears in the Markdown.

  3. 3

    Verify

    Each value links back to where it appears, down to the character range in the Markdown, and the page and bounding box in the source document, so every result can be verified.

Worked example

One food sensitivity report, end to end

About this document: Genova Diagnostics' sample IgG Food Antibodies profile, published on gdx.net for clinicians. Four portrait pages. Page 1 is the results grid, 87 foods in seven categories with the Total IgE panel beneath it. Page 2 restates the same results grouped by level, and pages 3 and 4 are elimination diet guidance. The patient is the specimen SAMPLE PATIENT, with date of birth, sex and record numbers left blank.

Processing objective: The objective is to read the report header and one result out of the grid itself. Page 2 lists the high reactors as plain text and would have been the easier choice; page 1 is shown because a clinical system reading these at volume gets the grid.

Demonstration fields: Test profile, Methodology, Specimen type, Gluten result (from the results grid)

The document

4 of 4 pages
  • Page 1 of the sample Food Sensitivity ReportPage 1shown below
  • Page 2 of the sample Food Sensitivity ReportPage 2
  • Page 3 of the sample Food Sensitivity ReportPage 3
  • Page 4 of the sample Food Sensitivity ReportPage 4

Where each value came from

Test profilereport.test_name
1001 IgG Food Antibodies Profile
The region of the sample Food Sensitivity Report containing Test profile, with the extracted value outlined
extraction_metadata["report.test_name"]
{
  "value": "1001 IgG Food Antibodies Profile",
  "page": 1,
  "range": {
    "end": 244,
    "start": 212
  },
  "box": {
    "xmin": 0.02941,
    "ymin": 0.26096,
    "xmax": 0.29804,
    "ymax": 0.27361
  }
}
Methodologyreport.methodology
EIA and Chemiluminescent
The region of the sample Food Sensitivity Report containing Methodology, with the extracted value outlined
extraction_metadata["report.methodology"]
{
  "value": "EIA and Chemiluminescent",
  "page": 1,
  "range": {
    "end": 291,
    "start": 267
  },
  "box": {
    "xmin": 0.11011,
    "ymin": 0.27802,
    "xmax": 0.27333,
    "ymax": 0.28809
  }
}
Specimen typereport.specimen_type
Serum
The region of the sample Food Sensitivity Report containing Specimen type, with the extracted value outlined
extraction_metadata["report.specimen_type"]
{
  "value": "Serum",
  "page": 1,
  "range": {
    "end": 252,
    "start": 247
  },
  "box": {
    "xmin": 0.31226,
    "ymin": 0.26096,
    "xmax": 0.36048,
    "ymax": 0.27361
  }
}
Gluten result (from the results grid)food_results[68].result
3+
The region of the sample Food Sensitivity Report containing Gluten result (from the results grid), with the extracted value outlined
extraction_metadata["food_results[68].result"]
{
  "value": "3+",
  "page": 1,
  "range": {
    "end": 1715,
    "start": 1713
  },
  "box": {
    "xmin": 0.85251,
    "ymin": 0.40524,
    "xmax": 0.87239,
    "ymax": 0.4169
  }
}
Page 1 of the sample Food Sensitivity Report, with every featured field outlined

Performance

Parsed and extracted with v2 APIs using dpt-3-pro-20261111 and extract-20261111, at the Standard service tier.

4pages
1.3parse credits per page
21.3 sparse time
13schema fields
0.608extract credits per field
328.2 sextract time
Capabilities

Food Sensitivity Report processing highlights

Complete results grids
Reactivity codes and levels
Category grouping per food
Total IgE and reference range
In-range and out-of-range flags
Specimen and methodology header
Laboratory and accreditation
High-reactivity summary lists
Ordinal reactivity codes
Grid checked against summary
Native PDFs and scans
Bounding box for every value
Get started

How to try it yourself

Everything on this page is reproducible. The sample, its schema, and the Parse and Extract API outputs are published. You can repeat the same two calls from whichever surface you already build on.

  • Claude Skilldescribe the job; the agent writes it
  • CLIno code at all
  • MCPexpose ADE docs as an agent tool
  • REST APIany language
  • Pythonlandingai-ade
  • TypeScriptlandingai-ade
Why LandingAI?

Documents into data

Accurate

The best accuracy on the difficult documents other tools get wrong, such as messy scans, complicated tables, checkboxes and handwriting.

Auditable

Every answer cites its sources. Values come back with an audit trail (page, bounding box, character range) so a human can review them.

Agentic

Applies multi-step reasoning, and plans before it acts. Handles documents it has never seen before and adapts to variations.

API-first

Composable APIs that drop into any tech stack and can be called from anywhere. Easy to build on and embed in your pipelines and products.

Affordable

Cost-competitive rates with complete price transparency. Spend controls before you run, and every job reports its exact cost.

Enterprise-grade

Built for production and scale from day one. Fully observable and monitored, running securely in our cloud or yours.

Built for high-volume, high-throughput production

  • Zero data retention
  • Priority rate limits
  • Enhanced support
  • VPC and on-prem deployment

Available on Team and Enterprise plans. VPC and on-prem deployment require an Enterprise plan.

Compare plans
FAQs

Questions, answered

Yes. Every food on the panel returns with its category and its reactivity result, alongside the Total IgE figure and the high-reactor summary. A report that restates its results by level gives you a second copy to reconcile the grid against.

The grid is classified as a figure and its contents transcribed into a table. Each food returns with the category heading it sits under and the reactivity code beside it, with no ruling on the page to follow.

Yes. Total IgE returns as a value, a unit and a reference range, with a flag for whether it falls inside that range. On the page the in-range answer is carried by which of two boxes the number is printed in.

A schema can ask for the results and leave the patient identifiers out entirely, so protected health information never enters the extraction. Accounts are available with zero data retention, alongside SOC 2 Type II, GDPR and HIPAA compliance for clinical workloads.

Yes. DPT-3 Pro, the default parse model, reads scanned pages and handwriting. Coordinates come back against the page image either way, so a faxed or scanned lab report gives you the same evidence as this one.

Start extracting food sensitivity report data

Reliable, structured outputs with full traceability in minutes