I’m using Cloverleaf 6.1.1 and having successfully managed to create an alert to trigger on when there are new entries on the ErrorDB.
I have written some tcl commands, that are executed upon the alert triggering and update an external database indicating there are new entries on the ErrorDB.
However, I also want to update the external database with the HL7 message ID (i.e. the value in MSH-10), of the message(s) in the ErrorDB.
Has anybody written a TCL that dumps the ErrorDB, parses the HL7 message(s), extracts the MSH-10 value(s), or something similar along those lines?
Ideally if possible, I would also like to have the reason why the message went to the ErrorDB i.e. the message state, but that is not essential.
Any advice would be appreciated.
Thanks,
Erik