extracting-lab-tables
自动化恢复检验网格并标准化编码,节省手工录入和清洗工作。
OCR和结构化可能出错,处理敏感检测数据需合规并核验结果。
从PDF/扫描件中检测并提取化验表格,结构化为行并做LOINC/UCUM映射。
把 PDF、扫描件或图片里那种化验表格自动找出来,变成一行行干净的数据:检验名、结果、单位、参考值、异常标记都能拆出来。常用在遇到 CBC、CMP、血脂等化验单是扫描件或表格时,想把数据喂进系统或标准化编码(LOINC/UCUM)的时候。特别在于能做表格检测+OCR,把杂乱的格子恢复成结构化行,便于后续去标识化和标准编码。
▸ 展开 SKILL.md 英文原文
Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows. Trigger keywords: lab table extraction, lab panel, OCR labs, table detection, layout analysis, header detection, reference range column, abnormal flag column, LOINC, UCUM, CBC, CMP, structured labs. Pairs before OpenMed: OCR/parse the table on-device (openmed.multimodal.ocr.ocr, read_table), de-identify embedded PHI with openmed.deidentify, then hand structured rows to LOINC/UCUM mapping and openmed.clinical lab flagging. Image/CSV/TSV intake is supported; PDF/DOCX raise UnsupportedDocumentError — render those to images or text first.
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/extracting-lab-tables/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/extracting-lab-tables/SKILL.md"# Extracting lab tables from documents and scans Lab results arrive as **tables**: a column of test names, a value column, units, a reference range, and an abnormal flag (H/L/Crit). To use them downstream you must recover that grid from a PDF, scan, or spreadsheet into clean rows — then code each test to **LOINC**, normalize units with **UCUM**, and flag abnormals. This skill is the **intake** step: it OCRs/parses the table on-device with `openmed.multimodal`, de-identifies any embedded PHI, and emits structured rows. It pairs **before** OpenMed's clinical helpers — the LOINC/UCUM coding and the high/low/critical flag are downstream (see `parsing-lab-values`). ## When to use - You have a