Tool 4 - SR Chart Generator: - PRISMA 2020 flow diagram with Chinese/English toggle (SVG) - Baseline characteristics table (Table 1) - Dual data source: project pipeline API + Excel upload - SVG/PNG export support - Backend: ChartingService with Prisma aggregation - Frontend: PrismaFlowDiagram, BaselineTable, DataSourceSelector Tool 5 - Meta Analysis Engine: - 3 data types: HR (metagen), dichotomous (metabin), continuous (metacont) - Random and fixed effects models - Multiple effect measures: HR / OR / RR - Forest plot + funnel plot (base64 PNG from R) - Heterogeneity statistics: I2, Q, p-value, Tau2 - Data input via Excel upload or project pipeline - R Docker image updated with meta package (13 tools total) - E2E test: 36/36 passed - Key fix: exp() back-transformation for log-scale ratio measures Also includes: - IIT CRA Agent V3.0 routing and AI chat page integration - Updated ASL module status guide (v2.3) - Updated system status guide (v6.3) - Updated R statistics engine guide (v1.4) Tested: Frontend renders correctly, backend APIs functional, E2E tests passed Made-with: Cursor
12 lines
534 B
TypeScript
12 lines
534 B
TypeScript
import { FastifyInstance } from 'fastify';
|
|
import * as chartingController from '../controllers/ChartingController.js';
|
|
import { authenticate, requireModule } from '../../../../common/auth/auth.middleware.js';
|
|
|
|
export async function chartingRoutes(fastify: FastifyInstance) {
|
|
fastify.addHook('onRequest', authenticate);
|
|
fastify.addHook('onRequest', requireModule('ASL'));
|
|
|
|
fastify.get('/prisma-data/:projectId', chartingController.getPrismaData);
|
|
fastify.get('/baseline-data/:projectId', chartingController.getBaselineData);
|
|
}
|