OHDSI / Circe

[Under development] CIRCE is a cohort definition and syntax compiler tool for OMOP CDMv5
Apache License 2.0
5 stars 4 forks source link

Measurement ratio filter....need to check for 'divide by zero' error #47

Open pbr6cornell opened 9 years ago

pbr6cornell commented 9 years ago

the measurement ratio filters (low range ratio and high range ratio) do not check for if the range value > 0, so can hit divide-by-zero errors. Need to perfrorm error check so query doesn't fail.

Work-around for the time-being: I added extra criteria that requires value_as_number > 0 and high_range > 0.