Before:
PV1|||||||||1234^DOOLITTLE^DR^^^^^PID~1234567891^DOOLITTLE^DR^^^^^NPI
After:
PV1|||||||||1234^DOOLITTLE^DR^^^^^PID^^^1234567891
My approach is to iterate through PV1-9. If I see an “NPI” id type, then I’m subtracting my counter by one and inserting the npi number in f1-1.
In order to accomplish this, I must define 2 variables; however, I’m having quite a time doing this. What am I doing wrong?