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

Hide ToSystemType conversions behind an interface. #2932

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

Hide ToSystemType conversions behind an interface. #2932

ewoutkramer opened this issue Oct 18, 2024 · 0 comments

Comments

@ewoutkramer
Copy link
Member

The following datatypes (to which Instant should be added) have methods to convert their values to a CQL type.

*Code
*CodeableConcept
*Code
*Coding
*Date
*FhirDateTime
*Time
*NEW Instant

There is no way to polymorphically call these, which would be really useful in the implementation of IScopedNode.Value. So, create an interface with a single ToSystemType() method, hide these methods behind an explicit implementation and adapt the implementation of IScopedNode.Value to use these methods instead.

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