Web Service:PR-WS-7: Difference between revisions
(Created page with "{{WebServicePage|Disable a posting |number=PR-WS-2 |description=Fetches a HC Professional Enterprise ID for the professional specified by the professional ID parameter. |appli...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{WebServicePage| | {{WebServicePage|Post details | ||
|number=PR-WS-2 | |number=PR-WS-2 | ||
|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. | ||
Line 51: | Line 51: | ||
|example=?gender=m®_body=2 | |example=?gender=m®_body=2 | ||
|response=HTTP 200 - OK | |response=HTTP 200 - OK | ||
facility: 'YYY District Hospital', | |||
code: '12345', | |||
type: 'PPS', | |||
category: 'NURSE', | |||
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: | ||
*${format}=JSON. Example: | *${format}=JSON. Example: |
Revision as of 14:19, 30 October 2012
Web Service: PR-WS-2 Post details
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:
${ws.size} the requested number of EIDs to return ${ws.start} the starting offset for listing IDS
${reg_body} The Registration Body of the professional. Valid values are
${reg_status} The Registration Status of the professional. Valid values are:
${occ_group} The Occupation Group of the professional. See RwandaHCFacilitiesHCProfessionalRegistriesv1.7July18_pilot_final.docx - Annex 2 for the codes to use with this parameter. ${occ_code} The Occupation Code of the professional.See RwandaHCFacilitiesHCProfessionalRegistriesv1.7July18_pilot_final.docx - Annex 2 for the codes to use with this parameter. ${hours_per_week} Number of hours per week worked by the professional. ${hours_per_week_gt} The parameter with the ‘_gt’ suffix is used for queries for hour per week greater than the given value. ${hours_per_week_lt} The parameter with the ‘_lt’ suffix is used for queries for hour per week less than the given value. |
GET Response | HTTP 200 - OK
facility: 'YYY District Hospital', code: '12345', type: 'PPS', category: 'NURSE', The HTTP response body will contain a list of matching EIDSs as specified by the ${format} parameter:
{ "epids": {211312,131241241,12398213,12312,123} "total_size" : 300, "start": 10 }
|
GET Error |
|
GET Example | /ws/rest/v1/professional/epid/query/?gender=m®_body=2 |
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