Metadata-Version: 2.4
Name: hl7-facet
Version: 2.0
Summary: Lightweight HL7 parser focused on HL7 tersers
Author-email: Frederic Laurent <flt@opikanoba.org>
License-Expression: MIT
Project-URL: Homepage, https://framagit.org/opikanoba/hl7-facet
Project-URL: Source, https://framagit.org/opikanoba/hl7-facet
Keywords: HL7,hl7,terser,parser
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Healthcare Industry
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Communications
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.14
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# hl7-facet

## Description

This library parses HL7 messages and produces dictionaries.
It's easy to use and straightforward.

> **Note** — `hl7-facet` was previously published as `hl7tersely`. The API is unchanged;
> only the name changes: install `hl7-facet`, import `hl7facet`.

## Install

Install from [PyPI](https://pypi.org/project/hl7-facet/):

```console
pip install hl7-facet
```

The distribution is named `hl7-facet`, the importable package is `hl7facet`.

## Start playing

```pycon
# 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.
