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

Parameters of type FHIR.Quantity are not correctly handled #117

Open
brynrhodes opened this issue Jul 13, 2022 · 0 comments
Open

Parameters of type FHIR.Quantity are not correctly handled #117

brynrhodes opened this issue Jul 13, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@brynrhodes
Copy link
Member

When evaluating an expression that references a Quantity parameter, the code that constructs the parameter declaration does not qualify the type of the parameter, so it is incorrectly resolved to a FHIR.Quantity when the evaluator is passing a System.Quantity:

library expression version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
parameter "%normalReportingDuration" Quantity
parameter "%encounter" Encounter
define "return":
       %encounter.where((status = 'in-progress' and period.start + %normalReportingDuration >= Now()) or status = 'finished' and period.end <= Now() - 72 hours)

The issue is that the CqlParameterDefinition uses the unqualified type name.

@brynrhodes brynrhodes added bug Something isn't working good first issue Good for newcomers labels Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant