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

SameOrAfter expression is compiled to ELM node with untyped intervals #542

Open
ewoutkramer opened this issue Sep 16, 2024 · 0 comments
Open

Comments

@ewoutkramer
Copy link
Member

When running this test from the DQIC set (from file CqlDateTimeOperatorsTest.xml):

<test name="Issue32DateTime">
      <expression>@2017-12-21T02:00:00.0 same or after @2017-12-20T11:00:00.0</expression>
      <output>true</output>
</test>

Our cql2elm compiler generates a SameOrAfter ELM node with two operators, each of which is an Interval without a point type. Our TypeFor() translates this to a .NET type CqlInterval<object>, which then results in an exception Cannot convert Hl7.Cql.Primitives.CqlInterval1[Hl7.Cql.Primitives.CqlDateTime] to Hl7.Cql.Primitives.CqlInterval1[System.Object]. when building the rest of the expression.

@ewoutkramer ewoutkramer added the bug Something isn't working label Sep 16, 2024
@baseTwo baseTwo removed the bug Something isn't working label 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

2 participants