Developer docs
HIPAA and PHI rules for developers
In short
On Dispense Flow, anything that ties a person to a treatment or a visit is PHI. Only the read_visits scope opens it, and only after you sign our BAA and we approve your app. Most apps do not need it: orders, customers and subscriptions carry ids, amounts and statuses, never answers, prescriptions or diagnoses.
What is PHI here?
A visit's existence, status and decision for a named customer, the product it was for, intake answers, prescriptions and diagnoses. The platform never sends answers, prescriptions or diagnoses to apps at all; read_visits opens visit status and decisions.
Do I need it?
Probably not. Accounting, fulfillment, marketing, reviews and analytics work from orders and customers. Request read_visits only when your app's purpose is clinical or operational care coordination and the store needs it.
What the BAA commits you to
Use the data only to provide your app to that store. Encrypt it in transit and at rest. Limit access to people who need it, and log that access. Train your staff. Sign BAAs with your own subprocessors that touch it. Notify us of a breach within five business days of discovering it. Return or destroy it when the store uninstalls or the agreement ends.
Never in messages
Never put a treatment, medication or visit detail in an email subject or body, an SMS or a push notification. "You have a new message" is fine; the content belongs behind a sign-in.
How we enforce it
The PHI scope is withheld from every install until approval; visit events reach only installs granted it; every API call is logged and visible to the store; and we can revoke an app's access at once.
Questions
Is customer email PHI?
On its own, alongside an order, we treat it as personal data and keep it out of visit events. Combined with a treatment it would be PHI, which is why visit events need the PHI scope.