Skip to main content



      Home
Home » Archived » OHF » Question on Patient Identity Feed Transaction
Question on Patient Identity Feed Transaction [message #33302] Wed, 29 August 2007 12:20 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Question on Patient Identity Feed Transaction
Next Topic:MESA10501Test.java fails while setting the value for QPD-3-5
Goto Forum:
  


Current Time: Fri Jul 18 19:43:49 EDT 2025

Powered by FUDForum. Page generated in 0.03555 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top