This project has moved and is read-only. For the latest updates, please go here.

Loop 2000C PAT segment 5010 837P file

Feb 7, 2012 at 7:28 PM

We're generating 5010 837P files using the api and we're finding that the PAT segment in the 2000C Loop is including elements PAT02, 03 and 04 as empty, star-delimited text even when the values are not present.  This would be okay if we had values in any of PAT05/06, PAT 07/08 or PAT09 but if there aren't, we end up with PAT*01****~, which isn't allowed.  (Can't end a segment with trailing element separators before the segment separator.)  Do we need to make a change in the source code so that we get PAT*01~ in this case?  Here's what we're doing:

Dim pat2000C = hl2000C.AddSegment(New TypedSegmentPAT)

pat2000C.PAT01_IndividualRelationshipCode = "01" 

Thanks for any suggestions here.

Feb 7, 2012 at 10:22 PM

Thanks for the catch, I just checked in some changes in changeset 14269 to the Segment serialization to X12 that should fix this.

I will try to get it in a release by the end of the month.

Feb 9, 2012 at 12:45 AM

Fix worked great.  Thanks!  Hey, another (unrelated) question for you:  we keep getting ArgumentNullException errors when setting a value like NameSuffix to NULL.  We have to coalesce it to handle the error:  nm12310A.NM107_NameSuffix = if(OurNameSuffix, "")  instead of nm12310A.NM107_NameSuffix = OurNameSuffix.  Any insight here?