An application to predict risk of delirium at time of admission.
This is a Next.js application that predicts the risk of delirium based on various clinical factors. It uses a React frontend with a clean, clinical 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 git@github.com:VectorInstitute/delirium-risk-predictor.git
- Navigate to the project directory:
cd delirium-risk-predictor
- Install the dependencies:
npm install
- Run the frontend server in development mode:
npm run dev -- -p <port>
- Run the backend FastAPI server:
poetry install
cd api/
uvicorn api.main:app --reload --host 0.0.0.0 --port 8001
- Open your browser and visit
http://localhost:<port>
to see the application.
app/page.tsx
: The main page componentcomponents/InputForm.tsx
: The form for inputting patient datacomponents/ResultsDisplay.tsx
: Displays the risk prediction resultsapi/
: The backend API endpointspublic/
: Contains static assets like logos
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache 2.0 license.