One licence, no open-core tier
The whole application is source-available under the Business Source License 1.1, with every capability in one repository and nothing held back for a paid tier. Reading, building, modifying and redistributing the source is free, and so is every non-production use. Production use is free for personal use, research, teaching and a non-profit or public body outside the course of a business. Treating patients, any other production use by a company, hosting it for third parties, and distributing it for a fee need a commercial licence. Each version becomes Apache 2.0 four years after it is published. A table says whether you need one.