documentation

This commit is contained in:
Steve Nyemba 2019-11-07 01:28:56 -06:00
parent 6854ebafe6
commit f98d2ee336
1 changed files with 11 additions and 5 deletions

View File

@ -37,8 +37,14 @@ Use parse-edi within your code base as a library
import edi.parser
import json
import os
ROOT = '/mnt/data/837'
files = os.listdir(ROOT)
file = os.sep.join([ROOT,files[0]])
conf = json.loads(open('/mnt/data/config/837.json').read())
info = edi.parser.get_content(file,conf)
ROOT = 'data'
CLAIMS_FOLDER = os.sep.join([ROOT,'837'])
CONFIG_FOLDER = os.sep.join([ROOT,'config'])
files = os.listdir(CLAIMS_FOLDER)
filename = os.sep.join([ROOT,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