kputnam / stupidedi

Ruby API for parsing and generating ASC X12 EDI transactions
BSD 3-Clause "New" or "Revised" License
265 stars 137 forks source link

Unknown patient gender in 270 causes validation error #239

Closed hdaum closed 2 years ago

hdaum commented 3 years ago

I am getting a validation error when generating a 5010 270 for a patient with U in DMG03. I am using Stupidedi::Config.hipaa to configure my builder object.

It looks like the code should allow it but it's not.

kputnam commented 3 years ago

Hi @hdaum, sorry this was buried in my inbox. Without an example (runnable code or plaintext X12 file), I can't really say what's going on. There are a two different DMG segments in HS270 though, and this one does not allow "U". But you're correct the default list does allow "U" unless it's overridden like it is in the first link.

I don't have the HIPAA X12 documentation easily available right now, but it's possible I made a typo by omitting "U". However it's also possible that's what was documented in that X279A1 HS270.

If the standard doesn't allow "U", that means some payers could reject the file and someone would have to manually intervene. I do want to avoid those chances where possible. But my guess is by now, even if the standard does not allow "U", that it might be common practice to allow it anyway.

If you can confirm what the documentation says, I'd feel better making the change.

kputnam commented 2 years ago

Closing due to inactivity. If you still need help, you are welcome to re-open the issue.