Skip to content

Defining a new clinical concept

Robin van de Water edited this page Nov 14, 2023 · 1 revision

YAIB comes with a wide range of pre-defined clinical concepts. However, new tasks and applications likely require additional variables. An area of particular interest in this respect are medications. Using the exemplar of Potassium Chloride (a fluid frequently administered in the ICU), we demonstrate how new drugs can be added to YAIB with minimal effort. For many concepts, all that is required is a JSON dict that describes the correct measurement IDs within each dataset (Code Listing 7). The JSON snippet can then be appended to the existing ricu concept file (for additions that should become part of the main package) or added to the search path of load_dictionary via the cfg_dirs parameter. The definition of complicated transformations such as calculation of hourly rates is also supported by existing helper functions. If custom calculations are necessary, they can be provided as user-defined functions via the callback element.

Clone this wiki locally