Pick the patient of a SMART sign-in
- Sandbox: available
- On your own host? Choose https://{host} in the playground.
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
SmartAppLaunchof that patient, authored by the profile, so the app's token names the patient and itspatient/scopes reach that patient's data only.
application/json- body
session*stringThe sign-in handle the previous step answered.
32 <= length <= 64patient*stringThe chosen patient's id.
^[A-Za-z0-9-]{1,64}$done, with the app's redirect.
application/json- response
next*stringWhat the page asks for next, or done.
"mfa""profile""patient""done"session*stringThe handle for the next step; null when done.
profiles*array<>The profiles to choose from, when next is profile.
redirect*stringWhere to send the browser when next is done: the app's redirect URI with code and state.
curl -X POST 'https://api.sandbox.ovok.com/v1/smart/sign-in/patient' \ -H 'Content-Type: application/json' \ -d '{ "session": "stringstringstringstringstringst", "patient": "string"}'{ "next": "mfa", "session": "string", "profiles": [ { "membership": "string", "resourceType": "string", "name": "string", "project": "string" } ], "redirect": "string"}Search the patients a SMART sign-in may pick POST
Lists up to 20 patients a SMART sign-in may pick, when its step is `patient`. ## Behaviour - The store answers as the chosen profile itself, so its access policy decides who is listed. - `name` matches part of the name; empty lists the first page.
List project relationships GET
Returns where your current project sits in the project hierarchy: its parent and its direct children. **Scope:** the caller's project (from the token). ## Behaviour - `parentProjectId` is `null` for a project with no parent. - `subProjectIds` lists direct children only. - The result is cached for up to 5 minutes. Creating or deleting a child through Ovok clears the cache; other changes can take that long to show. ## Example ```bash curl -X GET 'https://api.sandbox.ovok.com/v1/internal/sub-project' \ -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk' ``` **Who can call it:** a project admin. See [roles](/access-policies#who-can-call-a-route).