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

Runtime type behavior of FHIR types is not polymorphic #867

Open
brynrhodes opened this issue Jun 30, 2022 · 0 comments
Open

Runtime type behavior of FHIR types is not polymorphic #867

brynrhodes opened this issue Jun 30, 2022 · 0 comments
Labels

Comments

@brynrhodes
Copy link
Member

Given the following Expressions:

define TestCodeType: code { value: 'STATE' }
define TestStringType: string { value: 'STATE' }
define TestCodeTypeEqualStringType: TestCodeType = TestStringType

TestCodeTypeEqualStringType should return true because a FHIR.code is a FHIR.string, but it returns false because the provider's EqualEvaluator implementation does not respect type hierarchy in determining equality.

@brynrhodes brynrhodes added the bug label Jun 30, 2022
@JPercival JPercival transferred this issue from cqframework/cql-engine Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant