Question on Patient Identity Feed Transaction [message #581099] |
Wed, 29 August 2007 16:20 |
umesh shaw Messages: 8 Registered: July 2009 |
Junior Member |
|
|
I am getting the below exception while trying to perform Patient Identity
Feed Transaction using OHF API.
Exception in thread "AWT-EventQueue-1" java.lang.Error: Unresolved
compilation problem:
Syntax error on token "==", = expected
at
org.eclipse.ohf.hl7v2.core.conformance.CPDocument.getProfile (CPDocument.java:230)
at
org.eclipse.ohf.ihe.common.hl7v2.mllpclient.Client.setConfor manceProfile(Client.java:495)
It seems there is some assert statement problem in the class :
org.eclipse.ohf.hl7v2.core.conformance.CPDocument.java
in the jar file : org.eclipse.ohf.hl7v2.core_0.2.0.jar
public CPConformanceProfile getProfile() {
// compiler errors? See readme.txt in <package>/Resources
assert documentType == DOCUMENT_TYPE_PROFILE;
return (CPConformanceProfile) content;
}
Its using the assert statement, I am running in the Java 1.5 version,
there is no problem in compiling
But it gives above problem during run time. I am testing the ClientPixFeed
which uses XML file
"ADT-A04(register outpatient).XML" for setting the conformance profile as
below code.
InputStream cpStream = new
FileInputStream(PixFeedConfiguration.CPROFILE_PATH);
pixFeed.setConformanceProfile(cpStream);
cpStream.close();
I have already checked the below URL
http://www.cis.upenn.edu/~matuszek/cit594-2004/Pages/eclipse -faq.html ,
But it doesnot resolve with Java 1.5 version.
Can you please provide any solution for this.
Thanks,
Umesh
|
|
|
Powered by
FUDForum. Page generated in 0.03074 seconds