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
NTE|2||SOURCE1
NTE|3||NOTES1:
NTE|4||SPECIMEN SITE1
NTE|5||TEMP2
NTE|6||SOURCE2
NTE|7||NOTES2
NTE|8||SPECIMEN SITE2
NTE|9||TEMP3
NTE|10||SOURCE3
NTE|11||NOTES3
NTE|12||SPECIMEN SITE3
Thank you,
Femina