How do we know where settings come from and how to prioritize them?

Artyom Bologov
April 11, 2025
2 min

Source is an intuitive way to think about settings. They come from somewhere, be it a single place or many places. Environment variables, database contents, server-specific configuration—all of these are settings sources. We specifically added a concept of sources to Aidbox to handle these ideas.

Sources store and fetch values in their own specific ways. Environment variables are read-only, for example. And the database is easy to modify at any moment, ensuring settings apply right when you change them. With this source-specific behavior we can be sure that the system is both reliable (it’s impossible to break something fundamental) and flexible (no need to restart Aidbox every time you change a setting.)

To handle the variety of sources we have, these sources have priorities. Environment variables defined on Aidbox FHIR server startup override settings stored in the database or set in legacy Zen config. We consider this order intuitive enough: if the user wants to override some setting, they have an easy way to do so, like providing environment variables.

Settings might come from multiple sources and have different priorities. Source priorities handle the clashes, and our Settings screen shows where these settings are coming from. With that, we maintain a transparent system that works in an intuitive way, showing you the sources for changed settings and allowing you to set and override them.

How did you like the article?
Be the first to know!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

contact us

Get in touch with us today!

By submitting the form you agree to Privacy Policy and Cookie Policy.
Thank you!
We’ll be in touch soon.

In the meantime, you can:
Oops! Something went wrong while submitting the form.

Never miss a thing
Subscribe for more content!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
By clicking “Subscribe” you agree to Health Samurai Privacy Policy and consent to Health Samurai using your contact data for newsletter purposes