From: Wyatt T. <wt...@ra...> - 2006-01-10 21:54:02
|
Hi Bryan, Thanks for the quick response. > > >>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. > I'm currently using v0.4.3. The PN object returned is of type ca.uhn.hl7v2.model.v21.datatype.PN, but it doesn't seem to have a getFamilyName method. Is the getFamilyName method new in 0.5? Is 0.5 beta safe to use in a production environment? -Wyatt |