Originally posted by Femina Jaffer
Hello Clovertechers...
I am in need of your assitance again.. This one has been quite a challenge for me.
I have an incoming ORM message with NTE's and multiple notes. I need to append a value to each NTE segment in the first part of the NTE 3 field based on a condition - for example if TEMP is found more then once do the following.
See Example below incoming and outgoing message.
Incoming Message looks like this..
NTE|1||TEMP: Room Temperature
NTE|2||SOURCE: Hand
NTE|3||NOTES: First
NTE|4||SPECIMEN SITE: Thumb
NTE|5||TEMP: Room Temperature
NTE|6||SOURCE: Hand
NTE|7||NOTES: Second
NTE|8||SPECIMEN SITE: dorsal hand
NTE|9||TEMP: Room Temperature
NTE|10||SOURCE: Hand
NTE|11||NOTES: Third
NTE|12||SPECIMEN SITE: middle hand
Should look like this:
NTE|1||
TEMP1: Room Temperature
NTE|2||
SOURCE1: Hand
NTE|3||
NOTES1: First
NTE|4||
SPECIMEN SITE1: Thumb
NTE|5||
TEMP2: Room Temperature
NTE|6||
SOURCE2: Hand
NTE|7||
NOTES2: Second
NTE|8||
SPECIMEN SITE2: dorsal hand
NTE|9||
TEMP3: Room Temperature
NTE|10||
SOURCE3: Hand
NTE|11||
NOTES3: Third
NTE|12||
SPECIMEN SITE3: middle hand
Thank you,
Femina