Question on Patient Identity Feed Transaction [message #33302] |
Wed, 29 August 2007 12:20  |
Eclipse User |
|
|
|
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
|
|
|
Re: Question on Patient Identity Feed Transaction [message #33337 is a reply to message #33302] |
Fri, 31 August 2007 11:43  |
Eclipse User |
|
|
|
Umesh,
As you observed we have seen the assert error before in installations
and in all cases to date, the documentation we provided has corrected
the error. I am not able to reproduce the problem in 1.5.
Has anyone else reading the newsgroup found another solution?
For pix, it is not necessary to use the conformance profile. I expect
you can continue by implementing a method to default common HL7 fields
rather than rely on the CP.
Sondra
Umesh Shaw wrote:
> 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
>
|
|
|
Re: Question on Patient Identity Feed Transaction [message #581124 is a reply to message #33302] |
Fri, 31 August 2007 11:43  |
Eclipse User |
|
|
|
Umesh,
As you observed we have seen the assert error before in installations
and in all cases to date, the documentation we provided has corrected
the error. I am not able to reproduce the problem in 1.5.
Has anyone else reading the newsgroup found another solution?
For pix, it is not necessary to use the conformance profile. I expect
you can continue by implementing a method to default common HL7 fields
rather than rely on the CP.
Sondra
Umesh Shaw wrote:
> 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.03555 seconds