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 Negative Total Values in History Bundles Generated #2357

Closed
alexanderkiel opened this issue Jan 29, 2025 · 0 comments · Fixed by #2375
Closed

Fix Negative Total Values in History Bundles Generated #2357

alexanderkiel opened this issue Jan 29, 2025 · 0 comments · Fixed by #2375
Assignees
Labels
bug Something isn't working module:interaction
Milestone

Comments

@alexanderkiel
Copy link
Member

The FHIR data type of Bundle.total is unsignedInt with a specified range of 0..2,147,483,647. For that reason I convert the perfectly fine history count, which is a 64-bit long, into an 32-bit integer via blaze.fhir.spec.type/->UnsignedInt while generating the Bundle resource. If the history count is over 2,147,483,647, the integer conversion will overflow the value and possibly return a negative one.

We will just ignore there FHIR spec here and output the correct long value.

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

Successfully merging a pull request may close this issue.

1 participant