From: Ackley, K. A <kei...@ed...> - 2003-07-18 15:51:06
|
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).setData(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 |