An application to predict delirium prevalence rates at hospitals.
This is a Next.js application that displays delirium prevalence rates at hospitals. It uses a React frontend with a clean, clinical dashboard interface.
Before you begin, ensure you have the following installed:
- Node.js (version 14 or later)
- npm (usually comes with Node.js)
To get the application running on your local machine, follow these steps:
- Clone the repository:
git clone [email protected]:VectorInstitute/delirium-scorecard.git
- Navigate to the project frontend directory:
cd delirium-scorecard/frontend
- Install the dependencies:
npm install
- Run the frontend server in development mode:
npm run dev -- -p <port>
- Navigate to the repository root and install backend dependencies:
cd delirium-scorecard
poetry install
- Run the backend server:
uvicorn backend.api.main:app --reload --host 0.0.0.0 --port <port>
- Open your browser and visit
http://localhost:<port>
to see the application.
This project is divided into two main directories: frontend
for the Next.js application and backend
for the FastAPI server.
frontend/
├── src/
│ ├── components/
│ │ ├── DeliriumRates.tsx
│ │ ├── TimeTrends.tsx
│ │ ├── PatientDemographics.tsx
│ │ ├── Sidebar.tsx
│ │ └── Layout.tsx
│ ├── app/
│ │ ├── page.tsx
│ │ ├── layout.tsx
│ │ ├── ThemeRegistry.tsx
│ │ ├── globals.css
│ │ └── faq/
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ ├── error.tsx
│ │ └── loading.tsx
├── theme.ts
├── public/
│ └── images/
├── package.json
└── next.config.mjs
components/
: Reusable React componentsapp/
: Next.js pages and routingpublic/
: Static assets like images
backend/
├── api/
│ ├── main.py
│ ├── routes.py
│ └── delirium.py
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache 2.0 license.