keironstoddart / edi-835-parser

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

SVC segment 1 #4

Closed gizquier2 closed 3 years ago

gizquier2 commented 3 years ago

In the parser you are cutting just the middle part of the SVC segment 1

` class ServiceCode(Element):

def parser(self, value: str) -> str:
    value = split_element(value)
    _, code, *_ = value
    return code `

image

Probably a good way to do this is sparse this in 3 columns, 1 is the the first part HC ( for CPT HCPC) , part 2 the code itself, part3 the Modifier if HC.

or in a different way, have 3 columns ( HCPC-CPT, -> include here the code if part 1 is HC, PROC_CODE -> here the code ( part 2) if NU or RB, MODIFIER -> here part 3 if HC in part 1)

keironstoddart commented 3 years ago

This update is now live. Thank you for your continued support!