Features Overview
Med Agenda provides a complete suite of features designed to streamline medical practice management. From appointment scheduling to AI-powered medical assistance, every feature is built with healthcare professionals and patients in mind.Core Features
Appointment Management
Schedule, update, and track consultations with automated email notifications and urgent appointment handling
Patient Management
Comprehensive patient profiles with medical history, consultation records, and secure authentication
Doctor Administration
Manage medical staff with specialties, credentials (CRM), consultation pricing, and availability tracking
Diagnosis & Records
Document diagnoses with CID codes, maintain patient history, and track treatment outcomes
Payment Processing
Handle consultation payments with support for PIX, credit card, and payment status tracking
Email Notifications
Automated appointment reminders and confirmations via Resend email service
AI Medical Assistant
Integrated chatbot powered by Ollama for medical information, CID lookups, and health guidance
Health News Integration
Curated medical news and updates from government health sources
Appointment Management
The consultation system is the heart of Med Agenda, offering sophisticated appointment scheduling and tracking.Key Capabilities
- Flexible Scheduling: Create appointments with customizable date, time, and duration
- Urgent Consultations: Flag and prioritize urgent medical appointments with the Decorator pattern
- Conflict Detection: Automatic validation to prevent double-booking doctors
- Email Notifications: Patients receive automatic confirmation emails upon booking
- Consultation History: Complete timeline of patient visits with doctors
- Update & Cancellation: Modify or cancel appointments with proper status tracking
Technical Implementation
Urgent consultations are handled using the Decorator Pattern, allowing special handling without modifying core consultation logic.
Patient Management
Comprehensive patient data management with security and privacy in mind.Patient Features
- Secure Registration: CPF-based unique identification with password protection
- Profile Management: Complete patient information including demographics and contact details
- Medical History: Persistent medical history accessible across consultations
- Consultation History: View all past and upcoming appointments
- Authentication: Secure login system with CPF and password
Patient Data Model
Patient objects are created using the Factory Pattern, ensuring consistent validation and initialization.
Doctor Management
Manage your medical staff with comprehensive doctor profiles and credentials.Doctor Features
- CRM Identification: Brazilian medical license number as unique identifier
- Specialty Tracking: Categorize doctors by medical specialty
- Consultation Pricing: Individual pricing per doctor and specialty
- Search Functionality: Find doctors by CRM, name, specialty, or email
- Availability Tracking: View scheduled consultation dates
- Secure Authentication: CRM-based login system
Doctor Data Structure
Diagnosis & Medical Records
Document and track patient diagnoses with international medical codes.Diagnosis Features
- CID Integration: Link diagnoses to International Classification of Diseases codes
- Consultation Linkage: Each diagnosis tied to a specific consultation
- Date Tracking: Temporal record of when diagnoses were made
- Detailed Descriptions: Free-text diagnosis descriptions for context
- Medical History: Automatic integration with patient consultation history
Diagnosis Model
Payment System
Streamlined payment processing for medical consultations.Payment Features
- Multiple Payment Methods: Support for PIX, credit card, and other methods
- Payment Status Tracking: PENDING, PAID, and FAILED states
- Transaction References: Store external payment gateway references
- Consultation Linking: One-to-one relationship with consultations
- Timestamp Tracking: Automatic creation and update timestamps
Payment Workflow
AI Medical Assistant
Integrated AI chatbot powered by Ollama for intelligent medical information assistance.AI Capabilities
- Context-Aware Responses: Automatic context injection based on question type
- Medical Database Integration: Access to CID codes, medical news, and health guidelines
- Streaming Responses: Real-time response streaming for better UX
- Smart Keyword Detection: Automatically determines when to use medical context
- Multiple Data Sources: Integrates news, disease classifications, and medical skills data
Supported Queries
- CID code lookups and disease information
- Medical specialty and skill definitions
- Health news and government announcements
- Medical surveillance guidelines
- General health information
The AI assistant uses context-aware prompting to provide accurate medical information based on scraped data from official health sources.
Email Notifications
Automated email communication using the Resend email service.Notification Types
- Appointment Confirmation: Sent immediately upon consultation creation
- Appointment Reminders: Scheduled notifications before appointments
- Appointment Updates: Notifications when consultations are modified
- Cancellation Notices: Alerts when appointments are cancelled
Email Integration
Health News Integration
Stay informed with curated medical news from official government sources.News Features
- Automated Scraping: Regular updates from Brazilian Ministry of Health
- Pagination Support: Browse news with configurable page sizes
- Data Persistence: Stored in database for offline access
- REST API Access: Programmatic access to health news
API Example
Administrative Features
Powerful administration tools for system management.Admin Capabilities
- User Management: Create and manage admin accounts
- System Access: Secure admin authentication
- Data Oversight: Access to system-wide reports and statistics
- Configuration Management: System settings and parameters
Admin Guide
Learn how to manage Med Agenda as an administrator
Next Steps
Ready to explore specific features in depth?Appointment Guide
Deep dive into consultation management
API Reference
Integrate with the REST API
Patient Guide
Learn patient workflow
Doctor Guide
Explore doctor features