Giter Site home page Giter Site logo

rethinkhealth / hl7v2 Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.33 MB

Open source HL7v2 compatible with Node.js

Home Page: https://rethinkhealth.io/hl7v2/docs

License: MIT License

JavaScript 0.94% TypeScript 99.06%
healthcare hl7v2 hl7v2-message hl7v2-transformation javascript typescript

hl7v2's Introduction

HL7v2 client

NPM Version NPM License NPM Downloads

@rethinkhealth/HL7v2 is a library for parsing, validating, and mapping HL7v2 messages. It is built on top of the HL7v2 standard.

Features

  • Typescript-compatible.
  • Built on top of the HL7v2 standard.
  • Supports all HL7v2 versions >= 2.5.1.
  • Provides robust schema validation using Json Schema.
  • Provides a simple API for parsing, validating, and mapping HL7v2 messages.

What is HL7v2

HL7V2 is a standard for exchanging health information between systems. It is a text-based format that is human readable and machine parsable. HL7v2 is a standard that is used by many healthcare systems and is the standard for exchanging health information between systems.

For more detailed information about how to use @rethinkhealth/hl7v2, please refer to our documentation.

We also provide a playground where you can try out @rethinkhealth/hl7v2 and see it in action. Visit our playground to start experimenting.

Getting Started

To get started, install the package using npm, yarn, or pnpm:

npm install @rethinkhealth/hl7v2

Usage

Parsing

To parse an HL7v2 message, use the toJson function:

import { Message } from '@rethinkhealth/hl7v2';

const message = new Message('MSH|^~\&|...');

console.log(message.toJson());

Validation

To validate an HL7v2 message, use the validate function:

import { Message } from '@rethinkhealth/hl7v2';

const message = new Message('MSH|^~\&|...');

console.log(message.validate());

Contributing

We welcome contributions! Please see our Contributing Guide for more details.

Code of Conduct

To ensure a welcoming and positive environment, we have a Code of Conduct that all contributors and participants are expected to adhere to.

COPYRIGHT AND LICENSE

Copyright 2023 Rethink Health, SUARL. All rights reserved. This program is licensed to you under the terms of the MIT License. This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for details.

HL7 Trademark

HL7® and HEALTH LEVEL SEVEN® are trademarks owned by Health Level Seven International. HL7® and HEALTH LEVEL SEVEN® are registered with the United States Patent and Trademark Office.

hl7v2's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar meleksomai avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.