Sponsored by Deepsite.site

HL7 Tools — Parser, Validator, FHIR R4 Converter

Created By
easysolutions9066 days ago
Parse, explain, validate, generate, diff, and convert HL7 v2 messages. Supports versions 2.3-2.8 with 600+ CARISTIX field definitions. Bidirectional HL7 v2 to FHIR R4 conversion. 9 tools.
Overview

HL7 Tools — MCP Server + REST API

HL7 v2.x parser, viewer, validator, test message generator, and FHIR R4 converter.

Features

  • Parse raw HL7 v2 pipe-delimited messages into structured JSON with named fields
  • Explain messages with human-readable field descriptions (CARISTIX-style)
  • Validate messages against segment/field requirements for 20+ message types
  • Generate realistic test messages for ADT, ORM, ORU, SIU, MDM, DFT, VXU
  • Diff two HL7 messages to find field-level differences
  • Convert HL7 v2 to FHIR R4 Bundles (10 resource mappings)
  • Convert FHIR R4 Bundles back to HL7 v2
  • Look up any segment or field definition across versions 2.3–2.8

Supported Segments (20 with full definitions)

MSH, EVN, PID, PD1, NK1, PV1, PV2, IN1, GT1, DG1, ORC, OBR, OBX, AL1, SCH, NTE, FT1, PR1, RXA, RXE

Quick Start

npm install
npm run dev       # HTTP mode on port 3200
npm start         # stdio mode (for MCP clients)

MCP Tools

ToolDescription
hl7_parseParse HL7 v2 message to structured JSON
hl7_explainHuman-readable explanation of every field
hl7_validateValidate message structure and required fields
hl7_generateGenerate sample messages with fake data
hl7_diffCompare two messages field by field
hl7_to_fhirConvert HL7 v2 to FHIR R4 Bundle
fhir_to_hl7Convert FHIR R4 Bundle to HL7 v2
hl7_segmentsList all segments and field counts
hl7_field_infoLook up a specific field definition

REST API

POST /parse       — Parse a message
POST /explain     — Explain a message
POST /validate    — Validate a message
POST /generate    — Generate a test message
POST /diff        — Diff two messages
POST /to-fhir     — Convert HL7 to FHIR
POST /to-hl7      — Convert FHIR to HL7
GET  /segments    — List segments (?version=2.5.1)
GET  /field       — Field info (?segment=PID&field=3)
GET  /health      — Health check
GET  /            — API info

Server Config

{
  "mcpServers": {
    "hl7": {
      "command": "npx",
      "args": [
        "-y",
        "@easysolutions906/hl7-tools"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
WindsurfThe new purpose-built IDE to harness magic
Serper MCP ServerA Serper MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.