projecttacoma / cqm-execution

NPM module for calculating eCQMs (electronic clinical quality measures) written in CQL (clinical quality language).
Apache License 2.0
10 stars 2 forks source link

Custom CQL Params #231

Open TreyRhodes1 opened 3 years ago

TreyRhodes1 commented 3 years ago

As a Software Engineer, I would like to have the ability to pass custom parameters besides 'Measurement Period' to the CQL engine for use in custom measures with custom parameters. Example:

const extraParams = {'New Param' : 'New Param Value'}
Calculator.calculate(
   measure,
   patients,
   valueSets,
   {
      effectiveDate: startDate,
      effectiveDateEnd: endDate,
      doPretty: false,
      params : extraParams,
   },
)