Skip to content

PipeHat v2.2.0 - external transform providers

Choose a tag to compare

@iacsha iacsha released this 07 Aug 16:05
· 17 commits to master since this release

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.