Re: [HAPI-devel] Question about encoding messages to hl7 format

2011-11-03 Thread Jens Villadsen
Hi Thothathri If you have a look at the e.g. 2.3.1 standard (), you will see in section "Table 0354 - Message structure", that there is a relation between the trigger event and the class type. This somewhat explains that you cannot expect to find a specific class for each trigger event simply beca

Re: [HAPI-devel] Question about encoding messages to hl7 format

2011-10-31 Thread Thothathri Srinivasan
Hi Jens, Thanks for the link. We've managed to encode messages in hl7 format. I just had one question though : Since OpenMRS presently uses ADT A28 messages as a part of their HL7 output message format, I wanted to know this : Since I can't seem to find A28 in the hapi v2.5, are A28 messages simil

Re: [HAPI-devel] Question about encoding messages to hl7 format

2011-10-30 Thread Jens Villadsen
Have looked at any of the following pages: - http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/ExampleParseMessages.html - http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html - http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/PopulateOBX

Re: [HAPI-devel] Question about encoding messages to hl7 format

2011-10-30 Thread Thothathri Srinivasan
I want a *HL7 ADT^A05 *message from say a PID object, which has Patient ID, Patient Name, Date of Birth, Patient Address, etc. Now, to convert this into an ADT^A05 message, should I just do a .encode() ? And also, how would I merge say MSH, PID, and other segments to make them into a *HL7 ADT^A05*

Re: [HAPI-devel] Question about encoding messages to hl7 format

2011-10-30 Thread Jens Villadsen
In order to help you, you gotta be a little more specific about "*convert messages into HL7 ADT^A05 messages*". What messages are you initially referring to? I can give you an example if you specify a specific field in a segment. On 30 October 2011 20:15, Thothathri Srinivasan wrote: > Hi, > > I