jembi / openhim-legacy

OpenHIM is a open source Health Information Mediator built to facilitate interoperability between disparate Health Information Systems.
openhim.org
Mozilla Public License 2.0
15 stars 2 forks source link

Process stored query responses #14

Closed rcrichton closed 11 years ago

rcrichton commented 11 years ago

When you query a XDS repository for documents it returns a response that can contain a number of links to documents in different repositories. We need a java class (and associated unit test) to process this response and call code to build a retrieve documents message for each document in the response. See issue #15 , this deals with the construction of XDS retrieve documents messages.

XML binding code has already been pre-generated in the ihe.iti.xds_b._2007 package. Expect the input to be of type 'AdhocQueryResponse'

A stub class exists for this unit of work. It is called "XDSRegistryStoredQueryResponse.java".

xiaomonp commented 11 years ago

Can you tell me where I can find/download the "ihe.iti.xds_b._2007 package"?

Hui Xiao

xiaomonp commented 11 years ago

OK, I found the "ihe.iti.xds_b._2007" package in the HIM source code. But I sam still curious to know where these code came from. Thanks,

Hui

rcrichton commented 11 years ago

Hey Hui, the code was generated using JAXB, the Java XML Binding library.

We used the wsimport tool to generate some of the service code from a wsdl. In the background it uses JAXB to generate the XML bindings for the messages, as far as I know.

xiaomonp commented 11 years ago

Ryan,

Then where did you get the wsdl from? The reason I asked this question is that I suspect I may have missed some important supplemental information that is helpful for the implementation of XDS profile (e.g. an IHE test bundle including all the wsdl files, xml registry data files, database import scripts, etc). The wsdl looks very similar to (maybe exactly the same as) the ones exposed by Regenstrief's current NWHIN gateway built from NWHIN CONNECT platform. NWHIN CONNECT by itself has offered a reference implementation with lots of soapUI test cases (inclduing document query, document retrieve, etc). Maybe we can reuse some of them?

Thanks,

Hui


From: Ryan Crichton [notifications@github.com] Sent: Saturday, December 08, 2012 11:33 AM To: jembi/openhim Cc: xiaomonp Subject: Re: [openhim] Process stored query responses (#14)

Hey Hui, the code was generated using JAXB, the Java XML Binding library.

We used the wsimport tool to generate some of the service code from a wsdl. In the background it uses JAXB to generate the XML bindings for the messages, as far as I know.

— Reply to this email directly or view it on GitHubhttps://github.com/jembi/openhim/issues/14#issuecomment-11160314.

rcrichton commented 11 years ago

We got it from the guys at Mohawk College in Canada. I'm not quite sure where they got it from or if they generated it themselves. For details of the XDS profile we have just been using the information linked to here http://wiki.ihe.net/index.php?title=Cross-Enterprise_Document_Sharing The reference information is linked to on that page.

You don't have to worry about any of the service implementation for this issue though. We are more looking for a the code to do the XML processing. Ie. reading the XML response and then pulling out information in order to generate the retrieve documents messages.

xiaomonp commented 11 years ago

Ryan,

Can you please point out to us (from the OpenHIM source code repository) the Mule flow files to invoke the “XDSRegistryStoredQueryResponse”, "XDSRepositoryRetrieveDocumentSet" and "XDSRepositoryRetrieveDocumentSetResponse" transforms? Can you correct me if I’m wrong with the following understanding?

The output of XDSRegistryStoredQueryResponse is AdhocQueryResponse, the input is an HL7 v2 ORU R^01 message? The output of XDSRepositoryRetrieveDocumentSet is RetrieveDocumentSetRequest, the input is an HL7 v2 ORU R^01 message? The output of XDSRepositoryRetrieveDocumentSetResponse is RetrieveDocumentSetResponse, the input is RetrieveDocumentSetRequest?

Can you provide us a brief description on the input and out of each method if my understanding above is incorrect?

Thanks a lot, Hui Xiao Systems Engineer Medical Informatics Regenstrief Institute, Inc. 410 West 10th Street, Suite 2000 Indianapolis, IN 46202-3012 Phone 317-423-5527 email hxiao@regenstrief.orgmailto:hxiao@regenstrief.org

From: Ryan Crichton [mailto:notifications@github.com] Sent: Sunday, December 09, 2012 3:34 PM To: jembi/openhim Cc: xiaomonp Subject: Re: [openhim] Process stored query responses (#14)

We got it from the guys at Mohawk College in Canada. I'm not quite sure where they got it from or if they generated it themselves. For details of the XDS profile we have just been using the information linked to here http://wiki.ihe.net/index.php?title=Cross-Enterprise_Document_Sharing The reference information is linked to on that page.

You don't have to worry about any of the service implementation for this issue though. We are more looking for a the code to do the XML processing. Ie. reading the XML response and then pulling out information in order to generate the retrieve documents messages. From: Xiao, Hui Sent: Sunday, December 09, 2012 10:00 AM To: jembi/openhim; jembi/openhim Cc: xiaomonp Subject: RE: [openhim] Process stored query responses (#14)

Ryan,

Then where did you get the wsdl from? The reason I asked this question is that I suspect I may have missed some important supplemental information that is helpful for the implementation of XDS profile (e.g. an IHE test bundle including all the wsdl files, xml registry data files, database import scripts, etc). The wsdl looks very similar to (maybe exactly the same as) the ones exposed by Regenstrief's current NWHIN gateway built from NWHIN CONNECT platform. NWHIN CONNECT by itself has offered a reference implementation with lots of soapUI test cases (inclduing document query, document retrieve, etc). Maybe we can reuse some of them?

Thanks,

Hui


From: Ryan Crichton [notifications@github.com] Sent: Saturday, December 08, 2012 11:33 AM To: jembi/openhim Cc: xiaomonp Subject: Re: [openhim] Process stored query responses (#14)

Hey Hui, the code was generated using JAXB, the Java XML Binding library.

We used the wsimport tool to generate some of the service code from a wsdl. In the background it uses JAXB to generate the XML bindings for the messages, as far as I know.

— Reply to this email directly or view it on GitHubhttps://github.com/jembi/openhim/issues/14#issuecomment-11160314.

hnnesv commented 11 years ago

I've continued this thread on the dev mailing list (https://groups.google.com/d/forum/openhim-dev) under the subject Process stored query response. I think it might be better to keep discussions like this on there, rather than on github.

rcrichton commented 11 years ago

This issue is now complete with much help from @xiaomonp.