Skip to main content

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 needMedBackend provides
A standard data modelEvery FHIR R4 resource, as GraphQL queries and mutations with FHIR search parameters as arguments
Logins for patients and cliniciansA built-in OAuth 2.0 / OpenID Connect provider per project, with sign-in with Google and PKCE for public clients
Credentials for softwareDevice keys for workers, integrations and AI agents, exchanged for short-lived tokens
Permissions per roleAccess rules per role, resource type and operation, denied unless granted, with compartment validators that scope a role to its own records
An audit trailFHIR AuditEvent resources recording operations on the project's data, readable through the same API once a rule grants AuditEvent reads
File storageUploads referenced from DocumentReference or Media, served through expiring links
Reactions to data changesWebhooks before and after FHIR operations
An AI assistant over patient dataAn OpenAI-compatible chat endpoint that stores every exchange as FHIR Communication
Configuration from codeA 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​

Who signs in, and how​

CallerCredentialDocumented in
A patient, practitioner or related person using your appOAuth / OpenID Connect token from the project's identity providerAuthentication
A device, worker, integration or AI agentDevice key exchanged for a tokenDevice authentication
Your own scripts and CI configuring the projectDeveloper API keyDeveloper API keys