Database schema
Aidbox database schema
All resource types in Aidbox are stored in different tables, named with a lowercased resource type name. All these tables have a similar schema:
You use the DB Console to explore the database:
As you can see, resources are stored as JSONB documents in the resource column.
Resources are stored in Aidbox JSON format, which is more friendly for storage, and converted into FHIR in REST API on the fly!
You can access attributes of resources using PostgreSQL JSON functions:
Custom Queries
You can define and expose over REST API sophisticated queries in SQL on FHIR data using Custom Queries.
Tutorials
Check out our video tutorial about SQL on FHIR in PostgreSQL:
Last updated