openhealthcare/ehl7

Name: ehl7

Owner: Open Health Care

Description: HL7 parser with segment code generators in Erlang

Created: 2015-05-13 14:08:49.0

Updated: 2016-01-13 18:17:11.0

Pushed: 2016-01-13 18:17:10.0

Homepage: null

Size: 1205

Language: Erlang

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Erlang HL7 NIF Parser

Overview

This HL7 parser is an Erlang NIF interface into the C-based hl7parser.

Requirements

You'll need Erlang/OTP R16B to be able to compile and use this parser. You'll also need rebar installed and accessible in your PATH.

Installation

You'll need to retrieve the dependencies and the compile the project. You can do this by running:

 deps

And you can check that everything is working properly by running:

 test
Custom segments

The segment accessors are defined in an Erlang file (src/hl7_segment_def.eon) and are auto-generated by an escript (ehl7_codegen). The code used to encode and decode the segments is already included in the project (see src/ehl7_segment.erl and include/ehl7_segment.hrl). If you need to modify the segment definitions, just remove these files, modify the definition file and run the script like this:

l7_codegen

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.