Skip to content
deckyardPublic

About

HL7 v2 messages (ER7): parse, read and build with terser paths, escapes, character sets and acknowledgements; MLLP client, listener and server

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

@deckyard/hl7

test Documentation release

HL7™ version 2 for Jennifer programs: parse, read, change and build ADT, ORU, ORM, SIU and any other message in the pipe-delimited encoding, with terser-style paths (PID-5-1, OBX(2)-5), escapes, character sets from MSH-18 and acknowledgements; and send, receive and serve them over MLLP. Strict: input that breaks HL7's encoding is an error, and an unchanged message encodes back byte for byte.

Documentation

Install

jvc add @deckyard/hl7

This vendors the deck to vendor/<scope>/hl7/. Without jvc, unpack the src/ subtree of a release archive (<scope>-hl7-<version>.tar.gz) there.

Usage

use io;

import "@deckyard/hl7/" as hl7;

def m as hl7.Message init hl7.parse($text);
io.printf("%s, %s\n", hl7.get($m, "PID-5-1"), hl7.get($m, "PID-5-2"));
for (def obx in hl7.segmentsOf($m, "OBX")) {
    io.printf("%s = %s\n", hl7.component($obx, 3, 1, 2), hl7.field($obx, 5));
}

Requirements

Jennifer 0.28.0 or newer and the default jennifer binary: MLLP needs net, which the stock jennifer-tiny lacks.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/hl7_test.j         # the tests, with a scripted MLLP peer
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Trademarks

HL7™ and FHIR™ are trademarks of Health Level Seven International. Other product and company names may be trademarks of their respective owners. They are used only to identify the standards this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by Health Level Seven International.

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

About

HL7 v2 messages (ER7): parse, read and build with terser paths, escapes, character sets and acknowledgements; MLLP client, listener and server

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors