Repository navigation
Releases
v2.5.1
Full Changelog: v2.5.0...v2.5.1
v2.5.0
v2.4.0
Endpoint profiles
A profile is now one interface: its conformance rules and the MLLP address PipeHat sends to. Switching profiles repoints the plug-in in one step instead of editing three global settings by hand.
A profile describes itself — application, engine, message type, environment — and the picker builds its name from those, so Meditech DFT > IRIS (QA) sits next to its DEV and Local siblings in promotion order. Profiles can inherit a shared rule set, so a rule is edited once instead of once per environment.
Existing .profile files load unchanged. The old global MLLP settings migrate into the active profile on first run.
Two switches deliberately do not follow a profile: enabling MLLP at all, and saving received messages to disk. Both would otherwise be turned on by a menu click. Non-loopback binds need permission in two places — the plug-in and the profile — so a profile file that arrives by email cannot expose a receiver on its own.
New: Switch Endpoint Profile (Ctrl+Alt+Shift+B), Plug-in Settings (Ctrl+Alt+Shift+I).
Structure below the field in the message tree
Requested by a reader after the last post. The tree stopped at the field, which is one level above the question people open it to answer.
Repeating fields now expand to [1], [2], [3]. Components are named from the field's data type, so PID-5 opens into Family Name and Given Name and PID-11 into Street Address and City. Subcomponents show as .4.2. Empty components keep their position, because an interface engineer needs to see that ROCHESTER is component 3 and not component 2.
Clicking any node selects exactly that piece in the editor, and the arrow keys walk the tree with the selection following.
Settings split in two
Profile Settings holds everything that travels with a profile. Plug-in Settings holds the switches that never do. Creating a profile walks through what each field means, and profiles can now be deleted — with a warning naming anything that inherits from them.
Fixes
- The tree built each field by joining tokens with spaces, discarding the separators, so
DOE^JANE^Qwas displayed asDOE JANE Q. - Clicking the last field of a segment navigated to an unrelated line.
Install
Unzip and copy the PipeHat folder into the Notepad++ plugins\ directory, so that PipeHat.dll ends up at plugins\PipeHat\PipeHat.dll, then restart. The filename must stay PipeHat.dll or the dockable panel will not register.
Unsigned. Windows may warn on first load.
PipeHat-v2.4.0-x64.zip SHA-256: 017076039420ef14f1d94a03de71fd95223126e198a18ceaaa90aa2724d00a5a
PipeHat.dll SHA-256: 3e4746234be6da20bd4516d41593526f7f20846fb6da38d1ed74ca76548a7f01
v2.3.0
PipeHat v2.2.0 - external transform providers
Run the active HL7 message through any transform engine you can put behind a command line, and see the result diffed beside the original.
External transform providers
Transform with... (Ctrl+Alt+Shift+X) pipes the current message to a configured command and puts what comes back in the other view, then runs Compare Views so every changed field is boxed in both panes. Transform Again (Ctrl+Alt+Shift+A) repeats the last provider with no picker.
The contract is deliberately small — stdin in, stdout out, exit code decides — so anything works: an InterSystems IRIS wrapper, a Mirth script, a Saxon XSLT command, a Python one-liner, a bun script. PipeHat does not care what is on the other end.
Drop-in install. Unzip a folder into plugins\config\providers\ and restart. No config file to edit, no absolute paths: ${DIR} expands to the package's own folder, so a package works wherever it lands. Uninstall is deleting the folder. Hand-declared providers in PipeHat.providers still work and win a name collision.
A reference provider is at hl7-bench (transform HL7 in TypeScript) and an IRIS DTL one at iris-lab.
Fixed
Transform results could be silently discarded. Every async result — transform, MLLP send/replay, update check — is posted to a hidden window created once at startup. If that creation failed, the window handle stayed null and each worker threw its outcome away. The symptom was the worst kind available: the keypress did nothing. No output, no error, and a log holding "invoked" with no matching outcome. All async paths now retry the creation instead of trusting one shot, creation failure logs the Windows error codes, and a transform refuses up front rather than running with nowhere to put the result.
Transforming a non-HL7 tab now says so, instead of returning the engine's own parser error, which read as a PipeHat defect rather than "that is not an HL7 message". Ctrl+Alt+Shift+E still forces HL7 mode for a message detection legitimately misses, and you can proceed anyway.
Also in this release
SChannel TLS for the MLLP transport — client, server, and mutual TLS.
Install
Unzip and copy the PipeHat folder into your Notepad++ plugins directory, so you end up with plugins\PipeHat\PipeHat.dll. Restart Notepad++.
This build links the CRT statically. It has no dependency on MSVCP140.dll / VCRUNTIME140.dll, so it loads on a locked-down machine with no Visual C++ redistributable installed — where a dynamically linked plugin fails to load with no error dialog at all.
Notes
Everything fixed here was found by running the plugin against real Notepad++ installs on two machines, one of them a locked-down work PC. Three of the four defects were invisible from the development box. The unit tests passed the whole time.
PipeHat v2.1.0 - multi-message files + MLLP replay
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".
- The tree groups by message (
- 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::parseMSHnow 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
parseMSHon 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
PipeHat v2.0.0 - MLLP send/receive + PHI leak fix
The MLLP release. PipeHat goes from an HL7 viewer to a live interface tester -- and, with it, opens a socket for the first time. It also fixes a silent PHI leak that affected every prior version.
⚠️ Read this if you have scrubbed PHI with an earlier build
Segment IDs containing a digit were not recognized, so the PHI scrubber skipped those segments entirely -- and still reported the scrub as clean.
PV1, NK1, GT1, IN1, IN2, PD1, DG1, PR1 and PV2 were affected: next-of-kin names/addresses/phones, guarantor name/DOB/SSN, insurance IDs, and attending/referring/admitting doctors all survived the scrub. That is 9 of the scrubber's 24 mapped segments. PID is all-alpha and scrubbed correctly, which is why the leak presented as a working scrubber.
The fail-closed coverage check did not catch it because it derived segment IDs from the same parser call it was meant to audit, and skipped on the same empty result -- a safety net sharing a dependency with the thing it audits is not a safety net.
If you shared scrubbed output from an earlier build, treat it as not de-identified and re-scrub it with 2.0.0. Full write-up: docs/05-CODE-REVIEW.md (C6).
Added
- MLLP send/receive over TCP -- HL7's Minimal Lower Layer Protocol framing. Off by default; opens no sockets until you enable it.
- Send Message (MLLP) (
Ctrl+Alt+Shift+M) -- sends the active message on a background thread and shows the returned ACK/NAK (MSA-1 + control ID). - Toggle MLLP Listener (
Ctrl+Alt+Shift+L) -- MLLP server; inbound messages are auto-acknowledged (AA) and opened in a colored tab. - Loopback-only bind unless you opt in and supply a bind address; cleartext-PHI confirmation on first use each session. MLLP is cleartext -- there is no TLS (MLLP/S) yet.
- Saving inbound messages to disk is opt-in and off by default. When enabled, files land in
%LOCALAPPDATA%\PipeHat\received\-- deliberately Local, not the roaming config folder, so cleartext PHI is not carried off-machine by roaming profiles or backup agents. Clear Received Messages purges them.
- Send Message (MLLP) (
- Settings GUI (
Ctrl+Alt+Shift+P) -- conformance rule editor plus the MLLP section, with named per-interface profiles andSegmentDB-backed dropdowns. - Compare Views (
Ctrl+Alt+Shift+D) -- diffs Notepad++'s two split views, boxing differing fields in both panes. - Copy Field Path (
Ctrl+Alt+Shift+K), Copy as Rich Text (Ctrl+Alt+Shift+W), current-field highlight, PHI-aware event log, and user-initiated Check for Updates. tests/SegmentIDTest.cpp-- standalone regression harness for segment-ID parsing and PHI scrub coverage.
Fixed
- Silent PHI leak on segment IDs containing digits (above). Explicit
A-Z/0-9checks replace locale-dependentiswalpha/iswalnum; the coverage check now derives its own segment ID and never calls into the lexer. - False activation on prose -- any three uppercase characters parsed as a segment (
THE QUICK BROWN FOXwas segmentTHE). - Syntax colors were lost on tab switch. Root cause:
SCI_SETLEXER(SCLEX_CONTAINER)was removed in Scintilla 5 (Notepad++ 8.4+) and is a silent no-op, and Notepad++ re-applies the buffer's theme on activation, resetting style definitions. PipeHat now health-checks styling onSCN_PAINTEDand re-applies when wiped.
Changed
- All hotkeys now include Shift (
Ctrl+Alt+Shift+...) -- plainCtrl+Alt+<letter>collides with Notepad++ defaults and gets grabbed by other software. - PHI fakes are deterministic (seeded from a hash of the original), so linkage is preserved across a message.
- Styling is incremental -- only the edited line range is re-styled.
Known limitations
- No TLS (MLLP/S). Messages cross the network in cleartext.
- Enhanced-mode ACK (MSH-15/16) is not honored -- always application ACK.
- The listener services one connection at a time.
- Tree is field-level; components/subcomponents are not expanded.
- Segment and PHI tables are hand-curated, not generated from HAPI/nHapi metadata.
Verification
Release DLL builds clean (MSVC, x64) and embeds 2.0.0. tests/SegmentIDTest.cpp passes, and fails 27 assertions against the pre-fix lexer -- confirming it actually catches C6. MLLP protocol 20/20 and transport 12/12 standalone tests pass; send and receive verified over loopback in Notepad++. Not yet verified against a third-party MLLP 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 won't register.
SHA-256 (PipeHat-v2.0.0-x64.zip): 1337C684758241F729DB35FDD1D6A84DF48477C418F6999158F71F426F8C9602