Forum Replies Created
-
AuthorReplies
-
I sent a copy to ‘”rozzette.maduro@christianacare.org”‘
Tried to send to: peggy.schwartz@valeywisehealth.org
Got this response: <peggy.schwartz@valeywisehealth.org>: Host or domain name not found. Name service error for name=valeywisehealth.org type=A: Host not found
Let me know if you got it
February 11, 2026 at 4:57 am in reply to: How to escape the ampersand (&) character in an Xlate #122289A method I should have mentioned which I used many times in the past. Simply modify the encoding characters in the MSH. Change the ampersand to an exclamation point or something. I have even used unprintable characters for encoding.
February 10, 2026 at 5:00 am in reply to: How to escape the ampersand (&) character in an Xlate #122286Did you check to see if the recipient supports escape characters? If they do then they should interpret the \T\ as an ampersand. If not, then one of the suggested work arounds.
Its amazing that after all this time Cloverleaf does not recognize HL7 escape characters.
See this web page: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=EHL72_escape_sequences
Glad to se the database tool has not exceeded its use by date. 🙂
October 8, 2025 at 7:40 pm in reply to: Trying to replace an entire message with msgset, still only sending old message #122194My bad. The command should be: set dispList
Sorry about that
October 8, 2025 at 6:26 am in reply to: Trying to replace an entire message with msgset, still only sending old message #122190Can’t see all of the code. Is there a chance that dispList was set with the original message?
Instead of lappend dispList “CONTINUE $mh” try set dispList “CONTINUE $mh”
If you are sure that once the stored values change that that is the end of duplicates, you could simply update the database values to preclude cleanup
Just issue the exec call and do nothing after. If you return the engine might try to deliver another message.
What do you mean by the hook? I am not saying to interrogate the Error Database via a proc. Once the process and the thread is shutdown, I am sure there will be some manual intervention before restarting. At that time you can manually clear any database issues.
I have always created a shell script which I placed in the site scripts directory so it is the path and then put the hicienginestop command in there to run in the background.
When you exec this from the engine you must make sure the process does not receive any more messages since the stop command may take a while. You can do this by just not returning from the proc. You will have to take care of messages in the database afterwards.
What you really seem to want is the second iteration of the PID.3 field, not the second value.
Is it always this way? If so, simply copy the second iteration of PID.3 to PID.3.
If not you need some method to ascertain if there is a second iteration. What do you do then?April 3, 2025 at 7:03 am in reply to: How to convert data in xml into array or list using tcl script #121984I agree with Jason. More complex data structures are best handled with dictionary. Arrays are nice if not too complex.
I made a mistake. The msgcopy should be inside the loop. msgcopy will give you a new message handle for each message while maintaining the original metadata.
To make it better, if he original message was large, after getting the data from the original message handle you could do something “msgset $mh “. That way you are not copying the data with each msgcopy, only the metadata. Note the original message handle is killed since it contains nothing needed after the loop.
I hope this makes sense.
Read each file into a list. When the list is complete:
set dispList {“KILL $mh”}
set nmh msgcopy [msgcopy $mh]foreach fn $files {
msgset $nmh $fn
lappend dispList {“CONTINUE $nmh”}
}Return $displist
April 2, 2025 at 6:45 am in reply to: How to convert data in xml into array or list using tcl script #121976Sorry I misunderstood the problem.
For the above you need to have three array elements: OrderNo, AccNo and Code. Then make each a list . As you parse a value, lassign it to the proper array element as needed.
Other than this I would need to see your proc.
April 1, 2025 at 7:03 am in reply to: How to convert data in xml into array or list using tcl script #121973Take a look at tclXML package available here: https://tclxml.sourceforge.net/tclxml.html
It is for rudimentary parsing. If you need more look for he Tcl DOM package.
If simple XML and you have a priori knowledge of the layout it can be done quite nicely with regular expressions.
For some reason, regex scares the hell out of some but it is very powerful if you learn to use it.
-
AuthorReplies