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.
Metadata
Release files for hl7-facet 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hl7_facet-2.0.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hl7_facet-2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / hl7_facet-2.0.tar.gz
| Download URL | hl7_facet-2.0.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c80cd42112f4f34898c8356abad4b47b28d56abb74d648478c1c3ab197c9ddc4
|
|
BLAKE2b-256 checksum How to use checksums |
8facbab46fc29a74a542763d88258f6205a8c09104b18ea2be5380b9744afa89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / hl7_facet-2.0-py3-none-any.whl
| Download URL | hl7_facet-2.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4219a821857351b0c03fe933d3fe5f71b85eade09741879e1f61e5aec7e55c8
|
|
BLAKE2b-256 checksum How to use checksums |
e65d9cf61aa0ec701045e31bd1d76a546822926c1d7449de87271ee4f7b64850
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|