A simple EDI 835 file format parser.
Project description
EDI 835 Parser
edi-835-parser: a lightweight EDI 835 file parser
This package provides a simple-to-use Python interface to EDI 835 Health Care Claim Payment and Remittance Advice files.
This package is made publicly available by Senscio Systems, the company behind the Ibis Program, an industry leading healthcare initiative that helps people take control of their chronic condition management.
Please consider taking two minutes to give feedback.
Installation
Binary installers for the latest released version are at the Python Package Index. Please note that you need to run Python 3.9 or higher to install the edi-835-parser.
pip install edi-835-parser
Usage
To parse an EDI 835 file simply execute the parse
function.
from edi_835_parser import parse
path = '~/Desktop/my_edi_file.txt'
transaction_set = parse(path)
The parse
function also works on a directory path.
from edi_835_parser import parse
path = '~/Desktop/my_directory_of_edi_files'
transaction_sets = parse(path)
In both cases, parse
returns an instance of the TransactionSets
class.
This is the class you manipulate depending on your needs.
For example, say you want to work with the transaction sets data as a pd.DataFrame
.
from edi_835_parser import parse
path = '~/Desktop/my_directory_of_edi_files'
transaction_sets = parse(path)
data = transaction_sets.to_dataframe()
And then save that pd.DataFrame
as a .csv
file.
data.to_csv('~/Desktop/my_edi_file.csv')
The complete set of TransactionSets
functionality can be found by inspecting the TransactionSets
class found at edi_parser/transaction_set/transaction_sets.py
Tests
Example EDI 835 files can be found in tests/test_edi_835/files
. To run the tests use pytest
.
python -m pytest
Contributing to edi-835-parser
All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.
Not all EDI 835 elements and segments are currently parsable and not all EDI codes are mapped. If you are interested in contributing to edi-835-parser, please feel free to fork the project and/or reach out by emailing edi835parser@gmail.com.
Acknowledgements
A special thank you to Github user gizquier2
for his interest in this project and continued feedback.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for edi_835_parser_brewer-1.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2edd755447c8ad46fe029520ef4c757169bc849cfe81a77b8eea8ea0e80985 |
|
MD5 | c315e5c607b6b69894451edec980b9ca |
|
BLAKE2b-256 | 05351ebabddc804ab6c2930fab96817756d6f6d61faf0c58a4b463978fe53bd7 |
Hashes for edi_835_parser_brewer-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc60d5d0c9b7078448ee57c2bd104b68487039c51aa576988d01d2e5125975d6 |
|
MD5 | 29f12b0fa9537aaef7e20b0456babea1 |
|
BLAKE2b-256 | 11d52ebbf800ba0d7e84820ba6522bffcf724b2ad81517a2bbd147411ffe3f31 |