Web Service:PR-WS-2: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
**${type} The type of the provider 'PPS' for paid-public sector or 'CHW' for community health worker. | **${type} The type of the provider 'PPS' for paid-public sector or 'CHW' for community health worker. | ||
*{format}The response format. One of 'hl7' or 'json'. | *{format}The response format. One of 'hl7' or 'json'. | ||
|example=?foasid=123&size= | |example=?foasid=123&size=2&start=10 | ||
|response=HTTP 200 - OK | |response=HTTP 200 - OK | ||
The HTTP response body will contain a list of matching EIDSs as specified by the ${format} parameter: | The HTTP response body will contain a list of matching EIDSs as specified by the ${format} parameter: | ||
*If ${format}=json. Example: | *If ${format}=json. Example: | ||
{ | { | ||
" | "providers": { | ||
211312: { | |||
providerDetails : 'http://rhea-pr.ihris.org/webservices/providerDetails?epid=211312', | |||
editProvider : 'http://rhea-pr.ihris.org/webservices/editProvider?epid=211312', | |||
addPost : 'http://rhea-pr.ihris.org/webservices/addPost?epid=211312', | |||
postDetails : 'http://rhea-pr.ihris.org/webservices/postDetails?epid=211312', | |||
viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C23123123 | |||
}, | |||
131241241: { | |||
providerDetails : 'http://rhea-pr.ihris.org/webservices/providerDetails?epid=131241241', | |||
editProvider : 'http://rhea-pr.ihris.org/webservices/editProvider?epid=131241241', | |||
addPost : 'http://rhea-pr.ihris.org/webservices/addPost?epid=131241241', | |||
postDetails : 'http://rhea-pr.ihris.org/webservices/postDetails?epid=131241241', | |||
viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C31234 | |||
}, | |||
}, | |||
"total_size" : 300, | "total_size" : 300, | ||
"start": 10 | "start": 10 |
Revision as of 19:08, 30 October 2012
Web Service: PR-WS-2 Query For Providers
Fetches a HC Professional Enterprise ID for the professional specified by the professional ID parameter.
URL | /ws/rest/v1/professional/epid/query |
GET Parameters | The following query parameters are allowed:
|
GET Response | HTTP 200 - OK
The HTTP response body will contain a list of matching EIDSs as specified by the ${format} parameter:
{ "providers": { 211312: { providerDetails : 'http://rhea-pr.ihris.org/webservices/providerDetails?epid=211312', editProvider : 'http://rhea-pr.ihris.org/webservices/editProvider?epid=211312', addPost : 'http://rhea-pr.ihris.org/webservices/addPost?epid=211312', postDetails : 'http://rhea-pr.ihris.org/webservices/postDetails?epid=211312', viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C23123123 }, 131241241: { providerDetails : 'http://rhea-pr.ihris.org/webservices/providerDetails?epid=131241241', editProvider : 'http://rhea-pr.ihris.org/webservices/editProvider?epid=131241241', addPost : 'http://rhea-pr.ihris.org/webservices/addPost?epid=131241241', postDetails : 'http://rhea-pr.ihris.org/webservices/postDetails?epid=131241241', viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C31234 }, }, "total_size" : 300, "start": 10 }
|
GET Error |
|
GET Example | /ws/rest/v1/professional/epid/query/?foasid=123&size=2&start=10 |
Notes | Need to good way for limiting response length. See A collection: the list of bugs in the Launchpad API |
Other Resources: Use Case:PR-WS-2