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: ✨ add include_podiatrist_services() with tests #182

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

signekb
Copy link
Contributor

@signekb signekb commented Dec 20, 2024

Description

This PR adds:

  • The logic for podiatrist services to algorithm.csv
  • Theinclude_podiatrsit_services() function
  • A helper function for converting the honuge variable to a date (yyww_to_yyyymmdd()) + tests for this function
  • The lubridate package to our dependencies (needed for handling the date conversion)

I also reran the pipeline to include the podiatrist services logic.

Closes #90

Checklist

  • Ran just run-all (did not run this)

R/yyww-to-date.R Outdated Show resolved Hide resolved
R/yyww-to-date.R Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This whole thing feels a bit hacky. Let me know if this isn't clear or you have another idea of how to do this.

R/yyww-to-date.R Outdated Show resolved Hide resolved
Comment on lines +37 to +39
dplyr::full_join(column_names_to_lower(sssy),
by = dplyr::join_by(pnr, barnmak, speciale, honuge)
) |>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

After explicitly adding the columns to join by, I get a note from devtools::check():
image

I'm not sure how to fix this, since join_by() doesn't seem to allow the use of .data$

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

Successfully merging this pull request may close these issues.

Create function include_podiatrist_services()
1 participant