MedBackend documentation
MedBackend is a backend for health software. It stores clinical data as FHIR R4, serves it over a GraphQL API, and decides every read and write per role with rules you configure. Patients, practitioners, devices and AI agents each sign in with their own credential, and every operation is recorded in an audit trail.
You do not install anything. You create a project in the dashboard, the platform provisions its FHIR store, and your application calls one endpoint:
https://backbone.medbackend.com/graphql
What the platform gives you
| You need | MedBackend provides |
|---|---|
| A standard data model | Every FHIR R4 resource, as GraphQL queries and mutations with FHIR search parameters as arguments |
| Logins for patients and clinicians | A built-in OAuth 2.0 / OpenID Connect provider per project, with sign-in with Google and PKCE for public clients |
| Credentials for software | Device keys for workers, integrations and AI agents, exchanged for short-lived tokens |
| Permissions per role | Access rules per role, resource type and operation, denied unless granted, with compartment validators that scope a role to its own records |
| An audit trail | FHIR AuditEvent resources recording operations on the project's data, readable through the same API once a rule grants AuditEvent reads |
| File storage | Uploads referenced from DocumentReference or Media, served through expiring links |
| Reactions to data changes | Webhooks before and after FHIR operations |
| An AI assistant over patient data | An OpenAI-compatible chat endpoint that stores every exchange as FHIR Communication |
| Configuration from code | A developer API key that manages rules and settings and can never read patient data |
How a request is handled
Every request carries a bearer token naming the caller and an X-Project-ID header naming the project. The platform validates the token, resolves the caller to a FHIR identity (Patient, Practitioner, RelatedPerson or Device), finds the rules for that role, resource type and operation, and runs the validator each rule names. A request with no matching rule is refused. One that passes reaches the project's FHIR store and is recorded as an AuditEvent.
Where to start
- Zero to first FHIR call: sign in, create a project, register a device, run a
Patientquery. Nothing to install. - How access is decided: identity, rules, validators, and the behaviour no configuration can change.
- Making authenticated requests: the headers, the project binding and the error shapes every call shares.
- Writing access rules: how a rule is matched, what each validator checks, and the mistakes that deny everything silently.
- GraphQL reference: every query, mutation and type, generated from the GraphQL schema.
Who signs in, and how
| Caller | Credential | Documented in |
|---|---|---|
| A patient, practitioner or related person using your app | OAuth / OpenID Connect token from the project's identity provider | Authentication |
| A device, worker, integration or AI agent | Device key exchanged for a token | Device authentication |
| Your own scripts and CI configuring the project | Developer API key | Developer API keys |