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

Correct inconsistent frequency determination in CumulativeMedicationDuration logic #20

Open
brynrhodes opened this issue Apr 12, 2022 · 0 comments
Assignees
Labels

Comments

@brynrhodes
Copy link
Member

The ToDaily(Code) function in this library incorrectly uses the lower number of doses for frequencies that are specified as a range of hours:

https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/blob/master/Source/Libraries/CumulativeMedicationDurationFHIR4-1.0.000.cql#L174

In addition, add this comment to the description of the function:

Note that for ranges, the boundary resulting in the highest frequency result is used. E.g. `Every two to four hours` results in `12.0` and `One to two` times a day results in `2.0`.
@brynrhodes brynrhodes self-assigned this Apr 12, 2022
@brynrhodes brynrhodes added the bug label Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant