Skip to content

Commit

Permalink
Remove PERRT and ED from web
Browse files Browse the repository at this point in the history
  • Loading branch information
harryjmoss committed Jan 26, 2024
1 parent 2618b52 commit b3d7d43
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 2,041 deletions.
3 changes: 0 additions & 3 deletions web/src/web/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pathlib import Path
from web.config import get_settings
from web import ids as web_ids
from web.pages.ed import ids as ed_ids

FONTS_GOOGLE = "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;900&display=swap"
FONTS_FA = "https://use.fontawesome.com/releases/v5.8.1/css/all.css"
Expand All @@ -16,8 +15,6 @@
web_ids.ROOM_STORE: f"{get_settings().api_url}/baserow/rooms/",
web_ids.BEDS_STORE: f"{get_settings().api_url}/baserow/beds/",
web_ids.ELECTIVES_STORE: f"{get_settings().api_url}/electives/",
ed_ids.PATIENTS_STORE: f"{get_settings().api_url}/ed/individual/",
ed_ids.AGGREGATE_STORE: f"{get_settings().api_url}/ed/aggregate/",
}


Expand Down
21 changes: 0 additions & 21 deletions web/src/web/celery_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
from web import API_URLS, SITREP_DEPT2WARD_MAPPING
from celery.schedules import crontab
from web import ids as web_ids
from web.pages.ed import ids as ed_ids

from web.celery_tasks import replace_alphanumeric

campus_url = API_URLS.get("campus_url")

Expand Down Expand Up @@ -67,24 +64,6 @@
),
"kwargs": {"expires": (24 * 3600) + 60}, # 24 hours + 1 minute
},
ed_ids.PATIENTS_STORE: {
"task": "web.celery_tasks.get_response",
"schedule": crontab(minute="*/15"), # ev 15 minutes
"args": (
API_URLS[ed_ids.PATIENTS_STORE],
replace_alphanumeric(API_URLS[ed_ids.PATIENTS_STORE]),
),
"kwargs": {"expires": (15 * 60) + 60}, # ev 16 minutes
},
ed_ids.AGGREGATE_STORE: {
"task": "web.celery_tasks.get_response",
"schedule": crontab(minute="*/15"), # ev 15 minutes
"args": (
API_URLS[ed_ids.AGGREGATE_STORE],
replace_alphanumeric(API_URLS[ed_ids.AGGREGATE_STORE]),
),
"kwargs": {"expires": (15 * 60) + 60}, # ev 16 minutes
},
}


Expand Down
28 changes: 0 additions & 28 deletions web/src/web/layout/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ class _NavLink(NamedTuple):
sitrep_icus = _NavLink(
title="Critical Care", path="/sitrep/icus", icon="healthicons:critical-care-outline"
)
perrt = _NavLink(title="PERRT", path="/sitrep/perrt", icon="carbon:stethoscope")

ed_predictor = _NavLink(
title="ED Predictor", path="/ed/table", icon="carbon:machine-learning-model"
)


def create_side_navbar() -> dmc.Navbar:
Expand Down Expand Up @@ -132,29 +127,6 @@ def create_side_nave_content() -> dmc.Stack:
variant="text",
target="_blank",
),
dmc.Divider(
labelPosition="left",
label=[
DashIconify(
icon="healthicons:ambulance-outline",
width=20,
style={"marginRight": 10},
color=dmc.theme.DEFAULT_COLORS["indigo"][5],
),
"Emergencies",
],
my=20,
),
create_main_nav_link(
icon=perrt.icon,
label=perrt.title,
href=perrt.path,
),
create_main_nav_link(
icon=ed_predictor.icon,
label=ed_predictor.title,
href=ed_predictor.path,
),
dmc.Divider(
labelPosition="left",
label=[
Expand Down
Empty file removed web/src/web/pages/ed/__init__.py
Empty file.
121 changes: 0 additions & 121 deletions web/src/web/pages/ed/callbacks.py

This file was deleted.

67 changes: 0 additions & 67 deletions web/src/web/pages/ed/ed.py

This file was deleted.

17 changes: 0 additions & 17 deletions web/src/web/pages/ed/ids.py

This file was deleted.

44 changes: 0 additions & 44 deletions web/src/web/pages/ed/readme.md

This file was deleted.

18 changes: 0 additions & 18 deletions web/src/web/pages/electives/__init__.py

This file was deleted.

Loading

0 comments on commit b3d7d43

Please sign in to comment.