--- id: openmed version: "2.1.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # openmed — Local-first SDK for clinical extraction and de-identification workflows on hardware you control. License: permissive · Maintenance: active · Downloads: 4.0M/mo ## What it is and what it does OpenMed is a local-first Python SDK for clinical text processing: it extracts medical entities (diseases, drugs, procedures) and detects personally identifiable information (names, addresses, IDs, billing data), then returns de-identified text. The core runtime runs on your hardware after required model artifacts are available; model downloads, remote adapters, and user-configured integrations may use the network. It depends on faker, jieba, pysbd, and pyyaml for text processing and data generation. The package targets Python 3.10+ and ships as a pure wheel. It supports multiple deployment surfaces—Python, Swift/MLX on Apple Silicon, Android/ONNX Runtime Mobile, and browser/Transformers.js—though the PyPI package itself is the Python runtime. Deployment owners are responsible for validating each model's terms, privacy behavior, and clinical fitness; using the SDK does not itself establish HIPAA compliance. Use it for: - De-identify clinical discharge notes or EHR text before sharing with research teams or external systems - Extract structured medical entities (diagnoses, medications, procedures) from unstructured clinical narratives - Build a local clinical NLP pipeline that never sends patient data to a cloud API - Integrate clinical text processing into healthcare applications on Apple Silicon or Android devices - Validate and redact PII from synthetic or real clinical documents for compliance workflows ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Extracts medical entities and personally identifiable information from clinical text, then de-identifies it—all running locally on your hardware after required model artifacts are available. Yes, if you need local clinical text extraction and de-identification and can validate model terms for your deployment. Low install friction, active maintenance, permissive license, and no known vulnerabilities. Requires upfront work to acquire and validate model artifacts and confirm clinical fitness for your use case—this is not a plug-and-play compliance tool. ## Install pip install openmed uv add openmed poetry add openmed ## Installing openmed Before you install: Low friction: pure Python wheel with four runtime dependencies (faker, jieba, pysbd, pyyaml). Active maintenance—released 2 days ago. Requires Python 3.10+. License in practice: Apache-2.0 permissive license on the SDK source itself. Model and dataset terms vary separately; deployment owners must validate each model's license, privacy behavior, and clinical fitness for their use case. Quickstart: pip install openmed from openmed import analyze_text result = analyze_text( "Patient started on imatinib for chronic myeloid leukemia.", model_name="disease_detection_superclinical", ) for entity in result.entities: print(f"{entity.label} {entity.text} {entity.confidence}") Requires Python 3.10+. Model artifacts must be available before analyze_text() is called; the package does not bundle them—you must download or configure them separately. Verify before relying: - Whether model artifacts are bundled with the package or must be downloaded separately on first use - Actual latency and throughput for typical clinical documents on standard CPU hardware - Whether the package alone achieves HIPAA compliance or requires additional deployment configuration - Whether all 33 supported languages are available in the base package or require separate model downloads ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 4.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags clinical text extraction, medical NER local, PII de-identification healthcare, clinical NLP on-device, medical entity recognition, clinical text de-identification, local clinical NLP, clinical-nlp, pii-redaction, medical-extraction [View on SkillFed](https://skillfed.io/packages/openmed) · [View on PyPI](https://pypi.org/project/openmed/)