From: Tripp, B. <Bry...@uh...> - 2003-10-20 22:16:53
|
Hi Keith, It should be this: value.setValue("\"\""); ... (i.e. a sting with two double-quotes in it). This differentiates it from an empty value which as you know has a different meaning in HL7. If that doesn't work please let me know. Bryan > -----Original Message----- > From: Ackley, Keith A [mailto:kei...@ed...] > Sent: October 20, 2003 2:35 PM > To: 'hl7...@li...' > Subject: [HAPI-devel] How to get null in the generated message? > > > Hi, > > I'm trying to send a null value, which should be transmitted > as two double > quote marks (""). I have tried calling setValue with null and > with "". It > does not appear to work for any type. For example, I have tried > > ca.uhn.hl7v2.model.v24.datatype.NM value = new > ca.uhn.hl7v2.model.v24.datatype.NM() > value.setValue(null); > > And > > ca.uhn.hl7v2.model.v24.datatype.NM value = new > ca.uhn.hl7v2.model.v24.datatype.NM() > value.setValue(""); > > Both approaches result in the value being omitted from the generated > message. How do I get the parser to produce ""? > > Thanks, > Keith > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance > to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > 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. |