Docling Document Conversion
docling-project/docling
Converts PDFs, Office files, HTML, images and other documents into a unified DoclingDocument with Markdown or JSON output, through the docling CLI, Python SDK or a remote service.
Converts scanned faxes, images, CSV/TSV exports and C-CDA XML into clean text on-device, ready for OpenMed de-identification and named-entity recognition.
$ npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed ingesting-clinical-documents --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ingesting-clinical-documents .claude/skills/ingesting-clinical-documents && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ingesting-clinical-documents" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documents into .claude/skills/ingesting-clinical-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ingesting-clinical-documents", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documentsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed ingesting-clinical-documents --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/ingesting-clinical-documents .agents/skills/ingesting-clinical-documents && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ingesting-clinical-documents" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documents into .agents/skills/ingesting-clinical-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ingesting-clinical-documents", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed ingesting-clinical-documents --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/ingesting-clinical-documents .cursor/skills/ingesting-clinical-documents && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ingesting-clinical-documents" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documents into .cursor/skills/ingesting-clinical-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ingesting-clinical-documents", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maziyarpanahi/openmed.git --path skills/ingesting-clinical-documents--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed ingesting-clinical-documents --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/ingesting-clinical-documents .gemini/skills/ingesting-clinical-documents && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ingesting-clinical-documents" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documents into .gemini/skills/ingesting-clinical-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ingesting-clinical-documents", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maziyarpanahi/openmed ingesting-clinical-documentsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/ingesting-clinical-documents .github/skills/ingesting-clinical-documents && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ingesting-clinical-documents" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documents into .github/skills/ingesting-clinical-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ingesting-clinical-documents", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maziyarpanahi/openmed ingesting-clinical-documents --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/ingesting-clinical-documents .opencode/skills/ingesting-clinical-documents && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ingesting-clinical-documents" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/ingesting-clinical-documents into .opencode/skills/ingesting-clinical-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ingesting-clinical-documents", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ingesting-clinical-documentsConverts scanned faxes, images, CSV/TSV exports and C-CDA XML into clean text on-device, ready for OpenMed de-identification and named-entity recognition.
The skill is the intake stage of the OpenMed pipeline, turning clinical documents that are not plain text into a normalized ExtractedDocument of clean text with character-offset spans back to their source location. Everything runs on-device through local OCR backends, so no document leaves the machine. It applies to scanned or photographed notes needing OCR, CSV or TSV patient exports needing column-aware handling, and C-CDA XML needing flattening, feeding into the deidentifying-clinical-text and extracting-clinical-entities skills afterward.
redact_document dispatches by file extension today: image formats go through the ocr() function or an OcrEngine, CSV and TSV go through column-aware tabular redaction, and detected C-CDA XML goes through a standard-library CDA adapter. PDF and DOCX have no live handler yet and raise an UnsupportedDocumentError, so PDFs must first be converted to page images or text by another tool.
Installation adds the multimodal extra for the document intake contract and image dependencies, plus the ocr-paddle extra for the PaddleOCR engine, while the Tesseract engine needs the system binary installed separately. The quick-start shows calling ocr() directly for a two-step intake-then-deidentify flow, where the engine parameter can be left as auto-select or pinned to tesseract or paddleocr, and OcrResult exposes per-word bounding boxes and confidence.
Read from SKILL.md and the folder at commit 9dca507. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comhhs.govhl7.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Clinical Document Ingestion loads about 2k tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 162 tokens; SKILL.md has 612 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maziyarpanahi/openmed at commit 9dca507, republished under its Apache-2.0 licence (© maziyarpanahi). 612 words, ~2,005 tokens.
.claude/skills/ingesting-clinical-documents/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Clinical text often arrives as scanned faxes, photographed notes, CSV exports, or
C-CDA XML — not plain text. openmed.multimodal converts these into a normalized
ExtractedDocument (clean text + character-offset → source-location spans) so you
can run de-identification and NER. It runs on-device: OCR backends are local,
no document leaves the machine.
openmed.deidentify and
openmed.analyze_text.This is the first stage. After intake, hand off to
deidentifying-clinical-text then extracting-clinical-entities.
redact_document dispatches by file extension. Live handlers:
| Input | Extensions | Path |
|---|---|---|
| Images / scans | .png .jpg .jpeg .tif .tiff .bmp .gif .webp | OCR (ocr() / image handler) |
| Tables | .csv .tsv | column-aware tabular redaction |
| C-CDA | .xml (detected as CDA) | stdlib CDA adapter |
PDF and DOCX have no live handler yet — redact_document("x.pdf") raises
UnsupportedDocumentError. Convert PDFs to page images first (or to text with your
own tool) and feed the images through OCR. See
references/multimodal-ingest.md for the full
contract, engines, and the tabular pipeline.
pip install "openmed[multimodal]" # document intake contract + image deps
pip install "openmed[ocr-paddle]" # add the PaddleOCR engine
# Tesseract engine also needs the system binary, e.g.: brew install tesseractThe clean two-step intake path. ocr() lives in the submodule (it is intentionally
not re-exported from openmed.multimodal):
from openmed.multimodal.ocr import ocr
import openmed
# 1) OCR a scanned/faxed note -> OcrResult -> ExtractedDocument -> plain text
result = ocr("fax_page.png", engine=None) # None = auto-select an installed engine
doc = result.to_document() # ExtractedDocument
text = doc.text # clean text for downstream OpenMed
# 2) De-identify, then run NER (privacy-first order)
deid = openmed.deidentify(text, method="mask", policy="hipaa_safe_harbor")
ner = openmed.analyze_text(deid.deidentified_text, output_format="dict")
for ent in ner.entities:
print(ent.label, ent.text, ent.confidence)engine may be None (auto-select), "tesseract", "paddleocr", or an
OcrEngine instance. OcrResult exposes .text and per-word boxes via .words
(each OcrWord has text, bbox, confidence, page).
redact_documentFor images, CSV/TSV, and CDA, redact_document performs intake and
de-identification in a single, format-aware call, returning an already-redacted
ExtractedDocument:
from openmed.multimodal import redact_document
# Image scan: OCR + redact in one call
doc = redact_document("fax_page.png")
print(doc.text) # redacted text
print(doc.spans[:3]) # SourceSpan offsets -> page / bbox in the original scan
# CSV export: per-column classification (direct id / quasi-id / safe) + redaction
table_doc = redact_document("patients.csv")
print(table_doc.text)Use redact_document when you want OpenMed to own intake and redaction
(especially for tables, where redaction is column-scoped, not free-text NER). Use
the ocr() → to_document() → deidentify path when you want to control the
de-identification method, policy, or mapping yourself.
CSV columns get classified before any cell is touched, so a free-text NER pass is not run blindly over structured data:
from openmed.multimodal import read_table, redact_table
view = read_table("patients.csv") # TableView with column decisions
for col in view.columns:
print(col.name, "->", col.assigned_class, col.action, col.canonical_label)
redacted = redact_table("patients.csv", keep_year=True)
print(redacted.text) # redacted CSV
for entry in redacted.manifest: # PHI-SAFE audit: counts/actions per column, no raw values
print(entry)redact_table(...) returns a RedactedTable with .text, .headers, .rows,
.columns, and a PHI-safe .manifest (no raw cell values). See
references/multimodal-ingest.md for column
classes and actions.
Every ExtractedDocument keeps character offset → source location. After detecting
PHI on doc.text, project a span's offset back to its page and bounding box:
from openmed.multimodal.ocr import ocr
import openmed
doc = ocr("fax_page.png").to_document()
deid = openmed.deidentify(doc.text, method="mask")
for ent in deid.pii_entities:
loc = doc.location_at(ent.start) # SourceSpan or None
if loc is not None:
print(ent.label, "page", loc.page, "bbox", loc.bbox)This lets you redact pixels on the original scan, not just the extracted text.
deidentifying-clinical-text: pass doc.text to openmed.deidentify(...)
with a policy profile; this is the required next stage for PHI.extracting-clinical-entities: run openmed.analyze_text on the
redacted text, not raw OCR output.ocr() is imported from the submodule: from openmed.multimodal.ocr import ocr. It is deliberately not re-exported from openmed.multimodal.redact_document raises UnsupportedDocumentError
for them. Rasterize to images first.[ocr-paddle] for PaddleOCR, or the system
Tesseract binary for pytesseract. Missing backends raise
MissingDependencyError with an install hint.OcrWord.confidence to flag low-quality pages.redact_table redacts per column classification —
don't run whole-table NER and expect structured columns to be handled correctly.manifest and any logs record
counts/actions/labels, never raw values. Keep OCR intermediates on-device and out
of logs.© maziyarpanahi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/ingesting-clinical-documents of maziyarpanahi/openmed.
Open the folder on GitHubat commit 9dca507
Clinical Document Ingestion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Clinical Document Ingestion this skillmaziyarpanahi/openmed | 5.5k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Docling Document Conversiondocling-project/docling | 69k | — | ~1.1k | Automated safety check: Pass | MIT | |
| PDF Processinganthropics/skills | 180k | 47 repos | ~2k | Automated safety check: Pass | Proprietary | |
| PDF Processing GuideshareAI-lab/learn-claude-code | 78k | 4 repos | ~646 | Automated safety check: Pass | MIT | |
| Excel Spreadsheet Creation and Editinganthropics/skills | 180k | 4 repos | ~2.1k | Automated safety check: Pass | Proprietary | |
| XLSXrvdbreemen/OTGW-firmware | 207 | 35 repos | ~2.9k | Automated safety check: Pass | Proprietary |
docling-project/docling
Converts PDFs, Office files, HTML, images and other documents into a unified DoclingDocument with Markdown or JSON output, through the docling CLI, Python SDK or a remote service.
anthropics/skills
Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.
shareAI-lab/learn-claude-code
Gives the agent command-line and Python recipes for reading, creating, merging and splitting PDF files, plus tips for large and scanned documents.
anthropics/skills
Creates, edits and analyzes spreadsheets (.xlsx, .xlsm, .csv, .tsv) with openpyxl and pandas, writing live formulas and recalculating to confirm zero formula errors.
rvdbreemen/OTGW-firmware
Use this skill any time a spreadsheet file is the primary input or output.
opendatalab/MinerU
Reads, OCRs, searches and cites local documents through the mineru CLI, covering PDF, images, Office files, EPUB, HTML and CSV.
maziyarpanahi/openmed
Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.
maziyarpanahi/openmed
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
maziyarpanahi/openmed
Walks a data pipeline against the HIPAA Privacy and Security Rule checklist and produces a gap report before it processes patient data.
maziyarpanahi/openmed
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
maziyarpanahi/openmed
Maps OpenMed-extracted, terminology-coded conditions, drugs and measurements into OMOP CDM v5.4 tables for OHDSI and ATLAS analytics.
maziyarpanahi/openmed
Finds social risks such as housing instability or food insecurity in clinical notes and proposes matching ICD-10-CM Z-codes for a coder to confirm.
Works with
Categories
Converts scanned faxes, images, CSV/TSV exports and C-CDA XML into clean text on-device, ready for OpenMed de-identification and named-entity recognition. The skill is the intake stage of the OpenMed pipeline, turning clinical documents that are not plain text into a normalized ExtractedDocument of clean text with character-offset spans back to their source location. Everything runs on-device through local OCR backends, so no document leaves the machine.
Clinical Document Ingestion fits situations like: extracting text from scanned or photographed clinical notes; handling CSV or TSV patient data exports before de-identification; flattening a C-CDA XML document into text; building an on-device intake pipeline before OpenMed de-identification.
Run `npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a claude-code`. Or copy the skill folder (skills/ingesting-clinical-documents in maziyarpanahi/openmed) into .claude/skills/ingesting-clinical-documents in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a codex`. Or copy the skill folder (skills/ingesting-clinical-documents in maziyarpanahi/openmed) into .agents/skills/ingesting-clinical-documents in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maziyarpanahi/openmed --skill ingesting-clinical-documents -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ingesting-clinical-documents, .gemini/skills/ingesting-clinical-documents, .github/skills/ingesting-clinical-documents and .opencode/skills/ingesting-clinical-documents in your project.
Going by SKILL.md and its folder, Clinical Document Ingestion needs the command-line tools its instructions call (pip). Our summary lists: Python with openmed[multimodal]; Tesseract or PaddleOCR, installed via openmed[ocr-paddle] or the system package.
SKILL.md names 3 domains. As links in the text: github.com, hhs.gov and hl7.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Clinical Document Ingestion is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Clinical Document Ingestion: Docling Document Conversion (docling-project/docling, 69k stars), PDF Processing (anthropics/skills, 180k stars), PDF Processing Guide (shareAI-lab/learn-claude-code, 78k stars) and Excel Spreadsheet Creation and Editing (anthropics/skills, 180k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maziyarpanahi (a GitHub user) maintains it in maziyarpanahi/openmed, which has 5,500 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 9, 2026.
Source: maziyarpanahi/openmed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.