Each ORU can have multiple repetitions of OBX segments, because an order can 
have multiple tests etc associated with it, resulting in the multiple results, 
one OBX for each result. The way this works can be different between healthcare 
providers, but the OBR-4 should indicate the type of order involved. Note that 
the ORM and ORU both have the OBR segment in common. The OBR in the ORU 
(result) is used to tie back to the OBR in the ORM (order).

Erik

subhajit bhadury <[email protected]> wrote: What you have said thats 
true but which segment in ORM and ORU tells me that this ORM is for vital 
order, this ORM is for lab order, this ORM is for surgical order? If you have 
any example please send it to me. That will really help full to me.  Thanks for 
your support.
 
On Thu, Jan 8, 2009 at 6:00 PM, Erik Gfesser <[email protected]> wrote:
    All types of orders are in the ORM. Results are in the ORU. Physician 
information is in the MFN.

Erik

 
Sent from my BlackBerry® wireless device



---------------------------------
From:  "subhajit bhadury" 
Date: Thu, 8 Jan 2009 17:41:27 +0530
To: <[email protected]>
 Subject: Re: [HAPI-devel] question regarding HAPI

Hi,
   Can you please tell me what event or segment I will use to get all the 
information regarding surgical order like, surgery type, name of surgeon name, 
date and time and surgery note(result)?
 
On Sat, Jan 3, 2009 at 2:53 AM, Erik Gfesser <[email protected]> wrote:
 Subhajit,

While I am not sure what details are behind your comment that your program 
"just stopped on the line number 4 and not going to the next line", what seems 
to be clear is that an ADT A01 message event is assumed.
 
A previous reply to your message that seems to recommend checking to determine 
whether "theIn" is an instance of "ADT_A01", although well intentioned, is 
unfortunately not possible since there is no relationship between objects of 
class Message and objects of class ADT_A01 as the HAPI library is currently 
designed.
 
To determine whether the message is in fact an ADT_A01, you will need to do 
something like the following, unless you decide to modify the HAPI library 
source code:

/*****/
String messageType = null;
String messageEvent = null;
  MSH messageHeader = null;

Object obj = null;
try {
    obj =  ( MSH )message.get( "MSH" );
    messageHeader = ( MSH )obj;  //message.get( "MSH" );
} catch(ClassCastException e) {
     throw new HL7Exception(e);
}
messageType = messageHeader.getMessageType().getMessageType().getValue();
messageEvent = messageHeader.getMessageType().getTriggerEvent().getValue();
 /*****/

Make sure that messageType is "ADT" and messageEvent = "A01" before casting to 
ADT_A01.
 
Erik



subhajit bhadury <[email protected]> wrote:

 
 Hi,
  I am developing a HL7 client application that will just receive hl7 message 
getting from hl7 server. Problem is given below,

1 public Message processMessage(Message theIn) throws ApplicationException, 
HL7Exception {
    
2          encodedMessage = new  PipeParser().encode(theIn);
3            System.out.println(encodedMessage);

4            ADT_A01 objADT_01=(ADT_A01) theIn;

5          ACK retVal;
6          try {
                // This method takes in the MSH segment of an incoming message, 
and generates an
               // appropriate ACK
7              retVal = (ACK)DefaultApplication.makeACK(msh);
8          } catch (Exception e) {
  9              throw new HL7Exception(e);
10           }
  
11          return retVal;
12      }


Encoded message is showing fine but my program just stopped on the line number 
4 and not going to the next line. I just wanted to populate objADT_01 object 
and want to extract segment information. I can't understand why. Please help me.
   
Thanks & Regards,
subhajit bhadury.


 ------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
 [email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
 

  



  



 
 

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to