eds_scikit.icu.icu_care_site
tag_icu_care_site
tag_icu_care_site(care_site: DataFrame, algo: str = 'from_mapping') -> DataFrame
Tag care sites that correspond to ICU units.
The tagging is done by adding a "IS_ICU"
column to the provided DataFrame.
PARAMETER | DESCRIPTION |
---|---|
care_site |
TYPE:
|
algo |
Possible values are:
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
care_site
|
Dataframe with 1 added column corresponding to the following concept:
TYPE:
|
Source code in eds_scikit/icu/icu_care_site.py
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 |
|
from_authorisation_type
from_authorisation_type(care_site: DataFrame) -> DataFrame
This algo uses the care_site.place_of_service_source_value
columns
to retrieve Intensive Care Units.
The following values are used to tag a care site as ICU:
"REA PED"
"REA"
"REA ADULTE"
"REA NEONAT"
"USI"
"USI ADULTE"
"USI NEONAT"
"SC PED"
"SC"
"SC ADULTE"
PARAMETER | DESCRIPTION |
---|---|
care_site |
Should at least contains the
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
care_site
|
Dataframe with 1 added column corresponding to the following concepts:
TYPE:
|
Source code in eds_scikit/icu/icu_care_site.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
from_regex_on_care_site_description
from_regex_on_care_site_description(care_site: DataFrame, subset_care_site_type_source_value: Union[list, set] = {'UDS'}) -> DataFrame
Use regular expressions on care_site_name
to decide if it an ICU care site.
This relies on this function.
The regular expression used to detect ICU is
r"USI|REA[N\s]|REA|USC|SOINS.*INTENSIF|SURV.{0,15}CONT|SI|SC"
.
Keeping only 'UDS'
At AP-HP, all ICU are UDS (Unité De Soins). Therefore, this function filters care sites by default to only keep UDS.
PARAMETER | DESCRIPTION |
---|---|
care_site |
Should at least contains the
TYPE:
|
subset_care_site_type_source_value |
Acceptable values for
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
care_site
|
Dataframe with 1 added column corresponding to the following concept:
TYPE:
|
Source code in eds_scikit/icu/icu_care_site.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|