Web Service:PR-WS-2: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|description=Fetches a HC Professional Enterprise ID for the professional specified by the professional ID parameter. | |description=Fetches a HC Professional Enterprise ID for the professional specified by the professional ID parameter. | ||
|applications=Interoperability Layer, Point-Of-Care? | |applications=Interoperability Layer, Point-Of-Care? | ||
|url=/ws/rest/ | |url=/ws/rest/v2/query/providers | ||
|params=The following query parameters are allowed: | |params=The following query parameters are allowed: | ||
*${size} The maximum number number of EPIDs to return. Defaults to 50. | *${size} The maximum number number of EPIDs to return. Defaults to 50. | ||
Line 20: | Line 20: | ||
*If ${format}=json. Example: | *If ${format}=json. Example: | ||
{ | { | ||
providers: { | |||
211312: { | 211312: { | ||
providerDetails : 'http://rhea-pr.ihris.org/webservices/ | providerDetails : 'http://rhea-pr.ihris.org/webservices/details/provider?epid=211312', | ||
editProvider : 'http://rhea-pr.ihris.org/webservices/ | editProvider : 'http://rhea-pr.ihris.org/webservices/edit/provider?epid=211312', | ||
addPost : 'http://rhea-pr.ihris.org/webservices/ | addPost : 'http://rhea-pr.ihris.org/webservices/add/post?epid=211312', | ||
queryPosts : 'http://rhea-pr.ihris.org/webservices/ | queryPosts : 'http://rhea-pr.ihris.org/webservices/details/post?epid=211312', | ||
viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C23123123 | viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C23123123 | ||
}, | }, | ||
131241241: { | 131241241: { | ||
providerDetails : 'http://rhea-pr.ihris.org/webservices/ | providerDetails : 'http://rhea-pr.ihris.org/webservices/details/provider?epid=131241241', | ||
editProvider : 'http://rhea-pr.ihris.org/webservices/ | editProvider : 'http://rhea-pr.ihris.org/webservices/edit/provider?epid=131241241', | ||
addPost : 'http://rhea-pr.ihris.org/webservices/ | addPost : 'http://rhea-pr.ihris.org/webservices/add/post?epid=131241241', | ||
queryPosts : 'http://rhea-pr.ihris.org/webservices/ | queryPosts : 'http://rhea-pr.ihris.org/webservices/details/post?epid=131241241', | ||
viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C31234 | viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C31234 | ||
}, | }, | ||
}, | }, | ||
total_size : 300, | |||
start: 10 | |||
} | } | ||
*${format}=hl7. one per professional that matches the criteria, that contains the details of that professional. These messages will be contained within a RSS feed XML message. HL7v2 message specification and mapping: | *${format}=hl7. one per professional that matches the criteria, that contains the details of that professional. These messages will be contained within a RSS feed XML message. HL7v2 message specification and mapping: |
Latest revision as of 07:37, 31 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/v2/query/providers |
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/details/provider?epid=211312', editProvider : 'http://rhea-pr.ihris.org/webservices/edit/provider?epid=211312', addPost : 'http://rhea-pr.ihris.org/webservices/add/post?epid=211312', queryPosts : 'http://rhea-pr.ihris.org/webservices/details/post?epid=211312', viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C23123123 }, 131241241: { providerDetails : 'http://rhea-pr.ihris.org/webservices/details/provider?epid=131241241', editProvider : 'http://rhea-pr.ihris.org/webservices/edit/provider?epid=131241241', addPost : 'http://rhea-pr.ihris.org/webservices/add/post?epid=131241241', queryPosts : 'http://rhea-pr.ihris.org/webservices/details/post?epid=131241241', viewProvider : 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C31234 }, }, total_size : 300, start: 10 }
|
GET Error |
|
GET Example | /ws/rest/v2/query/providers/?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