npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@easysolutions906/hl7-tools

v1.0.2

Published

HL7 v2.x parser, viewer, validator, generator, and FHIR R4 converter — MCP server + REST API

Readme

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

| Tool | Description | |------|-------------| | hl7_parse | Parse HL7 v2 message to structured JSON | | hl7_explain | Human-readable explanation of every field | | hl7_validate | Validate message structure and required fields | | hl7_generate | Generate sample messages with fake data | | hl7_diff | Compare two messages field by field | | hl7_to_fhir | Convert HL7 v2 to FHIR R4 Bundle | | fhir_to_hl7 | Convert FHIR R4 Bundle to HL7 v2 | | hl7_segments | List all segments and field counts | | hl7_field_info | Look 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