From: Tripp, B. <Bry...@uh...> - 2003-06-05 20:36:08
|
Hi Alex, There are basically two options ... use: PID pid = (PID) msg.get("PID"); ... or go for specific fields with a Terser (ca.uhn.hl7v2.util.Terser). Does that do it or do you need something else? Bryan -----Original Message----- From: Alex Harvey [mailto:al...@9p...] Sent: June 5, 2003 4:21 PM To: Hapi Subject: [HAPI-devel] Abstract messages Is there an abstract means of dealing with messages and segments? For instance if I know I am dealing with A type messages and I want to extract a PID segment regardless of the concrete message type. Is there a way to do this in HAPI? I apologize if this has been asked before. Thanks, -Alex This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |