forked from keironstoddart/edi-835-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from affect-therapeutics/rpo/add-ts3-support
Adds PER support to the claim loop
- Loading branch information
Showing
11 changed files
with
250 additions
and
9 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
edi_835_parser/elements/contact_communication_number_qualifier.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from edi_835_parser.elements import Element | ||
|
||
contact_communication_number_qualifer = { | ||
'FX': 'fax', | ||
'TE': 'phone', | ||
'EM': 'email', | ||
'UR': 'url', | ||
'EX': 'ext', | ||
} | ||
|
||
|
||
class ContactCommunicationNumberQualifier(Element): | ||
def parser(self, value: str) -> str: | ||
return contact_communication_number_qualifer.get(value, value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
remit_key|file_name|edi_transaction_id_st02|payer_id|payer_name|payer_address_line1|payer_address_line2|payer_city|payer_state|payer_zip|payer_country|payer_contact_business|payer_contact_business_qualifier|payer_contact_business_name|payer_contact_technical|payer_contact_technical_qualifier|payer_contact_technical_name|payer_contact_web|payer_contact_web_qualifier|payer_contact_web_name|payer_id_add|created_at | ||
22|sample_835.txt|1002||WSFG - BENEFITStest|400 BROADWAY||CINCINNATI|OH|45201||5136291100|TE|WESTERN SOUTHERN BENEFITS|5136291100|TE|WESTERN SOUTHERN BENEFITS||||31048| | ||
37|sample_835.txt|1002||WSFG - BENEFITStest|400 BROADWAY||CINCINNATI|OH|45201||5136291100|TE|WESTERN SOUTHERN BENEFITS|5136291100|TE|WESTERN SOUTHERN BENEFITS||||31048| | ||
78|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|TE|WESTERN SOUTHERN BENEFITS|5136291100|TE|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|UR||31048| | ||
102|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|TE|WESTERN SOUTHERN BENEFITS|5136291100|TE|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|UR||31048| | ||
129|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|TE|WESTERN SOUTHERN BENEFITS|5136291100|TE|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|UR||31048| | ||
146|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|TE|WESTERN SOUTHERN BENEFITS|5136291100|TE|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|UR||31048| | ||
22|sample_835.txt|1002||WSFG - BENEFITStest|400 BROADWAY||CINCINNATI|OH|45201||5136291100|phone|WESTERN SOUTHERN BENEFITS|5136291100|phone|WESTERN SOUTHERN BENEFITS||||31048| | ||
37|sample_835.txt|1002||WSFG - BENEFITStest|400 BROADWAY||CINCINNATI|OH|45201||5136291100|phone|WESTERN SOUTHERN BENEFITS|5136291100|phone|WESTERN SOUTHERN BENEFITS||||31048| | ||
78|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|phone|WESTERN SOUTHERN BENEFITS|5136291100|phone|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|url||31048| | ||
102|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|phone|WESTERN SOUTHERN BENEFITS|5136291100|phone|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|url||31048| | ||
129|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|phone|WESTERN SOUTHERN BENEFITS|5136291100|phone|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|url||31048| | ||
146|sample_835.txt|1001||WSFG - BENEFITS|400 BROADWAY||CINCINNATI|OH|45201||5136291100|phone|WESTERN SOUTHERN BENEFITS|5136291100|phone|WESTERN SOUTHERN BENEFITS|FOR DISCOUNT QUESTIONS CALL ZELIS AT 1-888-266-3053. ALL OTHER CLAIM INQUIRIES CALL WESTERN SOUTHERN AT 513-629-1400. FOR DETAILED PAYMENT INFO, SEE THE EOP ON CHANGE HEALTHCARE WEBSITE.|url||31048| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from edi_835_parser.segments.payer_contact import PayerContact | ||
|
||
|
||
def test_payer_contact_initialization(): | ||
segment = '0:PER*CX*XX*FX*XXXXX*FX*XXXXXX*EX*XXX' | ||
payer_contact = PayerContact(segment) | ||
|
||
assert payer_contact.index == '0' | ||
assert payer_contact.identifier == 'PER' | ||
assert payer_contact.code == 'payers_claim_office' | ||
assert payer_contact.name == 'XX' | ||
|
||
assert payer_contact.communication_no_or_url_qualifier == 'fax' | ||
assert payer_contact.communication_no_or_url == 'XXXXX' | ||
|
||
assert payer_contact.communication_no_or_url_qualifier_2 == 'fax' | ||
assert payer_contact.communication_no_or_url_2 == 'XXXXXX' | ||
|
||
assert payer_contact.communication_no_or_url_qualifier_3 == 'ext' | ||
assert payer_contact.communication_no_or_url_3 == 'XXX' | ||
|
||
|
||
def test_payer_contact_phone_number(): | ||
segment = '0:PER*CX*WESTERN SOUTHERN BENEFITS*TE*5136291100' | ||
payer_contact = PayerContact(segment) | ||
|
||
assert payer_contact.phone_number == '5136291100' | ||
|
||
|
||
def test_payer_contact_phone_number_with_ext(): | ||
segment = '0:PER*CX*WESTERN SOUTHERN BENEFITS*TE*5136291100*EX*123*FX*5136291109' | ||
payer_contact = PayerContact(segment) | ||
|
||
assert payer_contact.phone_number == '5136291100x123' | ||
|
||
|
||
def test_payer_contact_fax(): | ||
segment = '0:PER*CX*WESTERN SOUTHERN BENEFITS*TE*5136291100*FX*5136291109*EX*123' | ||
payer_contact = PayerContact(segment) | ||
|
||
assert payer_contact.fax_number == '5136291109x123' | ||
|
||
|
||
def test_payer_contact_email(): | ||
segment = '0:PER*BL*Nevada Medicaid*TE*8776383472*EM*[email protected]' | ||
payer_contact = PayerContact(segment) | ||
|
||
assert payer_contact.phone_number == '8776383472' | ||
assert payer_contact.email == '[email protected]' | ||
|
||
|
||
def test_payer_contact_url(): | ||
segment = '0:PER*BL*PROVIDER SERVICES*TE*8003439000*UR*www.emedny.org' | ||
payer_contact = PayerContact(segment) | ||
|
||
assert payer_contact.url == 'www.emedny.org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
ST*835*0001~ | ||
BPR*U*00*C*NON*CTX*01*XXXXXXXX*DA*XXX*XXXXXXXXXX*XXXXXXXXX*01*XXX*DA*XXXX*20241019~ | ||
TRN*1*XXXX*XXXXXXXXXX*XXX~ | ||
CUR*PR*XXX~ | ||
REF*EV*XXXXX~ | ||
REF*F2*X~ | ||
DTM*405*20241019~ | ||
N1*PR*XXXXX*XV*XXX~ | ||
N3*XXXX*XXXX~ | ||
N4*XX*XX*XXX*XXX~ | ||
REF*2U*XXX~ | ||
PER*CX*XXXXXX*FX*XXX*TE*XXXXXX*EX*XXXXX~ | ||
PER*BL*XXXX*TE*XXXXX*TE*XX*EM*XXX~ | ||
PER*IC**UR*XXX~ | ||
N1*PE*XXXXXX*XV*XXX~ | ||
N3*XXXX*XXXX~ | ||
N4*XX*XX*XXXXXX*XXX~ | ||
REF*D3*XXX~ | ||
RDM*EM*XXXX*XXXX~ | ||
LX*000~ | ||
TS3*XXXXX*X*20241019*00000000*00000000000000********000000**000000000000**0000000000000*00000000000**0000000*00*00000*0000*000000000000~ | ||
TS2*0000000000*00000000000000*0000000000000*0000000000000*0000000000*0*00000000000000*0*000000*0000000000*0000000000*0000000000000*0000000000000*00*0000000000*00000000*00*0*00000000000~ | ||
CLP*X*2*000000000*0000000000*00000000*MA*XXXXXX*X*X**XX*000000000000000*0000000~ | ||
CAS*PR*XXX*00000000*000000000*XX*00000000*000000000000*XXX*00000000000*0000*XX*000000000*000000000000*XX*000000000000*0000000000000*XX*0000000*00000~ | ||
NM1*74*2*XX*X*XXXXX**XXXX*C*XXXXXXX~ | ||
NM1*PR*2*XXXX*****NI*XX~ | ||
NM1*TT*2*XX*****PI*XXXXXX~ | ||
NM1*IL*X*XXXXX*XXXXXX****XX*XXXXXXX~ | ||
NM1*GB*2*XXXXX*XX*XXX**XXXXXX*MI*XXX~ | ||
NM1*QC*1*X*XXX*XXXX**XX*MI*XXXX*XX~ | ||
NM1*82*1*XXXXX*XXXX*X**XXXX*MC*XX~ | ||
MIA*0000*00*0*00*XXXX*0000*0000000*000*000000*00*0000*00*0000000000000*00000000000000*000000000000000*0000000*0*000000000*000000*XXXXX*XXXXXX*XXX*X*0~ | ||
MOA*000*0000000000000*XXXXX*XXX*XXX*XXXXXX*XX*000000000*00~ | ||
REF*EA*X~ | ||
DTM*050*20241019~ | ||
DTM*036*20241019~ | ||
DTM*233*20241019~ | ||
PER*CX*XXXXX*TE*XXXX*FX*XXX*EX*XXXXXX~ | ||
AMT*ZN*0000~ | ||
QTY*CA*000000~ | ||
SVC*NU>XXXX>XX>XX>XX>XX*000000000000000*0*X*0000*HC>XXXX>XX>XX>XX>XX>XXXXX*00000000~ | ||
DTM*151*20241019~ | ||
CAS*OA*X*000000000000000*000000000000000*XXXXX*00*000000000*XXXXX*000000000000*0000*XXX*0000000*0*XXX*00000*0000000000*XXX*0000*00000000000~ | ||
REF*0K*XXXXX~ | ||
REF*6R*XXXXX~ | ||
REF*SY*XXX~ | ||
REF*APC*XXXXXX~ | ||
AMT*KH*0000000~ | ||
QTY*ZM*0~ | ||
LQ*HE*XXXX~ | ||
PLB*XXXX*20241019*GO>XXXX*0000000*XX>XXXXXX*00000*XX>XXX*00000000000000*XX>X*0000000000000*XX>XXXXXX*000000*XX>XX*0000000~ | ||
SE*52*0001~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters