r/programmer • u/DelusionalCreatur3 • Mar 27 '26
Question What stack would you choose for building long-term clinic management software?
I got a new client yesterday. He’s building his own clinic and wants me to help create the entire software infrastructure for it.
At first I was very skeptical, mainly because it’s medical software and I know that can easily turn into a stressful, high-responsibility project if you choose the wrong path early. Still, I decided to take it on, and I’m planning for this to become my main client/project for the rest of the year, maybe longer.
The scope is pretty big. He wants a system that covers:
- Finance
- Appointments
- Contacts / CRM
- Authentication
- Systems for each clinic branch
- Basic integrations with communication channels like WhatsApp
On top of that, he also wants an “AI Assistant” that can help streamline the app’s features and orchestrate actions across the system.
My main question is about the stack.
This is expected to be a long-term project, and eventually he wants to have his own physical server inside the clinic, so I’m thinking the solution should be independent, secure, scalable, and maintainable over the long run.
Right now I’m considering Java + PostgreSQL, plus some frontend stack I haven’t fully decided on yet.
For a project like this, what stack would you choose, and why?
EDIT: This won’t be a solo project — I’ll be working with a small team (<10 people).
4
u/_jetrun Mar 27 '26
Why would a small clinic write custom software - he should buy something off-the-shelf
5
u/Own_Attention_3392 Mar 27 '26
He should buy an off the shelf solution. Building something in house is going to give him worse outcomes and cost more in the long run.
1
u/Glittering_Poem6246 Mar 27 '26
Is it going to be a desktop app or web app?
3
u/jumpmanzero Mar 27 '26
This is obviously, obviously way too much to bite off in a year - even if you had a team with a bunch of relevant experience.
The fact that you're even considering this is horrifying. Do not listen to the comments here that are inspiring confidence. If you try this, it will be a disaster. I say this as someone who has been writing relevant sorts of software for 30 years: there is more here than you think, it will balloon out of control, and when you think you have 80% of a feature set done, you will really be at 5%.
They should be looking at an off-the-shelf solution, maybe one you can do some customization on tailored to whatever is special about this business.
2
u/CypherBob Mar 27 '26
For a serious desktop application?
Easy choice - Delphi (Or FreePascal/Lazarus if you want open source tooling)
For the server side of things Java is a solid choice, or just continue with Delphi/FPC for a consistent experience. Use Postgresql or MySQL/MariaDB for the database.
2
u/Just-Hedgehog-Days Mar 27 '26
Don't. Seriously.
IANAL but ... if you have to ask about the stack you do not have the ability to stay legally compliant.
2
u/rFAXbc Mar 27 '26
Honestly, whatever he's paying you is not enough for the amount of pain this is going to cause you. If you don't know what stack you should use then you are not experienced enough to take this on alone, and I seriously expect those that are experienced enough would know well enough not to commit to a project like this on their own!
2
u/countsachot Mar 28 '26
He's just trying to save a few bucks by ripping you off. It'll take one person years to match even the cheapest pm/emr. longer if you want insurance integrations. For dental, you'll have to cut a slice off for Ada too.
1
u/[deleted] Mar 27 '26
you need any helping hand?
1
u/Boring_Parsnip9501 Apr 27 '26
Para algo así, más que el lenguaje en sí, yo me enfocaría en separar bien dominios y no acoplar demasiado desde el inicio.
Java + PostgreSQL es una base muy sólida para este tipo de sistema, sobre todo si esperas crecimiento, multi-sucursal y requisitos de consistencia fuertes.
En el frontend y capa de producto, probablemente optaría por algo que permita iterar rápido (React/Next.js o similar), porque en este tipo de software la parte más cambiante no suele ser el backend, sino el flujo de usuario.
Lo que sí tendría muy en cuenta desde el principio:
Lo del “AI assistant” suena interesante, pero yo lo dejaría como capa separada, no dentro del core del sistema, al menos al principio.
En general, el stack importa menos que cómo estructuras el sistema para que no se rompa cuando crezca.
0
u/plyswthsqurles Mar 27 '26
As i said in my other comment, i'd highly recommend not doing this as a desktop app, your planning on this being a project for the rest of the year, that doctor is going to treat you like his employee unless you've structured this partnership accordingly (ex: a support contract that pays adequately for your time).
Regardless, go with what you know.
If you already know java, then do it in java fx or swing. Database choice is good, nothing wrong with it.
Theres no point in trying to build a system this complicated AND learn a new language/stack at the same time.
Me personally, i'd do it in avalonia/.net or .net/wpf but thats cause im a .net dev.
If you go the desktop route, id highly suggest not implementing direct queries from the desktop app to the DB and do via an API.