Querying the facility registry by name fails (?)

Hi all,

I’m sending the following CSD document to query for facilities by name.

<?xml version="1.0" encoding="UTF-8"?>

<csd:careServicesRequest

xmlns:csd=“urn:ihe:iti:csd:2013”

xmlns=“urn:ihe:iti:csd:2013”>

Arusha

1

</csd:careServicesRequest>

I’m testing against http://demo.ohie.org, so looking at the facility registry, I know that a facility with the name ‘Arusha’ exists.

My query is successful and I see a 200 Ok response. (See http://iol.test.ohie.org/#/transactions/569fe9e0b58a38436bd7be9b) However, my response is empty…

<CSD

xmlns=“urn:ihe:iti:csd:2013”

xmlns:csd=“urn:ihe:iti:csd:2013”>

Any comments/ideas on what’s wrong? :frowning:

···

Thanks and best regards,

Suranga Kasthurirathne

Regional Community manager (Asia-Pacific)

Hi Suranga,

I just tested this on my local machine, and things seem to work. This is what I sent:

curl -v -X POST -H ‘Content-Type: text/xml’ --data-binary @fac_search.xml http://caraway:8984/CSD/csr/test2/careServicesRequest/urn:ihe:iti:csd:2014:stored-function:facility-search

where fac_search.xml was the document:

<csd:requestParams xmlns:csd=“urn:ihe:iti:csd:2013”>

csd:primaryNameBumpe Ngao</csd:primaryName>

</csd:requestParams>

This was a search on the DHIS2 demo data converted to CSD.

Note, this is using the updated/simplified endpoints for the stored functions.

I also tried this on the old endpoint

http://caraway:8984/CSD/csr/test2/careServicesRequest

with the document:

<csd:careServicesRequest xmlns:csd=“urn:ihe:iti:csd:2013”>

<csd:function urn=‘urn:ihe:iti:csd:2014:stored-function:facility-search’>

**<csd:requestParams>**

  **<csd:primaryName>**Bumpe Ngao**</csd:primaryName>**

**</csd:requestParams>**

</csd:function>

</csd:careServicesRequest>

and was able to get the results.

Maybe the issue is with the parameter? What happens if you remove that?

Cheers,
-carl

···

Thanks and best regards,

Suranga Kasthurirathne

Regional Community manager (Asia-Pacific)

I just checked and it did work for me with the parameter as well.

Cheers,
-carl

···

Thanks and best regards,

Suranga Kasthurirathne

Regional Community manager (Asia-Pacific)

Hi Carl,

I apologize, it turned out to be a stupid special character getting appended to the message string, and making everything go wrong. This has now been fixed, and works fine, just as you said :slight_smile:

···

On Thu, Jan 21, 2016 at 2:28 PM, Carl Leitner litlfred@gmail.com wrote:

I just checked and it did work for me with the parameter as well.
Cheers,
-carl

On Jan 21, 2016, at 2:18 PM, Carl Leitner litlfred@gmail.com wrote:

Hi Suranga,
I just tested this on my local machine, and things seem to work. This is what I sent:

curl -v -X POST -H ‘Content-Type: text/xml’ --data-binary @fac_search.xml http://caraway:8984/CSD/csr/test2/careServicesRequest/urn:ihe:iti:csd:2014:stored-function:facility-search

where fac_search.xml was the document:

<csd:requestParams xmlns:csd=“urn:ihe:iti:csd:2013”>

csd:primaryNameBumpe Ngao</csd:primaryName>

</csd:requestParams>

This was a search on the DHIS2 demo data converted to CSD.

Note, this is using the updated/simplified endpoints for the stored functions.

I also tried this on the old endpoint

http://caraway:8984/CSD/csr/test2/careServicesRequest

with the document:

<csd:careServicesRequest xmlns:csd=“urn:ihe:iti:csd:2013”>

<csd:function urn=‘urn:ihe:iti:csd:2014:stored-function:facility-search’>

**<csd:requestParams>**
  **<csd:primaryName>**Bumpe Ngao**</csd:primaryName>**
**</csd:requestParams>**

</csd:function>

</csd:careServicesRequest>

and was able to get the results.

Maybe the issue is with the parameter? What happens if you remove that?

Cheers,
-carl

On Jan 20, 2016, at 4:11 PM, Suranga Kasthurirathne surangak@openmrs.org wrote:

Hi all,

I’m sending the following CSD document to query for facilities by name.

<?xml version="1.0" encoding="UTF-8"?>

<csd:careServicesRequest

xmlns:csd=“urn:ihe:iti:csd:2013”

xmlns=“urn:ihe:iti:csd:2013”>

Arusha

1

</csd:careServicesRequest>

I’m testing against http://demo.ohie.org, so looking at the facility registry, I know that a facility with the name ‘Arusha’ exists.

My query is successful and I see a 200 Ok response. (See http://iol.test.ohie.org/#/transactions/569fe9e0b58a38436bd7be9b) However, my response is empty…

<CSD

xmlns=“urn:ihe:iti:csd:2013”

xmlns:csd=“urn:ihe:iti:csd:2013”>

Any comments/ideas on what’s wrong? :frowning:

Thanks and best regards,

Suranga Kasthurirathne

Regional Community manager (Asia-Pacific)

You received this message because you are subscribed to the Google Groups “Interoperability Layer (OpenHIE)” group.

To unsubscribe from this group and stop receiving emails from it, send an email to openhie-interoperability-layer+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Interoperability Layer (OpenHIE)” group.

To unsubscribe from this group and stop receiving emails from it, send an email to openhie-interoperability-layer+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thanks and best regards,

Suranga Kasthurirathne

Regional Community manager (Asia-Pacific)