I modified existing xlate in place and I used a PATHCOPY to null TXA-22 out. Then I proceeded to do a single COPY with “hcaprov” hardcoded in and I used a COPY statement to copy MSH-7 (TIME STAMP) to the last component in TXA-22. (FYI- BULKCOPY IS USED by whoever implemented this in the past)
This works out pretty well for every message EXCEPT when there are 2 physicians noted in the TXA 22 i.e. physician PLUS resident
Below is an example from a message that errored out. I basically need to removed the “~” and anything after it. Should I use TCL fragment or write a TCL proc and to extract the field component, manipulate it, and rebuild it the back? I am looking for a simple solution.
hcaprov^^^^^^^^^^^^^^200712141502~r.WILKE^Williams^Kenneth^D^^^MD~^^^^^^^^^^^^^^200712141422
Thanks.