extracting-lab-tables

Extract laboratory panels from scanned images and delimited exports into structured clinical result rows.

5.0k|615|Updated Oct 4, 2025
One-click install
npx skills add https://github.com/maziyarpanahi/openmed --skill extracting-lab-tables
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extracting-lab-tables
Source: https://github.com/maziyarpanahi/openmed/tree/main/skills/extracting-lab-tables
Command: npx skills add https://github.com/maziyarpanahi/openmed --skill extracting-lab-tables

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill converts laboratory reports trapped in scanned images, photos, and delimited exports into clean, structured result rows, avoiding manual transcription and preserving the information needed for clinical analysis.

Core Features & Use Cases

  • On-Device OCR: Extract laboratory text and positioned words from images using available Tesseract or PaddleOCR backends.
  • Table Reconstruction: Organize detected words into test, value, unit, reference range, and abnormal flag columns.
  • Delimited Data Processing: Parse CSV and TSV laboratory exports, classify columns, and redact patient-identifying fields.
  • Clinical Handoff: Produce rows suitable for LOINC and UCUM mapping, FHIR Observation and DiagnosticReport creation, and downstream abnormal-value analysis.
  • Use Case: Process a scanned CBC report or CSV export into PHI-safe rows containing each test name, result, unit, reference range, and flag.

Quick Start

Use the extracting-lab-tables skill to OCR the attached lab report, reconstruct its table, redact embedded patient identifiers, and return structured test rows.

Frequently Asked Questions about extracting-lab-tables

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract lab tables from scanned images into structured clinical data?

To extract lab tables from scanned images, apply on-device OCR using Tesseract or PaddleOCR backends to capture text and positioned words. Geometry-based alignment then reconstructs the detected words into structured test, value, unit, reference range, and abnormal flag columns.

Can I process delimited CSV and TSV lab exports and redact PHI?

Yes, you can process delimited CSV and TSV lab exports by parsing and classifying columns into clinical result fields. The skill identifies and redacts patient-identifying fields to produce PHI-safe structured rows for downstream analysis.

Does the table reconstruction preserve reference ranges and abnormal flags?

Yes, table reconstruction preserves reference ranges, units, and abnormal flags. Detected words from OCR are organized into structured columns specifically designed to maintain the information needed for clinical analysis and LOINC or UCUM mapping.

What is the best way to prepare scanned CBC and CMP reports for FHIR workflows?

The best way to prepare scanned CBC and CMP reports for FHIR workflows is applying OCR to extract text, reconstructing tables into clinical rows, and mapping values to LOINC and UCUM standards. This produces structured rows ready for FHIR Observation creation.

Do I need on-device OCR with positioned word output for lab table extraction?

Yes, on-device OCR with positioned word output is required for lab table extraction. Geometry-based row and column alignment relies on word positioning data to accurately reconstruct tables and apply confidence checks for clinical results.