x12 835 and 837 parser into JSON format (sqlite or mongodb) and export into any relational database with appropriate relationships
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Steve L. Nyemba de9c8bc2e3
documentation, code comment
5 years ago
edi bug fix with installer 5 years ago
LICENSE Initial commit 5 years ago
README.md documentation, code comment 5 years ago
setup.py bug fix with installer 5 years ago

README.md

About Parse-Edi

This parser is an Electronic Data Interchange (EDI) parser developed at Vanderbilt University Medical Center as such for now it will only parse 835 and 837 documents given a configuration.

This code is intended to process and parse healthcare x12 837 (claims) and x12 835 (remittances) into human readable JSON format. The claims/outpout can be forwarded to a NoSQL Data store like couchdb and mongodb

Installation

pip install git+https://hiplab.mc.vanderbilt.edu/git/steve/parse-edi.git

Credits

Usage

Commandline :

    python edi --config <path> --folder <path> --store <[mongo|disk|couch]> --<db|path]> <id|path>

    with :
        --scope     <claims|remits>
        --config    path of the x12 to be parsed i.e it could be 835, or 837
        --folder    location of the files (they must be decompressed)
        --store     data store could be disk, mongodb, couchdb
        --db|path    name of the folder to store the output or the database name

Embedded in Code :

Use parse-edi within your code base as a library

import edi.parser
import json
import os


ROOT = 'data'
CLAIMS_FOLDER = os.sep.join([ROOT,'837'])   #-- data/837    contains all 837 formatted files
CONFIG_FOLDER = os.sep.join([ROOT,'config'])#-- data/config contains 837.json or 835.json


files       = os.listdir(CLAIMS_FOLDER)
filename    = os.sep.join([CLAIM_FOLDER,files[0]]) #-- selecting the first file in the folder (it's an example)
conf        = json.loads(open( os.sep.join([CONFIG_FOLDER,'837.json']) ).read())
info        = edi.parser.get_content(file,conf) #-- array of objects claims/remits