Description
With the VSCode Plugin for CQL you need to provide the measurement period in the CQL. Most of the time you can just define a default period in the measure CQL file and things will work fine. However, I have found that if the first define in the measure calls an included library like CQMCommon or others then it uses the Measurement period in that library CQL instead. If it is not set then it is null and the measure does not work. Even if the measurement period is set in the measure. For instance, measure CMS1028FHIRPCSevereOBComps in the ecqm-content-qicore-2024 repo the measurement period is set in the measure. But if it is not set in the included libraries the measure does not test properly. This is because the first call in the CQL is
define "Initial Population":
PCMaternal."Delivery Encounter with Age Range"
Because it calls a dependent library the measurement period needs to be set there. In fact in this example since the call it is making in PCMaternal makes use of CQMCommon it actually has to be set in CQMCommon for the measure to properly run with the plugin.
Seems it should just use the measurement period defined in the measure itself regardless of call order.
Activity