Hi,

I'm CC-ing the answer to the mailing list, so others might benefit from
this discussion as well.

You cannot build a "full" HAPI distribution yourself - you would need the
HL7 database in order to generate the hl7-structures-* libraries, but the
unfortunately this database is far from being open source...

Anyway, it's much easier to follow the pattern described in [1] - you
provide your custom classes in a dedicated package of your own application
and use a CustomModelClassFactory pointing to that package (Example code is
available in the hapi-example module).
If a message is parsed, the custom model class factory will then first
inspect if your custom message needs to be instantiated before falling back
to the "standard" message structure classes located in the erspective
hapi-structures libs.

cheers
Christian


[1]
http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CustomModelClasses.html



---------- Forwarded message ----------



Some time ago (before my time), someone create a customized version of
message v2.4 PMU_B01, compiled it and created a jar file
hapi-structures-v24-hisca.jar.  The jar file was then included as a library
into an .ear project.  All worked well.



Now, I have to make some modifications to the customized message.  That is
no problem.  Where I fail is in how to compile and jar the customized
package.  I’m alone here, everyone that worked on that project as moved
on.  Lucky me.



So I’ve tried the basics and followed instructions from
http://hl7api.sourceforge.net/building.html:



-          Installed Maven;

-          Downloaded
http://sourceforge.net/p/hl7api/code/HEAD/tree/branches/REL_2_2/hapi-mvn/

-          Performed mvn install.



But that will only created hapi-base.jar and two other jar files that I
don’t need.  I was surprised.  So I started to dig a bit.  Found out that
hapi-structures-vXX were basically empty except for some base structures
and folder.  I was confused.



So I went back to the SourceForge website and downloaded
hapi-dist-2.2-all.zip.  In there, at least, I have .java files where I
expect to find some (hapi-structures-v24) but have absolutely not support
to build the project (pom.xml).



I’m clearly missing something.  All I want is to build hapi-base and the
hapi-structures-vXX.



Can someone point me to the right documentation or tell me how to
incorporate the java files from the hapi-dist-2.2-all.zip file into the
REL_2_2 so I can finally obtain the expected jar files (hapi-base.jar,
hapi-structures-v24.jar).



Thank you.



E.



Ps.  By the way, Hapi is an awesome piece of code.  Congratulation guys,
and keep up the good work.


<http://phie.onc...@albertahealthservices.ca>



------------------------------
This message and any attached documents are only for the use of the
intended recipient(s), are confidential and may contain privileged
information. Any unauthorized review, use, retransmission, or other
disclosure is strictly prohibited. If you have received this message in
error, please notify the sender immediately, and then delete the original
message. Thank you.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to