Forum Replies Created
-
AuthorReplies
-
I too was wondering what happened. Glad to see we’re back!
Best wishes in your retirement and thank you for all of your contributions to the community over the years.
March 1, 2023 at 9:43 am in reply to: how to remove unwanted pipes in the middle of a segment? #120357What version of HL7 is it using? HL7 v2.3 only has 3 fields defined in the NTE segment so you could, with a small risk, assume that any pipe character after the first 3 is part of the comment and use ‘string map’ within a tclproc to convert them to the appropriate escape sequence. HL7 v2.5 has a fourth field, but that could be accounted for as well if you know the valid comment types.
Depending on what you’re looking for, it may be available in the built-in env() array.
For example:
global env
puts $env(HOSTNAME)- This reply was modified 1 year, 10 months ago by James Nelson.
Sorry, I didn’t get a notification that anyone had replied to my post. I never did get it resolved, but I also didn’t open a support case for it. I’d also be interested to know whether it is fixed in a later version of Cloverleaf.
I think Charlie posted a program called ‘hcidbsmat’ that allows one to do searches, including regex, in encrypted SMAT databases. If you can’t find it, I can repost. It’s kinda old (2015), but it should still work.
This is a simple one that we use.
Attachments:
You must be logged in to view attached files.No reboot needed. Just restart the engine for the site you changed.
November 19, 2021 at 12:46 pm in reply to: Problem is on outbound I lose my trailing spaces… #119351If the message is an HL7 message, the reason the spaces are being removed is because, according to the HL7 encoding rules, trailing spaces are not significant so they are removed. This is the same for empty fields at the end of a segment.
If you want to add them after the Xlate, put your tcl proc in the ‘Post Procs’ stack in the Route Details or in the ‘TPS Outbound Data’ stack of the outbound thread.
November 10, 2021 at 11:58 am in reply to: Need help with Regsub trying to change ‘~*’ to a ‘~’. #119306‘string map’ also works well.
set OrigString {abcdefg~*hijklmnop}
set NewVar [string map$OrigString]
May 12, 2021 at 1:12 pm in reply to: best way to setup an inbound thread that takes flat file of DFT HL7 messages? #118839Yes, you can have multiple records in your input file.
Format the file with one record per line with a newline at the end.
Use the FileSet-local protocol and in the Style field, select ‘nl’ for your inbound thread.
This is how I’ve done it in the past. It may not be THE leanest way, but it’s pretty lean and works.
<pre>set DOB CCYYMMDD ;# Set DOB to the date of birth from the message
if {[clock scan “today -18 years”] < [clock scan $DOB -format “%Y%m%d”] {
# put your actions here
}</pre>
Stay safe and stay well, Charlie!
You can use the SQLite command line utility to dump the smatdb databases and then create an unencrypted database and reimport the data.
Is the route a static route or are you routing by TrxID? Also, do you happen to have any TCL code that would filter any of the messages?
Regards – Jim
-
AuthorReplies