Create a cache table HL7 message field

32 views
Skip to first unread message

sue

unread,
Jul 17, 2015, 9:36:14 AM7/17/15
to Ensemble-in...@googlegroups.com
Hi,
 
I am trying to create a cache table with a number of fields,
 
Property HospitalNumber As %String;

Property VisitID As %String;

Property Discharge As %String;

Property OrderNumber As %String [ Required ];

Property HL7OrderMessage As EnsLib.HL7.Message;
 
The class builds in studio and I can store values in the table but the HL7OrderMessage field has the value 166 when I was expecting a proper HL7 messahe MSH segment PID segment etc.
 
Any ideas how I can create this field to store the message. 
 
I need to pick up the message at a later stage and send it on elsewhere after processing.
 
Thanks
Sue 

Dom

unread,
Jul 17, 2015, 9:55:52 AM7/17/15
to Ensemble-in...@googlegroups.com
looks like you are storing the reference object id not the raw content of the message. It will point to the object stored in the EnsLib.HL7.Message

If you want to store the string value of the message then use the RawContent property of the HL7 message object.

sue

unread,
Jul 17, 2015, 10:53:56 AM7/17/15
to Ensemble-in...@googlegroups.com
 Hi Dom,
 
I can store the string content - is that the only way to do it and if so can I the feed the string back into an HL7 message?
Sue

andy...@gmail.com

unread,
Jul 17, 2015, 3:28:45 PM7/17/15
to Ensemble-in...@googlegroups.com
Sue,

No it's not the only way. If the 166 is an ObjectId of an HL7 message, you can open it up later. I.e.

Set HL7 = ##Class(EnsLib.HL7.Message).OpenId(xx) 

This makes the HL7 variable a new object containing the original HL7 message.

This does however mean that you cannot see the contents of the message within the cache table with your naked eye or run SQL Queries against it

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sue

unread,
Jul 21, 2015, 11:00:58 AM7/21/15
to Ensemble-in...@googlegroups.com
Hi Dom,
 
I don't need the message in the table just the way to reference it when retrieve the data.
 
This worked fine.
 
Thanks for the help.
 
Regards
Sue 
Reply all
Reply to author
Forward
0 new messages