You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running with 4.11.0-SNAPSHOT in local docker container.
Attempting inline $cql where the "subject" does not exist:
GET .../$cql?expression=[Patient] p where p.gender = 'male' &subject=Patient/bogus
From the log, you can see that the reason for the failure is known (see attached "tracePatientBogus.txt"):
java.lang.RuntimeException: com.ibm.fhir.persistence.exception.FHIRPersistenceResourceNotFoundException: Resource 'Patient/bogus' not found.
Suggest a better explanation to the end user about the failure.
The text was updated successfully, but these errors were encountered:
The CQL operations were wrapping the exception from the CQL engine in a
FHIROperationException as assuming that the nested exception would
automatically be included in the issues list which isn't the case at
all. I added logic to manually add the details from the CQLException to
the issues list so that it shows up in the OperationOutcome.
Signed-off-by: Corey Sanders <[email protected]>
* #3195 - Bubble up exception message from CQL engine
The CQL operations were wrapping the exception from the CQL engine in a
FHIROperationException as assuming that the nested exception would
automatically be included in the issues list which isn't the case at
all. I added logic to manually add the details from the CQLException to
the issues list so that it shows up in the OperationOutcome.
Signed-off-by: Corey Sanders <[email protected]>
* Update copyrights, remove obsolete println
Signed-off-by: Corey Sanders <[email protected]>
Running with 4.11.0-SNAPSHOT in local docker container.
Attempting inline $cql where the "subject" does not exist:
GET .../$cql?expression=[Patient] p where p.gender = 'male' &subject=Patient/bogus
Received 500 Internal Server Error:
{
"resourceType": "OperationOutcome",
"id": "ac-11-0-2-61e18333-1ed9-4cf1-9fc2-e8da1ada0661",
"issue": [
{
"severity": "fatal",
"code": "exception",
"details": {
"text": "FHIROperationException: Evaluation failed"
}
}
]
}
From the log, you can see that the reason for the failure is known (see attached "tracePatientBogus.txt"):
java.lang.RuntimeException: com.ibm.fhir.persistence.exception.FHIRPersistenceResourceNotFoundException: Resource 'Patient/bogus' not found.
Suggest a better explanation to the end user about the failure.
The text was updated successfully, but these errors were encountered: