Topic
  • 3 replies
  • Latest Post - ‏2013-05-30T20:17:45Z by RPotteti
SystemAdmin
SystemAdmin
6184 Posts

Pinned topic How to Map first occurance of element

‏2013-03-14T00:38:48Z |
Hi All,

I am learning WTX and have a requirement to map POA indicator for secondary diagnosis code.
The secondary diagnosis code is getting mapped first occurrence from HI segment. Now i have to map corresponding POA indicator to output field.

Can any one please help me how to read only first occurrence element in n number of assurances in single segment.

My data is like this

1)HI*BF:V6284:::::::Y*BF:29570:::::::Y*BF:30593:::::::W*BF:7242:::::::W*BF:33829:::::::W*BF:V600*BF:V1581*BF:496:::::::W*BF:4690::::::W*BF:2724:::::::W*BF:3051:::::::W*BF:56409:::::::W~
2)HI*BF:27541:::::::W*BF:30000:::::::W*BF:29590:::::::W*BF:462:::::::W*BF:7295:::::::W*BF:78052:::::::W*BF:V066~

i have to map the POA indicator for the diagnosis code V6284 only (which is first occurrence).
Can any one please explain me how to do it?

Thanks,
Sudheer.
Updated on 2013-03-17T10:59:01Z at 2013-03-17T10:59:01Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6184 Posts

    Re: How to Map first occurance of element

    ‏2013-03-14T10:02:10Z  
    Have you tried indexing your data ?

    Something like HISegment[1]:POA should get you the POA field of first ocurence of HISegment.
  • SystemAdmin
    SystemAdmin
    6184 Posts

    Re: How to Map first occurance of element

    ‏2013-03-17T10:59:01Z  
    Have you tried indexing your data ?

    Something like HISegment[1]:POA should get you the POA field of first ocurence of HISegment.
    Thanks Laurent for you respond.
    There is no index created for HI segment.

    But i tried to map using different scenarios. Can you plz help me how to debug ?

    The following logic is mapping second row HI Segment POA indicator.

    =IF(CdListQual'rCd Element:HealthCareCdInfo XComposite[1]:HI Segment:HIPAA_Claim_Loop="BF", YesNoCd Element:HealthCareCdInfo XComposite[1]:HI Segment:HIPAA_Claim_Loop).

    Thanks in advance.

    Sudheer.
  • RPotteti
    RPotteti
    10 Posts

    Re: How to Map first occurance of element

    ‏2013-05-30T20:17:45Z  

    Try using Lookup function. It will take the first Occurrence and it should ignore the rest.