mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-11 18:08:16 +00:00
- Self-contained NestJS module: types, storage (Redis+JSON), fact providers, action handlers - PriorityConfig CRUD (slider values for task weights, campaign weights, source weights) - Score action handler with SLA multiplier + campaign multiplier formula - Worklist consumer: scores and ranks items before returning - Hospital starter template (7 rules) - REST API: /api/rules/* (CRUD, priority-config, evaluate, templates) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
443 B
TypeScript
13 lines
443 B
TypeScript
// src/rules-engine/actions/escalate.action.ts
|
|
|
|
import type { ActionHandler, ActionResult } from '../types/action.types';
|
|
import type { RuleAction } from '../types/rule.types';
|
|
|
|
export class EscalateActionHandler implements ActionHandler {
|
|
type = 'escalate';
|
|
|
|
async execute(_action: RuleAction, _context: Record<string, any>): Promise<ActionResult> {
|
|
return { success: true, data: { stub: true, action: 'escalate' } };
|
|
}
|
|
}
|