🧠
BrainSAIT Healthcare SDK
Saudi-built. Globally compliant.

The operating system for Saudi healthcare innovation

Build compliant, multilingual healthcare experiences with an SDK engineered for NPHIES, FHIR R4/R5, and AI-driven workflows. Ship faster with glassmorphism UI components, secure APIs, and edge-ready architecture.

Deployment Edge optimized Cloudflare Workers • Pages • R2
Version v1.2.0 Auto-updated from /api/config
Coverage FHIR • NPHIES • HIPAA Security-first defaults & audit trails

Why healthcare builders choose BrainSAIT

Designed with Saudi care providers, insurers, and digital health innovators.

Security-first pipeline

Opinionated HIPAA + Saudi Data Protection enforcement, including encryption helpers, role-aware middleware, and audit logging hooks.

Arabic at the core

RTL-ready UI primitives, locale-aware validation, and pretrained Arabic AI prompts for intake, triage, and claims automation.

Edge-native performance

Cloudflare Workers deliver <150ms median response with KV caching, durable sessions, and smart retries tuned for clinical usage.

FHIR superpowers

Typed data models, bundle validation, NPHIES adapters, and async job orchestration for bulk claims and EMR synchronization.

Integrations ready out of the box

Connect your ecosystem without custom glue code.

FHIR R4/R5 NPHIES Sandbox & Production MASTERLINC Agents Glassmorphism UI Kit R2 Asset CDN

FHIR Federation

Streamlined resource CRUD with schema validation, bundle helpers, and cache-aware read patterns. Optimized for EMR interoperability.

NPHIES Compliance

Reusable workflows for eligibility, claims, and prior-authorization that respect Saudi payer rules, language, and audit demands.

AI Copilots

MASTERLINC & HEALTHCARELINC orchestrations for summarization, denials analysis, and clinical coding with guardrails.

Edge Observability

Built-in request tracing, structured logging (Pino), and health metrics stored in KV for fast diagnostics.

Production-ready in three calls

Initialize, validate connectivity, and start orchestrating healthcare journeys.

import { BrainSAITHealthcareSDK } from '@brainsait/healthcare-sdk';

const sdk = new BrainSAITHealthcareSDK({
    api: {
        baseUrl: 'https://api.brainsait.com',
        timeout: 30_000,
        retries: 3,
    },
    fhir: {
        serverUrl: 'https://fhir.nphies.sa',
        version: 'R4',
    },
    nphies: {
        baseUrl: 'https://nphies.sa',
        clientId: process.env.NPHIES_CLIENT_ID,
        scope: ['read', 'write'],
        sandbox: true,
    },
    localization: {
        defaultLanguage: 'ar',
        rtl: true,
    },
});

await sdk.initialize();
const health = await sdk.healthCheck();
console.log('Status:', health.status);
Deploy to Cloudflare Pages for marketing + docs and Workers for API orchestration.
Enforce zero-trust policies with JWT, MFA, and RBAC utilities bundled inside `security/`.
Extend via modular AI agents, UI components, and analytics hooks under `src/`.