FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
31 stars 17 forks source link

Bug - C# member access on casted variable needs additional parenthesis #534

Closed baseTwo closed 2 months ago

baseTwo commented 2 months ago

The follow cql generates invalid c#

define "Injury due to falling rock within measurement period":
    [Condition: "Injury due to falling rock"] C
       where (C.onset.value as DateTime) during "Measurement Period"

Notice the missing parantheses around the casts image

And this is the correct c# image

test cql files.zip

Other issues created on this dataset: #533, #534