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

Create a bulk calculation function for multiple sites and specialties #25

Closed
ThomUK opened this issue Dec 8, 2023 · 5 comments
Closed
Assignees
Labels
help wanted Extra attention is needed
Milestone

Comments

@ThomUK
Copy link
Collaborator

ThomUK commented Dec 8, 2023

The package is going to be used to process raw data into helpful visualisations for decision-makers.

Write a function to take data in the cleaned form (produced by issue #24), and to apply the package calculations.

The function will return a data frame of calculated data, including results for:

  • Load
  • Target queue size
  • Target capacity
  • Waiting list pressure

This result will be consumed by multiple downstream reporting functions, to visualise the information in different ways (eg. by specialty, by hospital site, by priority ranking)

@jacgrout
Copy link
Collaborator

I think it might be possible to achieve this using similar techniques to what I have put in the comments for #23 with variadic functions (my new learning for today ! ) and with pmap from the {purr} package.

@jacgrout
Copy link
Collaborator

jacgrout commented May 2, 2024

@ThomUK If you have been playing with some real data then I just wondered if you had done any work that solves this? If not I'm happy to give it a first go/look

@ThomUK
Copy link
Collaborator Author

ThomUK commented May 2, 2024

I have something partially built. It would be good to think about the incoming data format. Do we prefer a single dataframe with a column for specialty, or a list in a dataframe for each specialty?

The initial version i have is a list, but I may try to convert to a flat dataframe.

I will push up my work so far to a branch this weekend...

@jacgrout jacgrout self-assigned this May 4, 2024
@jacgrout
Copy link
Collaborator

jacgrout commented May 4, 2024

I think this is closely linked to the pull request #63 for issue #23 which includes a bulk function to create synthetic data for multiple sites and specialties. It may result in changes being required to the structure of this data and consequently the functions, but its straightforward

@ThomUK
Copy link
Collaborator Author

ThomUK commented Jul 18, 2024

This issue was closed by the addition of the wl_stats function (and associated functions) merged in #54

@ThomUK ThomUK closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants