From: Waldron, T. <wal...@KG...> - 2003-07-09 12:55:08
|
Hi, I'm trying to get information from the PID segment. I'm obviously doing som= ething wrong, but I'm not sure what. This is the code snippet I'm using. // Get some patient information from the PID segment PID pid =3D (PID)in.get("PID"); String pname =3D pid.getPatientName().toString(); //Write the patient name to a log file try { Log.getInstance().log("patient name: " + pname); } catch (LogException le) { System.err.println("Warning: can't write outbound message to log file"= ); }=20 =09 What shows in the log is: 9-Jul-2003 8:37:21 AM patient name: [Lca.uhn.hl7v= 2.model.v24.datatype.XPN;@143c8b3 This looks like type information and a pointer to an address. Am I referenc= ing this wrong? If so how should I be doing this? Thanks, Terry Waldron wal...@kg... Systems Development Kingston General Hospital (613)548-2364 x3828 |