| ```json | |
| { | |
| "routes": [ | |
| { | |
| "source": "MRTRoomService", | |
| "eventType": "study.uploaded", | |
| "target": "RadiologyWorkbench", | |
| "transformations": { | |
| "map": { | |
| "studyId": "$.study.id", | |
| "priority": "$.study.priority", | |
| "assignedTo": "$.study.radiologist" | |
| } | |
| } | |
| }, | |
| { | |
| "source": "RadiologyWorkbench", | |
| "eventType": "report.final", | |
| "target": "FilesAndDICOM", | |
| "transformations": { | |
| "map": { | |
| "reportId": "$.report.id", | |
| "studyId": "$.report.studyId", | |
| "format": "$.report.format" | |
| } | |
| } | |
| }, | |
| { | |
| "source": "QueueService", | |
| "eventType": "queue.done", | |
| "target": "ScoringAndSLA", | |
| "transformations": { | |
| "map": { | |
| "queueId": "$.queue.id", | |
| "completionTime": "$.queue.completedAt", | |
| "slaStatus": "$.queue.slaStatus" | |
| } | |
| } | |
| } | |
| ], | |
| "tracing": { | |
| "enabled": true, | |
| "headerNames": { | |
| "traceId": "X-Trace-Id", | |
| "correlationId": "X-Correlation-Id" | |
| } | |
| } | |
| } | |
| ``` | |
| Now let's update the index.html to add these configurations: |