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.
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.
{
"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.
| Parameter | Meaning |
|---|---|
patient | Keep only the reports of this patient. |
booking | Keep only the reports of this booking. |
from, to | Keep reports signed at or after, or at or before, this time. UTC offset. |
page, size | See Pagination. size is at most 50. |
curl "https://api.dev.nurishd.ca/care/v1/report/query/documents?booking=booking-0001" \
-H "X-Partner-API-Key: $NURISHD_API_KEY"const params = new URLSearchParams({ booking: 'booking-0001' });
const res = await fetch(
`https://api.dev.nurishd.ca/care/v1/report/query/documents?${params}`,
{ headers: { 'X-Partner-API-Key': process.env.NURISHD_API_KEY } },
);
const reports = await res.json();import os
import requests
res = requests.get(
"https://api.dev.nurishd.ca/care/v1/report/query/documents",
params={"booking": "booking-0001"},
headers={"X-Partner-API-Key": os.environ["NURISHD_API_KEY"]},
)
reports = res.json()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.
{
"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.
curl https://api.dev.nurishd.ca/care/v1/report/report-0001/get/document \
-H "X-Partner-API-Key: $NURISHD_API_KEY"const res = await fetch(
'https://api.dev.nurishd.ca/care/v1/report/report-0001/get/document',
{ headers: { 'X-Partner-API-Key': process.env.NURISHD_API_KEY } },
);
const report = await res.json();import os
import requests
res = requests.get(
"https://api.dev.nurishd.ca/care/v1/report/report-0001/get/document",
headers={"X-Partner-API-Key": os.environ["NURISHD_API_KEY"]},
)
report = res.json(){
"report_id": "report-0001",
"booking_id": "booking-0001",
"user": "patient-0001",
"specialist": "3b7d9a52-0000-4000-8000-0000000000a1",
"specialist_snapshot": {
"specialist_id": "3b7d9a52-0000-4000-8000-0000000000a1",
"first_name": "Maya",
"last_name": "Okafor",
"full_name": "Maya Okafor",
"specialist_type": "Dietitian"
},
"status": "signed",
"signed_at": "2026-11-30T15:04:05Z",
"created_at": "2026-11-30T14:10:00Z",
"updated_at": "2026-11-30T15:04:05Z",
"sections": [
{
"section_id": "section-0001",
"report_id": "report-0001",
"section_name": "Summary",
"section_type": "note",
"section_description": null,
"section_order": 1,
"section_content": "You are on track. Keep the plan for two weeks.",
"has_file": false,
"signed_on": "2026-11-30T15:04:05Z",
"created_at": "2026-11-30T14:10:00Z",
"updated_at": "2026-11-30T15:04:05Z"
},
{
"section_id": "section-0002",
"report_id": "report-0001",
"section_name": "Lab results",
"section_type": "pdf",
"section_description": null,
"section_order": 2,
"section_content": null,
"has_file": true,
"signed_on": null,
"created_at": "2026-11-30T14:10:00Z",
"updated_at": "2026-11-30T14:10:00Z"
}
]
}| Field | Meaning |
|---|---|
status | draft or signed. You see signed reports. |
sections[].section_type | note, table, image, pdf or signature. |
sections[].section_content | The Markdown body. An image or a pdf section has none: read its file. |
sections[].section_order | The render order of the section, lowest first. |
sections[].has_file | true for a section with a file to download. |
specialist_snapshot.first_name, last_name | The 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.
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"const res = await fetch(
'https://api.dev.nurishd.ca/care/v1/report/report-0001/section/section-0002/file/get/document',
{ headers: { 'X-Partner-API-Key': process.env.NURISHD_API_KEY } },
);
const { url } = await res.json();
const file = await fetch(url);import os
import requests
res = requests.get(
"https://api.dev.nurishd.ca/care/v1/report/report-0001/section/section-0002/file/get/document",
headers={"X-Partner-API-Key": os.environ["NURISHD_API_KEY"]},
)
file = requests.get(res.json()["url"]){
"url": "https://files.example.com/signed-link"
}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 code | What it means for you |
|---|---|
403 scope_not_granted | The key lacks report:read. |
403 connection_scope_not_granted | The patient does not share reports. Connect again and ask for care.reports. |
404 not_found | The 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_active | The connection was revoked. You can no longer read this patient's reports. |
422 validation_error | A 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.
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"{
"booking_id": "booking-0001",
"report_id": "report-0001",
"status": "meeting_completed"
}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#
- Booking a visit: book first.
- Events: poll or receive events.
- BAA handling: what the report scope needs.
Something wrong on this page? Email hello@nurishd.io with the page address.