Web Service:PR-WS-3: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|description=Fetches details of a provider by their EPID or other identification type. | |description=Fetches details of a provider by their EPID or other identification type. | ||
|applications=Interoperability Layer, Point-Of-Care? Facility Registry? | |applications=Interoperability Layer, Point-Of-Care? Facility Registry? | ||
|url=/ws/rest/ | |url=/ws/rest/v1/providerDetails/byid | ||
|params=This contains the followng parameters to identify the provider whose details we shall return: | |params=This contains the followng parameters to identify the provider whose details we shall return: | ||
$ | $epid. The providers EPID. Required. | ||
*${format}The response format. One of: | *${format}The response format. One of: | ||
**HL7 | **HL7 See [http://www.google.com/url?q=http%3A%2F%2Fjira.jembi.org%2Fwiki%2Fdownload%2Fattachments%2F8912902%2FQueryProfessionalRSS.xml&sa=D&sntz=1&usg=AFQjCNEYi8ytZRJPvq8fWsoqQ1VqAToIAg QueryProfessionalRSS.xml] | ||
**JSON -- in this case we return an associative array as | * The HL7 v2.5 PMU_B01 messages for each professional will be specified as in [https://docs.google.com/spreadsheet/ccc?key=0Ah8KVMJr8h4pdFlQMjNyMDh0dzhUSlJkWVgyd3lUZGc Register-or-Query-Professional] | ||
**JSON -- in this case we return an associative array containing the provider's details as well as URLs related to various actions to perform on the provider: | |||
{ | { | ||
firstname: "Bill", | |||
firstname: "Bill" | surname: "Smith", | ||
surname: "Smith" | cadre: "Nurse", | ||
cadre: "Nurse" | email: "bsmith@example.org", | ||
email: " | passport: "12312312", | ||
passport: "12312312" | mutuelle: "123123444", | ||
mutuelle: "123123444" | csr: "123123", | ||
csr: "123123" | nid: "333", | ||
nid: "333" | actions: { | ||
'self': | |||
'edit': | |||
'addPost': | |||
} | |||
} | } | ||
| | | |
Revision as of 12:38, 30 October 2012
Web Service: PR-WS-3 Get Provider Detail
Fetches details of a provider by their EPID or other identification type.
URL | /ws/rest/v1/providerDetails/byid |
GET Parameters | This contains the followng parameters to identify the provider whose details we shall return:
$epid. The providers EPID. Required.
{ firstname: "Bill", surname: "Smith", cadre: "Nurse", email: "bsmith@example.org", passport: "12312312", mutuelle: "123123444", csr: "123123", nid: "333", actions: { 'self': 'edit': 'addPost': }} |
GET Response |
|
GET Error |
|
Other Resources: Use Case:PR-WS-3