Developers

Search the docs

Search guides and headings.

List reports

GET/care/v1/report/query/documents
Scope: report:readBAA required

Returns 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.

  • bookingstring

    Keep 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.

  • pageinteger

    The page number, from 1.

    Minimum 1 · Default 1

  • sizeinteger

    The page size, at most 50.

    Minimum 1 · Maximum 50 · Default 10

Response 200

  • dataarray of ReportListItemrequired

    The reports of the page, newest signed first.

    Show child attributesHide child attributes
    • booking_idstringrequired

      The ID of the booking the report documents.

    • report_idstringrequired

      The ID of the report.

    • signed_atstring (date-time)required

      When the report was signed, in UTC.

    • specialiststringrequired

      The ID of the specialist who wrote the report.

    • userstringrequired

      The ID of the patient.

  • has_nextbooleanrequired

    Whether the data has a next page or not

  • has_previousbooleanrequired

    Whether the data has a previous page or not

  • pageintegerrequired

    The page number of the data

  • sizeintegerrequired

    The size of the data

  • totalintegerrequired

    The total number of data

  • total_pagesintegerrequired

    The 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.

jsonError response
{
  "error": {
    "code": "not_found",
    "message": "The object does not exist.",
    "request_id": "req_0123456789abcdef0123456789abcdef"
  }
}
StatusCodeMeaning
400bad_requestThe from time must not be after the to time.
401invalid_api_keyThe API key is missing or not valid.
403company_archivedThis company is archived.
403company_not_liveThe company must be live to use prod keys.
403company_suspendedThis company is suspended.
403scope_not_grantedThis API key does not have the report:read scope.
422validation_errorquery.size: Input should be less than or equal to 50
429rate_limitedToo many requests. Wait before calling again.
500internal_errorSomething went wrong on our side. Please try again later.
502upstream_errorA Nurish'd service could not complete the request.
503upstream_unavailableA Nurish'd service is unavailable. Please try again later.
504upstream_timeoutA Nurish'd service did not answer in time. Please try again.

All error codes and what to do about them