$npx skillfedfor your agent

hl7

Python library parsing HL7 v2.x messages

With conditionsPyPI Python ModulesReleased Mar 2022648.3K downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — hl7-0.4.5-py2.py3-none-any.whl
v0.4.5 · released 2022-03-31

Yes, if you are working with HL7 2.x messages in a Python healthcare application. The library has no dependencies, is permissive licensed, and has no known vulnerabilities. The aging maintenance status is not a blocker for parsing—HL7 2.x is a stable standard—but do not expect active development or rapid bug fixes.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation with no runtime dependencies.
  • Maintenance is aging—last release was in 2022 with a commit in June 2025, suggesting stability but not active development.

License · maintenance · safety

BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions.

last release 2022-03-31 (1597 days) · last repo commit 2025-06-09 · 319 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 648,262 downloads/mo, #5,586 on PyPI

Verify before relying

pip install hl7

import hl7
message = hl7.parse('MSH|^~\\&|...')
patient_id = message[0][3]
  • Whether the package handles all HL7 2.x variants or only a subset of the standard
  • Support for MLLP transport mentioned in keywords but not detailed in the excerpt
  • Scope of backwards compatibility break introduced in v0.3.0
Same gist for agents: .md · .json

What it is and what it does

python-hl7 is a parser for HL7 version 2.x messages, the standard format for exchanging healthcare data between medical systems. It converts raw HL7 message strings into Python objects, making it possible to programmatically extract and work with healthcare data fields and segments. The library has no runtime dependencies and supports Python 3.9 through 3.13.

The package is designed for developers integrating with healthcare systems or processing medical records. It is stable but aging—last released in 2022 with a commit in June 2025—so it is suitable for maintenance work on existing systems but may not receive updates for emerging standards or Python features.

Use it for

  • Extract patient demographics and identifiers from incoming HL7 admission or registration messages
  • Parse lab results or clinical observations from HL7 messages for storage in a database
  • Build a middleware layer to transform HL7 messages between different healthcare applications
  • Validate and log HL7 message structure for compliance auditing in healthcare workflows

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are working with HL7 2.x messages in a Python healthcare application.

The library has no dependencies, is permissive licensed, and has no known vulnerabilities. The aging maintenance status is not a blocker for parsing—HL7 2.x is a stable standard—but do not expect active development or rapid bug fixes.

Install

hl7 on PyPI

Before you install

Low friction installation with no runtime dependencies. Maintenance is aging—last release was in 2022 with a commit in June 2025, suggesting stability but not active development.

License in practice

BSD license is permissive, allowing commercial and private use with minimal restrictions.

Quickstart

pip install hl7

import hl7
message = hl7.parse('MSH|^~\\&|...')
patient_id = message[0][3]

Verify before relying

  • Whether the package handles all HL7 2.x variants or only a subset of the standard
  • Support for MLLP transport mentioned in keywords but not detailed in the excerpt
  • Scope of backwards compatibility break introduced in v0.3.0

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 1,597 days since the last release
Last repo commit
First released
Downloads648,262 / month, #5,586 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Healthcare IndustryLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: CommunicationsTopic :: Scientific/Engineering :: Medical Science Apps.Topic :: Software Development :: Libraries :: Python Modules

Evidence: hl7-0.4.5-py2.py3-none-any.whl

Tags

Capabilities
hl7 message parsinghealth level 7 parsermedical record parsinghl7 v2 pythonhealthcare data extractionhl7 segment parsing
Topics
healthcarehl7-parsingmedical-data
PyPI keywords
HL7Health Level 7healthcarehealth caremedical recordmllp

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “hl7 message parsing”

  • hl7Parses HL7 version 2.x medical messages into Python objects for…
  • hl7apyHL7apy parses, creates, and validates HL7 v2.x healthcare messages…
  • fhir.resourcesProvides Python classes and validation for all FHIR resource types…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also hl7apy · fhir-core · fhir.resources · openmed · pyx12 · emrvalidator · torchxrayvision · highdicom · pylibjpeg-libjpeg · query-string