Regarding: "I am trying to
extract the product/service id from the 837I service lines. I am able
to get the code from LX*1, but none of the other service lines."
Since
the UDF is limited in its filtering to Segment, Qualifier and Loop
Value, the UDF will only pick up the first service line.
Regarding: "I am able to get some of the service line data using IAMTxx, IUNITSxx, ... However IPROCxx are blank."
The value in the PROC position is a subvalue of the element and will display several subelements if using a UDF.
Instead
of using the UDF for service line data, we recommend using the standard
fields available for 837i service lines in the c1837i.xml map:
<FIELD>IREVCODE1</FIELD>
<FIELD>IPROCTYPE1</FIELD>
<FIELD>IPROC1</FIELD>
<FIELD>IMODA1</FIELD>
<FIELD>IMODB1</FIELD>
<FIELD>IMODC1</FIELD>
<FIELD>IDOS1</FIELD>
<FIELD>IAMT1</FIELD>
<FIELD>IUNITS1</FIELD>
<FIELD>IPRICEAMT1</FIELD>
<FIELD>IPRICEREF1</FIELD>
<FIELD>IADJUDID1</FIELD>
<FIELD>IADJUDAMT1</FIELD>
<FIELD>IADJUDDATE1</FIELD>
<FIELD>NDCUNITS1</FIELD>
<FIELD>NDCCODE1</FIELD>
<FIELD>NDCUNITPRICE1</FIELD>