skillfed

emrvalidator

A Data Validation Tool for Healthcare Data

emrvalidator v1.0.2 242.6K downloads/30d#8,852 on PyPI
Permissive license MIT AGING released

What it is and what it does

EMRValidator is a Python data validation library designed for healthcare and clinical datasets. It provides a fluent API for chaining validation rules, with built-in support for healthcare-specific formats like MRN and ICD codes, alongside standard checks for nulls, ranges, uniqueness, and date formats. The library depends only on pandas and includes data profiling and HTML/JSON report generation.

It positions itself as a lighter alternative to Great Expectations, targeting healthcare ETL pipelines, data warehouses, and clinical analytics workflows. The package offers multiple API styles—fluent chaining, expectation suites, and reusable rule sets—and includes pre-built rule sets for common healthcare scenarios like patient demographics and financial data validation.

Use it for:

  • Validate patient demographics, MRN formats, and clinical codes in ETL pipelines before loading to a data warehouse
  • Generate data quality reports and profiling summaries for healthcare datasets to identify missing or malformed records
  • Define and reuse custom validation rule sets for claims data, encounter records, or revenue cycle management workflows
  • Run real-time data quality checks on incoming clinical data in Airflow, dbt, or LLM pipeline contexts
  • Validate ICD-9 and ICD-10 diagnosis codes and other healthcare-specific formats in bulk data migrations

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

EMRValidator is a data validation library specialized for healthcare datasets, offering built-in validators for medical record numbers, ICD codes, and other clinical data formats alongside general data quality checks.

Yes, if you are validating healthcare or clinical datasets and want a lightweight, pandas-based alternative to heavier frameworks. The low install friction and healthcare-specific validators make it well-suited for ETL and data warehouse contexts. However, note the aging maintenance status (200 days since last release) and verify Python version support before committing to production use.

Install

emrvalidator on PyPI

pip

pip install emrvalidator

uv

uv add emrvalidator

poetry

poetry add emrvalidator

Installing emrvalidator

Before you install

Low friction: pure Python wheel with only pandas as a runtime dependency. Maintenance status is aging—last release 200 days ago—so expect slower response to issues or feature requests.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions.

Quickstart

pip install emrvalidator

from emrvalidator import DataValidator
import pandas as pd

df = pd.read_csv('patient_data.csv')
validator = DataValidator("Patient Data Quality")
validator.load_data(df)
validator.expect_column_exists('mrn').expect_mrn_format('mrn')
if validator.is_valid():
    print("✓ Validations passed")

Requires pandas; Python version support is unspecified in the package metadata, so verify compatibility with your environment before use.

Verify before relying

  • Whether numpy is truly optional or a transitive dependency of pandas that users should be aware of
  • Actual performance comparison methodology behind the claimed 5-7x speedup over Great Expectations
  • Python version support (requires_python is unspecified in the fact sheet)
  • Whether the package is actively maintained or in maintenance-only mode given the 200-day gap since last release

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — pandas
Maintenance aging — 200 days since the last release
First released
Downloads 242,555/month — #8,852 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: emrvalidator-1.0.2-py3-none-any.whl

Tags

healthcare data validationEMR data quality checksICD code validationmedical record validationclinical data profilinghealthcare dataset validationdata quality rules healthcare
healthcare-datadata-validationetl-pipeline

More Quality Assurance packages