List reports
/care/v1/report/query/documentsreport:readBAA requiredReturns a page of the signed reports of the visits your company booked, newest signed first. A report of a visit the patient booked themselves, or that another company booked, is never listed, and neither is a report of a patient whose connection with your company is no longer active. The list is thin: read one report to get its sections.
You learn that a report exists from the report.signed event. When you ask for one booking
and no report of it is known yet, the answer also looks for a signed report of that visit, so a
report whose event you missed still shows up, and its event is raised once.
Needs the report:read scope.
Query parameters
patientstring (uuid)Keep only the reports of this patient.
bookingstringKeep only the reports of this booking.
Min length 1 · Max length 200
fromstring (date-time)Keep only reports signed at or after this time, with a UTC offset.
tostring (date-time)Keep only reports signed at or before this time, with a UTC offset.
pageintegerThe page number, from 1.
Minimum 1 · Default 1
sizeintegerThe page size, at most 50.
Minimum 1 · Maximum 50 · Default 10
Response 200
dataarray of ReportListItemrequiredThe reports of the page, newest signed first.
Show child attributesHide child attributes
booking_idstringrequiredThe ID of the booking the report documents.
report_idstringrequiredThe ID of the report.
signed_atstring (date-time)requiredWhen the report was signed, in UTC.
specialiststringrequiredThe ID of the specialist who wrote the report.
userstringrequiredThe ID of the patient.
has_nextbooleanrequiredWhether the data has a next page or not
has_previousbooleanrequiredWhether the data has a previous page or not
pageintegerrequiredThe page number of the data
sizeintegerrequiredThe size of the data
totalintegerrequiredThe total number of data
total_pagesintegerrequiredThe total number of pages
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
400 | bad_request | The from time must not be after the to time. |
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | scope_not_granted | This API key does not have the report:read scope. |
422 | validation_error | query.size: Input should be less than or equal to 50 |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |