Changelog
Release history of the medblocks SDK, newest first.
v1.2.0 (Aug 4, 2026)
Breaking Changes
- Removed the eight typed error subclasses (
MedblocksAuthenticationError,MedblocksPermissionError,MedblocksInvalidRequestError,MedblocksNotFoundError,MedblocksConflictError,MedblocksRateLimitError,MedblocksEhrError,MedblocksApiError) and theerrorClassForTypehelper. Every failed request now throws a singleMedblocksError. Discriminate onerr.typeanderr.code, the same strings the API envelope returns. Replaceerr instanceof MedblocksAuthenticationErrorwithisMedblocksError(err) && err.type === "authentication_error". retryAftermoved fromMedblocksRateLimitErroronto the baseMedblocksError(set onrate_limit_error,nullotherwise).
Features
- Added the
isMedblocksError(err)type guard for separating API errors from native or network failures at the catch site. - Added the
MedblocksErrorCodestring-literal type and extendedMedblocksErrorTypewithbilling_error, soerr.type/err.codebranches autocomplete against the full public taxonomy.
v1.1.0 (Jul 18, 2026)
Features
- Added
mb.patients.disconnectConnection(patientId, connectionId)for org-side disconnect of a patient connection. Revokes your organization’s access to that source and returns a tombstone ({ id, resource_type: "connection", disconnected: true }).
v1.0.0 (Jul 8, 2026)
Features
- Initial release of the Medblocks TypeScript SDK, covering patient sessions, patients, the connections catalog, webhook management, event redelivery, webhook signature verification, and return-URL parsing.
mb.patients.records(id)returns a connected patient’s stored FHIR resources as a cursor-paginated page. Every Patient resource carries yourpatient_idin its FHIRidentifierarray underurn:medblocks:patient-id.- Record pages use short, fixed-length opaque cursors that stay valid for 7 days from the response that issued them.
Need help?
Running into an issue? Get support from our team and we will get back to you.
How is this guide?
