Retrieve Patient Query Results for a Query Identifier
get
/ohfapi/cg/v3.3/patientapi/patients/queries/{id}/data
This endpoint supports the retrieval of Patient Identifiers resulted as response to the Query.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
-
apiContext: string
-
id: integer(int64)
Minimum Value:
0
Query ID
Query Parameters
-
limit(optional): integer(int32)
Pagination query params: ?limit=2&offset=0
-
offset(optional): integer(int32)
Pagination query params: ?limit=2&offset=0
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : PatientId
Type:
Show Source
object
-
patientId(optional):
integer
Patient Row ID
-
patientIdentifier(optional):
string
Patient Identifier
400 Response
Invalid request parameters
404 Response
Query not found
Examples
The following example shows how to view patient IDs for a query by submitting a GET request.
API URL
http://localhost:7010/ohfapi/cg/v3.3/patientapi/patientsqueries/989/data
Example of Response Body
The following example shows the response returned in JSON format.
{ "items": [ { "patientId": 59518, "patientIdentifier": "OBFUSCATED_59518" }, { "patientId": 59539, "patientIdentifier": "OBFUSCATED_59539" } ], "count": 2, "hasMore": false, "links": [ { "rel": "self", "href": "http://localhost:7010/ohfapi/cg/v3.3/patientapi/patients/queries/989/data" } ] }