Developers

Search the docs

Search guides and headings.

BAA handling

Which scopes need a business associate agreement and what a company without one can do.

View as Markdown

You will know which scopes need a BAA, what happens without one, and what to do to get access to patient data.

A BAA is a business associate agreement between your company and Nurish'd. Nurish'd records its signing date on your company. You do not set it in the console.

Which scopes need a BAA#

ScopeNeeds a BAA
patient:writeYes
booking:readYes
booking:writeYes
report:readYes
health-profile:readYes
health-profile:writeYes
specialist:readNo
catalog:readNo
order:readNo
order:writeNo

Read does not remove the need for a BAA. A booking says that a person sees a dietitian at a given time. Reading it discloses health information exactly as writing it does.

What a company without a BAA can do#

  • List specialists, their services and open times with specialist:read. See Booking a visit.
  • Use meals: the catalog, customers and orders.
  • Not create a patient, and not read or write anything about any patient.

A call that needs a BAA scope answers 403 scope_not_granted.

json
{
	"error": {
		"code": "scope_not_granted",
		"message": "This key does not hold the scope this route needs.",
		"request_id": "req-0001"
	}
}

How the rule is enforced#

  • Nurish'd cannot grant a BAA scope to a company with no BAA date.
  • Every call is checked again. If the BAA date is cleared, the care scopes disappear from the company and from every key within a minute.
  • A key narrowed to booking:read cannot book. It answers 403 scope_not_granted on a booking create.

What to do#

  1. Sign a BAA with Nurish'd. Ask your Nurish'd contact or email hello@nurishd.io.
  2. Nurish'd records the BAA date and grants the care scopes to your company.
  3. Owners and admins can then create keys that hold them.

Handling patient data#

  • Never send patient data to support, in a ticket, a chat or an AI prompt.
  • Do not log response bodies of care routes. Log ids and request_id.
  • Do not store the time-limited link to a report file. Download the file and drop the link.
  • Events never carry patient data. They carry ids. Fetch the object with your key.

Next#