Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcomellas/ehl7
HL7 parser with segment code generators in Erlang
https://github.com/jcomellas/ehl7
Last synced: about 2 months ago
JSON representation
HL7 parser with segment code generators in Erlang
- Host: GitHub
- URL: https://github.com/jcomellas/ehl7
- Owner: jcomellas
- License: apache-2.0
- Created: 2013-12-27T22:52:13.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-27T22:52:54.000Z (about 11 years ago)
- Last Synced: 2024-05-09T21:51:39.574Z (8 months ago)
- Language: Erlang
- Size: 1.24 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/rebar/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:
```
make deps
make
```
And you can check that everything is working properly by running:
```
make 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:
```
./ehl7_codegen
```