Provider Registry Web Services
From IHRIS Wiki
These are web services cases for interacting with the provider registry. Please see the requirements and [[Provider Registry Use Cases| use cases]
Web Service: PR-WS-1 Get Enterprise Professional ID
Fetches a HC Professional Enterprise ID for the professional specified by the professional ID parameter.
URL | /ws/rest/v1/lookupbyid/epid |
GET Parameters | This contains only 2 parameters to identify the professional to return ${id_type} and ${id_number}
Where ${id-type} is one of the following:
|
GET Response |
|
GET Error |
|
GET Example | /ws/rest/v1/lookupbyid/epid/?id_type=NID&id_number=1234567890 |
Other Resources: Use Case:PR-WS-1
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
Web Service: PR-WS-3 Get Provider Detail
Fetches details of a provider by their EPID or other identification type.
URL | /ws/rest/v2/details/provider |
GET Parameters | This contains the followng parameters to identify the provider whose details we shall return:
$epid. The providers EPID. Required.
|
GET Response |
{ firstname: "Bill", surname: "Smith", cadre: "Nurse", email: "bsmith@example.org", passport: "12312312", mutuelle: "123123444", csr: "123123", nid: "333", actions: { 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?id=211312', viewProvider: 'http://rhea-pr.ihris.org/providerregistry/view?id=person%7C23123' }} |
GET Error |
|
Other Resources: Use Case:PR-WS-3