Skip to content

Measurement Period used depends on call order #86

Open
@mholck

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions