Get all Encounter Records by user ID
GET {{url}}/{{tenantName}}/{{instanceName}}/users/:userId/encounters
HTTP Request
GET /{tenantName}/{instanceName}/users/{userId}/encounters
in our example it would be:
GET https://api.live.welkincloud.io/gh/sb-demo/users/d6ea79ce-d3d6-4c2d-a27e-e4d1207f60f1/encounters
Responses
| Code | Description |
|---|---|
| 200 | OK |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
page | number | Pagination: page number | |
size | number | Pagination: page size | |
sort | string | Sort field with sorting order(asc or desc) after coma | |
statuses | string | Encounter status. Available statuses: DRAFT,OPEN,ACTIVE,FINALIZED | |
withCareTeam | boolean | If true, return only encounter thats belong to the patients in the user care team (default: true) |