vitabel.analysis.cpr.defibrillation¶
Analysis of defibrillations.
Attributes¶
Functions¶
|
Collect all defibrillations with all stored information in a DataFrame. |
Module Contents¶
- vitabel.analysis.cpr.defibrillation.logger¶
- vitabel.analysis.cpr.defibrillation.extract_shocks(channels: list[vitabel.timeseries.Channel]) pandas.DataFrame | None¶
Collect all defibrillations with all stored information in a DataFrame.
Defibrillation data is taken from the channels whose name contains
"defibrillations"(e.g.,defibrillations_DeliveredEnergy); the columns of the resulting DataFrame are the channel names without thedefibrillations_prefix, the index are the defibrillation times.- Parameters:
- channels
The channels to search for defibrillation data.
- Returns:
- The DataFrame (empty if there is no defibrillation data), or
None - if the defibrillation channels have different time indices.
- The DataFrame (empty if there is no defibrillation data), or