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

ng-hl7-parser

v1.0.4

Published

An Angular library for parsing, viewing, and interacting with HL7 (Health Level Seven) messages. This library provides components for displaying HL7 messages in a structured, easy-to-read format, including a raw parser view, a hierarchical tree view, and

Readme

Angular HL7 Parser

An Angular library for parsing, viewing, and interacting with HL7 (Health Level Seven) messages. This library provides components for displaying HL7 messages in a structured, easy-to-read format, including a raw parser view, a hierarchical tree view, and a detailed description view.

Features

  • HL7 Message Parsing: Parses raw HL7 v2.x messages into a structured TypeScript object.
  • Interactive Parser View: Displays the raw message with color-coded segments, fields, components, and sub-components.
  • Hierarchical Tree View: Shows the message structure in an expandable tree.
  • Bi-directional Selection: Clicking an element in the parser view selects it in the tree, and vice-versa.
  • Detailed Descriptions: Displays definitions for selected segments and fields based on the HL7 standard.
  • Customizable: The library is built with Angular and can be easily integrated into any Angular application.

Installation

To install the library, run the following command:

npm install ng-hl7-parser

Usage

  1. Import the components: In your Angular module, import the necessary components from the library.

    import { Hl7ParserComponent, Hl7TreeComponent, Hl7DescriptionComponent } from 'ng-hl7-parser';
    
    @NgModule({
      declarations: [
        // ... your components
      ],
      imports: [
        // ... your modules
        Hl7ParserComponent,
        Hl7TreeComponent,
        Hl7DescriptionComponent
      ],
      // ...
    })
    export class YourModule { }
  2. Use the components in your template:

    <div class="container">
      <lib-hl7-parser [messageStr]="yourHl7MessageString"></lib-hl7-parser>
      <lib-hl7-tree [message]="parsedMessageObject"></lib-hl7-tree>
      <lib-hl7-description [message]="parsedMessageObject"></lib-hl7-description>
    </div>

    You will need to parse the raw HL7 message string into a Hl7Message object to pass to the tree and description components. You can use the Hl7ParserService for this.

Development

This library was generated with Angular CLI.

Build

Run ng build hl7-parser to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test hl7-parser to execute the unit tests.