Skip to content

PipeHat v2.1.0 - multi-message files + MLLP replay

Choose a tag to compare

@iacsha iacsha released this 16 Jul 14:59
· 22 commits to master since this release

Multi-message files, and MLLP replay that frames per message.

Added

  • Multi-message file support. A buffer may hold many messages (a log or batch file), and each message is now parsed with its own MSH delimiters -- a !-separated message sitting after a |-separated one reads correctly. Previously every consumer found the first MSH and applied its delimiters to the whole buffer, silently mis-parsing the rest.
    • The tree groups by message (12/480 ADT^A01 [MSG012]); a single-message buffer keeps the flat tree it always had.
    • Envelope segments (FHS/BHS/BTS/FTS) sit outside any message.
    • Next / Previous Message (Ctrl+Alt+Shift+PgDn / PgUp) step between messages and report "Message 12 of 480".
  • Replay All Messages (MLLP) (Ctrl+Alt+Shift+Y) -- sends every message in the buffer as its own MLLP frame with its own ACK, reporting accepted / rejected / no-ACK / failed. Send Message frames the whole buffer as one message; a real receiver frames and ACKs per message, so this is the difference between an interface test and an echo. Point it at a Mirth channel and it is a regression harness.
    • Offers to refresh MSH-10 (control id) and MSH-7 (datetime) per message, and recommends it: receivers deduplicate on control id, so replaying captured messages with their original ids gets them accepted once and silently discarded on later runs -- a test that reports success while delivering nothing.

Fixed

  • Per-message delimiters across every consumer. HL7Lexer::parseMSH now has exactly one caller in the codebase (MessageIndex); the styler, tree, PHI scrub, conformance check, validator, view diff, caret analysis and RTF export all resolve delimiters through it. Eight independent derivations of one fact was the same shape as the C6 leak in 2.0.0.
    • The PHI scrub was the sharp end: wrong delimiters shift field indices, and a shifted index means the PHI map is consulted for the wrong field.
    • Validation was distinct -- it called parseMSH on every MSH with no break, so a multi-message file was validated end to end with the last message's delimiters. Each message is now validated independently.
  • Scrub coverage check independence. The anonymize-mode check derives its field separator directly from the MSH line (MSH-1 is the separator), owing nothing to the lexer or the message index. A safety net that shares a dependency with the thing it audits is not a safety net.

Known limitations

  • No TLS (MLLP/S). Messages still cross the network in cleartext.
  • Replay sends back to back; no rate limiting yet.
  • No extract-message-to-new-tab.
  • Enhanced-mode ACK (MSH-15/16) is not honored; the listener services one connection at a time.

Verification

Release DLL builds clean (MSVC, x64), no warnings; embeds 2.1.0. SegmentIDTest, MessageIndexTest and MessageRefreshTest all exit 0 (70+ assertions). Multi-message parsing, tree grouping, navigation and PHI scrub verified in Notepad++ against a 5-message file containing a !-delimited message (161 fields scrubbed, 0 skipped, 0 coverage misses). MLLP send/receive verified over loopback; still not verified against a third-party endpoint (e.g. Mirth Connect).

Install

Unzip into your Notepad++ plugins folder so the path is ...\Notepad++\plugins\PipeHat\PipeHat.dll, then restart. The folder and DLL must both be named PipeHat or the dockable panel will not register.

SHA-256 (PipeHat-v2.1.0-x64.zip): 7FB4637B8B6280829623BF5DC44B49041B9F7E9F5D62EC7866584E8E8CE83F1B