eds_scikit.icu.icu_visit
tag_icu_visit
tag_icu_visit(
visit_detail: DataFrame,
care_site: DataFrame,
algo: str = "from_authorisation_type",
) -> DataFrame
Tag care_sites that correspond to ICU units.
The tagging is done by adding a "IS_ICU" column to the provided DataFrame.
It works by tagging each visit detail's care site.
| PARAMETER | DESCRIPTION |
|---|---|
visit_detail |
TYPE:
|
care_site |
TYPE:
|
algo |
Possible values are:
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
visit_detail
|
Dataframe with 1 added column corresponding to the following concept:
TYPE:
|
Source code in eds_scikit/icu/icu_visit.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |