-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_history after $erase version returns FHIRPersistenceException: convertResourceDTO returned no resource #3439
Comments
attachment contains stack trace |
if it proves problematic, we should consider removing support for erasing a particular version of a particular resource |
After erasing a specific version of a Patient using:
we get
showing that the data column is nulled out for version 2 (note that we have also done a soft-delete of version 3 in this case. |
If we update a Condition with a versioned reference pointing to the erased patient, we see a similar error if we perform a search with
yields:
The problem becomes how to handle a resource record that has no data. This has implications for pagination (e.g. search counts) so is something that would need to be filtered out in the query. |
Signed-off-by: Robin Arnold <robin.arnold@ibm.com>
Signed-off-by: Robin Arnold <robin.arnold@ibm.com>
Signed-off-by: Robin Arnold <robin.arnold@ibm.com>
I verified that getting history of a resource when a version of the resource has been erased no longer results in an HTTP 500 error; instead that version of the resource marked as deleted in the returned bundle. |
Executed an $erase of a specific version of a resource. Received 500 Internal Server Error when attempted to review the resource history after the erase.
GET .../Patient/[ID]/_history
{
"resourceType": "OperationOutcome",
"id": "ac-11-0-3-57354466-583e-4407-86e9-2679c80d6c31",
"issue": [
{
"severity": "fatal",
"code": "exception",
"details": {
"text": "FHIRPersistenceException: convertResourceDTO returned no resource for 'Patient/P0008'"
}
}
]
}
Working with the latest level of main.
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: