Complete implementation guide for the Medical Records Web SDK
Medical Records Web SDK - Implementation
This guide provides everything you need to integrate the Medical Records Web SDK into your application.
Overview
The Medical Records Web SDK (@eka-care/medical-records-ts-sdk) is a TypeScript SDK for the Eka Care Medical Records API. It is offline-first and works in both browser and Electron renderer environments. It provides:
Records Management: Upload, list, group, download, edit and delete medical documents.
Smart Reports: Fetch AI-extracted structured data from lab reports.
Vital & Lab Trends: Plot every logged reading of a single parameter across a patient’s reports.
Cases: Organise records into cases (folders) — a record can belong to multiple cases.
Linked Profiles: Read records and cases across a primary profile and its linked dependents.
Offline Support: All data is cached in IndexedDB; writes done offline are auto-synced on reconnect.
Reactive UI Updates: Subscribe to DB change events so your UI auto-updates on any write.
Electron Support: Route API calls through an IPC bridge with a single config switch.
Installation
Prerequisites
A modern web browser (or Electron renderer) with IndexedDB support.
A valid auth token generated via the Connect Login API.
Override the API base URL. Takes precedence over environment. Pass '' to issue requests against the same origin (host page proxies the calls)
vaultBaseUrl
string
Optional
Override the vault host used by getParameterTrend (parameter/vital trends). Takes precedence over environment. Pass '' for same-origin
defaultHeaders
Record<string, string>
Optional
Eka identification headers — see below
cache
boolean
Optional
Defaults to true — IndexedDB offline cache is on by default. Pass false to disable (e.g. environments without IndexedDB, or when patient data must not persist on disk)
transport
TransportMode
Optional
TransportMode.Native = browser fetch (default). TransportMode.Bridge = Electron IPC
sdk.setAuthToken('eyJhbGciOi...'); // set after loginsdk.setAuthToken(undefined); // clear (falls back to cookie auth)
The token is sent as Authorization: Bearer <token> on every request.
On a 401 response, onUnauthorized is called — return a fresh token to auto-retry once.
Error Handling
import { EkaCareApiError, UploadFailedError, StorageLimitExceededError,} from '@eka-care/medical-records-ts-sdk';try { await sdk.addDocument({ ... });} catch (err) { if (err instanceof UploadFailedError) { // Auth succeeded but S3 upload failed — record saved as upload_failure // sdk.sync() retries automatically console.error('Failed IDs:', err.failures.map(f => f.documentId)); } else if (err instanceof StorageLimitExceededError) { // The tenant's storage quota is full — upload rejected by server console.error('Storage limit exceeded'); } else if (err instanceof EkaCareApiError) { console.error(err.message, err.statusCode, err.responseBody); }}
editDocument, deleteDocument, createCase, updateCase, deleteCasenever throw on network failure — local state is always updated and server
sync retries automatically.
Document Types
The document type is supplied by your UI — the SDK just stores the code (passed as documentType on upload/edit). The type codes come from the hub API.Common codes for reference:
Code
Label
ps
Prescription
lr
Lab Report
dc
Discharge Summary
vc
Vaccine Certificate
in
Insurance
iv
Invoice
sc
Scan
ot
Other
Troubleshooting
Common Issues
1. APIs Not Being Called
Problem: API requests are not triggered or return errors.Solution:
Ensure the auth token is set via sdk.setAuthToken() and has not expired.
Verify bid and patientId are passed on every call.
2. 401 Loops
Problem: Requests keep failing with 401.Solution:
Implement onUnauthorized and return a fresh token — the SDK auto-retries once.
If the refresh itself fails, redirect the user to login.
3. Stale Data in UI
Problem: The UI shows old records after an upload, edit or delete.Solution:
Subscribe to documents:changed / cases:changed events and re-query the local DB. See Offline & Sync.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Eka Developer Platform APIs","colors":{"primary":"#5B45C9","light":"#B6A8FF","dark":"#5B45C9"},"logo":{"light":"https://cdn.eka.care/vagus/clzwrv3o600260ti3bg9q1det.png","dark":"https://cdn.eka.care/vagus/clzws1tfc00270ti3eiwn5jo5.png"},"favicon":"https://mintcdn.com/ekacare/uZX0UtACdJOcX7uJ/favicon.svg?fit=max\u0026auto=format\u0026n=uZX0UtACdJOcX7uJ\u0026q=85\u0026s=9ecadef0a25715531f08b66c68c31915","api":{"examples":{"languages":["bash","python","typescript","java","csharp","ruby"]}},"background":{"color":{"light":"#FAFAF9","dark":"#0A0A0A"}},"navbar":{"links":[{"icon":"hammer","href":"/developer-tools","label":"Developer tools"},{"icon":"/images/icons/github.svg","href":"https://github.com/eka-care","label":"GitHub"},{"icon":"/images/icons/huggingface.svg","href":"https://huggingface.co/ekacare","label":"Hugging Face"},{"icon":"/images/icons/discord.svg","href":"https://discord.gg/THgd5S22EK","label":"Discord"}],"primary":{"type":"button","label":"Build Now","href":"https://console.eka.care"}},"footer":{"socials":{"x":"https://x.com/ekacarehq","github":"https://github.com/eka-care","linkedin":"https://www.linkedin.com/company/ekacare","discord":"https://discord.gg/THgd5S22EK","website":"https://www.eka.care"},"links":[{"header":"Solutions","items":[{"label":"Medical Scribe","href":"/docs/scribe/overview"},{"label":"Medical Document Parsing","href":"/docs/models/medical-document-parsing"},{"label":"Clinical MCP","href":"/docs/datasets/build-with-ai/mcp-server/introduction"},{"label":"ABDM Connect","href":"/docs/hie-cm/about"}]},{"header":"Resources","items":[{"label":"Get started","href":"/docs/get-started/overview"},{"label":"Cookbook","href":"/docs/get-started/cookbook"},{"label":"Auth","href":"/docs/auth/invite-flow"},{"label":"Encryption","href":"/docs/encryption/guide"},{"label":"Eka MCP","href":"/docs/emr/build-with-ai/mcp-server/introduction"},{"label":"Developer tools","href":"/developer-tools"}]},{"header":"Newsboard","items":[{"label":"Eka Labs","href":"/docs/models/spotlight"},{"label":"Under the hood","href":"/docs/get-started/under-the-hood"},{"label":"Changelog","href":"/docs/get-started/changelog"}]},{"header":"Community","items":[{"label":"GitHub","href":"https://github.com/eka-care"},{"label":"Hugging Face","href":"https://huggingface.co/ekacare"},{"label":"Discord","href":"https://discord.gg/THgd5S22EK"},{"label":"eka.care","href":"https://www.eka.care"}]}]},"fonts":{"heading":{"family":"Newsreader","weight":420},"body":{"family":"Geist"}},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ekacare","hasAudioNarration":false,"actualSubdomain":"ekacare","customDomains":["developer.eka.care"],"gitSource":{"type":"github","owner":"eka-care","repo":"eka-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afc068b857fea5d53b1126f","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"APIs \u0026 SDKs","count":461},{"language":"default","tag":"Build","count":322},{"language":"default","tag":"Eka EMR","count":322},{"language":"default","tag":"HIE-CM","count":222},{"language":"default","tag":"ABDM Connect","count":204},{"language":"default","tag":"IPD","count":169},{"language":"default","tag":"Documentation","count":164},{"language":"default","tag":"HIE-CM API","count":95},{"language":"default","tag":"Eka EMR API","count":83},{"language":"default","tag":"Workflows","count":64}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--eka-accent: #98B4FC;--eka-accent-ink: #4C7EFE;--eka-lilac: #5B45C9;--eka-lilac-tint: rgba(124, 92, 255, .12);--eka-lilac-edge: rgba(124, 92, 255, .22);--eka-lilac-hover: rgba(124, 92, 255, .18);--eka-neutral-edge: #D4D4D0;--eka-accent-wash: rgba(33, 95, 255, .07);--eka-heading: color-mix(in srgb, #141413 70%, #215FFF);--eka-line: #E7E7E4;--eka-surface: #FFFFFF;--eka-dot: rgba(147, 147, 142, .156);--eka-mono: \"Geist Mono\", ui-monospace, \"SF Mono\", monospace}.dark{--eka-accent: #445C9D;--eka-accent-ink: #6B93FF;--eka-lilac: #B6A8FF;--eka-lilac-tint: rgba(160, 140, 255, .14);--eka-lilac-edge: rgba(160, 140, 255, .25);--eka-lilac-hover: rgba(160, 140, 255, .20);--eka-neutral-edge: rgba(255, 255, 255, .18);--eka-accent-wash: rgba(107, 147, 255, .07);--eka-heading: color-mix(in srgb, #EDEDEC 70%, #6B93FF);--eka-line: rgba(255, 255, 255, .08);--eka-surface: #111111;--eka-dot: rgba(255, 255, 255, .054)}#background-color::after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle, var(--eka-dot) .95px, transparent 1.25px);background-size:24px 24px;-webkit-mask-image:radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 100%);mask-image:radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 100%)}#page-title,#content :is(h1,h2,h3,h4){font-weight:420!important;font-optical-sizing:auto;color:var(--eka-heading)!important;letter-spacing:.012em!important}body{letter-spacing:.015em}#sidebar{border-right:1px solid var(--eka-line)}#content-side-layout{border-left:1px solid var(--eka-line)}#content>h2{position:relative;margin-top:3.5rem;padding-top:2.5rem}#content>h2::before{content:\"\";position:absolute;top:0;left:0;right:0;height:5px;pointer-events:none;background:linear-gradient(var(--eka-line), var(--eka-line)) 0 0 / 100% 1px no-repeat,\n linear-gradient(var(--eka-line), var(--eka-line)) 0 100% / 100% 1px no-repeat}@media (min-width: 1024px){#content>h2::before{left:-43px;right:-4px}}@media (min-width: 1280px){#content>h2::before{right:-52px}}#content a.link:not(.eka-postman-btn){color:var(--eka-accent-ink)!important;border-bottom-color:color-mix(in srgb, var(--eka-accent-ink) 45%, transparent)!important}#content a.link:not(.eka-postman-btn):hover{border-bottom-color:var(--eka-accent-ink)!important}#topbar-cta-button a>span:first-child{background:var(--eka-lilac-tint)!important;box-shadow:inset 0 0 0 1px var(--eka-lilac-edge)}#topbar-cta-button a :is(span,svg){color:var(--eka-lilac)!important}#topbar-cta-button a{height:32px;padding:0 14px!important;font-size:13px!important;font-weight:500;align-items:center}#topbar-cta-button a>span:first-child{border-radius:999px!important}#topbar-cta-button a:hover>span:first-child{background:var(--eka-lilac-hover)!important;opacity:1!important}#topbar-cta-button a>div>svg{display:none!important}#content :is(code,pre),[data-component-part=\"code-block-root\"]{font-family:var(--eka-mono);letter-spacing:normal}.callout:is([data-callout-type=\"note\"],[data-callout-type=\"info\"]){border:1px solid var(--eka-line)!important;border-left:2px solid var(--eka-accent)!important;border-radius:0 12px 12px 0!important;background:var(--eka-surface)!important}.callout:is([data-callout-type=\"note\"],[data-callout-type=\"info\"]) [data-component-part=\"callout-icon\"]{color:var(--eka-accent-ink)}#content .card{border-color:var(--eka-line)!important;transition:border-color .15s ease, transform .15s ease}#content a.card:hover,#content a:hover>.card{border-color:var(--eka-accent)!important;transform:translateY(-2px)}#content [data-component-part=\"card-icon\"]{color:var(--eka-accent-ink)!important;fill:var(--eka-accent-ink)!important}[data-component-part=\"step-indicator\"]{background:var(--eka-surface)!important;box-shadow:inset 0 0 0 1px var(--eka-accent)!important;color:var(--eka-accent-ink)!important;font-family:var(--eka-mono)}.eka-card-wrapper{border-radius:14px;transition:transform 0.15s ease}.eka-card-wrapper:hover{transform:translateY(-3px)}.eka-card-wrapper:hover>*{box-shadow:0 12px 28px rgba(94, 106, 152, 0.16);border-color:var(--eka-accent)}.eka-divider{border:none;border-top:1px solid var(--eka-line);margin:48px 0}.eka-tags{display:inline;margin-left:6px;white-space:normal}.eka-tag{display:inline-block;font-size:11px;font-weight:500;line-height:1;padding:3px 7px;border-radius:6px;margin:0 0 2px 4px;vertical-align:middle;white-space:nowrap;color:#6B7280;background:rgba(107, 114, 128, 0.10)}.dark .eka-tag{color:#9CA3AF;background:rgba(156, 163, 175, 0.14)}.eka-postman{border:1px solid rgba(17, 24, 39, 0.10);border-radius:14px;padding:20px 24px;margin:16px 0 24px}.eka-postman-text{font-size:15px;line-height:1.6;color:#4B5563}.eka-postman-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.eka-postman-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border:1px solid var(--eka-neutral-edge);border-radius:8px;font-size:15px;font-weight:500;color:#141413;background:transparent;text-decoration:none;transition:background 0.15s ease}.eka-postman-btn:hover{background:rgba(20, 20, 19, .04)}.eka-postman-btn-primary{color:var(--eka-lilac);background:var(--eka-lilac-tint);border-color:var(--eka-lilac-edge)}.eka-postman-btn-primary:hover{background:rgba(124, 92, 255, .18)}.eka-postman-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid rgba(17, 24, 39, 0.10);border-radius:10px;background:rgba(17, 24, 39, 0.03)}.eka-postman-link code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;padding:6px 8px;border-radius:6px;background:rgba(17, 24, 39, 0.05)}.eka-postman-link button{flex-shrink:0;display:inline-flex;padding:4px;font-size:13px;color:#6B7280;background:none;border:none;cursor:pointer}.eka-postman-link button:hover{color:var(--eka-accent-ink)}.eka-postman-note{margin-top:12px;font-size:14px;color:#6B7280}.eka-postman-error{margin:-4px 0 12px;font-size:14px;color:#B42318}.dark .eka-postman-error{color:#F97066}.dark .eka-postman{border-color:rgba(255, 255, 255, 0.12)}.dark .eka-postman-text{color:#D1D5DB}.dark .eka-postman-btn{color:#EDEDEC;border-color:var(--eka-neutral-edge)}.dark .eka-postman-btn:hover{background:rgba(255, 255, 255, .05)}.dark .eka-postman-btn-primary{color:var(--eka-lilac);background:var(--eka-lilac-tint);border-color:var(--eka-lilac-edge)}.dark .eka-postman-btn-primary:hover{background:rgba(160, 140, 255, .20)}.dark .eka-postman-link{border-color:rgba(255, 255, 255, 0.12);background:rgba(255, 255, 255, 0.04)}.dark .eka-postman-link code{color:#E5E7EB;background:rgba(255, 255, 255, 0.06)}.dark .eka-postman-link button,.dark .eka-postman-note{color:#9CA3AF}[data-component-part=\"products-selector-content\"]{--ps-line: #E7E7E4;--ps-ink: #141413;--ps-ink-3: #93938E;--ps-bg: #FAFAF9;--ps-surface: #FFFFFF;background:var(--ps-surface)!important;border:1px solid var(--ps-line);border-radius:16px!important;padding:14px!important;box-shadow:0 1px 2px rgba(20, 20, 19, .04), 0 24px 48px rgba(20, 20, 19, .10)!important}.dark [data-component-part=\"products-selector-content\"]{--ps-line: rgba(255, 255, 255, .08);--ps-ink: #EDEDEC;--ps-ink-3: #6B6B68;--ps-bg: #0A0A0A;--ps-surface: #111111}[data-component-part=\"products-selector-content\"]>div{--fam: #64748B}[data-component-part=\"products-selector-content\"]>div:nth-child(1){--fam: #7C5CFF}[data-component-part=\"products-selector-content\"]>div:nth-child(2){--fam: #215FFF}[data-component-part=\"products-selector-content\"]>div:nth-child(3){--fam: #E8650A}.dark [data-component-part=\"products-selector-content\"]>div{--fam: #A3B1C6}.dark [data-component-part=\"products-selector-content\"]>div:nth-child(1){--fam: #A08CFF}.dark [data-component-part=\"products-selector-content\"]>div:nth-child(2){--fam: #6B93FF}.dark [data-component-part=\"products-selector-content\"]>div:nth-child(3){--fam: #FF9248}[data-component-part=\"products-selector-content\"]>div>div:first-child{width:13rem!important}@media (max-width: 960px){[data-component-part=\"products-selector-content\"]>div>div:first-child{width:100%!important}}[data-component-part=\"products-selector-content\"]>div>div:first-child>div:first-child{gap:7px;margin:4px 0 6px;padding:0 10px!important;font-family:ui-monospace, \"SF Mono\", \"Geist Mono\", monospace;font-size:.64rem!important;font-weight:400!important;letter-spacing:.08em;text-transform:uppercase;color:var(--ps-ink-3)!important}[data-component-part=\"products-selector-content\"]>div>div:first-child>div:first-child::before{content:\"\";width:7px;height:7px;flex:none;border-radius:50%;background:var(--fam)}[data-component-part=\"products-selector-item\"]{grid-template-columns:30px 1fr auto!important;align-items:flex-start!important;gap:11px!important;padding:8px 10px!important;border-radius:10px!important}[data-component-part=\"products-selector-item\"]:hover,[data-component-part=\"products-selector-item\"]:focus-visible{background:color-mix(in srgb, var(--ps-ink) 4.5%, transparent)!important}.nav-dropdown-products-selector-item-icon{position:relative;width:30px;height:30px;border:1px solid var(--ps-line);border-radius:9px;background:var(--ps-bg)}.nav-dropdown-products-selector-item-icon img{opacity:0;width:15px!important;height:15px!important}.nav-dropdown-products-selector-item-icon::after{content:\"\";position:absolute;inset:0;margin:auto;width:15px;height:15px;background-color:var(--fam);mask-repeat:no-repeat;mask-position:center;mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/mic.svg\"])::after{mask-image:url(\"/images/icons/products/mic.svg\");-webkit-mask-image:url(\"/images/icons/products/mic.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/plug.svg\"])::after{mask-image:url(\"/images/icons/products/plug.svg\");-webkit-mask-image:url(\"/images/icons/products/plug.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/stethoscope.svg\"])::after{mask-image:url(\"/images/icons/products/stethoscope.svg\");-webkit-mask-image:url(\"/images/icons/products/stethoscope.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/bot.svg\"])::after{mask-image:url(\"/images/icons/products/bot.svg\");-webkit-mask-image:url(\"/images/icons/products/bot.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/brain-circuit.svg\"])::after{mask-image:url(\"/images/icons/products/brain-circuit.svg\");-webkit-mask-image:url(\"/images/icons/products/brain-circuit.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/database.svg\"])::after{mask-image:url(\"/images/icons/products/database.svg\");-webkit-mask-image:url(\"/images/icons/products/database.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/clipboard-list.svg\"])::after{mask-image:url(\"/images/icons/products/clipboard-list.svg\");-webkit-mask-image:url(\"/images/icons/products/clipboard-list.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/bed-double.svg\"])::after{mask-image:url(\"/images/icons/products/bed-double.svg\");-webkit-mask-image:url(\"/images/icons/products/bed-double.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/receipt.svg\"])::after{mask-image:url(\"/images/icons/products/receipt.svg\");-webkit-mask-image:url(\"/images/icons/products/receipt.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/folder-heart.svg\"])::after{mask-image:url(\"/images/icons/products/folder-heart.svg\");-webkit-mask-image:url(\"/images/icons/products/folder-heart.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/arrow-left-right.svg\"])::after{mask-image:url(\"/images/icons/products/arrow-left-right.svg\");-webkit-mask-image:url(\"/images/icons/products/arrow-left-right.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/shield-check.svg\"])::after{mask-image:url(\"/images/icons/products/shield-check.svg\");-webkit-mask-image:url(\"/images/icons/products/shield-check.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/network.svg\"])::after{mask-image:url(\"/images/icons/products/network.svg\");-webkit-mask-image:url(\"/images/icons/products/network.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/rocket.svg\"])::after{mask-image:url(\"/images/icons/products/rocket.svg\");-webkit-mask-image:url(\"/images/icons/products/rocket.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/key-round.svg\"])::after{mask-image:url(\"/images/icons/products/key-round.svg\");-webkit-mask-image:url(\"/images/icons/products/key-round.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/webhook.svg\"])::after{mask-image:url(\"/images/icons/products/webhook.svg\");-webkit-mask-image:url(\"/images/icons/products/webhook.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/lock.svg\"])::after{mask-image:url(\"/images/icons/products/lock.svg\");-webkit-mask-image:url(\"/images/icons/products/lock.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/code.svg\"])::after{mask-image:url(\"/images/icons/products/code.svg\");-webkit-mask-image:url(\"/images/icons/products/code.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/messages-square.svg\"])::after{mask-image:url(\"/images/icons/products/messages-square.svg\");-webkit-mask-image:url(\"/images/icons/products/messages-square.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/compass.svg\"])::after{mask-image:url(\"/images/icons/products/compass.svg\");-webkit-mask-image:url(\"/images/icons/products/compass.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/flask-conical.svg\"])::after{mask-image:url(\"/images/icons/products/flask-conical.svg\");-webkit-mask-image:url(\"/images/icons/products/flask-conical.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/history.svg\"])::after{mask-image:url(\"/images/icons/products/history.svg\");-webkit-mask-image:url(\"/images/icons/products/history.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/activity.svg\"])::after{mask-image:url(\"/images/icons/products/activity.svg\");-webkit-mask-image:url(\"/images/icons/products/activity.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/git-branch.svg\"])::after{mask-image:url(\"/images/icons/products/git-branch.svg\");-webkit-mask-image:url(\"/images/icons/products/git-branch.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/chef-hat.svg\"])::after{mask-image:url(\"/images/icons/products/chef-hat.svg\");-webkit-mask-image:url(\"/images/icons/products/chef-hat.svg\")}.nav-dropdown-products-selector-item-icon:has(img[src$=\"/package.svg\"])::after{mask-image:url(\"/images/icons/products/package.svg\");-webkit-mask-image:url(\"/images/icons/products/package.svg\")}.dark [data-component-part=\"products-selector-trigger\"]>img{filter:invert(1);opacity:.85}.nav-dropdown-products-selector-item-title{font-size:.84rem!important;font-weight:550!important;color:var(--ps-ink)!important}.nav-dropdown-products-selector-item-description{font-size:.74rem!important;line-height:1.4;margin-top:1px;color:var(--ps-ink-3)!important;white-space:normal!important;-webkit-line-clamp:2!important;line-clamp:2!important}[data-component-part=\"products-selector-item\"][data-selected=\"true\"] .nav-dropdown-products-selector-item-icon{border-color:color-mix(in srgb, var(--fam) 45%, transparent);background:color-mix(in srgb, var(--fam) 12%, var(--ps-surface))}#navigation-items .sidebar-group-header{gap:0!important;padding-left:1rem}#navigation-items .sidebar-group-header :is(svg,img){display:none!important}#navigation-items .sidebar-title{font-family:ui-monospace, \"SF Mono\", \"Geist Mono\", monospace!important;font-size:.66rem!important;font-weight:500!important;letter-spacing:.08em;text-transform:uppercase;color:#93938E!important}.dark #navigation-items .sidebar-title{color:#6B6B68!important}#navigation-items>div+div{margin-top:1.25rem!important}#navigation-items ul.sidebar-group li>ul{margin-left:1.45rem;padding-left:.5rem;border-left:1px solid #E7E7E4}.dark #navigation-items ul.sidebar-group li>ul{border-left-color:rgba(255, 255, 255, .08)}#navigation-items ul.sidebar-group li>ul :is(svg,img){width:14px!important;height:14px!important;opacity:.7}.eka-qs{border:1px solid #E7E7E4;border-radius:16px;background:#FFFFFF;padding:20px 24px 16px;margin:16px 0 28px;color:#1F2937;font-size:15px;line-height:1.55}.eka-qs code{font-size:13px;padding:1px 5px;border-radius:5px;background:rgba(17, 24, 39, 0.05)}.eka-qs a{color:#215FFF;text-decoration:underline;text-underline-offset:2px}.eka-qs-stepper{display:flex;gap:0;list-style:none;margin:0 0 12px;padding:0 0 4px;overflow-x:auto}.eka-qs-stepper-item{display:flex;align-items:flex-start;flex:1 0 auto;margin:0;padding:0}.eka-qs-stepper-item+.eka-qs-stepper-item::before{content:\"\";flex:1 0 16px;height:1px;margin:18px 6px 0;background:#E7E7E4}.eka-qs-stepper-btn{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:72px;padding:0;border:none;background:none;color:inherit;font:inherit;cursor:pointer}.eka-qs-stepper-btn:disabled{cursor:default}.eka-qs-circle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid #E7E7E4;background:#FFFFFF;color:#6B7280;font-size:14px;font-weight:600}.eka-qs-stepper-label{font-size:13px;color:#6B7280;text-align:center;white-space:nowrap}.eka-qs-current .eka-qs-circle{background:#215FFF;border-color:#215FFF;color:#FFFFFF}.eka-qs-current .eka-qs-stepper-label{color:#111827;font-weight:700}.eka-qs-done .eka-qs-circle{border-color:#215FFF;color:#215FFF}.eka-qs-status{min-height:1.5em;margin:4px 0 12px;font-size:14px;color:#4B5563}.eka-qs-status-ok{color:#067647}.eka-qs-status-error{color:#B42318}.eka-qs-status-info{color:#1D4ED8}.eka-qs-form{display:flex;flex-direction:column;gap:14px}.eka-qs-form form{display:flex;flex-direction:column;gap:14px}.eka-qs-title{margin:0;font-size:17px;font-weight:600;color:#111827}.eka-qs-lede{margin:-6px 0 0;color:#4B5563}.eka-qs-field{display:flex;flex-direction:column;gap:6px}.eka-qs-label{font-size:14px;font-weight:500;color:#111827}.eka-qs-pill{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600;vertical-align:middle;color:#B54708;background:#FEF0C7}.eka-qs-input{width:100%;box-sizing:border-box;padding:9px 12px;border:1px solid #D0D5DD;border-radius:10px;background:#FFFFFF;color:#111827;font:inherit}.eka-qs-input:focus{outline:2px solid rgba(33, 95, 255, 0.35);outline-offset:1px;border-color:#215FFF}.eka-qs-secret{display:flex;gap:8px}.eka-qs-secret .eka-qs-input{flex:1;min-width:0}.eka-qs-reveal{flex-shrink:0;padding:0 14px;border:1px solid #D0D5DD;border-radius:10px;background:#FFFFFF;color:#374151;font-size:13px;cursor:pointer}.eka-qs-hint{margin:0;font-size:13px;color:#6B7280}.eka-qs-btn{align-self:flex-start;padding:9px 18px;border:1px solid #215FFF;border-radius:10px;background:#215FFF;color:#FFFFFF;font:inherit;font-weight:600;cursor:pointer}.eka-qs-btn:hover:not(:disabled){background:#1A4FD6}.eka-qs-btn:disabled{opacity:0.5;cursor:not-allowed}.eka-qs-btn-quiet{background:#FFFFFF;color:#215FFF}.eka-qs-btn-quiet:hover:not(:disabled){background:rgba(33, 95, 255, 0.06)}.eka-qs-chips{display:flex;flex-wrap:wrap;gap:8px}.eka-qs-chip{padding:5px 12px;border:1px solid #D0D5DD;border-radius:999px;background:#FFFFFF;color:#111827;font-size:14px;cursor:pointer}.eka-qs-chip-on{border-color:#215FFF;color:#215FFF;background:rgba(33, 95, 255, 0.06)}.eka-qs-callout,.eka-qs-result{padding:12px 16px;border:1px solid #E7E7E4;border-radius:12px;background:#F9FAFB}.eka-qs-callout p,.eka-qs-result p{margin:0 0 8px}.eka-qs-callout p:last-child,.eka-qs-result p:last-child{margin-bottom:0}.eka-qs-callout ul{margin:0 0 8px;padding-left:20px}.eka-qs-result dl{display:grid;gap:6px;margin:0 0 12px}.eka-qs-result dl div{display:flex;flex-wrap:wrap;gap:4px 12px}.eka-qs-result dt{min-width:110px;font-weight:600;color:#374151}.eka-qs-result dd{margin:0;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;word-break:break-all}.eka-qs-log{display:flex;flex-direction:column;gap:12px}.eka-qs-exchange{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);gap:12px}.eka-qs-panel{min-width:0}.eka-qs-panel-label{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:#6B7280}.eka-qs-pre{margin:0;max-height:320px;overflow:auto;padding:10px 12px;border:1px solid #E7E7E4;border-radius:10px;background:#F9FAFB;color:#1F2937;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:12.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.eka-qs-code{padding:1px 7px;border-radius:999px;font-size:11px;letter-spacing:0}.eka-qs-code-ok{color:#067647;background:#DCFAE6}.eka-qs-code-bad{color:#B42318;background:#FEE4E2}.eka-qs-note{margin:6px 0 0;font-size:13px;color:#6B7280}.eka-qs-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:18px;padding-top:12px;border-top:1px solid #E7E7E4}.eka-qs-sandbox{font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:12px;color:#6B7280}@media (max-width: 640px){.eka-qs{padding:16px}.eka-qs-exchange{grid-template-columns:minmax(0, 1fr)}.eka-qs-stepper-btn{min-width:64px}}.dark .eka-qs{background:#0F1117;border-color:rgba(255, 255, 255, 0.12);color:#E5E7EB}.dark .eka-qs code{background:rgba(255, 255, 255, 0.08)}.dark .eka-qs a{color:#7DA2FF}.dark .eka-qs-stepper-item+.eka-qs-stepper-item::before{background:rgba(255, 255, 255, 0.12)}.dark .eka-qs-circle{background:#0F1117;border-color:rgba(255, 255, 255, 0.18);color:#9CA3AF}.dark .eka-qs-stepper-label,.dark .eka-qs-hint,.dark .eka-qs-note,.dark .eka-qs-sandbox,.dark .eka-qs-panel-label{color:#9CA3AF}.dark .eka-qs-current .eka-qs-circle{background:#215FFF;border-color:#215FFF;color:#FFFFFF}.dark .eka-qs-current .eka-qs-stepper-label,.dark .eka-qs-title,.dark .eka-qs-label{color:#F9FAFB}.dark .eka-qs-done .eka-qs-circle{border-color:#7DA2FF;color:#7DA2FF}.dark .eka-qs-lede,.dark .eka-qs-status{color:#D1D5DB}.dark .eka-qs-status-ok{color:#75E0A7}.dark .eka-qs-status-error{color:#F97066}.dark .eka-qs-status-info{color:#93B4FF}.dark .eka-qs-pill{color:#FEC84B;background:rgba(254, 200, 75, 0.14)}.dark .eka-qs-input,.dark .eka-qs-reveal,.dark .eka-qs-chip{background:#161922;border-color:rgba(255, 255, 255, 0.16);color:#F3F4F6}.dark .eka-qs-btn-quiet{background:transparent;color:#7DA2FF;border-color:#7DA2FF}.dark .eka-qs-chip-on{border-color:#7DA2FF;color:#7DA2FF;background:rgba(125, 162, 255, 0.10)}.dark .eka-qs-callout,.dark .eka-qs-result,.dark .eka-qs-pre{background:rgba(255, 255, 255, 0.04);border-color:rgba(255, 255, 255, 0.12);color:#E5E7EB}.dark .eka-qs-result dt{color:#D1D5DB}.dark .eka-qs-code-ok{color:#75E0A7;background:rgba(117, 224, 167, 0.12)}.dark .eka-qs-code-bad{color:#F97066;background:rgba(249, 112, 102, 0.12)}.dark .eka-qs-footer{border-top-color:rgba(255, 255, 255, 0.12)}#navbar a[href^=\"https://discord.gg/\"]>span{display:none!important}#navbar a[href^=\"https://discord.gg/\"]>svg{width:18px;height:18px}#navbar a[href=\"/developer-tools\"]>span,#navbar a[href=\"https://github.com/eka-care\"]>span,#navbar a[href=\"https://huggingface.co/ekacare\"]>span,#navbar a[href=\"https://discord.gg/THgd5S22EK\"]>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}#navbar a[href=\"/developer-tools\"],#navbar a[href=\"https://github.com/eka-care\"],#navbar a[href=\"https://huggingface.co/ekacare\"],#navbar a[href=\"https://discord.gg/THgd5S22EK\"]{padding:6px;border-radius:8px}#navbar a[href=\"https://github.com/eka-care\"] img,#navbar a[href=\"https://huggingface.co/ekacare\"] img,#navbar a[href=\"https://discord.gg/THgd5S22EK\"] img{opacity:.8}.dark #navbar a[href=\"https://github.com/eka-care\"] img,.dark #navbar a[href=\"https://huggingface.co/ekacare\"] img,.dark #navbar a[href=\"https://discord.gg/THgd5S22EK\"] img{filter:invert(1)}#footer{background:color-mix(in srgb, #7C5CFF 7%, transparent)}.eka-footmark{width:100%;max-width:1080px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:18px 32px 28px;border-top:1px solid rgba(124, 92, 255, .22);font-size:.8rem;color:rgb(var(--gray-500))}.eka-footmark b{font-weight:500;color:rgb(var(--gray-900))}.dark .eka-footmark b{color:rgb(var(--gray-100))}.eka-footmark span{display:inline-flex;align-items:center;gap:8px}.eka-heart{display:inline-flex;transition:transform .2s}.eka-heart:hover{transform:scale(1.15)}html[data-current-path=\"/\"]:not(:has(.eka-landing)) body>*{visibility:hidden}html[data-current-path=\"/\"]:not(:has(.eka-landing)) body{background:#FAFAF9}html.dark[data-current-path=\"/\"]:not(:has(.eka-landing)) body{background:#0A0A0A}"}]}
{"page":{"pagePath":"api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started","slug":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started","pageMetadata":{"icon":"rocket","title":"Get Started","description":"Complete implementation guide for the Medical Records Web SDK","sidebarTitle":"Records web SDK","href":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Complete implementation guide for the Medical Records Web SDK\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Icon,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`medical-records-web-sdk-implementation`,children:`Medical Records Web SDK - Implementation`}),`\n`,_jsx(_components.p,{children:`This guide provides everything you need to integrate the Medical Records Web SDK into your application.`}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`The Medical Records Web SDK (`,_jsx(_components.code,{children:`@eka-care/medical-records-ts-sdk`}),`) is a TypeScript SDK for the Eka Care Medical Records API. It is `,_jsx(_components.strong,{children:`offline-first`}),` and works in both `,_jsx(_components.strong,{children:`browser`}),` and `,_jsx(_components.strong,{children:`Electron`}),` renderer environments. It provides:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Records Management`}),`: Upload, list, group, download, edit and delete medical documents.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Smart Reports`}),`: Fetch AI-extracted structured data from lab reports.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Vital \u0026 Lab Trends`}),`: Plot every logged reading of a single parameter across a patient’s reports.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cases`}),`: Organise records into cases (folders) — a record can belong to multiple cases.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Linked Profiles`}),`: Read records and cases across a primary profile and its linked dependents.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Offline Support`}),`: All data is cached in IndexedDB; writes done offline are auto-synced on reconnect.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reactive UI Updates`}),`: Subscribe to DB change events so your UI auto-updates on any write.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Electron Support`}),`: Route API calls through an IPC bridge with a single config switch.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsx(Heading,{level:`3`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A modern web browser (or Electron renderer) with IndexedDB support.`}),`\n`,_jsxs(_components.li,{children:[`A valid auth token generated via the `,_jsx(_components.a,{href:`https://developer.eka.care/api-sdk/auth/client-login`,children:`Connect Login`}),` API.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`setup`,children:`Setup`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @eka-care/medical-records-ts-sdk`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick Start`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MedicalRecordsClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@eka-care/medical-records-ts-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MedicalRecordsClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` defaultHeaders:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'client-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your-client-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'flavour'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your-flavour'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // cache defaults to true — pass cache: false to disable IndexedDB`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setAuthToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'eyJhbGciOi...'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` docs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`listDocuments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bid:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your-business-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`patientId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'oid'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MedicalRecordsClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SDKConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`environment`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SDKEnvironment`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`SDKEnvironment.Prod`}),` = `,_jsx(_components.code,{children:`api.eka.care`}),` (default), `,_jsx(_components.code,{children:`SDKEnvironment.Dev`}),` = `,_jsx(_components.code,{children:`api.dev.eka.care`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`baseUrl`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsxs(_components.td,{children:[`Override the API base URL. Takes precedence over `,_jsx(_components.code,{children:`environment`}),`. Pass `,_jsx(_components.code,{children:`''`}),` to issue requests against the same origin (host page proxies the calls)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vaultBaseUrl`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsxs(_components.td,{children:[`Override the vault host used by `,_jsx(_components.code,{children:`getParameterTrend`}),` (parameter/vital trends). Takes precedence over `,_jsx(_components.code,{children:`environment`}),`. Pass `,_jsx(_components.code,{children:`''`}),` for same-origin`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`defaultHeaders`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Record\u003cstring, string>`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsx(_components.td,{children:`Eka identification headers — see below`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cache`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsxs(_components.td,{children:[`Defaults to `,_jsx(_components.code,{children:`true`}),` — IndexedDB offline cache is on by default. Pass `,_jsx(_components.code,{children:`false`}),` to disable (e.g. environments without IndexedDB, or when patient data must not persist on disk)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transport`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TransportMode`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TransportMode.Native`}),` = browser fetch (default). `,_jsx(_components.code,{children:`TransportMode.Bridge`}),` = Electron IPC`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onError`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(err: unknown) => void`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsx(_components.td,{children:`Called on every SDK error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onUnauthorized`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`() => Promise\u003cstring | undefined> | string | undefined`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsx(_components.td,{children:`Called on 401 — return a fresh token to auto-retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onLog`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(log: SDKLog) => void`})}),_jsxs(_components.td,{children:[_jsx(Icon,{icon:`gear`}),` Optional`]}),_jsxs(_components.td,{children:[`Receives structured CRUD events emitted by the SDK — see `,_jsx(_components.a,{href:`https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/offline-and-sync`,children:`Offline \u0026 Sync → Logging`})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`identification-headers`,children:`Identification headers`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`defaultHeaders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'client-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'doc-web'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// app identifier`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'flavour'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ekascribe-web'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// app variant`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`These headers are merged into every HTTP request automatically.`}),`\n`,_jsx(Heading,{level:`3`,id:`full-config-example`,children:`Full config example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MedicalRecordsClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SDKEnvironment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TransportMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@eka-care/medical-records-ts-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MedicalRecordsClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` environment:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` SDKEnvironment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Prod`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` defaultHeaders:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'client-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'doc-web'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'flavour'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ekascribe-web'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cache:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// default — omit to get the same effect`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` transport:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TransportMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Native`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onLog`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // log: { eventName, eventType, status, platform, entityType, params, message, patientOid, bid, timestamp }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`[\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`eventName`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`] `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`platform`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\")`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'[SDK]'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onUnauthorized`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` refreshToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setAuthToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'eyJhbGciOi...'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// set after login`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setAuthToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`undefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// clear (falls back to cookie auth)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The token is sent as `,_jsx(_components.code,{children:`Authorization: Bearer \u003ctoken>`}),` on every request.\nOn a 401 response, `,_jsx(_components.code,{children:`onUnauthorized`}),` is called — return a fresh token to auto-retry once.`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error Handling`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` EkaCareApiError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` UploadFailedError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` StorageLimitExceededError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@eka-care/medical-records-ts-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addDocument`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` UploadFailedError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Auth succeeded but S3 upload failed — record saved as upload_failure`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // sdk.sync() retries automatically`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Failed IDs:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`failures`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`f`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` f`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`documentId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` StorageLimitExceededError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // The tenant's storage quota is full — upload rejected by server`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Storage limit exceeded'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` EkaCareApiError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`statusCode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`responseBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`editDocument`}),`, `,_jsx(_components.code,{children:`deleteDocument`}),`, `,_jsx(_components.code,{children:`createCase`}),`, `,_jsx(_components.code,{children:`updateCase`}),`, `,_jsx(_components.code,{children:`deleteCase`}),`\n`,_jsx(_components.strong,{children:`never throw`}),` on network failure — local state is always updated and server\nsync retries automatically.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`document-types`,children:`Document Types`}),`\n`,_jsxs(_components.p,{children:[`The document type is supplied by your UI — the SDK just stores the code (passed as `,_jsx(_components.code,{children:`documentType`}),` on upload/edit). The type codes come from the hub API.`]}),`\n`,_jsx(_components.p,{children:`Common codes for reference:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Label`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ps`})}),_jsx(_components.td,{children:`Prescription`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lr`})}),_jsx(_components.td,{children:`Lab Report`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dc`})}),_jsx(_components.td,{children:`Discharge Summary`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vc`})}),_jsx(_components.td,{children:`Vaccine Certificate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`in`})}),_jsx(_components.td,{children:`Insurance`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`iv`})}),_jsx(_components.td,{children:`Invoice`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sc`})}),_jsx(_components.td,{children:`Scan`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ot`})}),_jsx(_components.td,{children:`Other`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`common-issues`,children:`Common Issues`}),`\n`,_jsx(Heading,{level:`4`,id:`1-apis-not-being-called`,children:`1. APIs Not Being Called`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: API requests are not triggered or return errors.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Ensure the auth token is set via `,_jsx(_components.code,{children:`sdk.setAuthToken()`}),` and has not expired.`]}),`\n`,_jsxs(_components.li,{children:[`Verify `,_jsx(_components.code,{children:`bid`}),` and `,_jsx(_components.code,{children:`patientId`}),` are passed on every call.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`2-401-loops`,children:`2. 401 Loops`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Requests keep failing with 401.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Implement `,_jsx(_components.code,{children:`onUnauthorized`}),` and return a fresh token — the SDK auto-retries once.`]}),`\n`,_jsx(_components.li,{children:`If the refresh itself fails, redirect the user to login.`}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`3-stale-data-in-ui`,children:`3. Stale Data in UI`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: The UI shows old records after an upload, edit or delete.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Subscribe to `,_jsx(_components.code,{children:`documents:changed`}),` / `,_jsx(_components.code,{children:`cases:changed`}),` events and re-query the local DB. See `,_jsx(_components.a,{href:`https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/offline-and-sync`,children:`Offline \u0026 Sync`}),`.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"icon":"rocket","title":"Get Started","description":"Complete implementation guide for the Medical Records Web SDK","sidebarTitle":"Records web SDK","href":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Medical Records Web SDK - Implementation","slug":"medical-records-web-sdk-implementation","depth":1,"children":[]},{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Installation","slug":"installation","depth":2,"children":[{"title":"Prerequisites","slug":"prerequisites","depth":3,"children":[]},{"title":"Setup","slug":"setup","depth":3,"children":[]}]},{"title":"Quick Start","slug":"quick-start","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[{"title":"Identification headers","slug":"identification-headers","depth":3,"children":[]},{"title":"Full config example","slug":"full-config-example","depth":3,"children":[]}]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Error Handling","slug":"error-handling","depth":2,"children":[]},{"title":"Document Types","slug":"document-types","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"Common Issues","slug":"common-issues","depth":3,"children":[]},{"title":"1. APIs Not Being Called","slug":"1-apis-not-being-called","depth":4,"children":[]},{"title":"2. 401 Loops","slug":"2-401-loops","depth":4,"children":[]},{"title":"3. Stale Data in UI","slug":"3-stale-data-in-ui","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ekacare/274025ccf21300f6/api-reference-link.js","/_mintlify/custom/ekacare/d45043582cd01159/ask-ai.js","/_mintlify/custom/ekacare/42ebe35a74070514/console-links.js","/_mintlify/custom/ekacare/5e6903411e400df6/footer-mark.js","/_mintlify/custom/ekacare/5f178d6c6749d135/sidebar-memory.js"],"subdomain":"ekacare","siteName":"Eka Developer Platform APIs","title":"Get Started - Eka Developer Platform APIs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T15:04:44.638Z","originalFileLocation":"api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Complete implementation guide for the Medical Records Web SDK\">\u003cmeta data-mint-head name=\"application-name\" content=\"Eka Developer Platform APIs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Started - Eka Developer Platform APIs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Complete implementation guide for the Medical Records Web SDK\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Eka Developer Platform APIs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ekacare.mintlify.site/_mintlify/api/og/v2?division=SDKs\u0026amp;title=Get+Started\u0026amp;description=Complete+implementation+guide+for+the+Medical+Records+Web+SDK\u0026amp;theme=ebd9a500ade8f2a489d311f1\u0026amp;signature=7c15aa9b8f939833c72b103793351b89a27a0f92e37981a0c5d5d7b88947315a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Started - Eka Developer Platform APIs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Complete implementation guide for the Medical Records Web SDK\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ekacare.mintlify.site/_mintlify/api/og/v2?division=SDKs\u0026amp;title=Get+Started\u0026amp;description=Complete+implementation+guide+for+the+Medical+Records+Web+SDK\u0026amp;theme=ebd9a500ade8f2a489d311f1\u0026amp;signature=7c15aa9b8f939833c72b103793351b89a27a0f92e37981a0c5d5d7b88947315a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ekacare/I5vwrJDJkiTYS8E3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Eka Developer Platform APIs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B45C9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.eka.care/#organization\",\"name\":\"Eka Developer Platform APIs\",\"url\":\"https://developer.eka.care\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.eka.care/vagus/clzwrv3o600260ti3bg9q1det.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.eka.care#website\",\"name\":\"Eka Developer Platform APIs\",\"url\":\"https://developer.eka.care\",\"publisher\":{\"@id\":\"https://developer.eka.care/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started#webpage\",\"url\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started\",\"name\":\"Get Started\",\"description\":\"Complete implementation guide for the Medical Records Web SDK\",\"dateModified\":\"2026-11-13T15:04:44.638Z\",\"isPartOf\":{\"@id\":\"https://developer.eka.care#website\"},\"breadcrumb\":{\"@id\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Health Records\",\"item\":\"https://developer.eka.care/api-sdk/health-records/create-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SDKs\",\"item\":\"https://developer.eka.care/api-sdk/health-records/sdks/ios-sdk\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get Started\",\"item\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started#article\",\"headline\":\"Get Started\",\"name\":\"Get Started\",\"description\":\"Complete implementation guide for the Medical Records Web SDK\",\"url\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started\",\"mainEntityOfPage\":{\"@id\":\"https://developer.eka.care/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started#webpage\"},\"dateModified\":\"2026-11-13T15:04:44.638Z\",\"publisher\":{\"@id\":\"https://developer.eka.care/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.eka.care#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Eka Developer Platform APIs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Eka Developer Platform APIs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started.md","siteName":"Eka Developer Platform APIs","nav":{"global":null,"products":[{"product":"Clinical AI","icon":"sparkles","description":"The medical scribe, document parsing and the clinical MCP server, to build your own tools.","menu":[{"item":"Medical Scribe","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/mic.svg","description":"Consultations become structured notes that complete the chart","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/scribe/overview"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/scribe/sessions/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/get-started/ekascribe-changelog"}]}]},{"item":"Medical Document Parsing","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/brain-circuit.svg","description":"Any medical record, in any format, becomes structured data","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/models/medical-document-parsing"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/models/medical-document-parsing/introduction"}]}]},{"item":"Clinical MCP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/stethoscope.svg","description":"Ground your agent in Indian drugs, treatment protocols, pharmacology and clinical calculators","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/datasets/build-with-ai/mcp-server/introduction"}]}]}],"pages":[{"title":"Clinical AI","href":"/docs/scribe/overview"}]},{"product":"ABDM Connect","icon":"hospital","description":"ABHA, consent and record exchange across India's health stack, plus insurance claims.","menu":[{"item":"HIE-CM","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/arrow-left-right.svg","description":"ABHA, care contexts, consent and records","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/hie-cm/about"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/hie-cm/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/hie-cm/changelog"}]}]},{"item":"NHCX","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/shield-check.svg","description":"Eligibility, pre-auth and insurance claims","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/nhcx/getting-started"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/nhcx/search-payers"}]}]},{"item":"UHI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/network.svg","description":"Blood bank search and consultations across the network","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/uhi/journeys/uhi-book-physical-consultation"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/uhi/blood-bank/state-district"}]}]}],"pages":[{"title":"ABDM Connect","href":"/docs/hie-cm/about"}]},{"product":"Platform","icon":"key","description":"Get started, sign-in, webhooks and encryption, shared by every product.","menu":[{"item":"Get started","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/rocket.svg","description":"Overview, products and glossary","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/get-started/overview"}]}]},{"item":"Auth","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/key-round.svg","description":"Client credentials, OAuth2 and OIDC","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/auth/invite-flow"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/auth/getting-started"}]}]},{"item":"Webhooks","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/webhook.svg","description":"Register, receive and verify events","tabs":[{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/webhooks/getting-started"}]}]},{"item":"Encryption","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/lock.svg","description":"End-to-end encryption and IP allowlisting","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/encryption/guide"}]}]}],"pages":[{"title":"Platform","href":"/docs/get-started/overview"}]},{"product":"Build","icon":"hammer","description":"Eka EMR, worked examples, the Eka MCP server and Eka open source.","menu":[{"item":"Eka EMR","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/clipboard-list.svg","description":"Patients, appointments and prescriptions","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/emr/patients"}]},{"tab":"APIs \u0026 SDKs","pages":[{"group":"Eka EMR API","pages":[{"title":null,"href":"/api-sdk/emr/instructions/before-you-begin"},{"group":"Patient Directory APIs","icon":"hospital-user","expanded":true,"pages":[{"openapi":"post /dr/v1/patient","title":"Add Patient to Directory","href":"/api-sdk/emr/patient-registration-api/add-patient-to-directory"},{"openapi":"get /dr/v1/business/patients/search","title":"Search Patient profiles by mobile number","href":"/api-sdk/emr/patient-registration-api/search-patient-by-mobile"},{"openapi":"get /dr/v1/patient/{patient_id}","title":"Get patient details by profile id","href":"/api-sdk/emr/patient-registration-api/get-patient-details-by-id"},{"openapi":"patch /dr/v1/patient/{patient_id}","title":"Update Patient Details","href":"/api-sdk/emr/patient-registration-api/update-patient-details-api"},{"openapi":"post /profiles/v1/patient/","title":"Create a patient profile","href":"/api-sdk/emr/patient-directory-apis/add-patient"},{"openapi":"get /profiles/v1/patient/search","title":"Search patient profiles","href":"/api-sdk/emr/patient-directory-apis/search-patient"},{"openapi":"get /profiles/v1/patient/{oid}","title":"Retrieve patient profile","href":"/api-sdk/emr/patient-directory-apis/retrieve-patient-details"},{"openapi":"patch /profiles/v1/patient/{oid}","title":"Update patient profile details","href":"/api-sdk/emr/patient-directory-apis/update-patient-details"},{"openapi":"delete /profiles/v1/patient/{oid}","title":"Archive or permanently delete patient profile","href":"/api-sdk/emr/patient-directory-apis/delete-patient"},{"openapi":"get /profiles/v1/patient/minified/","title":"List patient profiles","href":"/api-sdk/emr/patient-directory-apis/patients-list-minified"},{"openapi":"get /profiles/v1/patient/by-mobile/","title":"Retrieve patient profiles by mobile number","href":"/api-sdk/emr/patient-directory-apis/retrieve-patients-by-mobile"},{"openapi":"get /profiles/v1/patient/{username}/username/?flatten=true","title":"Retrieve patient profile by username","href":"/api-sdk/emr/patient-directory-apis/retrieve-patient-by-username"},{"openapi":"get /profiles/v1/emr-user/{oid}","title":"Retrieve EMR user profile","href":"/api-sdk/emr/patient-directory-apis/retrieve-emr-user"},{"openapi":"patch /profiles/v1/emr-user/{oid}","title":"Update EMR user profile","href":"/api-sdk/emr/patient-directory-apis/update-emr-user"}]},{"group":"Doctor and clinic API","icon":"stethoscope","pages":[{"openapi":"get /dr/v1/business/entities","title":"Get Clinic and Doctor details","href":"/api-sdk/emr/doctor-and-clinic-api/get-clinic-and-doctor-details"},{"openapi":"get /dr/v1/doctor/{doctor_id}","title":"Get Doctor profile","href":"/api-sdk/emr/doctor-and-clinic-api/get-doctor-profile"},{"openapi":"get /dr/v1/business/clinic/{clinic_id}","title":"Get Clinic details","href":"/api-sdk/emr/doctor-and-clinic-api/get-clinic-details"},{"openapi":"get /dr/v1/doctor/service/{doctor_id}","title":"Get Doctor services","href":"/api-sdk/emr/doctor-and-clinic-api/get-doc-service"}]},{"group":"Config management APIs","icon":"user-cog","pages":[{"openapi":"get /cdr/v1/hipusers/","title":"Get All HIP Users of a Business","href":"/api-sdk/emr/user-apis/get-all-users"},{"openapi":"get /cdr/v1/hipusers/{hip_user_id}","title":"Get HIP User Details by ID","href":"/api-sdk/emr/user-apis/get-user-by-id"},{"openapi":"get /cdr/v1/get_business_info/","title":"Get Workspace Information","href":"/api-sdk/emr/business-api/get-business-info"},{"openapi":"post /cdr/v1/doctor/","title":"Create Doctor Profile","href":"/api-sdk/emr/onboarding-apis/onboard-doctor"},{"openapi":"get /cdr/v1/doctor/","title":"List Doctors","href":"/api-sdk/emr/onboarding-apis/list-doctors"},{"openapi":"get /cdr/v1/doctor/{doc_id}/","title":"Get Doctor by ID","href":"/api-sdk/emr/onboarding-apis/get-doctor"},{"openapi":"patch /cdr/v1/doctor/{doc_id}/","title":"Update Doctor","href":"/api-sdk/emr/onboarding-apis/update-doctor"},{"openapi":"delete /cdr/v1/doctor/{doc_id}/","title":"Delete Doctor","href":"/api-sdk/emr/onboarding-apis/delete-doctor"},{"openapi":"post /cdr/v1/clinic/","title":"Create Clinic","href":"/api-sdk/emr/onboarding-apis/onboard-clinic"},{"openapi":"get /cdr/v1/clinic/","title":"List Clinics","href":"/api-sdk/emr/onboarding-apis/list-clinics"},{"openapi":"get /cdr/v1/clinic/{clinic_id}/","title":"Get Clinic by ID","href":"/api-sdk/emr/onboarding-apis/get-clinic"},{"openapi":"patch /cdr/v1/clinic/{clinic_id}/","title":"Update Clinic","href":"/api-sdk/emr/onboarding-apis/update-clinic"},{"openapi":"delete /cdr/v1/clinic/{clinic_id}/","title":"Delete Clinic","href":"/api-sdk/emr/onboarding-apis/delete-clinic"},{"openapi":"post /cdr/v1/ekauser/","title":"Create Eka User","href":"/api-sdk/emr/onboarding-apis/onboard-ekauser"},{"openapi":"get /cdr/v1/ekauser/","title":"List Eka Users","href":"/api-sdk/emr/onboarding-apis/list-ekausers"},{"openapi":"get /cdr/v1/ekauser/{user_id}/","title":"Get Eka User by ID","href":"/api-sdk/emr/onboarding-apis/get-ekauser"},{"openapi":"patch /cdr/v1/ekauser/{user_id}/","title":"Update Eka User","href":"/api-sdk/emr/onboarding-apis/update-ekauser"},{"openapi":"delete /cdr/v1/ekauser/{user_id}/","title":"Delete Eka User","href":"/api-sdk/emr/onboarding-apis/delete-ekauser"}]},{"group":"Appointment API","icon":"calendar-check","pages":[{"title":"Get Slots","openapi":"get /dr/v1/slots","href":"/api-sdk/emr/appointment-api/get-slots"},{"title":"Get Appointment Slots (Legacy)","openapi":"get /dr/v1/doctor/{doctor_id}/clinic/{clinic_id}/appointment/slot","href":"/api-sdk/emr/appointment-api/get-appointment-slots"},{"openapi":"post /dr/v1/appointment","title":"Book Appointment Slot","href":"/api-sdk/emr/appointment-api/book-appointment-slot"},{"openapi":"get /dr/v1/appointment/{appointment_id}","title":"Get Appointment Details","href":"/api-sdk/emr/appointment-api/get-appointment-details"},{"openapi":"patch /dr/v1/appointment/{appointment_id}","title":"Update Appointment","href":"/api-sdk/emr/appointment-api/update-appointment"},{"openapi":"patch /dr/v2/appointment/{appointment_id}","title":"Update Appointment V2","href":"/api-sdk/emr/appointment-api/update-appointment-v2"},{"openapi":"post /dr/v1/appointment/{appointment_id}/parked","title":"Parked Appointment","href":"/api-sdk/emr/appointment-api/parked-appointment"},{"openapi":"post /dr/v1/appointment/{appointment_id}/complete","title":"Complete Appointment","href":"/api-sdk/emr/appointment-api/complete-appointment"},{"openapi":"put /dr/v1/appointment/{appointment_id}/cancel","title":"Cancel Appointment","href":"/api-sdk/emr/appointment-api/cancel-appointment"},{"openapi":"get /dr/v1/appointment","title":"Get Appointments","href":"/api-sdk/emr/appointment-api/get-appointments-by-date"},{"openapi":"post /dr/v1/appointment/{appointment_id}/change-status","title":"No-Show Appointment","href":"/api-sdk/emr/appointment-api/change-status"},{"openapi":"put /dr/v1/appointment/{appointment_id}/follow-up/confirm","title":"Confirm Follow-Up Appointment","href":"/api-sdk/emr/appointment-api/confirm-follow-up-appointment"},{"openapi":"patch /appointments/v1/{appointment_id}/reschedule","title":"Reschedule Appointment","href":"/api-sdk/emr/appointment-api/reschedule-appointment"},{"openapi":"post /schedule","title":"Create Schedule","href":"/api-sdk/emr/appointment-api/create-schedule"},{"openapi":"patch /schedule/{scheduleId}","title":"Update Schedule","href":"/api-sdk/emr/appointment-api/update-schedule"},{"openapi":"delete /schedule/{scheduleId}","title":"Delete Schedule","href":"/api-sdk/emr/appointment-api/delete-schedule"},{"openapi":"get /schedule/resolved","title":"Get Resolved Schedule","href":"/api-sdk/emr/appointment-api/get-business-resolved-schedule"},{"openapi":"get /schedule/service-conf/{entityId}","title":"List Services","href":"/api-sdk/emr/appointment-api/get-service-conf-list"},{"openapi":"get /schedule/service-conf/{entityId}/{conf_id}","title":"Get Service","href":"/api-sdk/emr/appointment-api/get-service-conf-details"}]},{"openapi":"get /dr/v1/prescription/{prescription_id}","title":"Get Prescription details","href":"/api-sdk/emr/prescription-api/get-prescription-details"},{"openapi":"post /notification/v1/notify","title":"Send Notification","href":"/api-sdk/emr/notify/notify"},{"group":"Webhooks","icon":"webhook","pages":[{"openapi":"post /registered_url_for_add_appointment_events","title":"Create appointment","href":"/api-sdk/emr/post_webhooks/add-appointment-webhook"},{"openapi":"post /registered_url_for_update_appointment_events","title":"Update appointment","href":"/api-sdk/emr/post_webhooks/update-appointment-webhook"},{"openapi":"post /registered_url_for_assessment_taken_events","title":"Assessment Taken","href":"/api-sdk/emr/post_webhooks/assessment-taken-webhook"},{"openapi":"post /registered_url_for_status_change_events","title":"Status changed","href":"/api-sdk/emr/post_webhooks/status-change-webhook"},{"openapi":"post /registered_url_for_appointment_tele_dr_joined_webhook_events","title":"Doctor Joined Video Call","href":"/api-sdk/emr/post_webhooks/appointment-tele-dr-joined-webhook"},{"openapi":"post /registered_url_for_appointment_reminder_instant_webhook_events","title":"Appointment Reminder (Instant)","href":"/api-sdk/emr/post_webhooks/appointment-reminder-instant-webhook"},{"openapi":"post /registered_url_for_appointment_followup_reminder_instant_webhook_events","title":"Follow-up Appointment Reminder (Instant)","href":"/api-sdk/emr/post_webhooks/appointment-followup-reminder-instant-webhook"},{"openapi":"post /registered_url_for_vaccination_reminder_webhook_events","title":"Vaccination Reminder","href":"/api-sdk/emr/post_webhooks/vaccination-reminder-webhook"},{"openapi":"post /registered_url_for_prescription_events","title":"Prescription Created Event","href":"/api-sdk/emr/post_webhooks/prescription-webhook"},{"openapi":"post /registered_url_for_prescription_communication_events","title":"Prescription Communication Event","href":"/api-sdk/emr/post_webhooks/prescription-communication-webhook"},{"openapi":"post /registered_url_for_doctor_events","title":"Doctor Events","href":"/api-sdk/emr/post_webhooks/doctor-webhook"},{"openapi":"post /registered_url_for_google_review_events","title":"Google Review Automatic Event","href":"/api-sdk/emr/post_webhooks/google-review-webhook"},{"openapi":"post /registered_url_for_google_review_manual_events","title":"Google Review Manual Event","href":"/api-sdk/emr/post_webhooks/google-review-manual-webhook"},{"openapi":"post /registered_url_for_consent_form","title":"Consent Form Events","href":"/api-sdk/emr/post_webhooks/mcert-webhook"},{"openapi":"post /registered_url_for_receipt_events","title":"Receipt Events","href":"/api-sdk/emr/post_webhooks/receipt-webhook"},{"openapi":"post /registered_url_for_receipt_payment_requested_events","title":"Payment Link Requested","href":"/api-sdk/emr/post_webhooks/payment-link-webhook"},{"openapi":"post /registered_url_for_ipd_admissions_events","title":"IPD Admission","href":"/api-sdk/emr/post_webhooks/ipd-admissions"},{"openapi":"post /registered_url_for_ipd_admissions_events_events","title":"IPD Admission Event","href":"/api-sdk/emr/post_webhooks/ipd-admissions-events"},{"openapi":"post /registered_url_for_ipd_admissions_clearances_events","title":"IPD Admission Clearance","href":"/api-sdk/emr/post_webhooks/ipd-admissions-clearances"},{"openapi":"post /registered_url_for_ipd_admissions_estimates_events","title":"IPD Admission Estimate","href":"/api-sdk/emr/post_webhooks/ipd-admissions-estimates"}]},{"group":"SDKs","icon":"box-open","pages":[{"icon":"box-open","title":"Trinity Profiles SDK (TypeScript)","href":"/api-sdk/emr/sdks/patient-directory-sdks/patient-directory-ts-sdk"},{"icon":"rocket","title":"Eka Care TS SDK","href":"/api-sdk/sdks/sdks/web-sdk/getting-started"},{"icon":"box-open","title":"Python SDK: ekacare","href":"/api-sdk/sdks/sdks/backend/ekapython-sdk"}]},{"group":"Medical Data Base (MDB)","pages":[{"openapi":"get /medical-db/v1/drugs-and-labs","title":"Search Drugs and Laboratory Tests","href":"/api-sdk/datasets/medical-db/drugs-and-labs"},{"openapi":"get /medical-db/v1/sym-and-diag","title":"Search Symptoms and Diagnoses","href":"/api-sdk/datasets/medical-db/symptoms-and-diagnosis"}]}]},{"group":"IPD","icon":"/images/icons/products/bed-double.svg","pages":[{"group":"Configuration","expanded":true,"pages":[{"group":"Setup data","pages":[{"openapi":"get /ipd/service/ipd","title":"Get IPD Setup Data","href":"/api-sdk/ipd/configuration/setup/get-ipd-setup-data"}]},{"group":"Categories","pages":[{"openapi":"post /ipd/service/categories","title":"Create Category","href":"/api-sdk/ipd/configuration/categories/create-category"},{"openapi":"post /ipd/service/categories/{category_id}","title":"Update Category","href":"/api-sdk/ipd/configuration/categories/update-category"},{"openapi":"delete /ipd/service/categories/{category_id}","title":"Delete Category","href":"/api-sdk/ipd/configuration/categories/delete-category"}]},{"group":"Rooms","pages":[{"openapi":"post /ipd/service/rooms","title":"Create Room","href":"/api-sdk/ipd/configuration/rooms/create-room"},{"openapi":"post /ipd/service/rooms/{room_id}","title":"Update Room","href":"/api-sdk/ipd/configuration/rooms/update-room"},{"openapi":"delete /ipd/service/rooms/{room_id}","title":"Delete Room","href":"/api-sdk/ipd/configuration/rooms/delete-room"}]},{"group":"Beds","pages":[{"openapi":"post /ipd/service/beds","title":"Create Bed","href":"/api-sdk/ipd/configuration/beds/create-bed"},{"openapi":"post /ipd/service/beds/{bed_id}","title":"Update Bed","href":"/api-sdk/ipd/configuration/beds/update-bed"},{"openapi":"delete /ipd/service/beds/{bed_id}","title":"Delete Bed","href":"/api-sdk/ipd/configuration/beds/delete-bed"},{"openapi":"post /ipd/service/bed-clinic-relations","title":"Link Bed to Clinic","href":"/api-sdk/ipd/configuration/beds/link-bed-to-clinic"},{"openapi":"delete /ipd/service/bed-clinic-relations","title":"Unlink Bed from Clinic","href":"/api-sdk/ipd/configuration/beds/unlink-bed-from-clinic"}]},{"group":"Rate plans","pages":[{"openapi":"post /ipd/service/rateplans","title":"Create Rate Plan","href":"/api-sdk/ipd/configuration/rate-plans/create-rate-plan"},{"openapi":"post /ipd/service/rateplans/{rate_plan_id}","title":"Update Rate Plan","href":"/api-sdk/ipd/configuration/rate-plans/update-rate-plan"},{"openapi":"delete /ipd/service/rateplans/{rate_plan_id}","title":"Delete Rate Plan","href":"/api-sdk/ipd/configuration/rate-plans/delete-rate-plan"},{"openapi":"post /ipd/service/rateplans/inclusions","title":"Create Rate Plan Inclusion","href":"/api-sdk/ipd/configuration/rate-plans/create-rate-plan-inclusion"},{"openapi":"post /ipd/service/rateplans/inclusions/{inclusion_id}","title":"Update Rate Plan Inclusion","href":"/api-sdk/ipd/configuration/rate-plans/update-rate-plan-inclusion"},{"openapi":"delete /ipd/service/rateplans/inclusions/{inclusion_id}","title":"Delete Rate Plan Inclusion","href":"/api-sdk/ipd/configuration/rate-plans/delete-rate-plan-inclusion"},{"openapi":"post /ipd/service/rate-plan-clinic-relations","title":"Link Rate Plan to Clinic","href":"/api-sdk/ipd/configuration/rate-plans/link-rate-plan-to-clinic"},{"openapi":"delete /ipd/service/rate-plan-clinic-relations","title":"Unlink Rate Plan from Clinic","href":"/api-sdk/ipd/configuration/rate-plans/unlink-rate-plan-from-clinic"}]},{"group":"IPID settings","pages":[{"openapi":"post /ipd/service/admissions/generate-ipid","title":"Generate IPID","href":"/api-sdk/ipd/configuration/ipid/generate-ipid"},{"openapi":"get /ipd/service/admissions/generate-ipid","title":"Generate IPID (GET)","href":"/api-sdk/ipd/configuration/ipid/generate-ipid-get"},{"openapi":"get /ipd/service/admissions/ipid-config","title":"Get IPID Config","href":"/api-sdk/ipd/configuration/ipid/get-ipid-config"},{"openapi":"post /ipd/service/admissions/ipid-config","title":"Update IPID Config","href":"/api-sdk/ipd/configuration/ipid/update-ipid-config"}]}]},{"group":"Admissions","pages":[{"group":"Admissions","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions","title":"List IPD admissions","href":"/api-sdk/ipd/admissions/admissions/list-ipd-admissions"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions","title":"Create an IPD admission","href":"/api-sdk/ipd/admissions/admissions/create-an-ipd-admission"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}","title":"Get an IPD admission by id","href":"/api-sdk/ipd/admissions/admissions/get-an-ipd-admission-by-id"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json patch /ipd/sdk/admissions/{admission_id}","title":"Update an IPD admission","href":"/api-sdk/ipd/admissions/admissions/update-an-ipd-admission"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/can-admit","title":"Check whether a patient can be admitted","href":"/api-sdk/ipd/admissions/admissions/check-whether-a-patient-can-be-admitted"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/ipid-in-use","title":"Check whether an IPD case number is in use","href":"/api-sdk/ipd/admissions/admissions/check-whether-an-ipd-case-number-is-in-use"},{"openapi":"get /ipd/service/admissions/{admission_id}","title":"Get Admission","href":"/api-sdk/ipd/admissions/admissions/get-admission"}]},{"group":"Visits \u0026 advices","pages":[{"openapi":"get /ipd/service/admissions/{admission_id}/visits","title":"Get Admission with Visits","href":"/api-sdk/ipd/admissions/visits/get-admission-visits"},{"openapi":"get /ipd/service/admissions/advices/{patient_id}","title":"List Admission Advices for Patient","href":"/api-sdk/ipd/admissions/visits/list-admission-advices"}]},{"group":"Estimates","pages":[{"openapi":"get /ipd/service/admissions/{admission_id}/estimate","title":"Get Admission Estimate","href":"/api-sdk/ipd/admissions/estimates/get-admission-estimate"},{"openapi":"post /ipd/service/admissions/{admission_id}/fs-estimates","title":"Save Admission Estimates","href":"/api-sdk/ipd/admissions/estimates/save-admission-estimates"}]},{"group":"Audit events","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events","title":"List an admission's events","href":"/api-sdk/ipd/admissions/events/list-an-admission-s-events"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/events","title":"Record an admission event","href":"/api-sdk/ipd/admissions/events/record-an-admission-event"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json delete /ipd/sdk/admissions/{admission_id}/events/{event_id}","title":"Delete an admission event","href":"/api-sdk/ipd/admissions/events/delete-an-admission-event"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events/latest","title":"Get the latest event of a kind","href":"/api-sdk/ipd/admissions/events/get-the-latest-event-of-a-kind"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events/discharge-initiation","title":"Get the discharge initiation event","href":"/api-sdk/ipd/admissions/events/get-the-discharge-initiation-event"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events/discharge-disposition","title":"Get the discharge disposition event","href":"/api-sdk/ipd/admissions/events/get-the-discharge-disposition-event"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events/discharge-clearance","title":"Get the discharge clearance-exit event","href":"/api-sdk/ipd/admissions/events/get-the-discharge-clearance-exit-event"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events/discharge-summary","title":"Get the discharge summary submitted event","href":"/api-sdk/ipd/admissions/events/get-the-discharge-summary-submitted-event"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/events/latest-clearance-meta","title":"Get the latest completion per clearance","href":"/api-sdk/ipd/admissions/events/get-the-latest-completion-per-clearance"}]}]},{"group":"Clinical","pages":[{"group":"Nursing notes","pages":[{"openapi":"post /ipd/service/nursing-notes","title":"Create Nursing Note","href":"/api-sdk/ipd/clinical/nursing-notes/create-nursing-note"},{"openapi":"get /ipd/service/nursing-notes/admission/{admission_id}","title":"List Nursing Notes for Admission","href":"/api-sdk/ipd/clinical/nursing-notes/list-nursing-notes"},{"openapi":"patch /ipd/service/nursing-notes/{note_id}","title":"Update Nursing Note","href":"/api-sdk/ipd/clinical/nursing-notes/update-nursing-note"},{"openapi":"post /ipd/service/nursing-notes-templates","title":"Create Nursing Note Template","href":"/api-sdk/ipd/clinical/nursing-notes/create-nursing-note-template"},{"openapi":"get /ipd/service/nursing-notes-templates","title":"List Nursing Note Templates","href":"/api-sdk/ipd/clinical/nursing-notes/list-nursing-note-templates"},{"openapi":"patch /ipd/service/nursing-notes-templates/{template_id}","title":"Update Nursing Note Template","href":"/api-sdk/ipd/clinical/nursing-notes/update-nursing-note-template"}]}]},{"group":"Discharge","pages":[{"group":"Initiate \u0026 clearances","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/discharge/initiate","title":"Initiate a discharge","href":"/api-sdk/ipd/discharge/clearances/initiate-a-discharge"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/clearances","title":"List an admission's discharge clearances","href":"/api-sdk/ipd/discharge/clearances/list-an-admission-s-discharge-clearances"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/clearances/{type}/complete","title":"Complete a discharge clearance","href":"/api-sdk/ipd/discharge/clearances/complete-a-discharge-clearance"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/clearances/{type}/reopen","title":"Reopen a discharge clearance","href":"/api-sdk/ipd/discharge/clearances/reopen-a-discharge-clearance"}]},{"group":"Release rules","pages":[{"openapi":"get /ipd/service/admissions/discharge-release-rules","title":"Get Discharge Release Rules","href":"/api-sdk/ipd/discharge/release-rules/get-discharge-release-rules"},{"openapi":"put /ipd/service/admissions/discharge-release-rules","title":"Update Discharge Release Rules","href":"/api-sdk/ipd/discharge/release-rules/update-discharge-release-rules"}]},{"group":"Discharge summaries","pages":[{"openapi":"post /ipd/service/discharge-summaries","title":"Create Discharge Summary","href":"/api-sdk/ipd/discharge/summaries/create-discharge-summary"},{"openapi":"get /ipd/service/discharge-summaries/admission/{admission_id}","title":"List Discharge Summaries for Admission","href":"/api-sdk/ipd/discharge/summaries/list-discharge-summaries"},{"openapi":"patch /ipd/service/discharge-summaries/{summary_id}","title":"Update Discharge Summary","href":"/api-sdk/ipd/discharge/summaries/update-discharge-summary"},{"openapi":"get /ipd/service/admissions/generate-discharge-summary/{admission_id}","title":"Generate Discharge Summary","href":"/api-sdk/ipd/discharge/summaries/generate-discharge-summary"}]}]},{"group":"Billing","pages":[{"group":"Account","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/billing/price-lists","title":"List billing price lists","href":"/api-sdk/ipd/billing/account/list-billing-price-lists"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/account","title":"Open the admission's billing account","href":"/api-sdk/ipd/billing/account/open-the-admission-s-billing-account"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json put /ipd/sdk/admissions/{admission_id}/billing/price-list","title":"Change the account's price list","href":"/api-sdk/ipd/billing/account/change-the-account-s-price-list"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/summary","title":"Get the billing summary","href":"/api-sdk/ipd/billing/account/get-the-billing-summary"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/state","title":"Get the full billing state","href":"/api-sdk/ipd/billing/account/get-the-full-billing-state"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/settle","title":"Settle the billing account","href":"/api-sdk/ipd/billing/account/settle-the-billing-account"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/close","title":"Close the billing account","href":"/api-sdk/ipd/billing/account/close-the-billing-account"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/reopen","title":"Reopen the billing account","href":"/api-sdk/ipd/billing/account/reopen-the-billing-account"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/suspend","title":"Put the billing account on hold","href":"/api-sdk/ipd/billing/account/put-the-billing-account-on-hold"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/resume","title":"Lift the billing account's hold","href":"/api-sdk/ipd/billing/account/lift-the-billing-account-s-hold"}]},{"group":"Charges","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/charges","title":"List charges","href":"/api-sdk/ipd/billing/charges/list-charges"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/charges","title":"Add charges","href":"/api-sdk/ipd/billing/charges/add-charges"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json patch /ipd/sdk/admissions/{admission_id}/billing/charges/{charge_id}","title":"Update a charge","href":"/api-sdk/ipd/billing/charges/update-a-charge"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/charges/{charge_id}/void","title":"Void a charge","href":"/api-sdk/ipd/billing/charges/void-a-charge"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/draft/quote","title":"Price draft charges","href":"/api-sdk/ipd/billing/charges/price-draft-charges"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/draft/submit","title":"Save draft charges","href":"/api-sdk/ipd/billing/charges/save-draft-charges"}]},{"group":"Payments","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/payments","title":"List payments","href":"/api-sdk/ipd/billing/payments/list-payments"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/payments","title":"Record a payment","href":"/api-sdk/ipd/billing/payments/record-a-payment"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/payments/{payment_id}/void","title":"Void a payment","href":"/api-sdk/ipd/billing/payments/void-a-payment"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/payments/{payment_id}/allocate","title":"Apply a payment to an invoice","href":"/api-sdk/ipd/billing/payments/apply-a-payment-to-an-invoice"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/invoices/{invoice_id}/pay","title":"Pay an invoice","href":"/api-sdk/ipd/billing/payments/pay-an-invoice"}]},{"group":"Invoices","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/invoices","title":"List invoices","href":"/api-sdk/ipd/billing/invoices/list-invoices"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/invoices","title":"Create an invoice","href":"/api-sdk/ipd/billing/invoices/create-an-invoice"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/invoices/{invoice_id}/void","title":"Void an invoice","href":"/api-sdk/ipd/billing/invoices/void-an-invoice"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/invoices/{invoice_id}/cancel","title":"Cancel an issued invoice","href":"/api-sdk/ipd/billing/invoices/cancel-an-issued-invoice"}]},{"group":"Deposits","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/deposits","title":"List deposits","href":"/api-sdk/ipd/billing/deposits/list-deposits"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/deposits","title":"Collect a deposit","href":"/api-sdk/ipd/billing/deposits/collect-a-deposit"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/deposits/{deposit_id}/allocate","title":"Apply a deposit to an invoice","href":"/api-sdk/ipd/billing/deposits/apply-a-deposit-to-an-invoice"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/deposits/{deposit_id}/refund","title":"Refund a deposit","href":"/api-sdk/ipd/billing/deposits/refund-a-deposit"}]},{"group":"Room meters","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/room-meters","title":"List room meters","href":"/api-sdk/ipd/billing/room-meters/list-room-meters"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meter/sync","title":"Sync the room meter","href":"/api-sdk/ipd/billing/room-meters/sync-the-room-meter"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/sync","title":"Sync room meters","href":"/api-sdk/ipd/billing/room-meters/sync-room-meters"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/{meter_id}/pause","title":"Pause a room meter","href":"/api-sdk/ipd/billing/room-meters/pause-a-room-meter"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/{meter_id}/resume","title":"Resume a room meter","href":"/api-sdk/ipd/billing/room-meters/resume-a-room-meter"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/{meter_id}/slice","title":"Bill part of a room meter","href":"/api-sdk/ipd/billing/room-meters/bill-part-of-a-room-meter"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/pause","title":"Pause all room meters","href":"/api-sdk/ipd/billing/room-meters/pause-all-room-meters"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/resume","title":"Resume all room meters","href":"/api-sdk/ipd/billing/room-meters/resume-all-room-meters"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/stop","title":"Stop the room meter","href":"/api-sdk/ipd/billing/room-meters/stop-the-room-meter"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/billing/room-meters/stop-and-bill","title":"Stop and bill room meters","href":"/api-sdk/ipd/billing/room-meters/stop-and-bill-room-meters"}]},{"group":"Returns \u0026 links","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/returns","title":"List returns","href":"/api-sdk/ipd/billing/returns-links/list-returns"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/adjustment-notes","title":"List credit and debit notes","href":"/api-sdk/ipd/billing/returns-links/list-credit-and-debit-notes"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/order-charge-links","title":"List pharmacy order charge links","href":"/api-sdk/ipd/billing/returns-links/list-pharmacy-order-charge-links"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/billing/order-return-links","title":"List pharmacy return links","href":"/api-sdk/ipd/billing/returns-links/list-pharmacy-return-links"}]}]},{"group":"Pharmacy","pages":[{"group":"Pharmacies","pages":[{"openapi":"get /ipd/service/pharmacies","title":"List Pharmacies","href":"/api-sdk/ipd/pharmacy/pharmacies/list-pharmacies"},{"openapi":"post /ipd/service/pharmacies/inventory-status","title":"Get Inventory Status","href":"/api-sdk/ipd/pharmacy/pharmacies/get-inventory-status"}]},{"group":"Orders","pages":[{"openapi":"post /ipd/service/orders","title":"Create Order","href":"/api-sdk/ipd/pharmacy/orders/create-order"},{"openapi":"get /ipd/service/orders","title":"List Orders","href":"/api-sdk/ipd/pharmacy/orders/list-orders"},{"openapi":"get /ipd/service/orders/{order_id}","title":"Get Order","href":"/api-sdk/ipd/pharmacy/orders/get-order"},{"openapi":"patch /ipd/service/orders/{order_id}","title":"Mark Order Collected","href":"/api-sdk/ipd/pharmacy/orders/mark-order-collected"},{"openapi":"patch /ipd/service/orders/{order_id}/status","title":"Update Order Status","href":"/api-sdk/ipd/pharmacy/orders/update-order-status"}]},{"group":"Billing settings","pages":[{"openapi":"get /ipd/service/pharmacies/billing-config/evital","title":"Get eVital Billing Config","href":"/api-sdk/ipd/pharmacy/billing-settings/get-evital-billing-config"},{"openapi":"put /ipd/service/pharmacies/billing-config","title":"Update Pharmacy Billing Config","href":"/api-sdk/ipd/pharmacy/billing-settings/update-pharmacy-billing-config"}]},{"group":"Discharge clearance","pages":[{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json get /ipd/sdk/admissions/{admission_id}/pharmacy-clearance-notify","title":"Get the pharmacy discharge-notification state","href":"/api-sdk/ipd/pharmacy/clearance/get-the-pharmacy-discharge-notification-state"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/pharmacy-clearance-notify","title":"Notify the admission's pharmacies of a discharge","href":"/api-sdk/ipd/pharmacy/clearance/notify-the-admission-s-pharmacies-of-a-discharge"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/pharmacy-clearance-notify/retry","title":"Resend to the pharmacies that failed","href":"/api-sdk/ipd/pharmacy/clearance/resend-to-the-pharmacies-that-failed"},{"openapi":"api-reference/doc-tool/ipd-api/ipd-sdk-openapi.json post /ipd/sdk/admissions/{admission_id}/pharmacy-clearance-notify/cancel","title":"Withdraw a discharge notification","href":"/api-sdk/ipd/pharmacy/clearance/withdraw-a-discharge-notification"},{"openapi":"post /ipd/service/pharmacies/clearance-clear","title":"Mark Pharmacy Clearance Cleared","href":"/api-sdk/ipd/pharmacy/clearance/mark-pharmacy-clearance-cleared"}]},{"group":"In-house pharmacy (Dawakhana)","pages":[{"group":"Settings","pages":[{"openapi":"get /ipd/service/dawakhana/config","title":"Get Dawakhana Config","href":"/api-sdk/ipd/pharmacy/dawakhana/settings/get-dawakhana-config"},{"openapi":"put /ipd/service/dawakhana/config","title":"Update Dawakhana Config","href":"/api-sdk/ipd/pharmacy/dawakhana/settings/update-dawakhana-config"}]},{"group":"Orders","pages":[{"openapi":"get /ipd/service/dawakhana/orders","title":"List Dawakhana Orders","href":"/api-sdk/ipd/pharmacy/dawakhana/orders/list-dawakhana-orders"},{"openapi":"get /ipd/service/dawakhana/orders/count","title":"Count Dawakhana Orders","href":"/api-sdk/ipd/pharmacy/dawakhana/orders/count-dawakhana-orders"},{"openapi":"get /ipd/service/dawakhana/orders/{order_id}","title":"Get Dawakhana Order","href":"/api-sdk/ipd/pharmacy/dawakhana/orders/get-dawakhana-order"},{"openapi":"post /ipd/service/dawakhana/orders/{order_id}/dispatch","title":"Dispatch Dawakhana Order","href":"/api-sdk/ipd/pharmacy/dawakhana/orders/dispatch-dawakhana-order"},{"openapi":"post /ipd/service/dawakhana/orders/{order_id}/cancel","title":"Cancel Dawakhana Order","href":"/api-sdk/ipd/pharmacy/dawakhana/orders/cancel-dawakhana-order"}]},{"group":"Returns","pages":[{"openapi":"post /ipd/service/dawakhana/orders/{order_id}/return","title":"Return Dawakhana Order","href":"/api-sdk/ipd/pharmacy/dawakhana/returns/return-dawakhana-order"},{"openapi":"post /ipd/service/dawakhana/orders/returns","title":"Create Dawakhana Standalone Return","href":"/api-sdk/ipd/pharmacy/dawakhana/returns/create-dawakhana-return"}]},{"group":"Discharge worklist","pages":[{"openapi":"get /ipd/service/dawakhana/orders/clearances","title":"List Dawakhana Pending Clearances","href":"/api-sdk/ipd/pharmacy/dawakhana/worklist/list-dawakhana-clearances"}]}]}]},{"group":"Workflows","pages":[{"group":"Tasks","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/tasks","title":"List tasks","href":"/api-sdk/ipd/workflows/tasks/list-tasks"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/tasks","title":"Create a task","href":"/api-sdk/ipd/workflows/tasks/create-a-task"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/tasks/{id}","title":"Get a task","href":"/api-sdk/ipd/workflows/tasks/get-a-task"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/tasks/{id}","title":"Act on a task","href":"/api-sdk/ipd/workflows/tasks/act-on-a-task"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/tasks/{id}/timeline","title":"Get a task's timeline","href":"/api-sdk/ipd/workflows/tasks/get-a-tasks-timeline"}]},{"group":"Forms","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/forms","title":"List an entity's forms","href":"/api-sdk/ipd/workflows/forms/list-an-entitys-forms"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/forms","title":"Add a form","href":"/api-sdk/ipd/workflows/forms/add-a-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/forms/{id}/timeline","title":"Get a form's timeline","href":"/api-sdk/ipd/workflows/forms/get-a-forms-timeline"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/forms/{id}/complete","title":"Complete a form","href":"/api-sdk/ipd/workflows/forms/complete-a-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/forms/{id}/cancel","title":"Cancel a form","href":"/api-sdk/ipd/workflows/forms/cancel-a-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/forms/{id}/decline","title":"Decline a form","href":"/api-sdk/ipd/workflows/forms/decline-a-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/forms/{id}/events","title":"Record a form event","href":"/api-sdk/ipd/workflows/forms/record-a-form-event"}]},{"group":"Rules \u0026 catalog","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/rules","title":"List rules","href":"/api-sdk/ipd/workflows/rules/list-rules"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/rules","title":"Create a rule","href":"/api-sdk/ipd/workflows/rules/create-a-rule"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/rules/active","title":"List an event's active rules","href":"/api-sdk/ipd/workflows/rules/list-an-events-active-rules"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/rules/compile","title":"Compile a rule","href":"/api-sdk/ipd/workflows/rules/compile-a-rule"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/rules/{id}","title":"Get a rule","href":"/api-sdk/ipd/workflows/rules/get-a-rule"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json put /protocol/workflow/rules/{id}","title":"Update a rule","href":"/api-sdk/ipd/workflows/rules/update-a-rule"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/rules/{id}/versions","title":"List a rule's versions","href":"/api-sdk/ipd/workflows/rules/list-a-rules-versions"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/rules/{id}/versions/{version}/restore","title":"Restore a rule version","href":"/api-sdk/ipd/workflows/rules/restore-a-rule-version"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/default-events","title":"Get the catalog","href":"/api-sdk/ipd/workflows/rules/get-the-catalog"}]},{"group":"Events","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/events","title":"Fire an event","href":"/api-sdk/ipd/workflows/events/fire-an-event"}]},{"group":"SA forms","pages":[{"group":"Forms","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms","title":"List SA forms","href":"/api-sdk/ipd/workflows/sa-forms/forms/list-sa-forms"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms","title":"Create an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/create-an-sa-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/{id}","title":"Get an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/get-an-sa-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json put /protocol/workflow/sa-forms/{id}","title":"Update an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/update-an-sa-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/{id}/view","title":"View an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/view-an-sa-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/{id}/versions","title":"List an SA form's versions","href":"/api-sdk/ipd/workflows/sa-forms/forms/list-an-sa-forms-versions"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/{id}/versions/{version}/restore","title":"Restore an SA form version","href":"/api-sdk/ipd/workflows/sa-forms/forms/restore-an-sa-form-version"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/{id}/rename","title":"Rename an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/rename-an-sa-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/{id}/archive","title":"Archive an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/archive-an-sa-form"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/{id}/unarchive","title":"Unarchive an SA form","href":"/api-sdk/ipd/workflows/sa-forms/forms/unarchive-an-sa-form"}]},{"group":"Drafts","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/drafts","title":"List SA form drafts","href":"/api-sdk/ipd/workflows/sa-forms/drafts/list-sa-form-drafts"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/drafts","title":"Create an SA form draft","href":"/api-sdk/ipd/workflows/sa-forms/drafts/create-an-sa-form-draft"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/drafts/{id}","title":"Get an SA form draft","href":"/api-sdk/ipd/workflows/sa-forms/drafts/get-an-sa-form-draft"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json put /protocol/workflow/sa-forms/drafts/{id}","title":"Update an SA form draft","href":"/api-sdk/ipd/workflows/sa-forms/drafts/update-an-sa-form-draft"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json delete /protocol/workflow/sa-forms/drafts/{id}","title":"Delete an SA form draft","href":"/api-sdk/ipd/workflows/sa-forms/drafts/delete-an-sa-form-draft"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/drafts/{id}/publish","title":"Publish an SA form draft","href":"/api-sdk/ipd/workflows/sa-forms/drafts/publish-an-sa-form-draft"}]},{"group":"AI drafts","pages":[{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/ai-draft","title":"Check AI drafting","href":"/api-sdk/ipd/workflows/sa-forms/ai-drafts/check-ai-drafting"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json post /protocol/workflow/sa-forms/ai-draft","title":"Start an AI draft","href":"/api-sdk/ipd/workflows/sa-forms/ai-drafts/start-an-ai-draft"},{"openapi":"api-reference/doc-tool/ipd-api/protocol-openapi.json get /protocol/workflow/sa-forms/ai-draft/{jobId}","title":"Get an AI draft","href":"/api-sdk/ipd/workflows/sa-forms/ai-drafts/get-an-ai-draft"}]}]}]}]},{"group":"Billing","icon":"/images/icons/products/receipt.svg","pages":[{"openapi":"get /dr/v1/payment/transaction_status/{transaction_id}","title":"Get Transaction Status","href":"/api-sdk/billing/get-transaction-status"}]},{"group":"Health Records","icon":"/images/icons/products/folder-heart.svg","pages":[{"icon":"compass","title":"Overview","sidebarTitle":"Records API","href":"/api-sdk/health-records/create-overview"},{"group":"Medical Records","icon":"book-open-cover","expanded":true,"pages":[{"openapi":"post /mr/api/v1/docs","title":"Step 1: Upload Record","href":"/api-sdk/health-records/obtain-authorization"},{"openapi":"get /mr/api/v1/docs/{id}","title":"Describes a document","href":"/api-sdk/health-records/describe-record"},{"openapi":"get /mr/api/v1/docs","title":"List Documents","href":"/api-sdk/health-records/list-records"},{"openapi":"get /health/api/v1/fhir/retrieve","title":"Retrieve health records","href":"/api-sdk/health-records/retrieve-health-records"},{"openapi":"get /mr/api/v1/docs/refresh","title":"Sends a refresh event to the origin","href":"/api-sdk/health-records/send-refresh"},{"openapi":"patch /mr/api/v1/docs/{id}","title":"Update Document","href":"/api-sdk/health-records/update-document"},{"openapi":"delete /mr/api/v1/docs/{id}","title":"Delete a document","href":"/api-sdk/health-records/delete-document"},{"openapi":"post /mr/api/v1/cases","title":"Create Case","href":"/api-sdk/health-records/create-case"},{"openapi":"patch /mr/api/v1/cases/{id}","title":"Update Case","href":"/api-sdk/health-records/update-case"},{"openapi":"get /mr/api/v1/cases","title":"List Cases","href":"/api-sdk/health-records/list-case"},{"openapi":"delete /mr/api/v1/cases/{id}","title":"Delete Case","href":"/api-sdk/health-records/delete-case"}]},{"group":"User App","icon":"mobile","pages":[{"openapi":"post /notification/add-device","title":"Add Device","href":"/api-sdk/health-records/notifications/add-device"},{"openapi":"delete /notification/delete-device","title":"Delete Device","href":"/api-sdk/health-records/notifications/delete-device"},{"openapi":"post /notification/fcm-creds","title":"Add FCM Credentials","href":"/api-sdk/health-records/notifications/fcm-creds"},{"openapi":"patch /trackers/api/v1/vitals/{txn_id}","title":"Update Patient Vitals and Link to ABHA","href":"/api-sdk/health-records/vitals/vitals"},{"openapi":"post /webhook/event","title":null,"href":"/api-sdk/health-records/webhook/right-to-access"},{"openapi":"post /privacy/v1/user-data","title":"Request User Data","href":"/api-sdk/health-records/privacy/right-to-access"}]},{"group":"SDKs","icon":"box-open","pages":[{"title":null,"description":null,"href":"/api-sdk/health-records/sdks/ios-sdk"},{"icon":"rocket","title":"Get Started","sidebarTitle":"Records web SDK","href":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/get-started"},{"icon":"file-medical","title":"Records","description":"Upload, list, group, download, edit and delete medical documents with the Medical Records Web SDK","href":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/records"},{"icon":"file-lines","title":"Cases","href":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/cases"},{"icon":"file-lines","title":"Offline \u0026 Sync","href":"/api-sdk/health-records/sdks/web-sdk/mr-sdk/offline-and-sync"},{"title":null,"href":"/api-sdk/sdks/sdks/android/medical-records"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/get-started/emr-changelog"}]}]},{"item":"Cookbook","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/chef-hat.svg","description":"Worked examples that combine Eka products","tabs":[{"tab":"Documentation","pages":[{"group":"Cookbook","pages":[{"title":"Cookbook","icon":"utensils","href":"/docs/get-started/cookbook"},{"title":"ABDM-enabled HIS","icon":"hospital","href":"/docs/get-started/whats-possible/abdm-enabled-his"},{"title":"Medical records from any source","icon":"file-medical","href":"/docs/get-started/whats-possible/medical-records-from-any-source"},{"title":"Clinically intelligent HIS","icon":"brain","href":"/docs/get-started/whats-possible/clinically-intelligent-his"},{"icon":"comments","title":"Patient experiences","href":"/docs/products/patient-experiences"},{"title":"Connect your agent to Eka with MCP","icon":"plug","href":"/docs/get-started/whats-possible/mcp-connectors"},{"icon":"calendar-check","title":"Appointments Management","href":"/docs/get-started/whats-possible/appointment-management"},{"icon":"hospital-user","title":"Patients Management App","href":"/docs/get-started/whats-possible/patient-management"},{"icon":"pills","title":"Medication Search","href":"/docs/get-started/whats-possible/medicine-lookup"},{"icon":"clipboard-question","title":"Health Quiz","href":"/docs/get-started/whats-possible/health-assessment"}]}]}]},{"item":"Eka MCP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/plug.svg","description":"Connect your agent to Eka EMR: patients, appointments and prescriptions","tabs":[{"tab":"Documentation","pages":[{"group":"Eka MCP","pages":[{"icon":"plug","title":"Eka MCP Server","href":"/docs/emr/build-with-ai/mcp-server/introduction"},{"icon":"plug","title":"Remote MCP","href":"/docs/emr/build-with-ai/mcp-server/remote-mcp"},{"icon":"box-open","title":"Local MCP SDK","href":"/docs/emr/build-with-ai/mcp-server/local-mcp"},{"icon":"screwdriver-wrench","title":"Supported Tools","href":"/docs/emr/build-with-ai/mcp-server/supported-tools"},{"icon":"lock","title":"Authentication","href":"/docs/emr/build-with-ai/mcp-server/authentication"}]}]}]},{"item":"Eka Open Source","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/git-branch.svg","description":"Agent SDKs, document printing and app building blocks, on GitHub","tabs":[{"tab":"Documentation","pages":[{"group":"Eka Open Source","pages":[{"title":"Eka Open Source","icon":"code-branch","href":"/docs/open-source/code"}]}]}]}]},{"product":"Newsboard","icon":"newspaper","description":"What changed across Eka, and the research behind it.","menu":[{"item":"Eka Labs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/flask-conical.svg","description":"Open models, datasets and research for AI in Indian healthcare","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/models/spotlight"}]}]},{"item":"Under the hood","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/activity.svg","description":"Monthly notes on reliability and security","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/get-started/under-the-hood"}]}]},{"item":"Changelog","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/history.svg","description":"What changed across Eka, week by week","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/get-started/changelog"}]}]}],"pages":[{"title":"Newsboard","href":"/docs/models/spotlight"}]},{"product":"More from Eka","icon":"box-archive","description":"Products kept out of the navigation. Their pages stay live, listed on /sitemap.","hidden":true,"menu":[{"item":"Medical Agents","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/bot.svg","description":"A ready-made medical assistant, a kit to build your own agent, and SDKs to embed them","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/products/agents"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/agents/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/get-started/ekaagents-changelog"}]}]},{"item":"Medical Knowledge","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/database.svg","description":"Drugs, labs, protocols and medical knowledge","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/datasets/forms"}]},{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk/datasets/overview"}]}]},{"item":"Understanding Integrations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/compass.svg","description":"For teams already on an Eka product: connect Eka EMR, IPD, Billing and Health Records to your own systems through the same APIs developers build with","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/integrations/overview"}]}]},{"item":"All APIs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/ekacare/images/icons/products/code.svg","description":"Every Eka API, by product","tabs":[{"tab":"APIs \u0026 SDKs","pages":[{"title":"APIs \u0026 SDKs","href":"/api-sdk"}]}]}],"pages":[{"title":"More from Eka","href":"/docs/products/agents"}]}]},"basePath":"","title":"Get Started - Eka Developer Platform APIs","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}