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

feat: ✨ include hba1c criteria #106

Merged
merged 10 commits into from
Jun 19, 2024
Merged

Conversation

lwjohnst86
Copy link
Member

@lwjohnst86 lwjohnst86 commented May 16, 2024

This function is untested, since it depends on #101. Once that is merged, I'll be able to test these.

The get_algorithm_logic() will extract the data from the algorithm csv file, once it is there.

Closes #93

Copy link
Contributor

@signekb signekb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very nice! I have some questions 😄

R/include-hba1c.R Show resolved Hide resolved
data |>
column_names_to_lower() |>
dplyr::filter({{ hba1c_criteria }}) |>
# Keep only the columns we need.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the smallest comment ever, but do we want to end inline comments with . or not?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good question. I don't have a strong opinion. I tend to use periods because if there are two sentences, would the second sentence end in a period or not end in one? If it ends in one, it won't match the other comments. But if it doesn't end in one, it seems a bit strange because the previous sentence has a period.

R/include-hba1c.R Outdated Show resolved Hide resolved
R/include-hba1c.R Outdated Show resolved Hide resolved
R/include-hba1c.R Show resolved Hide resolved
R/include-hba1c.R Show resolved Hide resolved
R/include-hba1c.R Show resolved Hide resolved
R/get-algorithm.R Show resolved Hide resolved
Co-authored-by: Signe Kirk Brødbæk <[email protected]>
Copy link
Collaborator

@Aastedet Aastedet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit hard to verify at this layer of abstraction without the algorithm in place to run examples, but looks good 👍

R/include-hba1c.R Outdated Show resolved Hide resolved
R/include-hba1c.R Show resolved Hide resolved
@lwjohnst86
Copy link
Member Author

I'll merge this in now, since it's had several rounds of reviews

@lwjohnst86 lwjohnst86 merged commit 690dd9e into main Jun 19, 2024
1 check failed
@lwjohnst86 lwjohnst86 deleted the feat/include-hba1c-criteria branch June 19, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Create function: include_hba1c()
3 participants