#parser #hl7 #health #medical #pipehat

app hl7-parser-example

This is an example of how to run and use the hl7-parser crate by Kenton Hamaluik <kenton@hamaluik.ca>. The hl7-parser crate parses the structure of HL7v2 messages, but does not validate the correctness of the messages. This example version 0.1.0 is experimental work in progress, and is not ready for use in production, nor any real world medical context, nor with any real patient data. Use at your own risk.

1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 11, 2025

#512 in Parser implementations

Apache-2.0

12KB
93 lines

HL7 parser example

Health Level Seven (HL7) parser example of software engineering using https://crates.io/crates/hl7-parser.

We welcome constructive advice and help.

For more information contact Joel Parker Henderson (joel.henderson@wales.nhs.uk).

Example code in test functions:

  • Query an HL7 message.

  • Locate the cursor within an HL7 message.

  • Decode an encoded string into an HL7 message.

  • Parse an HL7 timestamp.

  • Build an HL7 message.

Dependencies

~6.5MB
~107K SLoC