Post-discharge care coordination platform on synthetic data: .NET microservices + React. Rewrite to .NET 11, Aspire and Azure in progress.
Cloud-native post-discharge care coordination platform built as a portfolio-grade reference implementation for Azure and Kubernetes.
Synthetic data only. CareBridge is not a production-certified clinical system, medical device, or EHR. No real patient data is used anywhere in this repository.
v2 rewrite in progress. The v0.6 codebase described below is archived at tag
v0.6-legacy. CareBridge is being rewritten incrementally on .NET 11, Aspire and Azure Container Apps. Follow the v2 Rewrite Program and the rewrite plan.
Most healthcare portfolio projects are either too shallow to be technically credible or too broad to be believable. CareBridge focuses on one operational workflow, the first 30 days after hospital discharge, and uses it to demonstrate event-driven architecture, CQRS read models, observability, resilience, and healthcare-aware system design in a bounded, defensible scope.
v0.6 Hardened completed on 2026-04-02.
| Area | Status |
|---|---|
| Delivery progress | 44 of 52 planned issues completed |
| Epic completion | 6 of 7 epics complete |
| Quality | 140 automated tests passing, solution builds with 0 warnings, frontend TypeScript compiles cleanly |
| What works today | Intake, care plans, monitoring, alerts, tasks, appointments, notifications, dashboard, timeline, audit, and service hardening |
| Next | Dockerfiles, Helm charts, Terraform, GitHub Actions CI/CD, and synthetic data generation tooling |
Progress is tracked in GitHub Issues: see ROADMAP.md and the v2 Rewrite Program. The v0.6 delivery documents are archived in docs/archive/v0.6.
Prerequisites: .NET 11 SDK (pinned in global.json), the Aspire CLI 17, Docker Desktop, Node.js LTS, gitleaks and lefthook. Or skip the installs and open the repository in GitHub Codespaces or a local dev container (.devcontainer/), which has everything preinstalled.
curl -sSL https://aspire.dev/install.sh | bash # install the Aspire CLI (once)
lefthook install # git hooks: secrets, format, lint, commit messages (once per clone)
aspire run # from the repository root
aspire run starts the whole stack with one command: PostgreSQL, the Service Bus emulator, Keycloak and Mailpit, the BFF, the v2 SPA, the care-management context (cases and care plans), the monitoring context (observations, care-gap rules and alerts), the coordination context (care tasks and appointments), the notifications context (in-app inbox and e-mail), the audit context (the tamper-evident audit log) and the insights context (dashboard and timeline projections). The legacy v0.6 services, gateway, shared libraries and SPA were deleted context by context at the cutovers (#68, #76, #83, #89); the tag v0.6-legacy keeps them. Open the dashboard URL it prints to see every resource, its health, logs and traces. Credentials are generated Aspire parameters; no .env file is needed.
Prerequisites per OS (macOS, Windows with WSL2, Linux), ports, parameters, the Apple Silicon note, test commands, the dev container, git hooks and troubleshooting: Local Development Guide.
Architecture details: Solution Architecture, Service Catalog, and API and Event Contracts.
| Layer | Technology |
|---|---|
| Backend | .NET 11, ASP.NET Core Minimal APIs, EF Core |
| Frontend | React, TypeScript, Tailwind CSS, React Router, React Query |
| Local runtime | Aspire 17 AppHost (aspire run): PostgreSQL 18, Service Bus emulator, Keycloak, Mailpit |
| Target cloud | Azure Container Apps, PostgreSQL Flexible Server, Service Bus, Key Vault, Azure Monitor (ADR-017). Provided as a reference and not deployed by this project: the Bicep generated by the AppHost in infra/azure, the deploy workflow and the scripts, all verified locally and in CI (how) |
| Need | Document |
|---|---|
| Product intent an |
Fit the services' PostgreSQL pools into the Azure server's connection limit
https://github.com/artemsemdev/CareBridge/issues/272
Labels: 없음
Notify the coordinator when an appointment is missed (no-show)
https://github.com/artemsemdev/CareBridge/issues/269
Labels: 없음
Kubernetes publish via Aspire, validated on kind in CI
https://github.com/artemsemdev/CareBridge/issues/116
Labels: rewrite-v2, type:feature, area:infra, priority:P2, size:M
FHIR R4 read-only export: CarePlan, Task and Observation
https://github.com/artemsemdev/CareBridge/issues/115
Labels: rewrite-v2, type:feature, area:backend, priority:P2, size:M
FHIR R4 intake: accept a discharge Bundle (Patient, Encounter, Condition) with the Firely SDK
https://github.com/artemsemdev/CareBridge/issues/114
Labels: rewrite-v2, type:feature, area:backend, ctx:care-management, priority:P2, size:L
Thanks for contributing. CareBridge is a portfolio-grade reference implementation of a healthcare care-coordination platform, and contributions should keep that scope clear, technically defensible, and safe to share publicly.
Even as a mostly solo project, every change follows the same visible workflow: issue → branch → small PR → CI → squash merge. This document describes that workflow and the Definition of Done every change has to meet.
carebridge-context template and the architecture tests.docs/.Prerequisites: .NET 11 SDK, Docker Desktop, Node.js LTS (24 or 26) with pnpm (npm install --global corepack && corepack enable pnpm), the Aspire CLI (curl -sSL https://aspire.dev/install.sh | bash), gitleaks and lefthook. The dev container (local or GitHub Codespaces) has all of them installed.
Run the whole stack (containers, migrations, the v2 contexts, the BFF and the v2 SPA) with one command from the repository root:
aspire run
Build and test:
dotnet build CareBridge.slnx
dotnet test CareBridge.slnx # includes the AppHost smoke test, which needs Docker
dotnet format --verify-no-changes CareBridge.slnx # full format and code-style check
Frontend, the v2 SPA in src/Frontend (README):
cd src/Frontend
pnpm install # after changing package.json, commit pnpm-lock.yaml with it
pnpm dev # Vite dev server
pnpm lint # ESLint, zero warnings
pnpm typecheck # TypeScript 7
pnpm format:check # Prettier; `pnpm format` fixes
pnpm test # Vitest, every test once; `pnpm test:watch` re-runs on change
pnpm test:coverage # the tests with coverage and the coverage gates, as in CI
pnpm build # type-check + production build
For additional setup details, see docs/developer/local-development.md.
Package versions are pinned centrally in Directory.Packages.props, and every project commits a NuGet lock file, packages.lock.json, next to its .csproj (#172). The lock file records the whole package graph, transitive packages included, with the content hash of every package. CI restores in locked mode: it installs exactly what the lock files say, checks each package against its hash, and fails instead of resolving a different graph.
To add, update or remove a package:
Change the <PackageVersion> in Directory.Packages.props, and the <PackageReference> (without a version) in the .csproj if a project gains or loses the package.
Restore the solution. Locally the restore is not locked, so it rewrites the lock files that changed:
dotnet restore CareBridge.slnx
A restore normally keeps a lock file that still matches its project, even when a newer transitive version exists. To re-resolve a project's whole graph, for example to pick up a fixed transitive version, add --force-evaluate.
Commit the changed packages.lock.json files with the props and project changes. git status shows which ones changed; usually several, because a package reaches every project that references it directly or through a project reference.
The same applies to a new project: its first restore writes its lock file, which is committed with it. A new context from the carebridge-context template is a new set of projects: after dotnet new, run dotnet restore CareBridge.slnx and commit the new lock files together with the updated lock files of tests/Architecture.Tests and tests/Contracts.Tests, which reference every context (template README).
"NU1004: The packages lock file is inconsistent with the project dependencies" in CI means a lock file no longer matches its project: a package or project reference changed without a restore, or the lock file was not committed. Run dotnet restore CareBridge.slnx and commit the lock files. To reproduce CI's check locally, run CI=true dotnet restore CareBridge.slnx (or dotnet restore CareBridge.slnx --locked-mode). A NU1403 (package content hash validation failed) means a downloaded package differs from the one recorded in the lock file. Do not regenerate the lock file to make it pass: find out where the different package came from (a package source or a cache), as it can be a tampered package.
Two details to know:
src/Contexts, src/BuildingBlocks, src/ServiceDefaults and tests/Data.Sample/Data.Sample.Persistence) declare the bundle runtimes (`CareBridgeBundleRuntimeIde