journal of biomedical informatics
All submissions of the EM system will be redirected to Online Manuscript Submission System. Authors are requested to submit articles directly to Online Manuscript Submission System of respective journal.

HL7apy: a Python library to parse, create and handle HL7 v2.x messages

Author(s): Vittorio Meloni, Alessandro Sulis, Daniela Ghironi, Francesco Cabras, Mauro Del Rio, Stefano Monni, Massimo Gaggero, Francesca Frexia Gianluigi Zanetti

HL7 version 2 is the most popular messaging standard for clinical systems interoperability. Most of the tools for messaging management are Java or .NET based, while Python programming language lacks of comparable solutions. This paper describes HL7apy, an open-source HL7 v2 compliant messaging library, written in Python. The library offers means to create, parse, navigate and validate messages. As an example application, we present a full implementation of the IHE Patient Demographics Query ITI-21 transaction. The resulting module has been integrated in GNU Health, a popular open-source Hospital Information System.