LabExtract
A model that turns photos, scans and PDFs of lab results into structured medical data — LOINC-coded and delivered in the HL7 FHIR standard, ready to feed HIS and medical record repositories.

Model Description
Every laboratory prints results differently — different table layouts, different test naming, different ways of writing reference ranges. Classic OCR needs a template for every printout, and every format change breaks the integration. LabExtract reads the document the way a person does and needs no configuration for a new laboratory.
The model transcribes the document instead of interpreting it: “< 5.0” stays a value with its operator, decimal separators are not silently changed, ↑/↓ flags and units like ×10³/µl are preserved exactly, and gaps are never filled with guesses. The extraction is a faithful digital transcript of the source document.
In Poland, every laboratory also maintains its own test dictionaries and codes, which makes results from different sources hard to compare. That is why LabExtract assigns each parameter a LOINC code verified against the official registry — “Leukocytes”, “WBC” and “White blood cells” become one parameter — and delivers everything as HL7 FHIR R5 Observations, ready for the HIS or the medical record repository.
How LabExtract works
Verification instead of retyping
LabExtract does not replace the person responsible for the data — it changes their job from retyping to verification. The model fills in the whole table; the reviewer compares it against the document and corrects individual fields. That is many times faster than typing every result in from scratch.
Verification itself is easy because of how the model works: LabExtract never adds anything of its own. Tests it cannot read reliably are reported as missing — there are no silent guesses to hunt for.
Patient results stay on your servers
LabExtract runs entirely on your organization's infrastructure — as a single service, on a server with or without a GPU. Documents with patient results are processed locally and never leave your network, which simplifies GDPR compliance and healthcare security requirements.
Key Features
Extracted Data
Supported Formats
Use Cases
- Digitizing paper archives of lab results — including publicly funded digitization projects (KPO, FEnIKS)
- Feeding HIS and medical record (EDM) repositories with results from external laboratories — without manual retyping
- A single timeline per parameter for each patient, even when tests come from different labs
- Accepting results from patients as smartphone photos, e.g. in telemedicine
- Building medical registries and research datasets from source documents
Business Benefits
FAQ – Frequently Asked Questions
API Integration
Models are available as a REST API service or for local deployment within hospital infrastructure. We provide documentation and integration support.
curl -X POST https://api.medalion.tech/v1/labextract/fhir \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@lab_results.pdf" \
-F 'options={"loinc_lookup": true}'
# → a list of FHIR R5 Observation resources:
# values, units, reference ranges,
# interpretations and LOINC codesSee LabExtract on your own documents
The best test of the model is your own printouts. Get in touch — we will show the extraction on sample results and discuss an on-premise deployment or API access.