SMART App Launch

Pick the patient of a SMART sign-in

  • Sandbox: available
  • On your own host? Choose https://{host} in the playground.
POST
/v1/smart/sign-in/patient

Picks the patient of a SMART sign-in whose step is patient, and answers done with the app's redirect.

Behaviour

  • The chosen profile must be able to read the patient; otherwise 404.
  • Ovok stores a SmartAppLaunch of that patient, authored by the profile, so the app's token names the patient and its patient/ scopes reach that patient's data only.

Request Body

application/json
  1. body
session*string

The sign-in handle the previous step answered.

Length32 <= length <= 64
patient*string

The chosen patient's id.

Match^[A-Za-z0-9-]{1,64}$

Response Body

done, with the app's redirect.

application/json
  1. response
next*string

What the page asks for next, or done.

Value in"mfa""profile""patient""done"
session*string

The handle for the next step; null when done.

profiles*array<>

The profiles to choose from, when next is profile.

redirect*string

Where to send the browser when next is done: the app's redirect URI with code and state.

Example Request
curl -X POST 'https://api.sandbox.ovok.com/v1/smart/sign-in/patient' \  -H 'Content-Type: application/json' \  -d '{  "session": "stringstringstringstringstringst",  "patient": "string"}'
Example Response
{  "next": "mfa",  "session": "string",  "profiles": [    {      "membership": "string",      "resourceType": "string",      "name": "string",      "project": "string"    }  ],  "redirect": "string"}