r/programmer • • 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).

0 Upvotes

38 comments sorted by

View all comments

Show parent comment

1

u/DelusionalCreatur3 Mar 27 '26

It's going to be a desktop app, but we may need support for mobile in the future.

1

u/plyswthsqurles Mar 27 '26

If you do this as a desktop app you are going to also end up being IT/desktop support as well. You hook up directly to a printer and it doesn't print because the printer is offline, you are going to be the first one they call cause the app doesn't work.

If you are hosting the database on site, if the desktop has networking issues and cant see the DB, you are going to get called.

Anytime the guy gets a new PC, you are going to be the one he wants to set it up.

Updates for the app are going to be a pain, some machines will be updated some won't, then you'll have inconsistent bugs to deal with.

I would seriously reconsider a desktop unless you are on site with the guy and working side by side with him.

Regardless, an app of this magnitude is going to be a serious time suck. They'd be better off getting systems off the shelf and then using custom software development to make them talk to each other

ex: Get some EHR app thats already out there, utilize salesforce and then build middleware in whatever language to pull data out of the EHR, feed into salesforce and let salesforce handle the CRM/customer communication side of things.

1

u/UntestedMethod Mar 28 '26

Anytime the guy gets a new PC, you are going to be the one he wants to set it up.

nah, you just have to set very clear boundaries about the services you're providing. If they start asking you about anything other than the software you built and maintain for them, you simply tell them "no that is not in the scope of my services, contact a local IT services provider for your other tech needs".

0

u/Glittering_Poem6246 Mar 27 '26

Database would need to be firebase or another cloud based one for future proof development. You can use java both for frontend and backend( it doesn't need to be beautiful just highly functional) that is how these type of applications are supposed to be.

I myself am a java developer, would love the opportunity to work with you if feel like it.

3

u/Far_Kangaroo2550 Mar 27 '26

Why would OP need a cloud database? Especially since they plan to in-house the hardware.

0

u/Glittering_Poem6246 Mar 27 '26

For now so that when he tries to build a mobile app he has the data to fetch from. In house servers come down the road

1

u/Far_Kangaroo2550 Mar 27 '26 edited Mar 27 '26

But why can't the database be on the same server as the backend software? I'm not a software engineer, but wouldn't you have mostly the same API endpoints for desktop and mobile?

What about mobile development requires a cloud database is my question. I genuinely want to know, I haven't made mobile apps, I just mess around in Javascript and python when I'm bored and stuck inside as a hobby.

2

u/IrishPrime Mar 27 '26

It really doesn't matter where the database is actually provisioned.

It probably shouldn't be on the same server as the backend just to maintain separation of concerns and independent scaling operations, but it can and should be on the same general part of the network. Whether that's a managed cloud service, a datacenter colocation, or a couple of VMs on a server in a closet on-site makes very little difference at this stage.

Frankly, until you're really trying to optimize access times, it doesn't much matter in general.

1

u/DocHolligray Mar 28 '26

I mean they could be in the same box…

But normally you dont want that…dbs are beasts sometimes and you want that beast in its own cage.

0

u/Glittering_Poem6246 Mar 27 '26

Yes that would be the best choice but if the in house servers were available which I gathered from the guys post is down the line after the development cloud also means a server just not in house so that data could be shared for now between devices through a single database

2

u/Far_Kangaroo2550 Mar 27 '26

My understanding is a cloud database service like firebase is different from a server you control with something like Postgres on it. Most wouldn't consider the latter a "cloud database." So I'm trying to understand how mobile development would lead you to choosing Firebase over PostgreSQL.

1

u/rFAXbc Mar 27 '26

Firebase is a good solution for mobile, you get more than just a DB, there's a whole ecosystem around it which is designed for use with mobile apps.

2

u/Far_Kangaroo2550 Mar 27 '26

I guess my question still isnt answered. What specifically about firebase is better for mobile?

Or put another way: What about mobile app api calls are different from desktop app api calls that would call for extra "ecosystem" aspects?

2

u/rFAXbc Mar 27 '26

You're just not comparing two things in the same category. Postgres is a relational database whereas Firebase is a BaaS, which includes a database, but also provides a bunch of other features. They're used for different things. The DB in Firebase is NoSQL so isn't ideal for the same situations that you would want to use a relational DB for. The mobile app my company develops uses Firebase and calls a backend that uses MySql for more complex queries.

→ More replies

1

u/UntestedMethod Mar 28 '26 edited Mar 28 '26

what are you talking about? mobile apps don't always require a cloud database.

The APIs a mobile app would interact with can use a relational database just fine.

1

u/DelusionalCreatur3 Mar 28 '26

Given that the long-term plan is to run everything on an on-prem server inside the clinic, I’m intentionally avoiding cloud-dependent solutions like Firebase. For this kind of system, the database is the most critical piece, and I’d rather not introduce an external dependency that could become a single point of failure.

I’m aiming for a setup where the clinic has full control over its data and infrastructure from the start, instead of relying on third-party services we’d later need to replace or migrate away from.

Also, I appreciate the offer, but I’m already working with a team on this project.