Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hl7conv2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hl7conv2

Converts hl7 and json formats in both ways

  • 0.1.2
  • PyPI
  • Socket score

Maintainers
1

About

This is a python library written in Rust.

Scope

  • convert hl7 medical format to json
  • convert json to hl7 medical format (TODO)

How to install

pip install hl7conv2

Examples

Load hl7 from file and convert to json

from hl7conv2 import Hl7Json

hl7_obj = Hl7Json.from_file("src/hl7_example.txt")
hl7_in_json_format = hl7_obj.hl7_json
print(hl7_in_json_format)

Load hl7 from string and convert to json

from hl7conv2 import Hl7Json

hl7_string = """hl7 data in tripple brackets"""

hl7_obj = Hl7Json(hl7_string)
hl7_in_json_format = hl7_obj.hl7_json
print(hl7_in_json_format)

Access string hl7 data

from hl7conv2 import Hl7Json

hl7_obj = Hl7Json.from_file("src/hl7_example.txt")
print(hl7_obj.hl7_string)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc