eds_scikit.event.suicide_attempt
tag_suicide_attempt
tag_suicide_attempt(visit_occurrence: DataFrame, condition_occurrence: DataFrame, date_min: Optional[datetime] = None, date_max: Optional[datetime] = None, algo: str = 'X60-X84') -> DataFrame
Function to return visits that fulfill different definitions of suicide attempt by ICD10.
PARAMETER | DESCRIPTION |
---|---|
visit_occurrence |
TYPE:
|
condition_occurrence |
TYPE:
|
date_min |
Minimal starting date (on
TYPE:
|
date_max |
Maximal starting date (on
TYPE:
|
algo |
Method to use. Available values are:
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
visit_occurrence
|
Tagged with an additional column
TYPE:
|
Tip
These rules were implemented in the CSE project n°210013
Source code in eds_scikit/event/suicide_attempt.py
35 36 37 38 39 40 41 42 43 44 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 95 96 97 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 |
|