Translator Error When Using Fluent Functions With DisableMethodInvocation
See original GitHub issueReceiving an error when using fluent functions in CQL and DisableMethodInvocation is used.
Translator release: 1.5.4
Library:
library ALibrary version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.001' called FHIRHelpers
include MATGlobalCommonFunctionsFHIR4 version '6.1.000' called Global
valueset "Diabetes Mellitus": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.1329'
parameter "Measurement Period" Interval<DateTime>
context Patient
define fluent function "confirmed"(Conditions List<Condition>):
Conditions C where C.verificationStatus ~ Global."confirmed"
define fluent function "active"(Conditions List<Condition>):
Conditions C where C.clinicalStatus ~ Global."active"
and C.abatement is null
define fluent function "activeOrRecurring"(Conditions List<Condition>):
Conditions C
where C.clinicalStatus ~ Global."active"
or C.clinicalStatus ~ Global."recurrence"
or C.clinicalStatus ~ Global."relapse"
define "Diabetes Conditions":
["Condition": "Diabetes Mellitus"]
define "Confirmed and Active or Recurring Diabetes Conditions":
"Diabetes Conditions".confirmed().activeOrRecurring()
Error received: Invalid invocation target: org.hl7.elm.r1.ExprressionRef
Per QMIG STU 2, “This option [DisableMethodInvocation ] should be used with Measures to ensure method-style invocation cannot be used within eCQMs.”
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Add support for setting options using the cql-options.json file #19
The latest translator (1.4.9-SNAPSHOT) includes support for reading and ... Translator Error When Using Fluent Functions With DisableMethodInvocation ...
Read more >A Translation Mistake on functions - Microsoft Community Hub
Hello, I use Office 2016 pro plus, I use in English normally, but for work sake ... Currently, I found translation mistake on...
Read more >3. Developer's Guide - Clinical Quality Language (CQL)
Fluent functions are a new feature of CQL 1.5, and are trial-use. Functions can be defined as fluent by including the fluent keyword...
Read more >asp.net core - Translate property name in error messages with ...
Ssetting FluentValidation.ValidatorOptions.Global.DisplayNameResolver is the correct way to handle this globally (or you can use WithName at the ...
Read more >Project Fluent
Robust error handling. ... Why did we create Fluent? ... Translators should be able to use the entire expressive power of their language...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @cmoesel , this is in a reference to a specific conversation going on in measure development community. I think you are right, but, if that is the case and we want to support the use of fluent functions in measures (under consideration), then QMIG should probably be updated to provide clarification - either never use DisableMethodInvocation or clarity on how this option works with fluent functions. Authoring tools at that point would have to provide users the ability to toggle that option or be very specific about supporting/not supporting fluent functions. @brynrhodes , thoughts?
The error message here could be better, so I’m going to mark this as an enhancement to improve the error message when accessing a fluent function with the disable method invocation option set.