# Two lab reports, one CSV

A recipe for putting results from two labs, printed under different names and in different units, into one table you can plot. Try it first with the fictional reports at lifefrom.ai/research/resources#sample-reports, where every answer is known. Then do the same with your own reports.

You don't need an account, and nothing is uploaded.

## 1. Read both reports

1. Open https://lifefrom.ai/read/blood-test in a browser. You don't need to sign in.
2. Drop in both PDFs: `report-a-us-2026-03-14.pdf` (US lab, March, conventional units) and `report-b-uk-2026-10-07.pdf` (UK lab, October, SI units). The reader opens them on your own device.
3. Under "Check what we read", check three things for each report:
   - the date it found (14 Mar 2026 and 7 Oct 2026);
   - each printed name, next to the marker it was matched to;
   - any lines it could not place.

## 2. Download as CSV

Click **Download as CSV**. You get one file with a row for every value on both reports:

| Column | What it holds |
|---|---|
| `report_date`, `report_file` | which report the row came from |
| `marker_slug`, `marker_name` | the marker the printed name was matched to; the same slug on both reports |
| `name_as_printed`, `value`, `unit` | exactly what the lab printed (a decimal comma becomes a point) |
| `lab_low`, `lab_high`, `lab_range_text`, `flag` | the lab's own interval and flag |
| `reader_value`, `reader_unit` | the value in one unit per marker, so two labs line up |
| `status` | `read`, `unplaced` (a line it could not match) or `abstained` (read, but the report gives no range to judge it by) |
| `note` | for example, a marker the lab printed twice in two units |

## 3. Line them up

Plot `reader_value` against `report_date` for each `marker_slug`, or run `timeline.py` (Python 3, standard library only):

```
python3 timeline.py lifefrom-results-2026-11-25.csv
```

It prints one line per marker, with each date's value in the same unit.

## 4. What to expect from the fictional reports

- Ferritin, haemoglobin, free T4, B12, HbA1c, LDL and ApoB come out in one unit for both dates.
- TSH (mIU/L and mU/L) and PSA (ng/mL and µg/L) are the same number under two unit names.
- Vitamin D: the UK report prints 54 nmol/L, which is 21.6 ng/mL.
- Lp(a) keeps its two units, 68 mg/dL in March and 150 nmol/L in October. No single factor converts one into the other, so the two can't share an axis.
- The UK report prints no interval for free PSA, EPA or DHA, so those rows are `abstained`.

---
LifeFrom · lifefrom.ai
