Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RokRage HL7 ToolkitNew to Visual Studio Code? Get it now.
RokRage HL7 Toolkit

RokRage HL7 Toolkit

RokRage

|
11 installs
| (0) | Free
Inspect and edit HL7 v2 messages with structured field breakdown, syntax colouring, anonymisation, and HTTP sending.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RokRage HL7 Toolkit

A local-first HL7 v2 message viewer and editor for VS Code and VSCodium, with structured field inspection and safe document editing.

RokRage HL7 Toolkit message viewer and field breakdown

HL7 Viewer

The Viewer includes a one-click Text Editor action modelled on Markdown-PDF-Creator. It switches the current custom editor to a clean, full-height HL7 source editor while retaining a persistent toolbar with Return to HL7 Viewer. Source edits stay synchronised with the same VS Code text document, including dirty state, Undo, and Save. The editor-title actions and Shift+Cmd+V on macOS or Shift+Ctrl+V elsewhere remain available for explicitly reopening the document with VSCodium's native editor.

The HL7 Types tab lists 379 fixed HL7 v2 trigger events with searchable message and event pairs, such as ADT^A28 and ORU^R01. Search by message code, full pair, event, or purpose. It includes the legacy ORU^R03 variant documented in HL7 v2.1. The event catalog follows HL7 Terminology Table 0003; availability depends on the HL7 version.

HL7 message viewer

Opening an .hl7 file uses an editable custom editor containing the full HL7 Parser Syntax interface. Changes made in either the CodeMirror input or structured breakdown update the VS Code text document, including normal dirty-state, Undo, and Save handling.

Files can contain multiple messages. HL7 Input retains the complete file. The message selector shows each message's type, control ID, and timestamp. Previous and Next change the selected message. Moving the input cursor into a message also selects it.

Clicking an input line number selects its message. Other messages dim slightly while remaining editable.

Plain-text headings remain in HL7 Input but do not appear as segments or produce parsing warnings. Structured edits preserve these headings.

The ! button opens the message-issues modal when parsing detects a problem. The modal lists each issue and its source line. Close the modal with Close or Escape.

The Viewer and Segment Breakdown show only the selected message. Structured edits and PID anonymisation affect that message only. Other messages, batch wrappers, and unchanged line endings remain intact. Malformed sections show warnings and remain editable in HL7 Input. Valid messages remain available for structured edits.

Each message uses its own delimiters and declared version. Field labels use the bundled HL7 2.3 or 2.4 catalog. Other versions show a catalog warning. HTTP Send sends the complete HL7 Input, including all messages and batch wrappers.

  • Local CodeMirror syntax colouring, word wrap, font controls, cursor-to-field highlighting, and hover details
  • HL7 2.3/2.4 metadata selection, field descriptions, unsupported-field warnings, and path-aware search
  • Editable field, component, and subcomponent breakdown. Existing repeats are collapsible with Remove repeat in each header; Add repeat is in the field actions menu where the selected HL7 version permits it.
  • Raw Value is hidden by default. Use Show raw values to toggle the column, or Edit raw value in a field menu to edit a whole field. The column preference is saved locally.
  • Select a segment instance in Breakdown to open a full-width, colourised report tab with copy and font-size controls
  • Bundled and user-saved samples
  • Configurable PID anonymisation with restore-original support
  • HTTP POST sender with content type, timeout, response, and error reporting
  • Resizable/focusable panes, responsive tabs, themes, display settings, saved state, and contextual help

Use Reopen Editor With… if you want to switch between the toolkit viewer and VS Code's normal text editor.

Supported field paths

  • Field: PID-8
  • Component: PID-3.1
  • Subcomponent: PID-3.4.1

PID.3.1 input is accepted and normalised to PID-3.1.

Privacy and limits

Message rendering and editing are local. Clinical data leaves the editor only when you explicitly use the HTTP sender. The viewer supports delimiter-led HL7 v2 ER7 content. The bundled field metadata currently targets commonly used HL7 2.3 and 2.4 structures; unknown fields still display their raw values.

Acknowledgements

The message viewer reuses and adapts field metadata and interaction ideas from the local HL7 Parser Syntax project, which is MIT licensed.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft