modified: package-lock.json

modified:   package.json
modified:   src/App.jsx
modified:   src/index.css
modified:   src/pages/MedicalRecordsPage.jsx
modified:   src/pages/ReportsPage.jsx
modified:   src/repositories/medicalRecordRepository.js
This commit is contained in:
2026-05-09 23:32:04 -03:00
parent bcee06b908
commit fba021e048
7 changed files with 2125 additions and 303 deletions

View File

@@ -159,6 +159,23 @@ function resolveRoute(pathname, navigate, role) {
}
}
if (pathname === '/prontuario/novo') {
return {
element: <MedicalRecordsPage mode="new" navigate={navigate} />,
title: 'Novo prontuário',
withShell: true,
}
}
if (pathname.startsWith('/prontuario/')) {
const [, , recordId, action] = pathname.split('/')
return {
element: <MedicalRecordsPage mode={action === 'editar' ? 'edit' : 'detail'} navigate={navigate} recordId={recordId} />,
title: action === 'editar' ? 'Editar prontuário' : 'Prontuário',
withShell: true,
}
}
if (pathname.startsWith('/pacientes/')) {
const patientId = pathname.split('/')[2]
return {