๐งฉ Product & Design Specification: careSync_
๐ Project Overview careSync_ is an AI-powered surgical planning and hospital coordination platform that automates and streamlines the pre-operative scheduling process. It integrates a fine-tuned LLM for surgical planning, resource availability checks via backend agents, and a task management system for doctors and hospital staff.
๐ฏ Objective To reduce the overhead and delays in surgical case planning by:
- Automatically generating surgical workflows using a fine-tuned LLM
- Dynamically querying the availability of staff, operating rooms, nurses, and equipment
- Allowing doctors to review, publish, and manage schedules and tasks from a single interface
๐๏ธ System Architecture (High-Level) Flow:
- The doctor gets case input via the EHR.
- A fine-tuned LLM (Phi-2 + LoRA) interprets the case and generates a structured surgical plan (in JSON format).
- A backend agent crew (using LangChain) processes this plan by:
- Checking resource availability (doctors, nurses, ORs, equipment)
- Matching schedule constraints
- The draft plan is returned to the frontend for review.
- Upon approval, the doctor clicks Publish, which:
- Sends confirmation emails or logs to assigned personnel
- Finalizes the schedule in the database
- Doctors can create, update, and remove additional tasks related to the patient.
A supporting architecture diagram is attached in the final submission.
๐ง Core Components Layer | Description ------------|------------------------------------------------------------ LLM Engine | Fine-tuned Phi-2 model using LoRA for medical instruction Backend | FastAPI server using LangChain + MongoDB for agent execution Frontend | React + Tailwind dashboard for doctors Database | MongoDB database stores resources, availability, tasks
๐๏ธ MongoDB Collections Used
- staff
- equipment_availability
- nurse_availability
- ot_availability
- test_history
- tasks
๐ Data Flow Summary Doctor gets case โ LLM generates structured plan โ Backend agents resolve availability โ Draft returned โ Doctor approves and publishes โ Agents notify and log โ Doctor creates follow-up tasks โ All saved in DB
๐ Frontend Workflow (Doctor Experience)
- Doctor clicks AI Suggestion โ triggers LLM and backend
- Views the generated surgical plan with required resources
- Confirms plan via Publish โ sends notifications, books OT
- Manages tasks through Create Task, Update Task, or Remove Task
๐งช Key API Overview
- POST /availability โ Checks the availability of required hospital resources
- POST /publish โ Finalizes and notifies stakeholders of surgical schedule
- POST /tasks, GET, PUT, DELETE โ Full CRUD for task management
๐ Future Enhancements
- Google/Outlook calendar integration for real-time sync
- Role-based access (doctor, nurse, admin)
- Task history and audit logs
- Attachments (PDF orders, reports)
๐ฌ Contact & Team Developed during Commure Codes Hackathon by:
- Jayesh Shinde โ Backend, LLM, API architecture
- Gaurav Patil โ Agents, MongoDB, Task System
- Maulik Ghatala โ Frontend, UI/UX
Built With
- agent
- ai
- css
- fastapi
- javascript
- langchain
- llm
- lora
- mongodb
- python
- react
- tailwind
Log in or sign up for Devpost to join the conversation.