I have a transcription system that sends MDM message types, but does not include any of the carbon copy doctors in the message except at the end of the body of the report, which is contained in OBX 5. Because report lengths vary, these CC’s are never in the same place, so I’ve not been able to extract the CC’s from the message.
In certain cases, I need to search the body for a specific provider’s name, and if found, copy certain information to another field.
I’m thinking a TCL proc would probably be the best way to accomplish this, but as I’m just now learning TCL, have no idea what commands I’d use to search the OBX segment.
Any ideas?