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

EMAP monitoring #291

Open
docsteveharris opened this issue May 17, 2023 · 3 comments
Open

EMAP monitoring #291

docsteveharris opened this issue May 17, 2023 · 3 comments
Assignees

Comments

@docsteveharris
Copy link
Contributor

We should provide a series of system 'health checks' on the front end that confirm that EMAP/HySys/HyCastle and HyMind etc are all 'green' or otherwise.

@docsteveharris docsteveharris added this to the No cost extension milestone May 17, 2023
@jongillham
Copy link
Contributor

jongillham commented May 25, 2023

There is now a HySys endpoint in the HyFlow API /admissions/latest.

This returns one date and time for the most recent admission to ED and one for the most recent admission to any ICU within HySys. This gives us an idea of whether the IDS, UDS and hylode infrastructure is running correctly.

We can use this in HyUi to do something like:

if datetime.now() - latest_icu_admission_datetime > timedelta(hours=12):
    # show red light
else:
    # show green light

It would have been nice to use something more frequent like observations, however the table to select those takes several minutes to return a query. The episodes tables here take milliseconds. In the future we could index the observations tables appropriately if we wanted to use them.

@harryjmoss
Copy link
Contributor

+1 for indexing the obs tables, but I like this solution for the time being

@jongillham jongillham self-assigned this May 25, 2023
@jongillham jongillham changed the title EMAP+ monitoring EMAP monitoring May 25, 2023
@hqva
Copy link
Contributor

hqva commented May 31, 2023

Is this monitoring system going to be called "HyAlert" or is that reserved for something else?

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

4 participants