Metadata-Version: 2.4
Name: hl7kit
Version: 0.2.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Dist: pytest>=7 ; extra == 'test'
Provides-Extra: test
Summary: HL7 v2.x parser with byte spans and imaging-order linkage (Accession, RP ID, SPS ID, Study Instance UID with source and conflict warnings).
Keywords: hl7,hl7v2,dicom,radiology,ris,pacs,imaging
Author: Holger Trahe
License: MIT OR Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Demo, https://holg.github.io/hl7v2/
Project-URL: Documentation, https://docs.rs/hl7kit
Project-URL: Repository, https://github.com/holg/hl7v2

# hl7kit (Python)

`pip install hl7kit` — HL7 v2.x parser (Rust core, PyO3) with byte spans and imaging-order linkage.
No runtime dependencies. Wheels for Linux x86_64/aarch64, macOS, Windows; Python 3.9+ (abi3).

```python
import hl7kit
msg = hl7kit.parse(open("order.hl7", "rb").read())
o = msg.order()
o.accession_number, o.requested_procedure_id, o.scheduled_procedure_step_id
o.study_uid.value, o.study_uid.source   # "IPC-3.1" | "ZDS-1.1" | "OBX-110180"
o.warnings                              # e.g. UID conflict between ZDS and OBX
```

CLI: `hl7kit inspect *.hl7 [--json]` (exit 1 if any linkage warning).

