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

ToCoding() on ICoded does not work well with choice types #2848

Closed
ewoutkramer opened this issue Sep 3, 2024 · 0 comments · Fixed by #2849
Closed

ToCoding() on ICoded does not work well with choice types #2848

ewoutkramer opened this issue Sep 3, 2024 · 0 comments · Fixed by #2849
Assignees

Comments

@ewoutkramer
Copy link
Member

The interface ICoded allows users to retrieve the "default codes" from a resource instance, these are the coded values from some bound element in a resource that is designated to be "the" code that represents the (category) of that instance. This functionality is used by the CQL Retrieve statements to filter resources by their default coded property.

Some of these properties are choice properties, for which a choice might not represent a bound element. At this moment our SDK throws an exception, but since this case is quite common, it is better to not return and codes from ICoded.ToCodes when a choice element contains a data value that is not bindeable.

While we're at it, we don't have support here for the new R5 CodeableReference, so we should add that too.

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 a pull request may close this issue.

1 participant