浏览代码

documentation

Steve Nyemba 5 年之前
父节点
当前提交
f98d2ee336
共有 1 个文件被更改,包括 11 次插入5 次删除
  1. 11 5
      README.md

+ 11 - 5
README.md

@@ -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