Skip to content
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

Fix _lastUpdated Search Returning a Resource more than Once #882

Closed
Mandalka opened this issue Jan 18, 2023 · 2 comments
Closed

Fix _lastUpdated Search Returning a Resource more than Once #882

Mandalka opened this issue Jan 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Mandalka
Copy link

I have some problems with the FHIR search parameter _lastUpdated

From my previous point of view not (yet?) plausible (see the last example) count examples from a Blaze server with some test resources:

/fhir/Observation?_summary=count

94065

/fhir/Observation?_lastUpdated=ge2023-01-11&_summary=count

43638

/fhir/Observation?_lastUpdated=lt2023-01-11&_summary=count

164377

Maybe the resource histories (i ingested/updated many resources multiple times mostly without changes in the data) of the resources are searched, too (is this a bug or a feature in this search parameter context?) since a "less than" search by

/fhir/Observation?_lastUpdated=lt2023-01-11

returns results which were updated later like for example:

"meta":{"lastUpdated":"2023-01-17T19:10:14.212Z"

(but most propably updated (multiple times) before 2023-01-11)

Maybe related to
#680 (comment)
#343

@alexanderkiel alexanderkiel self-assigned this Feb 11, 2023
@alexanderkiel alexanderkiel added the bug Something isn't working label Feb 11, 2023
@alexanderkiel alexanderkiel added this to the v0.19.2 milestone Feb 12, 2023
@alexanderkiel alexanderkiel changed the title Results by search parameter _lastUpdated include results from resource history? Fix _lastUpdated Search Returning a Resource more than Once Feb 12, 2023
@alexanderkiel
Copy link
Member

@Mandalka Thanks for reporting. You where right, for every recent version in the history, the current version of that resource was returned. Recent version means all versions identical to the current version. That problem was specific to _lastUpdated because the timestamp doesn't contribute to content hash. Other date searches had not this problem.

@alexanderkiel
Copy link
Member

@Mandalka I've released v0.19.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants