syncerror
Rad AI Reporting publishes the syncerror event when it is unable to act on an inbound FHIRcast event.
For example, Rad AI Reporting publishes a syncerror event when it receives a DiagnosticReport-open event for a report that is currently locked by another user.
warning
The FHIRcast Implementation Guide does not define patient or study keys for the syncerror event.
Rad AI Reporting includes a patient context entry and one or more study context entries with every syncerror event to help provide context to consumers of the event.
This is a known deviation from the FHIRcast Implementation Guide, kept in place for backwards compatibility with existing integrations.
Example Message
Rad AI Reporting publishes a FHIRcast event with the context containing:
- An
OperationOutcomeresource identifying the event that could not be processed - A
Patientresource - One or more
ImagingStudyresources
{
"id": "9c1d3f6f-e0f9-4d71-9482-eb3bc2668418",
"timestamp": "2024-01-01T00:00:00.000Z",
"event": {
"hub.topic": "test-topic",
"hub.event": "syncerror",
"context": [
{
"key": "operationoutcome",
"resource": {
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "warning",
"code": "processing",
"details": {
"coding": [
{
"system": "https://fhircast.hl7.org/events/syncerror/eventid",
"code": "c3b83f6f-e0f9-4d71-9482-eb3bc2668418"
},
{
"system": "https://fhircast.hl7.org/events/syncerror/eventname",
"code": "DiagnosticReport-open"
},
{
"system": "https://fhircast.hl7.org/events/syncerror/subscribername",
"code": "radai-reporting"
}
]
},
"diagnostics": "Report is locked by another user"
}
]
}
},
{
"key": "patient",
"resource": {
"resourceType": "Patient",
"id": "8bdff84f-699f-4088-9e14-8b3f946f6351",
"identifier": [
{
"use": "official",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"value": "MZ100071"
}
],
"name": [
{
"family": "Leia",
"given": ["Princess"],
"text": "Leia, Princess"
}
],
"birthDate": "1970-01-01",
"gender": "female"
}
},
{
"key": "study",
"resource": {
"resourceType": "ImagingStudy",
"id": "4c2299a7-f1af-4a84-8260-b511011f229e",
"status": "available",
"identifier": [
{
"use": "official",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "ACSN"
}
]
},
"value": "RA00111"
}
],
"subject": {
"reference": "Patient/8bdff84f-699f-4088-9e14-8b3f946f6351"
},
"procedureCode": [
{
"coding": [
{
"code": "RPID2503"
}
],
"text": "XR Chest 2 Views"
}
]
}
}
]
}
}