Install

One container and a Postgres database. No queue, no cache, no worker fleet. The first run opens a setup wizard that writes the installation’s own data package.

What you need

  • Docker with the compose plugin, or Python 3.12 and Postgres 14 or newer on the host.
  • A domain and a reverse proxy for TLS, if the site is to be public. The app itself speaks plain HTTP on one port.
  • An AI key, only for the features that read paper, interview patients or summarise a record. Everything else runs without one.

Run it

The application repository is not public yet: its modules reach the public repository one by one, after privacy and security review. Access to the full code is given on request through Contact. With a checkout, one command installs everything:

git clone <repository-url> human-rounds
cd human-rounds
./install.sh

install.sh checks Docker, creates .env from .env.example, starts the application and Postgres with Docker Compose, waits until both are healthy and prints the setup address. The same by hand:

cp .env.example .env
docker compose up -d --build
# then open http://localhost:7700/setup

Logs: docker compose logs -f app. Stop: docker compose down.

The setup wizard asks for the installation’s name, timezone, languages and first centre, and only writes to the database at the last step, so an abandoned setup leaves nothing behind.

Without Docker

apt-get install poppler-utils ffmpeg postgresql-client
pip install -r requirements.txt
DATABASE_URL=postgresql://user:password@localhost/humanrounds PORT=7700 python3 -m app

poppler-utils turns a referral order that arrives as a PDF into an image before the AI reads it, ffmpeg converts patients’ voice messages, and postgresql-client takes the database dumps for backups. The schema is created on the first start.

Server size

One virtual machine with 2 vCPU and 2 GB of memory carries a district-sized public network: one hospital and a handful of health centres. Cloud providers rent that size for about US$5–20 a month. The AI provider bills the AI features separately, per use. There is no Redis, no message broker and no separate worker to deploy: the application is a single process with Postgres next to it.

Backups

The built-in backup encrypts the database dump and the uploaded files (photos and PDFs of referral orders, document photos) and sends both to S3-compatible storage you choose. Uploaded files are the one thing a database dump cannot bring back, so keep their directory on a volume that is backed up.

What runs in the background

Inside that same process, a handful of small loops do the work nobody triggers: sending the day-before reminders, re-offering a freed slot to the waitlist, retrying appointments the health record refused, preparing record summaries ahead of the clinic, taking off-site backups, and watching whether the AI provider is answering. Each can be switched off with a setting, and each one failing degrades only itself.

The data package

Everything specific to one town — centres, services, professionals, specialties, preparation instructions, the site’s own texts — lives in a data package layered over a country package and a global one. You only write what differs from the layer below. Upgrading the software does not touch it, and a second installation is a second package rather than a fork.

Upgrading

Pull and redeploy. The database migrates itself on boot, forward only, and refuses to run a migration twice. Your data package, your settings and your uploads are outside the image and survive the redeploy untouched. Take the database dump first anyway.

Modules

Appointments are one module. The pre-consult interview is another. A module can be turned off in an installation that does not want it, and a new one plugs into the same platform core — the core owns the account, the session, the roles and the data package, and a module owns its own routes and screens.

Configuration, and where it lives

Only the database connection has to be an environment variable. Everything the institution changes afterwards — languages, location, keys, the texts, the AI instructions — is edited from the panel and takes effect without a redeploy. Secrets are written, never read back: the panel reports a key as present or missing and nothing else.

Next: Connectors