Skip to content

flrt/hl7tersely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HL7 Tersely Library

Description

These library parse HL7 messages and produces dictionaries. It's easy to use and straightforward.

Install

Install from pypi (https://pypi.python.org/pypi)

pip install hl7tersely

or with easy_install

easy_install hl7tersely

Start playing

# load HL7 data into hl7message

>>> from hl7tersely 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

Tested with Python 2.6, Python 2.7 and Python 3.2

MIT Licensed

About

Python Parser for HL7, focused on terser expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages