This week marks a crucial milestone for the SERENA project: the demonstration of the integration between mechanical components, hardware/firmware, and software elements. Our primary focus was on ensuring that all parts of the system—mechanical, firmware, and software—work together as a cohesive unit through unit tests and integration efforts.
The mechanical assembly, featuring the stepper motor and the pill-dispensing disk, has now been integrated with the Raspberry Pi firmware. The firmware acts as a bridge between the mechanical subsystem and the backend API, ensuring that every dispensing action is carefully controlled and validated.
On the software side, the mobile app, built with React Native, is now fully integrated with the backend API. This integration ensures that user actions, such as logging in, scheduling medications, and reporting symptoms, are synchronized with the server. Every request from the app is validated by the API to ensure data consistency and security. The API itself is responsible for managing all core entities—users, prescriptions, and medication schedules—while also enforcing strict input validation to maintain the integrity of the system.
In addition to the app, the Large Language Model (LLM) service has been successfully connected to the API. The LangChain-based pipeline processes patient commands, contextualizes them with medical data, and then routes structured JSON responses back to the backend. The API then parses these responses, triggering actions like alerting a caregiver or logging symptoms. This integration ensures that even voice commands processed by the LLM remain secure, reliable, and consistent with the rest of the system’s operations.
The API serves as the backbone of this entire system, facilitating communication between the app, the LLM service, the Raspberry Pi client, and the database. It manages authentication, CRUD operations for key entities, and robust validation of all inputs to prevent misuse and maintain system stability. Every interaction with the API is carefully logged and tested to ensure compliance with security standards and data integrity requirements.
The database itself plays a pivotal role by maintaining relationships between entities such as users, prescriptions, and medication logs. This relational model ensures that every action—whether initiated by the mobile app, the firmware, or the LLM—can be traced and audited, providing transparency and reliability for caregivers and healthcare professionals.
Retorno da rota que lista os medicamentos cadastrados
The successful integration of mechanical, hardware, and software components through unit testing and rigorous validation brings us closer to a fully functional SERENA system. This milestone demonstrates our commitment to delivering a reliable, secure, and user-friendly solution that bridges the gap between technology and healthcare. As we move forward, we will continue to refine this integration, ensuring that every component works harmoniously to empower seniors and caregivers with confidence and peace of mind.