๐Ÿงฉ 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:

  1. The doctor gets case input via the EHR.
  2. A fine-tuned LLM (Phi-2 + LoRA) interprets the case and generates a structured surgical plan (in JSON format).
  3. A backend agent crew (using LangChain) processes this plan by:
    • Checking resource availability (doctors, nurses, ORs, equipment)
    • Matching schedule constraints
  4. The draft plan is returned to the frontend for review.
  5. Upon approval, the doctor clicks Publish, which:
    • Sends confirmation emails or logs to assigned personnel
    • Finalizes the schedule in the database
  6. 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)

  1. Doctor clicks AI Suggestion โ†’ triggers LLM and backend
  2. Views the generated surgical plan with required resources
  3. Confirms plan via Publish โ†’ sends notifications, books OT
  4. 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

Share this project:

Updates