hl7kit 0.2.0

Dependency-free HL7 v2.x parser and builder with byte spans for every field, repetition, component and subcomponent
Documentation
  • Coverage
  • 100%
    103 out of 103 items documented2 out of 32 items with examples
  • Size
  • Source code size: 88.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.7 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1s Average build duration of successful builds.
  • all releases: 1s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • holg/hl7v2
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • holg

hl7kit

crates.io docs.rs CI license

Dependency-free HL7 v2.x parser and builder with byte spans for every node. See the workspace README for an overview and the crate documentation (cargo doc -p hl7kit --open) for the API.

let msg = hl7kit::Message::parse(text)?;
let patient = msg.get("PID-3.1");
let span = msg.get_span("PID-3.1");   // where it is in `msg.raw()`

// Imaging-order identifiers, ORM^O01 (ZDS) and OMI^O23 (IPC) alike.
let order = hl7kit::order::Order::extract(&msg);
order.study_uid;                       // IPC-3.1 first, ZDS-1.1 second
order.study_uid_source;                // Some(StudyUidSource::Ipc3 | Zds1)
order.source_path(hl7kit::order::OrderField::Accession); // "OBR-18" or "IPC-1.1"
order.warnings;                        // ConflictingStudyUid when IPC segments disagree

OrderField::paths() lists the candidate paths per field in precedence order; path() is deprecated since 0.2.0.