| ```json | |
| { | |
| "routes": [ | |
| { | |
| "source": "QueueService", | |
| "eventType": "queue.created", | |
| "target": "MRTRoomService", | |
| "conditions": [ | |
| { | |
| "field": "queue.studyType", | |
| "operator": "in", | |
| "values": ["MRI", "CT", "X-ray"] | |
| } | |
| ] | |
| }, | |
| { | |
| "source": "QueueService", | |
| "eventType": "queue.updated", | |
| "target": "PatientAppGateway", | |
| "conditions": [ | |
| { | |
| "field": "queue.status", | |
| "operator": "in", | |
| "values": ["completed", "failed"] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ``` |