Code librariesReviewed · maziyarpanahi

OpenMed

OpenMed is a software library for developers extracting clinical information and removing personal identifiers on their own hardware, but accuracy and privacy protection require validation for each deployment. It documents Python APIs, model selection, several inference backends and mobile, browser and service interfaces; local operation depends on having the required model artifacts and configuring network boundaries.

Researched 22 Nov 2026

In short.

OpenMed is a software library for developers building clinical extraction and de-identification pipelines, but its documentation does not establish clinical accuracy, complete identifier removal or regulatory compliance. Its Python 3.11+ interface combines specialized models with identifier detection, text transformations and several execution backends. The core runtime can process locally after model artifacts are available, while downloads, remote adapters, telemetry-enabled paths and configured integrations may use a network. The README provides concrete installation and API examples, but nothing was installed or executed, and the linked implementation, model cards, research paper and benchmark artifacts were not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is README.md at [https://github.com/maziyarpanahi/openmed/blob/master/README.md], represented by its complete captured contents at revision 3ee61a8637f7c454c04bfbe07d378b7cf01819fa. The accompanying LICENSE and NOTICE were also supplied in full and inform the rights discussion. Linked implementation files, documentation, model weights, model cards, datasets, research papers, images and benchmark artifacts are outside this scope. No software was installed or executed; accuracy, privacy behavior, performance, compatibility and clinical fitness remain unassessed.

The overview

identity

OpenMed is a clinical natural language processing SDK. Its principal tasks are finding medical entities, detecting personally identifiable information and producing de-identified text. Named entity recognition, or NER, means locating text spans and assigning labels such as disease, drug or person name.

The repository is [https://github.com/maziyarpanahi/openmed], with documentation at [https://openmed.life/docs]. This account concerns README.md at revision 3ee61a8637f7c454c04bfbe07d378b7cf01819fa and its accompanying LICENSE and NOTICE. The described software spans Python, Swift, Android, browser and service interfaces, with support depending on the chosen model and environment.

assessment

OpenMed is a plausible fit for teams that need both clinical entity extraction and configurable identifier removal while controlling where inference occurs. The documented APIs and installation paths provide concrete starting points, although successful installation and runtime behavior remain unassessed.

The evidence supports evaluating the SDK as an integration layer. It does not establish deployment accuracy, clinical fitness or compliance. The README advertises Apple Silicon latency and batch throughput improvements, but the supporting benchmark artifacts and methodology are outside the supplied material, so expected performance on a particular machine is unknown.

users

The intended users include healthcare software developers, clinical NLP researchers and engineers preparing clinical text for downstream analysis. Application developers may also find the documented Swift, Kotlin and browser interfaces relevant when inference needs to run on a user's device.

Beginners have short Python examples to follow, but practical use still requires dependency installation, model acquisition and interpretation of detection results. Experienced developers receive more configurable surfaces, including batch processing, a REST service, backend selection and model lifecycle controls. Organizations handling patient information need expertise to validate privacy behavior and clinical suitability.

capabilities

The README documents clinical models for diseases, medications, anatomy, genes and proteins, alongside identifier extraction through extract_pii() and text transformation through deidentify(). Available transformation methods include masking, replacement, hashing and date shifting. It also describes smart merging of fragmented detections, batch and streaming helpers, and configurable privacy profiles.

The README distinguishes 42 supported PII language routes from 35 model-backed languages. These counts do not imply equivalent capability in every language: Russian routing uses a documented multilingual placeholder, and an optional Indic model family requires explicit user configuration.

Additional documented interfaces include REST endpoints, MCP tools, Swift/OpenMedKit, Android ONNX inference and browser inference through Transformers.js. The clinical brief example is explicitly a synthetic contract demonstration using NER and inference test doubles, rather than evidence of trained-model or clinical validation.

Using it

requirements

The Python package requires Python 3.11 or later. The documented Hugging Face installation supports Linux, macOS and Windows with CPU or CUDA execution. Apple Silicon acceleration uses the MLX extra; Android uses ONNX Runtime Mobile, while browser examples use Transformers.js and optionally WebGPU.

Required model artifacts must be downloaded or otherwise supplied before local inference. The offline example points model_id to a local directory. Model availability, task coverage and backend compatibility must be checked for the selected artifact; the README makes backend fallback conditional on a matching checkpoint being available.

Minimum RAM, GPU memory, disk space, mobile operating system versions and practical document-size limits are not established by the supplied evidence.

mechanism

Clinical extraction runs a selected model over text and returns entities with labels and confidence values. The REST example also includes character offsets, which identify where each detected span occurs in the original text. Smart merging is intended to keep split identifiers, such as dates, together.

De-identification applies a chosen transformation to detected information. These methods have different effects: in the README's date-shifting example, the date changes while the person's name and Social Security number remain visible. Date shifting alone therefore does not perform the broader removal shown by masking.

The configured core runtime processes locally after artifacts are available. This boundary does not cover every feature: model downloads, remote-provider adapters, telemetry-enabled paths and user integrations may communicate over a network. The README also clarifies that openai/privacy-filter is a local model-weight identifier in its example, rather than an OpenAI API call.

setup

For the Python Hugging Face path, the README specifies pip install --upgrade "openmed[hf]". The REST service adds the service extra through pip install --upgrade "openmed[hf,service]". Apple Silicon users are directed to pip install --upgrade "openmed[mlx]". These are documented commands; their installation results were not observed.

Next, choose a model for the task and obtain its artifacts. For an offline configuration, the README demonstrates analyze_text() with model_id pointing to a local model directory and OpenMedConfig(device="cpu"). The claim that this example avoids contacting Hugging Face applies to that documented configuration.

Swift and Android dependency examples reference version 3.3.0. Browser examples use the openmed package with @huggingface/transformers. Dependency resolution, artifact availability and platform compatibility remain unassessed.

example

A short README example imports analyze_text from openmed and calls analyze_text("Patient started on imatinib for chronic myeloid leukemia.", model_name="disease_detection_superclinical"). Its illustrative output labels chronic myeloid leukemia as DISEASE and imatinib as DRUG. The displayed confidence values are example output, not independently measured accuracy or evidence of calibrated probabilities.

For a privacy task, the README separately demonstrates extract_pii() to inspect detected identifiers and deidentify() to transform text. A useful first evaluation would use synthetic notes with known identifiers, inspect the detections and compare the transformed text against the intended result. No such evaluation was performed here.

Assessment & evidence

limitations

No installation, inference, privacy inspection or clinical evaluation was performed. Detection accuracy, missed identifiers, false positives, robustness to unusual documents and performance across languages remain unassessed. Demonstration outputs and model-catalog breadth do not establish those properties.

The README explicitly states that Safe Harbor-aligned settings and support for identifier categories do not themselves establish HIPAA compliance. It also separates local core processing from optional network paths. A local deployment claim therefore requires attention to the actual configuration and integrations.

Feature availability varies by model, artifact, platform and backend. The synthetic clinical brief demonstration cannot establish reliable clinical summarization or reasoning over real patient notes.

reasoning

OpenMed's main practical value appears to be combining clinical extraction, identifier detection and text transformation behind related interfaces. This may reduce integration work for a team that needs those tasks together across local execution environments; that benefit is an inference from the documented architecture, not a measured productivity result.

The central tradeoff is configuration and validation responsibility. Controlling the inference hardware can support a privacy-sensitive design, but it does not establish that every identifier is detected, every optional component stays offline or every extracted clinical statement is correct.

alternatives

For a narrower browser token-classification requirement, the README demonstrates using Transformers.js directly with an exported model. That provides an implementation route to consider if the wider OpenMed API is unnecessary, although comparative integration effort and feature coverage were not assessed.

NOTICE names Microsoft Presidio [https://github.com/microsoft/presidio] for optional recognizer and redaction integration, making it an adjacent resource to investigate for identifier handling. It also names ARX for optional structured-data anonymization. The supplied evidence does not compare their accuracy, costs or operational suitability with OpenMed, and planned integrations should not be assumed available.

evidence

The technical evidence is the complete README captured from [https://raw.githubusercontent.com/maziyarpanahi/openmed/3ee61a8637f7c454c04bfbe07d378b7cf01819fa/README.md], together with LICENSE and NOTICE from the same revision. The README supplies installation instructions, API examples, architecture descriptions and explicit deployment boundaries.

The research paper, model cards, implementation files, linked guides, images and benchmark artifacts are referenced but were not independently inspected. Nothing was executed. Consequently, documented examples support an account of the intended interfaces and behavior, rather than observed runtime results.

Access & freshness

costs

Apache-2.0 grants no-charge copyright permissions for the covered work, but this does not establish a zero-cost deployment. The supplied material gives no hosted-service pricing or estimates for hardware, storage, electricity, engineering, validation or optional remote-provider usage.

Model and dataset terms vary, and their acquisition or usage costs are unknown. No total operating cost, inference cost or paid support price can be established from these files.

rights

The SDK source is released under Apache-2.0. The license permits reproduction, modification and redistribution, including commercial use, subject to its conditions. Redistributors must provide the license, preserve applicable notices, identify modified files and carry forward relevant NOTICE attribution. Trademark rights are not generally granted, and the work carries no warranty.

The accompanying NOTICE records additional terms for third-party assets, including ICU-derived segmentation data, MIT-licensed calendar tables and the Android LLVM runtime. It contains both existing assets and optional or planned integrations, so an entry does not establish that a feature is currently shipped.

The SDK license does not establish rights to every linked model or dataset. NOTICE says SHIELD corpus access requires review of its terms and points to a signed Data Use Agreement; it does not grant unrestricted redistribution of that corpus.

freshness

The supplied files were captured on 22 November 2026 at 05:04:52 UTC from revision 3ee61a8637f7c454c04bfbe07d378b7cf01819fa. This fixes the source version described here; the repository's subsequent state is unknown.

The README's Swift and Android examples reference 3.3.0, while some service descriptions refer to v1.8. These are documentation references, not confirmation of the latest package release or present compatibility. Current package availability and linked artifact versions were not checked.

actions

Start with one bounded task, such as medication extraction or masking identifiers in synthetic notes. Choose a matching model, review its own license and requirements, and confirm that the intended backend has the necessary artifacts.

Before processing patient information, evaluate representative documents with known expected results. Measure missed identifiers and incorrect detections, inspect text transformations and check the languages and identifier formats relevant to the deployment. Pay particular attention to transformations such as date shifting, which leave other identifier types unchanged in the supplied example.

For a local deployment, make model artifacts available in advance and inspect the configured download, remote-adapter, telemetry and integration paths. Obtain the deployment review needed for privacy and clinical use; the SDK's configuration profiles do not establish compliance or clinical suitability.

Evidence for this report

LICENSEnotice · checked 2026-11-22
NOTICEnotice · checked 2026-11-22
README.mdselected · checked 2026-11-22