Web Service:PR-WS-4: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{WebServicePage|Get Provider Posting Detail | {{WebServicePage|Get Provider Posting Detail | ||
|number=PR-WS-4 | |number=PR-WS-4 | ||
|description=Fetches details of a provider's postings by their EPID | |description=Fetches details of a provider's postings by their EPID. | ||
|applications=Interoperability Layer, Point-Of-Care | |applications=Interoperability Layer, Point-Of-Care, Facility Registry, iHRIS | ||
|url=/ws/rest/v2/providerPosts | |url=/ws/rest/v2/providerPosts | ||
|params=This contains the | |params=This contains the following parameters to identify the provider whose details we shall return: | ||
${ | ${epid} The provider's EPID | ||
*${format}The response format. One of 'hl7' or 'json' | |||
|response=*HTTP 200 - OK | |||
*If the format='hl7' ..... | |||
*If the format='json' we return an array of associative arrays. The associative arrays have keys for the post attribtues. For example: | |||
*${format}The response format. One of | |||
** | |||
* | |||
{ | { | ||
0 : { | 0 : { | ||
facility: 'XXX District Hospital', | facility: 'XXX District Hospital', | ||
foasid: '123213', | |||
type: 'PPS', | |||
category: 'NURSE', | |||
actions: { | |||
'editPost': http://blahblah/, | |||
'disablePost': http://blahblah/ | |||
} | |||
}, | }, | ||
1 : { | 1 : { | ||
facility: 'YYY District Hospital', | facility: 'YYY District Hospital', | ||
code: '12345', | |||
type: 'PPS', | |||
category: 'NURSE', | |||
actions: { | |||
'editPost': http://blahblah/, | |||
'disablePost': http://blahblah/ | |||
} | |||
}, | }, | ||
} | } | ||
|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. | ||
|resources=[[Use Case:PR-WS-4]] | |resources=[[Use Case:PR-WS-4]] | ||
}} | }} |
Revision as of 13:14, 30 October 2012
Web Service: PR-WS-4 Get Provider Posting Detail
Fetches details of a provider's postings by their EPID.
URL | /ws/rest/v2/providerPosts |
GET Parameters | This contains the following parameters to identify the provider whose details we shall return:
${epid} The provider's EPID
|
GET Response |
{ 0 : { facility: 'XXX District Hospital', foasid: '123213', type: 'PPS', category: 'NURSE', actions: { 'editPost': http://blahblah/, 'disablePost': http://blahblah/ } }, 1 : { facility: 'YYY District Hospital', code: '12345', type: 'PPS', category: 'NURSE', actions: { 'editPost': http://blahblah/, 'disablePost': http://blahblah/ } },} |
GET Error |
|
Other Resources: Use Case:PR-WS-4