From: Tripp, B. <Bry...@uh...> - 2004-07-12 22:12:21
|
Hi Iouri, No, we don't have that. We do have a tool that generates Java classes from HL7 conformance profiles. These aren't message classes, but wrappers that further constrain underlying message classes to agree with the profile. But depending on how you want to use it this might work just as well for you. I should also point out that HAPI handles unexpected segments and fields automatically, so normally you don't need to make corresponding custom classes (although it does make some things more convenient). Also, the message classes are normally generated from the HL7 database, so if you have access to that, it's just a matter of adding some entries to it. I guess you could also make your own database with the same structure, if you didn't have the standard one and wanted to make a lot of custom message classes. Are any of the above satisfactory? Bryan -----Original Message----- From: Iouri Leonov To: hl7...@li... Sent: 12/07/2004 2:17 PM Subject: [HAPI-devel] How to use XML-binding to generate library classes for hapi parser? Good day developers. Recently I've started playing with hapi framework. I have a question relating to configuration of messages. Let' say we have a very common scenario - a user wants his custom segment ZUSER with some custom datatype MY_DT. I see the only way to do it - make new Java files. I have to create a new ZUSER.java in segment package and a new MY_DT.java in datatype package. Then I have to go to message package and change message ADT_x.java file in order to make it work with these new segment and datatype. Job that definitely requires skills of a Java programmer. My question relates to ways of descriptive programming. Is there a way in the current hapi implementations to describe the content of my new segment and datatype not in .java file but rather in some XML file or in w3 XML Schema file then run that xml instance through a binding parser which will generate classes ZUSER.class and MY_DT.class which can be used directly by Pipe parser? Something in line with JAXB - XML binding. If there is a way, then how to do it, if there's none - any idea how to make it happen? Cheers, Iouri Leonov XML Developer ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ 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. |