keironstoddart / edi-835-parser

A simple EDI 835 file format parser.
MIT License
80 stars 40 forks source link

Issue with LX Handler #24

Open mhshaaban opened 1 year ago

mhshaaban commented 1 year ago

Trying to parse some reconstructed era files from a clearinghouse. I get this error: /Users/x/opt/anaconda3/lib/python3.9/site-packages/edi_835_parser/loops/service.py:109: UserWarning: Identifier: LX not handled in service loop. warn(message) Traceback (most recent call last): File "/Users/x/eraParseTest.py", line 53, in data = transaction_sets.to_dataframe() File "/Users/x/opt/anaconda3/lib/python3.9/site-packages/edi_835_parser/transaction_set/transaction_sets.py", line 25, in to_dataframe data = pd.concat([data, transaction_set.to_dataframe()]) File "/Usersx/opt/anaconda3/lib/python3.9/site-packages/edi_835_parser/transaction_set/transaction_set.py", line 53, in to_dataframe self.payer, File "/Users/x/opt/anaconda3/lib/python3.9/site-packages/edi_835_parser/transaction_set/transaction_set.py", line 36, in payer assert len(payer) == 1 AssertionError

I noticed that the payer/payee is listed multiple time in the era 835 file and not only in the beginning like in the usual 835 files. The payer is the same but variation of the payer's name or section. For Example: Healthcare Insurance Company, Healthcare Insurance Company Medicare Solutions, Healthcare Insurance Company Medicaid Solutions, etc. Or it just lists the payer/payee for each claim. Is there a solution for this problem?