Skip to content

Repository files navigation

HL7 Parser

A Windows desktop application for parsing, viewing, and analyzing HL7 (Health Level 7) messages. Built with WPF and .NET Framework 4.0.

Features

Message Editor

  • Open and save HL7 message files (.hl7)
  • Edit HL7 messages with a built-in text editor
  • Parse messages directly from the editor

Message Parser

  • Parses HL7 v2.x messages into a hierarchical tree view
  • Breaks down messages into segments, fields, and components
  • Displays field IDs, names, content, and descriptions
  • Supports HL7-defined separators and encoding characters

Data Source Browser

  • Browse HL7 segment and field definitions
  • Supports HL7 v2.3 and v2.5 data dictionaries
  • Search/filter fields by segment name or description

Network Sniffer

  • Capture live network traffic on a selected interface
  • Decode IP, TCP, UDP, ICMP, and DNS packets
  • Filter captured packets by protocol
  • Save packet captures for later analysis
  • Requires administrator privileges

Requirements

  • Windows OS
  • .NET Framework 4.0 (Client Profile)
  • Administrator privileges (for the Network Sniffer feature)

Building

Open HL7Parser.csproj in Visual Studio and build the solution. The project targets x86 platform.

Usage

  1. Editor Tab - Paste or open an HL7 message, then click the Parse button to analyze it.
  2. Parser Tab - View the parsed message as an expandable tree structure with field-level detail.
  3. Data Source Tab - Select an HL7 version and browse the segment/field dictionary. Use the search box to filter.
  4. Network Snoop Tab - Select a network interface, start capture, and view live TCP/UDP traffic (requires admin).

Project Structure

HL7Parser/
├── Controls/           # Custom WPF user controls (SnoopControl, XmlViewer)
├── Data/
│   ├── Dictionary/     # HL7 field definitions and lookup
│   └── HL7/            # HL7 message parsing (Message, Segment, Field, Component)
├── DataSources/        # HL7 v2.3 and v2.5 segment definition XML files
├── Extensions/         # IEnumerable extension methods
├── Helpers/            # RelayCommand, EnumHelper utilities
├── Images/             # Toolbar and UI icons
├── Network/            # Packet capture and protocol decoding
│   └── Decodes/        # Protocol decoders (IP, TCP, UDP, ICMP, DNS)
├── ViewModels/         # MVVM view models
├── MainWindow.xaml     # Main application window
└── HL7Parser.csproj    # Project file

License

All rights reserved.

About

Checkin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages