medmis-core-orchestrator / rules.sla.json
muboboev's picture
Этап 11. Связь микросервисов (Event Rules)
aa739d7 verified
Invalid JSON: Unexpected token '`', "```json { "... is not valid JSON
```json
{
"rules": [
{
"name": "study_completed_sla",
"description": "Calculate SLA score when study is completed",
"eventType": "study.completed",
"conditions": [
{
"field": "study.priority",
"operator": "in",
"values": ["high", "medium", "routine"]
}
],
"actions": [
{
"type": "calculate_score",
"points": 20,
"target": "radiologist"
},
{
"type": "track_sla",
"metric": "study_processing_time"
}
]
},
{
"name": "queue_done_sla",
"description": "Handle queue completion SLA scoring",
"eventType": "queue.done",
"conditions": [],
"actions": [
{
"type": "calculate_score",
"points": 100,
"target": "referrer"
},
{
"type": "notify",
"channel": "email",
"template": "queue_completed"
}
]
}
]
}
```