6df008bf8a
Paciente renders the TEA record and, on the risk route, the risk page with the same frame as CaCu and CaMa: back link, title with id, identity block from the FHIR Patient (name, birth date, sex, one row per identifier system), sections as one card component, Material controls for the altered-zones toggle and the pair choice, export button in rebuild's style. tea-patient.ts, tea-record.html, tea-risk.html and tea-section.html/scss are deleted; the logic specs follow the new structure.
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import { Routes } from '@angular/router';
|
|
import { domainAllowed, signedIn } from './auth/auth';
|
|
|
|
export const routes: Routes = [
|
|
{ path: 'login', loadComponent: () => import('./auth/login').then((m) => m.Login) },
|
|
{
|
|
path: '',
|
|
canActivateChild: [signedIn],
|
|
children: [
|
|
{ path: '', pathMatch: 'full', redirectTo: 'indicadores/cacu' },
|
|
{
|
|
path: 'indicadores/:domain',
|
|
canActivate: [domainAllowed],
|
|
loadComponent: () => import('./indicadores/indicadores').then((m) => m.Indicadores),
|
|
},
|
|
{
|
|
path: 'indicadores/tea/pacientes/:id/riesgo',
|
|
canActivate: [domainAllowed],
|
|
data: { domain: 'tea', risk: true },
|
|
loadComponent: () => import('./paciente/paciente').then((m) => m.Paciente),
|
|
},
|
|
{
|
|
path: 'indicadores/:domain/pacientes/:id',
|
|
canActivate: [domainAllowed],
|
|
loadComponent: () => import('./paciente/paciente').then((m) => m.Paciente),
|
|
},
|
|
{
|
|
path: 'conectar',
|
|
loadComponent: () => import('./conectar/conectar').then((m) => m.Conectar),
|
|
},
|
|
{
|
|
path: 'revision',
|
|
loadComponent: () => import('./revision/revision').then((m) => m.Revision),
|
|
},
|
|
{ path: 'gobernanza', pathMatch: 'full', redirectTo: 'gobernanza/cacu' },
|
|
{
|
|
path: 'gobernanza/:domain',
|
|
canActivate: [domainAllowed],
|
|
loadComponent: () => import('./gobernanza/gobernanza').then((m) => m.Gobernanza),
|
|
},
|
|
{ path: '**', redirectTo: 'indicadores/cacu' },
|
|
],
|
|
},
|
|
];
|