medblocks / medblocks-faasd

Scripts running the Medblocks stack with openFaaS - faasd
Other
0 stars 1 forks source link

Medblocks faasd

These are scripts to install medblocks with openFaaS using faasd

This distribution is meant to be run on a single server. The faasd-docker-compose.yml is tightly integrated with faasd and may not run on a normal docker-compose environment. Use the docker-compose.yml file for experimentation using docker. This distribution uses HAPI FHIR for the FHIR Server, EHRbase for the openEHR CDR and NATS for eventing. openFaaS functions can be triggered in response to the events using annotations in the function deployment. See the NATS connector example for more info.

Events from HAPI FHIR:

The prestorage events directly correspond to HAPI JPA FHIR server's STORAGE_PRESTORAGE_RESOURCE_X Pointcut.

The poststorage events corresponds directly to HAPI JPA FHIR server's STORAGE_PRECOMMIT_RESOURCE_X Pointcut

For more details on HAPI JPA server pointcuts, reference this diagram.

Events from EHRbase:

The events from EHRbase are sourced from the wal-listner running on the PostgreSQL database. The following are supported by default:

You can change this by configuring the database.filter.tables property in the wal.yml file. If you're using a cloud database, you'll have to enable a few settings. Although this is well-supported by most cloud providers like AWS RDS and Azure Database, there are some (DigitalOcean Managed Postgres) that don't support enabling logical replication yet. This is a temporary fix, and will be removed once EHRbase supports eventing natively.