AWS
Cloud
A governance-first operating system for hospitals.
Designed to turn organizational policy, authority, workflows, and auditability into day-to-day operations.
Operational model
Governance is translated into operational execution through a chain of constrained decisions.
Authority is computed from organizational context first.
Workflows and capabilities remain tied to their historical shape.
Hospitals are not a single team.
Authority exists at multiple levels.
Organizations govern hospitals.
Hospitals govern branches.
Branches run operations.
Departments execute work.
The challenge was not managing users.
The challenge was determining who should be allowed to do what, where, and under which conditions.
Official marks from the tools and platforms used to design, build, deploy, and operate the system.
AWS
Cloud
AWS KMS
Key management
AWS Lambda
Serverless compute
AWS EC2
Compute
Cloudflare R2
Object storage
VS Code
Editor
Next.js
Framework
Tailwind CSS
Styling
Git
Version control
GitHub
Repository hosting
Vercel
Deployment
pnpm
Packages
Codex
Coding agent
Claude Code
Coding agent
Cloudflare Wrangler
CLI
A user's authority is not a role.
It is the result of many layers of decisions, restrictions, exceptions, and organizational context.
Roles were not enough.
Authority depended on:
Organization
Hospital
Branch
Department
Designation
User Overrides
The final authority model is scope-first, ceiling-constrained, and context-aware.
This became the foundation for workflows, approvals, encounters, and operational execution.
The architecture is built around four independent ideas.
Defines who can govern what.
Determines what a person can actually do.
Turns configured workflows into operational work.
Preserves historical truth.
Precomputed capability snapshots used as the effective permission source.
Authority composed from scopes, designations, restrictions, and user-specific overrides.
Separating workflow definition from workflow execution.
Designing operational systems around historical truth.
This system separates:
Identity from Authority.
Policy from Execution.
Current Truth from Historical Truth.
Currently in development.
Designed around:
Interested in how these decisions were made?
The Engineering Notes explain the architecture behind capability snapshots, workflow execution, authorization, and auditability.