Skip to content

Find a patient

Find a patient’s records in a folder or by search. Search runs on the device. The Seald Healthcare Cloud never sees the query.

Who can do this: a member of the key domains in scope. Search covers only key domains the person is a member of.

The samples use the allowed helper from Access decisions.

Search matches names and the dataset’s index fields. To search by an identifier, such as a medical record number, the dataset must list it in indexFields.

// one folder
const listing = await allowed(await client.folders.list(folder));
// or a search
const found = await client.folders.search({ text: 'Jordan Lee' }, { datasets: ['encounters'] });

2. Show the entries

Render entries. A search also returns indexes, one decision per folder index. Show each denied index, because its entries are missing.

render(found.entries);
for (const index of found.indexes) if (index.decision.outcome === 'deny') showMissing(index.domain);

3. Open the chosen entry

Opening an entry is a separate decision. See Edit a record and save a new version.

Next