FirelyTeam / firely-cql-sdk

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

Fix integration test - Division of different units is not supported #377

Open cheng13231 opened 4 months ago

cheng13231 commented 4 months ago

Describe the bug

- High Risk Medications with Average Daily Dose Criteria: NotSupportedException - Division of different units is not supported; only division by a numeric value (units = "1") is supported.
- Numerator 1: NotSupportedException - Division of different units is not supported; only division by a numeric value (units = "1") is supported.
- Numerator 3: NotSupportedException - Division of different units is not supported; only division by a numeric value (units = "1") is supported.
   at IntegrationRunner.UseofHighRiskMedicationsintheElderlyFHIR.Population_FromResource(String testCaseId) in C:\Dev\FirelyTeam\firely-cql-sdk\Firely.Cql.Sdk.Integration.Runner\IntegrationRunner\tests\UseofHighRiskMedicationsintheElderlyFHIR.g.cs:line 81
   at InvokeStub_UseofHighRiskMedicationsintheElderlyFHIR.Population_FromResource(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

image

To Reproduce Steps to reproduce the behavior:

  1. Run following integration test UseofHighRiskMedicationsintheElderlyFHIR -> test case 3201fe4a-d1b0-4296-a60e-8680247e8128
  2. See error image

Version used:

baseTwo commented 3 months ago

Confirmed in latest develop-2.0 after mering in cql-to-elm.