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

First pass of building an ED page #1

Open
3 tasks
docsteveharris opened this issue Jan 4, 2022 · 0 comments
Open
3 tasks

First pass of building an ED page #1

docsteveharris opened this issue Jan 4, 2022 · 0 comments

Comments

@docsteveharris
Copy link
Owner

docsteveharris commented Jan 4, 2022

Initial notes

  • read from flow.ed_predictor_csn and store as json data on the page
  • ditto from flow.ed_predictor_agg at 8 hours (i.e. something like the length of the working shift)
  • add a paginated table of patients with their prob of admission

Not clear what would be best to show
Simple example and then leave Zella to work on this?
Maybe we can work with flow.ed_predictor_csn?

Would be nice to see if we can show this as a trend over time but will need adjusting for time of day and day of week

Data source as per note from Zella below

With regard to accessing the ED predictions, there are two tables on flow:

  • flow.ed_predictor_csn has all adult patients in ED at the time of the predictions, with their current location and their admission probability
  • flow.ed_predictor_agg has predictions over a number of beds for these patients. This table has multiple distributions on it (and with hindsight, should have been made to be much easier to interrogate). If you want a time window of four hours for all patients including those not yet arrived, set time_window = 4, dist = "Empirical poisson". Other values for time_window are 8 or (other than when the report is generated at 4 pm) the number of hours between the report time and midnight.
    Sorry - this is probably really confusing. Please shout if you need clarification.
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

1 participant