HL7, CL 5.2, TrxID
Say I have an ORM^O01. That has a sub-field delimiter (sfd) smack in the middle of the mix. The sfd is defined in MSH[2.0], and legally can be many characters.
If you set TrxID determination to HL7, you use a syntax in your route like “ORM_O01”. My assumption is that Cloverleaf is helpfully keeping me from cutting my fingers on that pesky sfd.
In developing my own TrxID procs, I’ve tried several methods to get the same effective output, but I’ve never been able to get there.
I’ve tried: (sfd is in $sfd)
regsub -all {$sfd} $trxId {_} trxId
(with escaping and quoting)
string map {$sfd _} $trxId
(with escaping and quoting)
Every time before, after failing miserably and considering the option of Hara-kiri
Can anybody give me a clue as to how this SHOULD be done?
Thanks!!!!