trying to save acks/nacks in ensembe message archives. Is it a setting somewhere to turn on?

0 views
Skip to first unread message

cper...@phs.org

unread,
Aug 14, 2017, 3:54:38 PM8/14/17
to InterSystems: Ensemble in Healthcare
We have a message archive process which runs daily at 8am and it would sure be nice to store the acks/nacks  for the messages as well as the body(raw hl7 data). Our acks are only visible with message viewer for thirty days. Sometimes we get questions on older records.

Jeff Drumm

unread,
Aug 15, 2017, 8:09:27 AM8/15/17
to InterSystems: Ensemble in Healthcare
You're likely archiving your messages via a scheduled COS job, and selecting them by SourceConfigName and TargeteConfigName. The returned ACKs, although objects of class EnsLib.HL7.Message and stored in the same message store, don't have those properties so they're not going to show up.

You could modify the job so that for each message fetched, select from Ens.MessageHeader where the OriginalDocId is the ObjectId of the sent message; that should get you access to the ACK's ObjectId so you can open and fetch the ACK message.

You could also extend the HL7.Adapter.TCPOutboundAdapter's HL7Message() method to log the outbound message and its ACK to a file in realtime, rather than using a scheduled job.

Finally ... please check out https://community.intersystems.com. That's where everyone hangs out these days :)

Jeff Drumm
HICG, LLC

cper...@phs.org

unread,
Aug 15, 2017, 3:18:46 PM8/15/17
to InterSystems: Ensemble in Healthcare
Thanks Jeff for the suggestion. We do want to keep scheduled job and will look into your first suggestion.
Reply all
Reply to author
Forward
0 new messages