A scanned lab report is a picture of a table, not a table, so no extractor can read it until the text is recognised. Running OCR first turns the picture into selectable text, after which the table can be exported to Excel and checked value by value against the scan.
Prerequisites
- Adobe Acrobat Pro with OCR, or another OCR tool
- The scanned lab results PDF
- A copy of the source file, so the original stays untouched.
Steps
- Open the scanned PDF in Acrobat and run Recognize Text (OCR) on all pages, then save a copy and keep the original scan untouched.
- Zoom into the results table in the OCR copy and confirm the numbers read correctly, especially 0, 1, 7 and decimal points.
- Export the table to Excel with File, Export a PDF, Spreadsheet, Microsoft Excel Workbook, or select the table and use Export Selection As.
- In Excel, read each result value against the same cell in the scanned PDF and correct any OCR misread before using the numbers.
- Add a check column that flags any value outside the reference range printed on the report, and review each flag by hand.
Worked example: Fictional blood-test results panel
The practice table below is a fictional five-test panel. The result column is the value to check; the reference range is printed on the report. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Test | Result | Unit | Reference range |
|---|---|---|---|
| Haemoglobin | 142 | g/L | 130-170 |
| White cell count | 6.8 | 10^9/L | 4.0-11.0 |
| Platelets | 245 | 10^9/L | 150-400 |
| Sodium | 139 | mmol/L | 133-146 |
| Potassium | 4.2 | mmol/L | 3.5-5.3 |
Expected result. The sheet has five results, each result matches the scan, and none falls outside its reference range. UNTESTED: no lab report was OCRed or extracted for this guide; the table shows the expected values to check an extraction against.
Limits
- OCR can misread similar characters, so a result must never be trusted without reading it against the scan.
- Handwritten notes on a scan usually OCR badly and need typing by hand.
