I am trying to generate an outbound 277CA EDI file using a WTX map and we are stuck trying to get the HL loop count to continue correctly.
The file is ordered into multiple loops for billing providers & patients. The problem we have is that when the billing provider changes the index for the HL segments needs to continue, but knowledge of the previous index is lost as it is set in a lower level functional map.
So for instance, billing provider A starts with this HL:
The 3 is calculated the first time around by adding 2 to the index of the first provider loop.
Subsequent patient loops do a similar calculation to continue the index within that same provider loop. For instance:
The problem we're running into is when the provider loop ends and a new one begins we have no way of retaining the last used index. Does anyone know of a way to pass a value back from a functional map? We can carry them forward into lower level maps fine, but we don't know how to carry them back up. Alternatively, is there a way to count the number of patients in the previous provider loop? We've tried various methods to achieve this including using LAST, passing a count from the functional map above the provider loop & trying to self-reference the HL within the element none of which have worked. Any help would be much appreciated.
I am unfortunately unable to attach my entire map, but I have attached screenshots of the relevant functional maps. The functional map f_MakeReceiver calls f_MakeProvider. Hopefully these help.
Pinned topic How to carry on an index when it is set in a different functional map?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-30T21:14:31Z at 2013-01-30T21:14:31Z by csalac
csalac 270004FJJN5 Posts
Re: How to carry on an index when it is set in a different functional map?2013-01-30T21:14:31ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK