Hi!

Unfortunately I have a problem with parsing HL7 Messages.

Message:
MSH|^~\&|SAP-ISH|K346|SUBSYSTEM|SUBSYSTEM|20071130112437||ADT^A08^ADT_A01|34041458|P|2.3.1
EVN|A08|20071130112437
PID|||0021092224^9^M11|2007289001|Walkes^Otto Norbert^Prof. Dr. 
med.|Walkes|19440101|M|||Gruberstraße 
12^^Wien^^1010^AT||||D|||||||||||AT|||00000000000000
NK1|1|Walkes||^^^^^AT
PV1||S|P-DER2^DER2Z01^^P-DER|A||||||A|||||||||2007289001^1^M11||000003|||||||||||||||||||||||20071130104813||||||00001
AL1|1||ALLDEL

The "Message processMessage(Message in)" function catches all incoming ADT 
Messages, but I don't know what type of message it is exactly.
Right now I get the type from incomingADTmessage.getName(), which in this case 
is an A01 (message structure MSH-9-2). Then I have to either get the MSH or EVN 
Segment to know if it is an A01 or an A08. I know, that the message structure 
is the same and therefore irrelevant for HAPI.

Is there a possibility to retrieve the trigger event directly from a Message 
object?

Thanks a lot!

Robert 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to