Sidebar

search segments and replace duplicates with different values

0 votes
32 views
asked Nov 10 by gwendoline-s-1248 (120 points)
With the segment below, I want to be able to scan the AL1 segments and see that is there are multiple AL1 segments, replace them with 'Misc Allergies'.

NK1|3||||||||||||NOT EMPLOYED||||||||||||||||||||3102326|Re
PV1|1|O|CARD-WAL^^^E|EL|||2894^SMITH^MARTIN^B^^^^^PROV^^^^PROV|||||||2|||||11210111441|M||||||||||||||||
PV2||||||||20210111||||101||||||||||N||||||||||N
AL1|1|En|^POLLEN|Me|RASH|20100604
AL1|1|Fo|^WHEAT|Me|RASH|20100604
AL1|1|Fo|^NUTS|Me|RASH|20100604
OBX|1|NM|HT^HEIGHT||162.6|cm||||||||20210111084100

1 Answer

0 votes
answered Nov 10 by michael-h-5027 (13,870 points)
...