Web Service:PR-WS-6: Difference between revisions
From IHRIS Wiki
(Created page with "{{WebServicePage|Add/Edit a posting |number=PR-WS-2 |description=Fetches a HC Professional Enterprise ID for the professional specified by the professional ID parameter. |appl...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{WebServicePage| | {{WebServicePage|Edit a Provider | ||
|number=PR-WS- | |number=PR-WS-5 | ||
|description= | |description=Add Provider Details | ||
|applications=Interoperability Layer, Point-Of-Care | |applications=Interoperability Layer, Point-Of-Care, iHRIS | ||
|url=/ws/rest/ | |url=/ws/rest/v2/editProvider/epid | ||
|params=The following | |params=The following webservice should accept the following parameters: | ||
*${ | *${epid} The EPID of the provider. Required. | ||
*${surname} The surname of the provider. Optional. | |||
*${nationality} The nationality of the provider coded according to ISO-3166-1 alpha-3. Optional. | |||
*${nid} The national id. Optional. | |||
*${ | *${passport} The passport number. Optional. | ||
*{ | *${mutuelle} The mutuelle number. Optional. | ||
*${csr} The CSR number. Optional. | |||
*${respformat} Describes response format. Optional. Default is 'http', can also be 'json.' | |||
|example=?provder=m®_body=2 | |||
*${ | |||
*${ | |||
*${ | |||
* | |||
${ | |||
* | |||
${ | |||
|example=? | |||
|response=HTTP 200 - OK | |response=HTTP 200 - OK | ||
*If ${repsformat} is 'http' the HTTP response body will contain the epid as plain text. | |||
*${ | *If ${respformat} is 'json' it will contain a JSON object with the single field 'epid.' | ||
further web-service actions to perform on the provider | |||
Example: | |||
{ | { | ||
" | "epid": 211312, | ||
actions: { | |||
"providerDetails": 'http://rhea-pr.ihris.org/webservices/providerDetails/byid?id_num=211312', | |||
"editProvider": 'http://rhea-pr.ihris.org/webservices/editProvider/epid=211312', | |||
"addPost": 'http://rhea-pr.ihris.org/webservices/addPost/epid=211312', | |||
"getPosts": 'http://rhea-pr.ihris.org/webservices/getPosts/epid=211312', | |||
"viewProvider": 'http://rhea-pr.ihris.org/providerregistry/view?id=person|23123' | |||
} | |||
} | } | ||
|error=*HTTP 500 - Server Error - If the server encountered an error. | |error=*HTTP 500 - Server Error - If the server encountered an error. | ||
*HTTP 400 - Bad Request - If the parameters are malformed. | *HTTP 400 - Bad Request - If the parameters are malformed. | ||
|notes= | |notes= | ||
|resources=[[Use Case:PR-WS-5]] | |||
}} | }} |
Revision as of 13:03, 30 October 2012
Web Service: PR-WS-5 Edit a Provider
Add Provider Details
URL | /ws/rest/v2/editProvider/epid |
GET Parameters | The following webservice should accept the following parameters:
|
GET Response | HTTP 200 - OK
further web-service actions to perform on the provider Example: { "epid": 211312, actions: { "providerDetails": 'http://rhea-pr.ihris.org/webservices/providerDetails/byid?id_num=211312', "editProvider": 'http://rhea-pr.ihris.org/webservices/editProvider/epid=211312', "addPost": 'http://rhea-pr.ihris.org/webservices/addPost/epid=211312', "getPosts": 'http://rhea-pr.ihris.org/webservices/getPosts/epid=211312',"viewProvider": 'http://rhea-pr.ihris.org/providerregistry/view?id=person |
GET Error |
|
GET Example | /ws/rest/v2/editProvider/epid/?provder=m®_body=2 |
Other Resources: Use Case:PR-WS-5