cqframework / cql-engine

Clinical Quality Language Evaluation Engine
Apache License 2.0
62 stars 45 forks source link

Added queryBatchThreshold in FhirQuery generation #639

Closed sliver007 closed 1 year ago

sliver007 commented 1 year ago

Added the queryBatchThreshold configuration point and modified the FhirQueryGenerator to be aware of and respect that configuration.

If maxCodesPerQuery is set (i.e., not null and > 0), then the generator will chunk FhirQueries based on that setting - a new query every codes. The queryBatchThreshold setting is a mechanism for saying that if the result of that chunking is a number of queries that exceeds then omit the code/terminology constraint portion of the Fhir Query.