New: PDF/A-3b conversion with a compliance report included.See Docs

Parse a Blood Report PDF Using PDF.co Document Parser

Create a reusable template to extract a patient’s name, report date, and test results from a blood report PDF.

Use the sample blood report or a de-identified test document.

Step 1: Create a Template

Sign in to PDF.co and open the Document Parser template manager.

Create a new template and load your sample PDF into the editor. Give the template a descriptive name, such as Blood Report.

Step 2: Define the Patient Details

Add a Field from Rectangle Selection object for the patient’s name.

Select the area containing the name and assign a recognizable field name, such as PatientName. Keep the selection focused on the value you want to extract.

Repeat this process for the report date, naming the field ReportDate.

Step 3: Define the Results Table

Add a Table from Rectangle object and select the test-results table. Name the object TestResults.

Include the relevant columns, such as test name, result, units, and reference range, where present. Avoid including unrelated notes or page footers.

For more information about field and table objects, see the Document Parser Template Creation Guide.

Step 4: Test the Extraction

Run the template against the sample PDF and inspect the JSON results.

Compare the extracted values with the source document. Check patient details, dates, decimal values, units, and the alignment of table rows and columns.

Adjust the selected areas and test again if any content is missing or incorrectly grouped.

Step 5: Save and Reuse the Template

Save the template once the results are correct. Test it with additional reports that use the same layout before incorporating it into an automated workflow.

Rectangle-based extraction depends on consistent positioning. Reports from another laboratory or with a different layout may require a separate template.

You can reuse the saved template through PDF.co’s Document Parser API or supported integrations. This workflow extracts report data; it does not interpret medical results.

Related Tutorials

See Related Tutorials