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

Remove ISystemAndCode in favor of ICoded #2931

Open
2 tasks
ewoutkramer opened this issue Oct 18, 2024 · 0 comments
Open
2 tasks

Remove ISystemAndCode in favor of ICoded #2931

ewoutkramer opened this issue Oct 18, 2024 · 0 comments

Comments

@ewoutkramer
Copy link
Member

ewoutkramer commented Oct 18, 2024

ISystemAndCode is only used to get the system+code out of a Code<T>. There is a less direct route already available via ICoded, which will work on any coded type to get a Fhir.Coding type, which has a system+code.

  • Extend this route by also having all bindable datatypes implement ICoding, which will make the current extension method to get a coding out of a DataType unnecessary. Make sure the generated Resource.ICoding implementation is calling this interface, instead of the extension method. Remove the extension method.
  • Remove ISystemAndCode, this is a breaking change.
@ewoutkramer ewoutkramer changed the title Remove ISystemAndCode in favor of ICoded Remove ISystemAndCode in favor of ICoded Oct 18, 2024
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

No branches or pull requests

1 participant