Skip to main content

DiagnosticReport-open

Rad AI Reporting interprets the DiagnosticReport-open event as a command from other systems to open or create a report for the provided Imaging Study. This event can also include additional ImagingStudy resources to associate studies when the report is opened.

Workflow

The DiagnosticReport-open event signals Rad AI Reporting to open the report for the provided ImagingStudy, creating one if it doesn't already exist. Rad AI Reporting looks up the study by accession number. When multiple ImagingStudy resources are included in context, Rad AI Reporting attempts to associate all of them with the report.

On the desktop app, enabling the Bring Reporting to Front on Report Open setting (Settings > Desktop) brings the Rad AI Reporting window to the front and focuses it whenever a DiagnosticReport-open event is received.

Errors

There are multiple reasons errors may occur with the DiagnosticReport-open event:

  • The context does not contain an ImagingStudy resource
  • The provided ImagingStudy resource does not contain an accession number
  • No study matching the provided accession number was found

If an error occurs, Rad AI Reporting will not change context.

Example Message

The following example includes two ImagingStudy resources.

{
"id": "315955ac-832c-45f3-ab96-edc9b6fcc493",
"timestamp": "2024-01-01T00:00:00.000Z",
"event": {
"hub.topic": "test-topic",
"hub.event": "DiagnosticReport-open",
"context": [
{
"key": "study",
"resource": {
"id": "43212b29-7d26-4874-87ca-9ae6b18af765",
"resourceType": "ImagingStudy",
"identifier": [
{
"system": "https://example.com",
"value": "123456"
}
]
}
},
{
"key": "study",
"resource": {
"id": "d0d452eb-c9b4-4ae8-a8f2-a472f8996f53",
"resourceType": "ImagingStudy",
"identifier": [
{
"system": "https://example.com",
"value": "654321"
}
]
}
}
]
}
}