Medical Care Timeline is a visual tool for exploring patients' hospital episodes in a clear, interactive way.
Instead of reading many rows across many tables, you can open one case and see the full journey as a timeline, review key events, follow clinical evolution, and inspect details when needed.
If you want to try the app on your own machine:
- Clone the repository.
- Create a Python virtual environment and install the backend dependencies.
- Install the frontend dependencies with
npm. - Start the backend.
- Start the frontend.
- Open
http://localhost:5173in your browser.
git clone https://github.com/diegomarzaa/medical-care-timeline.git
cd medical-care-timelineBackend setup:
python3 -m venv .venv
source .venv/bin/activate
pip install -r backend/requirements.txtcd backend
uvicorn main:app --reload --port 8000Run the frontend in another terminal:
cd frontend
npm install
npm run dev- Open one or many case IDs at the same time.
- Explore the episode as a visual timeline.
- Review numeric evolution in charts.
- Inspect the same events in a table.
- Click any event to focus it and read more detail.
- Save, reuse, import, and export configurations.
- Use your own data or try the bundled synthetic demo dataset.
Medical Care Timeline supports different ways of loading data, so teams can use the one that fits their workflow best.
- Remote PostgreSQL through SSH: Used when the database lives on a remote server.
- Direct PostgreSQL connection: Used when the application can connect directly to the database without an SSH tunnel.
- Local CSV files: Used when data is available as CSV exports. Easiest method for fast reviewing.
- Synthetic demo dataset: Used for testing before loading your own data. IDs are automatically suggested.
- Load your data.
- Choose the episode ID column.
- Configure the layers you want to see.
- Open one or more case IDs.
- Switch between views depending on what you want to inspect.
The layer editor is where Medical Care Timeline becomes useful for different projects and datasets.
You can:
- Choose the episode identifier column.
- Create point events and range events.
- Build parent and child layers to organize the timeline.
- Pick colors and labels.
- Choose what appears on hover and what appears in the detail panel.
- Add filters so a layer only shows the rows you care about.
- Create evolution series for point layers, so values can be displayed as charts.
- Configure the episode summary shown when no event is selected.
- Save configurations in the app, import JSON files, or export them for reuse.
Best for understanding the overall episode flow, admissions, movements, treatments, and important clinical events over time.
Best for following numeric changes across time, such as assessment scores or other series configured in point layers.
Best for scanning events in a more traditional format, filtering by layer, and exporting to CSV.
You can also work in:
Timeline + EvolutionTimeline + Table
This is useful when you want both the visual story and the detailed values at the same time.
Medical Care Timeline is especially useful for:
- Clinical pathway review
- Case exploration and discussion
- Data validation
- Demonstrations and presentations
- Comparing how different configurations change what a case reveals
A simple Docker-based setup is planned so the full app can be started more easily with fewer local installation steps.






