Lightweight HL7 parser focused on HL7 tersers
Project description
hl7-facet
Description
This library parses HL7 messages and produces dictionaries. It's easy to use and straightforward.
Note —
hl7-facetwas previously published ashl7tersely. The API is unchanged; only the name changes: installhl7-facet, importhl7facet.
Install
Install from PyPI:
pip install hl7-facet
The distribution is named hl7-facet, the importable package is hl7facet.
Start playing
# load HL7 data into hl7message
>>> from hl7facet import HL7Parser
>>> hl7p = HL7Parser()
>>> myhl7dict = hl7p.parse(hl7message)
>>> len(myhl7dict.keys())
86
>>> for key, values in myhl7dict.items():
... print(key, values)
OBR[1]-02-01 12345678
OBR[1]-02-02 gastric
PV1[1]-18 12345
SPM[3]-17 200309060815
>>> "MSH-4" in myhl7dict
False
Requires Python >= 3.14.
License
MIT Licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hl7_facet-2.0.tar.gz.
File metadata
- Download URL: hl7_facet-2.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c80cd42112f4f34898c8356abad4b47b28d56abb74d648478c1c3ab197c9ddc4
|
|
| MD5 |
c66c725268cc83d3170c37ce4a52445b
|
|
| BLAKE2b-256 |
8facbab46fc29a74a542763d88258f6205a8c09104b18ea2be5380b9744afa89
|
File details
Details for the file hl7_facet-2.0-py3-none-any.whl.
File metadata
- Download URL: hl7_facet-2.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4219a821857351b0c03fe933d3fe5f71b85eade09741879e1f61e5aec7e55c8
|
|
| MD5 |
6d14a80f0c5484f352b6e4c61a3e8495
|
|
| BLAKE2b-256 |
e65d9cf61aa0ec701045e31bd1d76a546822926c1d7449de87271ee4f7b64850
|