From: Steve H. <ste...@gm...> - 2005-02-22 15:54:04
|
Sarah, Yes, you can build HL7 messages. You need to first decide which HL7 version you want to use and then instantiate a "message" object. If you selected 2.4, for example, you would then create an instance of a class under the package "ca.uhn.hl7v2.model.v24.message". Basically, you can only set values for individual fields, the lowest-level parts of a message. To get there, you have to step through a message to a group (see the "group" package), then to a segment. (In fact, you may need to traverse through multiple groups before reaching a segment.) You can set values of fields within a segment. -Steve On Tue, 22 Feb 2005 06:47:08 +0000, fan yue <fan...@ho...> wrote: > Hi, > > I just started using HAPI and am not very farmiliar with it. My question > is, except for parsing an HL7 message, can we also build or construct an > HL7 message using HAPI? Which package should I look into? > > Thank you very much, > > Sarah > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |