From: Tripp, B. <Bry...@uh...> - 2003-07-18 20:40:00
|
Hi Keith, You're the first one to point out that it doesn't work. I hadn't thought of it -- my only use of Terser has been in the core control-related classes, which don't use Varies. I'll treat this as a feature request for the final HAPI 0.4 release (late August). In the mean time I hope it is feasible for you to use the longer syntax. Please let me know if this is not so. Bryan > -----Original Message----- > From: Ackley, Keith A [mailto:kei...@ed...] > Sent: July 18, 2003 11:51 AM > To: 'hl7...@li...' > Subject: [HAPI-devel] How to set the type for a Varies using Terser? > > > Hi, > > I'm trying to use Terser to build an MFN_M01 message > containing a coded > entity in MFE-4. The following shows the desired HL7 for the > MFE segment: > > MFE^MAD^^20030718091426.053-0600^USA~UNITED STATES~VA-MFS-B > > I can get the following using Terser > > MFE^MAD^^20030718091426.494-0600^USA > > Using the following terser code: > > terser.set("MFN_M01_MFEZ(0)/MFE-1", "MAD"); > terser.set("MFN_M01_MFEZ(0)/MFE-3", "20030718091426.494-0600"); > terser.set("MFN_M01_MFEZ(0)/MFE-4-1", "USA"); > > The problem is I don't see a way using Terser to set the type > of the Varies > used for the primary key value in the MFE. I have to resort > to the following > to get Terser to work: > > mfn.getMFN_M01_MFEZ(0).getMFE().getPrimaryKeyValueMFE(0).setDa > ta(new CE()); > > It would be nice to be able to do something like: > > terser.set("/MFN_M01_MFEZ(0)/MFE-4-1/CE-1", "USA"); > terser.set("/MFN_M01_MFEZ(0)/MFE-4-1/CE-2", "UNITED STATES"); > terser.set("/MFN_M01_MFEZ(0)/MFE-4-1/CE-3", "VA-MFS-B"); > > Did I miss something? Is there a way? Do you plan on adding a way? > > Thanks, > Keith > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual > machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > 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. |