Skip to main content

Super light weight Hl7 2.x parser

Project description

hl7lw: A Lightweight HL7 2.x Parsing Library

pypi Test-Status

The hl7lw library aims to provide an extremely simple and lightweight API to read, modify, and write HL7 2.x messages. Minimal processing is done to the messages and most data access should feel very natural and pythonic.

import hl7lw

p = hl7lw.Hl7Parser()
m = p.parse_message(message_bytes)

if m["MSH-9.1"] == "ORU":
    m["ORC-1"] = "RP"

message_bytes = p.format_message(m)

report = "\n".join([obx[5] for obx in m.get_segments('OBX') if obx[2] in ('TX', 'FT', 'ST')])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hl7lw-0.0.2.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

hl7lw-0.0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file hl7lw-0.0.2.tar.gz.

File metadata

  • Download URL: hl7lw-0.0.2.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for hl7lw-0.0.2.tar.gz
Algorithm Hash digest
SHA256 75558f7ecae9855759159aead3f74ea13825bf29d421d7b9957bb794453e6750
MD5 669fd7e44fcd3ac987452793aa181d86
BLAKE2b-256 9ebd415a308b874cd0e541dd03fc061fc682f56349167c68530f75e5f12cfd9a

See more details on using hashes here.

File details

Details for the file hl7lw-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: hl7lw-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for hl7lw-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a1ac74977ce8a4a52517da85dd3c3c8b44fb32b15000839e5fcf597a6029d78
MD5 558091a6a19e510ac58fb258f79c7790
BLAKE2b-256 2f4c9d7f3854e6e694c3c3ef2917ff3c414bd22df608cd0c9243d551eba11ac9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page