Anyone that has used a business process to parse out an hl7 message be willing to share their code? There are no examples of this any of the guides I have looked through. I am trying to teach myself ensemble.
Thx,
Gary Atkinson MS, BS MT (ASCP)
Integration Programmer
Information Technology Department
Baltimore Washington Medical Center
University of Maryland Medical System
BWMC Office:410-787-6777
Cell:443-883-5785
This email may contain protected health information about an identifable patient. State and federal law protect the confidentiality of this information. If you are not the intended receipient, you are prohibited from using, disclosing, reproducing, or distributing this information. You should immediately notify the sender by telephone or email, and delete this document.
From: Gary <fail...@googlemail.com>Hi Gary,
To: "InterSystems: Ensemble in Healthcare" <Ensemble-in...@googlegroups.com>
Sent: Thu, May 10, 2012 10:12:41 EDT
Subject: [InterSystems-EnsHlth] Re: using business process to parse hl7 message
I'm not sure exactly what you need but if it's any help we do
something like this:
For the BPL set the Request type to be EnsLib.HL7.Message
Then we use code activities to get some info from the message and
store these in the context, i.e.
set context.MsgType = request.Name
set context.HospitalNumber =
request.GetValueAt("PID:PatientIDInternalID(1).ID")
etc.
Further on down the process we map the HL7 message to messages of our
own type i.e. for telephone numbers etc. and then use the created
message and do something with that within the code of the BPL (in our
case we create instances of classes we have defined using the .%New()
populate the values and .%Save()
Does that help?
Cheers,
Gary
On May 10, 1:13 pm, "Atkinson, Gary" wrote:
> Anyone that has used a business process to parse out an hl7 message be
> willing to share their code? There are no examples of this any of the
> guides I have looked through. I am trying to teach myself ensemble.
>
> Thx,
>
> Gary Atkinson MS, BS MT (ASCP)
> Integration Programmer
> Information Technology Department
> Baltimore Washington Medical Center
> University of Maryland Medical System
> BWMC Office:410-787-6777
> Cell:443-883-5785
> gatkin...@bwmc.umms.org
> This email may contain protected health information about an identifable
> patient. State and federal law protect the confidentiality of this
> information. If you are not the intended receipient, you are prohibited
> from using, disclosing, reproducing, or distributing this information.
> You should immediately notify the sender by telephone or email, and
> delete this document.
--
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
From: Gary <fail...@googlemail.com>
To: "InterSystems: Ensemble in Healthcare" <Ensemble-in...@googlegroups.com>
Sent: Thu, May 10, 2012 10:26:49 EDT
Subject: [InterSystems-EnsHlth] Re: using business process to parse hl7 message
There are probably various ways to do it, I know the
EnsLib.HL7.Message object has methods like getSegmentByPath and the
EnsLib.HL7.Segment object has methods like GetValueAt. I have never
had a real need to use these though so couldn't really advise either
way.
I guess your need would depend on what you are trying to do within
your Business Process.
> On May 10, 1:13 pm, "Atkinson, Gary" wrote:
> > Anyone that has used a business process to parse out an hl7 message be
> > willing to share their code? There are no examples of this any of the
> > guides I have looked through. I am trying to teach myself ensemble.
>
> > Thx,
>
> > Gary Atkinson MS, BS MT (ASCP)
> > Integration Programmer
> > Information Technology Department
> > Baltimore Washington Medical Center
> > University of Maryland Medical System
> > BWMC Office:410-787-6777
> > Cell:443-883-5785
> > gatkin...@bwmc.umms.org
From: Dale du Preez <dale.d...@intersystems.com>Hi Gary,
To: ensemble-in...@googlegroups.com
Sent: Thu, May 10, 2012 10:49:06 EDT
Subject: Re: [InterSystems-EnsHlth] Re: using business process to parse hl7 message
I think it may be best to start with your overall goal here. The word "parse" could mean a few different things here, depending on the exact message data you are trying to process. In general, Ensemble normally does an initial parse of incoming HL7 messages in a Business Service, which is primarily focused on persisting each segment to disk and mapping the set of received segments to a schema map to simplify access to the raw segment data. So in your case, does your use of the term "parse" mean "How do I parse a file or stream containing HL7 data?", or "How do I get information from an HL7 message object in a BP?".
Once we can narrow down what you are looking for, I am sure we can get you some more detailed information.
Thanks,
Dale
On 5/10/2012 10:26 AM, Gary wrote:
> There are probably various ways to do it, I know the
> EnsLib.HL7.Message object has methods like getSegmentByPath and the
> EnsLib.HL7.Segment object has methods like GetValueAt. I have never
> had a real need to use these though so couldn't really advise either
> way.
>
> I guess your need would depend on what you are trying to do within
> your Business Process.
>
Yes this is good start. I need to get use to using object oriented cache and learning how the classes work in ensemble.
Thanks,
Gary