Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Prevalence Period" in MatGlobalCommon will produce an open null interval #66

Open
matthewtiller opened this issue Oct 22, 2020 · 1 comment

Comments

@matthewtiller
Copy link
Contributor

"Prevalence Period" produces intervals with an open end. If the input ends with a closed null, then "Prevalence Period" would change it to an open null.

An initial fix was attempted with #57. However, that fix is insufficient, I think, because of "Normalize Abatement", which is used in "Prevalence Period," is inconsistent with how it closes intervals as well. Care must be taken to track all of the interactions between "Prevalence Period" and other functions to ensure that the intent of the original input interval is preserved.

@dkwasny-ibm
Copy link

I hit this problem when attempting to run EXM122, which is an in-progress measure so I understand issues may crop up.
The measure uses the Prevalence Period function on diabetes records, of which many will not have abatement dates.

I'm only using these measures for testing, so I have no pressing need for the measure to be 100% medically relevant. In the meantime, I switched the interval returned from Prevalence Period to closed/closed to exercise more logic in the CQL engine. I understand that this change may not be the correct one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants