🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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
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

hl7

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