From: Bryan T. <bp...@gm...> - 2006-01-10 21:39:30
|
Hi Wyatt, > 1) I noticed that I need to manually populate all the fields for a > segment. For example in the MSH segment, I need to manually set the > version ID even though I've created a version 2.1 ORU message. The same > holds true for message type. Is there a shortcut I'm missing? True, I guess the version and type could be populated automatically at construction, but they aren't. > 2) How do I set the patient name in the PID segment? If I call > pid.getPATIENTNAME().setValue("DOE^JOHN"), I get "DOE\S\JOHN" after > calling PipeParser.encode. It must be an older version? In the latest code, pid.getPATIENTNAME() should return a PN object ... you would do pid.getPATIENTNAME().getFamilyName().setValue("DOE"), and so on. Bryan |