Skip to content

Fix crash when converting bundles without entries to R4#124

Merged
grahamegrieve merged 4 commits intoHealthIntersections:mainfrom
costateixeira:fix-crash-with-total
Feb 17, 2026
Merged

Fix crash when converting bundles without entries to R4#124
grahamegrieve merged 4 commits intoHealthIntersections:mainfrom
costateixeira:fix-crash-with-total

Conversation

@costateixeira
Copy link
Contributor

Guard against undefined entry in bundleFromR5 when the search bundle has no entries (e.g. _summary=count responses). The R5→R4 bundle conversion would throw TypeError: r5Obj.entry is not iterable.

Copy link
Contributor

@grahamegrieve grahamegrieve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

@grahamegrieve grahamegrieve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@grahamegrieve grahamegrieve merged commit 1a566a4 into HealthIntersections:main Feb 17, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants