Developers

Search the docs

Search guides and headings.

Visit reports

Learn when a dietitian signs a visit report, list your reports, read one with its sections and fetch the file of a section.

View as Markdown

You will learn when a dietitian signs the report of a visit you booked, list your reports, read one with its sections, and download the file of a section.

All report routes need the report:read scope, which needs a signed BAA. See BAA handling. The patient must have an active connection that allows care.reports. See Connecting a patient.

What you can see#

You get a report as the patient sees it.

  • Only signed reports. A report that is not signed yet is not visible to you.
  • Only reports of visits your company booked. A report of a visit the patient booked themselves, or that another company booked, is never listed and answers 404 not_found.
  • Only the sections the specialist shared with the patient. Private notes and the patient's own details are never part of it.

The report.signed event#

When a dietitian signs the report of a visit your company booked, one report.signed event is raised. The event is thin: it holds ids, never the report.

json
{
	"id": "evt_01JD2ZQ4M8K7R5T3V9X1B6C0HN",
	"type": "report.signed",
	"created": "2026-11-30T15:04:05Z",
	"mode": "prod",
	"data": {
		"object": "report",
		"id": "report-0001",
		"booking": "booking-0001",
		"patient": "patient-0001"
	}
}

data.id is the report id. Fetch the report with your key. A key sees the event only when it holds report:read. See Events and Webhooks.

List reports#

GET /care/v1/report/query/documents returns a page of signed reports, newest signed first. All filters are optional.

ParameterMeaning
patientKeep only the reports of this patient.
bookingKeep only the reports of this booking.
from, toKeep reports signed at or after, or at or before, this time. UTC offset.
page, sizeSee Pagination. size is at most 50.
bash
curl "https://api.dev.nurishd.ca/care/v1/report/query/documents?booking=booking-0001" \
  -H "X-Partner-API-Key: $NURISHD_API_KEY"

The list is thin: it holds only ids and signed_at. user is the patient and specialist is the specialist id. Read one report to get its sections.

json
{
	"data": [
		{
			"report_id": "report-0001",
			"booking_id": "booking-0001",
			"user": "patient-0001",
			"specialist": "3b7d9a52-0000-4000-8000-0000000000a1",
			"signed_at": "2026-11-30T15:04:05Z"
		}
	],
	"total_pages": 1,
	"total": 1,
	"page": 1,
	"size": 10,
	"has_next": false,
	"has_previous": false
}

If you ask for one booking and no report of it is known yet, the call also looks for a signed report of that visit. A report whose event you missed still shows up, and its event is raised once.

A patient whose connection is no longer active is left out of the list.

Read one report#

GET /care/v1/report/{report_id}/get/document returns the report and its shared sections, lowest section_order first.

bash
curl https://api.dev.nurishd.ca/care/v1/report/report-0001/get/document \
  -H "X-Partner-API-Key: $NURISHD_API_KEY"
FieldMeaning
statusdraft or signed. You see signed reports.
sections[].section_typenote, table, image, pdf or signature.
sections[].section_contentThe Markdown body. An image or a pdf section has none: read its file.
sections[].section_orderThe render order of the section, lowest first.
sections[].has_filetrue for a section with a file to download.
specialist_snapshot.first_name, last_nameThe name as it stood when the report was written. full_name is for display.

Fetch the file of a section#

For a section with has_file: true, call GET /care/v1/report/{report_id}/section/{section_id}/file/get/document. It answers a link.

bash
curl https://api.dev.nurishd.ca/care/v1/report/report-0001/section/section-0002/file/get/document \
  -H "X-Partner-API-Key: $NURISHD_API_KEY"

A section the specialist did not share, or a section without a file, answers 404 not_found.

After a connection is revoked#

When the patient revokes the connection, your access ends at once, even for a report you were told about.

  • The list no longer shows that patient.
  • Reading a report or a file answers 409 connection_not_active.

Errors#

See Errors for the shape. Do not retry a 4xx unchanged.

Status and codeWhat it means for you
403 scope_not_grantedThe key lacks report:read.
403 connection_scope_not_grantedThe patient does not share reports. Connect again and ask for care.reports.
404 not_foundThe report does not exist, or the visit was booked by the patient or another company. Also a section not shared, or one without a file.
409 connection_not_activeThe connection was revoked. You can no longer read this patient's reports.
422 validation_errorA parameter is invalid, such as a size over 50.

What the Sandbox simulates#

In the Sandbox a visit does not finish by itself, so no report appears. The test helper marks a visit done and signs a sample report. It needs the booking:write scope and works with Sandbox keys only: a Production key gets 403 test_mode_only.

POST /developer/v1/test-helper/booking/{booking_id}/complete/document takes no body. The booking must be one your company made with a Sandbox key, otherwise the answer is 404. A booking that was canceled or is already completed answers 409 booking_not_completable.

bash
curl -X POST https://api.dev.nurishd.ca/developer/v1/test-helper/booking/booking-0001/complete/document \
  -H "X-Partner-API-Key: $NURISHD_API_KEY"

The visit is now meeting_completed and the sample report is signed. Its content is invented. The report.signed event follows shortly after the route answers, and the report routes above work for report_id.

Next#