new file: .gitignore
new file: src/App.css new file: src/App.jsx new file: src/assets/figma/login-clinic.png new file: src/assets/hero.png new file: src/assets/react.svg new file: src/assets/vite.svg new file: src/components/AppShell.jsx new file: src/components/Brand.jsx new file: src/components/ui.jsx new file: src/data/mockData.js new file: src/index.css new file: src/main.jsx new file: src/pages/AgendaPage.jsx new file: src/pages/AnalyticsPage.jsx new file: src/pages/AuthPages.jsx new file: src/pages/HomePage.jsx new file: src/pages/MedicalRecordsPage.jsx new file: src/pages/MessagesPage.jsx new file: src/pages/NotFoundPage.jsx new file: src/pages/PatientsPage.jsx new file: src/pages/ProfilePage.jsx new file: src/pages/ReportsPage.jsx new file: src/pages/SettingsPage.jsx new file: src/pages/TeamPage.jsx new file: src/pages/VisitsPage.jsx new file: src/repositories/analyticsRepository.js new file: src/repositories/appointmentRepository.js new file: src/repositories/communicationRepository.js new file: src/repositories/homeRepository.js new file: src/repositories/medicalRecordRepository.js new file: src/repositories/patientRepository.js new file: src/repositories/professionalRepository.js new file: src/repositories/profileRepository.js new file: src/repositories/reportRepository.js new file: src/repositories/settingsRepository.js new file: src/repositories/visitRepository.js new file: src/services/analyticsService.js new file: src/services/appointmentService.js new file: src/services/communicationService.js new file: src/services/homeService.js new file: src/services/medicalRecordService.js new file: src/services/patientService.js new file: src/services/professionalService.js new file: src/services/profileService.js new file: src/services/reportService.js new file: src/services/settingsService.js
This commit is contained in:
35
src/repositories/appointmentRepository.js
Normal file
35
src/repositories/appointmentRepository.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import { appointments as mockAppointments } from '../data/mockData.js'
|
||||
|
||||
export const appointmentRepository = {
|
||||
getAll() {
|
||||
return mockAppointments
|
||||
},
|
||||
|
||||
getTodayTimeline() {
|
||||
return [
|
||||
{ hour: '08:00', patient: 'Carla Mendes', type: 'Consulta inicial', status: 'Confirmada', patientId: 'carla-mendes' },
|
||||
{ hour: '09:30', patient: 'Ana Souza', type: 'Retorno clinico', status: 'Em triagem', patientId: 'ana-souza' },
|
||||
{ hour: '11:00', patient: 'Diego Alves', type: 'Acompanhamento', status: 'Aguardando', patientId: 'diego-alves' },
|
||||
{ hour: '14:30', patient: 'Bruno Lima', type: 'Teleconsulta', status: 'Confirmada', patientId: 'bruno-lima' },
|
||||
{ hour: '16:00', patient: 'Horario protegido', type: 'Revisao de laudos', status: 'Bloqueado', patientId: null },
|
||||
]
|
||||
},
|
||||
|
||||
getPredictiveQueueSummary() {
|
||||
return [
|
||||
{ label: 'Alta prioridade', value: 3, tone: 'red' },
|
||||
{ label: 'A confirmar', value: 5, tone: 'amber' },
|
||||
{ label: 'Teleconsultas', value: 6, tone: 'blue' },
|
||||
]
|
||||
},
|
||||
|
||||
getWeekDays() {
|
||||
return [
|
||||
{ label: 'Seg', day: '06', active: false, count: 6 },
|
||||
{ label: 'Ter', day: '07', active: true, count: 18 },
|
||||
{ label: 'Qua', day: '08', active: false, count: 12 },
|
||||
{ label: 'Qui', day: '09', active: false, count: 9 },
|
||||
{ label: 'Sex', day: '10', active: false, count: 15 },
|
||||
]
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user