OpenHealthSuite is open source, under GPL-3.0 licence, with the source code hosted on GitHub, and full permission to host your own instance.