diff --git a/healthcareio/docs/remits-835-relational-structure.xmi b/healthcareio/docs/remits-835-relational-structure.xmi index f95acb8..5ec1a7c 100644 --- a/healthcareio/docs/remits-835-relational-structure.xmi +++ b/healthcareio/docs/remits-835-relational-structure.xmi @@ -1,67 +1,67 @@ - + umbrello uml modeller http://umbrello.kde.org 1.6.17 UnicodeUTF8 - + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -69,112 +69,112 @@ - + - + - + - + - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + - - - - - - - - + + + + + + + + @@ -186,7 +186,7 @@ - + @@ -264,7 +264,7 @@ - + @@ -277,7 +277,7 @@ - + diff --git a/healthcareio/healthcare-io.py b/healthcareio/healthcare-io.py index 2540a9f..61d4d8d 100644 --- a/healthcareio/healthcare-io.py +++ b/healthcareio/healthcare-io.py @@ -387,9 +387,9 @@ if __name__ == '__main__' : # # Let's run the export function ..., This will push files into a data-store of choice Redshift, PostgreSQL, MySQL ... # - _store = json.loads( (open(path) ).read()) + _store = {"type":"sql.SQLWriter","args":json.loads( (open(path) ).read())} - pipes = export.Factory.instance(type=TYPE,write_store={"type":"sql.SQLWriter","args":{"provider":"postgresql","db":"sample",}}) #"inspect":0,"cast":0}}) + pipes = export.Factory.instance(type=TYPE,write_store=_store) #"inspect":0,"cast":0}}) # pipes[0].run() for thread in pipes: thread.start() diff --git a/healthcareio/x12/__init__.py b/healthcareio/x12/__init__.py index 972a137..4009c14 100644 --- a/healthcareio/x12/__init__.py +++ b/healthcareio/x12/__init__.py @@ -173,12 +173,14 @@ class Formatters : def pos(self,value): """ formatting place of service information within a segment (REF) + @TODO: In order to accomodate the other elements they need to be specified in the configuration + Otherwise it causes problems on export """ xchar = '>' if '>' in value else ':' x = value.split(xchar) x = {"code":x[0],"indicator":x[1],"frequency":x[2]} if len(x) == 3 else {"code":x[0],"indicator":None,"frequency":None} - return x + return x['code'] class Parser (Process): def __init__(self,path): """