Overview
This is a frontend-only patient registration application that uses IndexedDB for data storage. It allows users to register new patients, query records using SQL-like syntax, and persist patient data across page refreshes.
Features
- Register new patients with comprehensive information
- View and search patient records
- Execute SQL-like queries on patient data
- Data persistence across page refreshes
- Synchronization across multiple browser tabs
Technology Stack
- Next.js - React framework
- IndexedDB - Client-side storage
- Tailwind CSS - Utility-first CSS framework
- shadcn/ui - UI component library
- BroadcastChannel API - For cross-tab communication
How It Works
This application runs entirely in your browser. The database is implemented using IndexedDB, which provides a way to store structured data in the browser. This allows the application to persist data across page refreshes and browser sessions.
The application provides a SQL-like interface that translates simple SQL queries into IndexedDB operations, allowing you to query and manipulate patient data using familiar SQL syntax.
When changes are made in one tab, they are broadcasted to other open tabs using the BroadcastChannel API, ensuring that all tabs stay in sync.