/** * ConfigManager: Central configuration for hospital-wide pricing and slots. */ class ConfigManager { constructor() { this.config = { consultationFee: 500, slotDuration: 30, // minutes onlineSlotLimit: 3, walkinSlotLimit: 5, hospitalName: "Dr. Sharma's Clinic", currency: "₹" }; } get(key) { return this.config[key]; } set(key, value) { this.config[key] = value; console.log(`Config updated: ${key} = ${value}`); } getAll() { return this.config; } } module.exports = new ConfigManager();