// Open source

Database for FHIR®

Fhirbase is an open source toolkit for storing and working with FHIR data, built on top of PostgreSQL.

used by

Overview

Fhirbase is an open source toolkit for storing and working with FHIR data.

Fhirbase Structure
fhir schema icon

FHIR Schema

Database schema on top of PostgreSQL based on HL7 FHIR.

FHIR Import icon

Import FHIR data

Efficient import of your FHIR data with Bulk API, Synthea, Bundles, etc.

CRUD operations

CRUD Operations

Conventional API as Stored Procedures for basic CRUD operations and History.

Fhibase connectors

Connectors

Fhirbase connector libraries for your programming language.

Quickstart

Fhirbase is an open source toolkit released under the MIT License.

2 Download Fhirbase
3 Create Database
$ psql -c 'CREATE DATABASE fhirbase;'
4 Initialize FHIR-schema
$ fhirbase -d fhirbase --fhir=3.3.0 init
5 Load FHIR resources
$ fhirbase -d fhirbase --fhir=3.3.0 load http://bulk-api-server.com/fhir/Patient/$export
6 Start Fhirbase Web UI
$ fhirbase -d fhirbase web

Fhirbase in Docker

Please proceed to Getting Started tutorial for more info.

2 Download Image
$ docker pull fhirbase/fhirbase:latest
3 Docker Run
$ docker run --rm -p 3000:3000 fhirbase/fhirbase:latest
4 Open localhost:3000
Web server was started on port 3000, point your browser to the http://localhost:3000

Download Fhirbase

Apple logo

MacOS

Docker logo

Docker

or
docker pull fhirbase/fhirbase:latest

>_ Hello, Aidbox

FHIR Platform

Full-blown FHIR-powered that drastically reduces time and effort for your Health IT solution development.

aidbox-logo

What is Fhirbase and why you might want to use it.

Data is the heart of any healthcare system, and thus should it should be properly modelled and managed reliably. Open source FHIR standard provides you an robust data model covering most important healthcare domains. PostgreSQL is a battle-proven open source relational database which supports storing of JSON documents while preserving ACID guarantees and the richness of the SQL language. Combination of these two technologies is a perfect foundation to build your system on.

Fhirbase is a common name for a command line tool  and set of libraries aiming to lower the entry barrier for both FHIR and PostgreSQL. It gives you an ready to use components to boost your development, as well as guidelines how to store and access your FHIR data. With Fhirbase you can break FHIR API abstraction and operate with FHIR data on database level.

History of Fhirbase

We've already completed two major re-thinks and re-writes of Fhirbase. Our original idea was to implement an essential part of the FHIR specification - CRUD, Hx, Search - inside a database using stored procedures written in PL/PgSQL language. The problem was with the expressiveness of PL/PgSQL, which is an archaic language that is quite slow. So we rewrote it in JavaScript and it was quite successful to be used in several production systems.

While using this version, we recognized that sometimes only the schema and persistence parts of Fhirbase were valuable. Most likely you would want to implement FHIR logic in your application layer instead of database stored procedures. So at this time we decided to decouple Fhirbase into three components:

-Database Schema & utils to store and query FHIR information in PostgreSQL
-FHIR metadata storage and manipulation
-FHIR operations implementation
-Current version of Fhirbase is focused on the first one, with an emphasis on good performance and simplicity.

Find all the resources and answers you need to start developing modern healthcare apps.

Learn and Build

Fhirbase Connectors

You can integrate Fhirbase with your preferred technology. Don't see your technology? Send us a request!

Fhirbase logo

Try FHIRbase now! The easiest way to start is to use a docker image.

Health Samurai1891 N Gaffey St Ste O,
San Pedro, CA 90731
+1 (818) 731-1279hello@health-samurai.io