Skip to content

Seald Healthcare SDK

The Client SDK encrypts, opens, saves and shares patient records under the tenant’s access policies. Your application calls the SDK and never handles a key.

Platforms and packages

PlatformLanguagePackage
Web apps, desktop apps and the browser extensionTypeScriptnpm install seald-sdk
iOS and macOSSwiftSwift Package Manager, product SealdSDK
AndroidKotlinGradle, health.seald:sdk

See Install for the import and the configuration of create.

Example: open a record

Create the SDK, connect to a tenant, sign in and open a record. open returns a decision: allow, challenge or deny. Handle every case.

import { create } from 'seald-sdk';
const sealdhealthcare = await create({ kind: 'desktop', release: '1.4.0', adapters: { unlock, signIn } });
const client = await sealdhealthcare.connect(tenantId); // unlocks the device key
await client.session.signIn(); // signs in with the identity provider and proves the device key
const opened = await client.objects.open({ locator });
switch (opened.outcome) {
case 'allow':
render(opened); // shows the fields and marks masked ones
opened.close(); // discards the plaintext and its keys
break;
case 'challenge':
return show(await opened.stepUp()); // signs in again, then repeats the request
case 'deny':
return showReason(opened.reason, opened.text); // shows why, and who can give access
}

The Quickstart walks through each step.

Documentation

SectionContents
Start herePlatforms, install, quickstart, and the adapters your application supplies
Use casesCommon tasks in three steps or fewer: edit, upload, find, share, ask for access, export
Build your appEnroll a device, sessions, open, save, share, work offline
Administer a tenantPolicies, people and devices, legal holds, break-glass recovery, evidence
ConceptsAccess decisions, plaintext lifetime, key domains, the trust model
ReferenceEvery namespace, type, error code and deny reason