ltbio.clinical.conditions.Epilepsy#

Overview#

Classes#

Epilepsy

Helper class that provides a standard way to create an ABC using

Seizure

param onset:

The seizure EEG onset.

SeizureOnset

Generic enumeration.

SeizureType

param awake:

True, if patient was awake; False if patient was asleep; None if unknown.

Contents#

class ltbio.clinical.conditions.Epilepsy.Epilepsy(years_since_diagnosis: float = None, seizures: tuple = (), seizure_types: tuple = ())#

Bases: ltbio.clinical.conditions.MedicalCondition.MedicalCondition

Helper class that provides a standard way to create an ABC using inheritance.

property n_seizures: int#
property seizure_types: tuple[SeizureType]#
property seizures: tuple[Seizure]#
add_seizure(seizure: Seizure)#
class ltbio.clinical.conditions.Epilepsy.Seizure(onset: datetime.datetime, duration: datetime.timedelta = None, clinical_onset: datetime.datetime = None, awake: bool = None, onset_type: SeizureOnset = None, onset_location: ltbio.clinical.BodyLocation = None, awareness: bool | None = None, semiologies: Sequence[ltbio.clinical.Semiology] = (), description: str = '')#

Bases: ltbio.biosignals.timeseries.Event.Event

Parameters:
  • onset – The seizure EEG onset.

  • duration – The seizure duration untill EEG offset, if known.

  • clinical_onset – The seizure clinical onset, if necessary.

  • awake – True, if patient was awake; False if patient was asleep; None if unknown.

  • onset_type – One item from SeizureOnset (usually focal (F), generalized (G), or unknown (UNK)). None means not declared.

  • onset_location – One item from BodyLocation, particularly brain regions.

  • awareness – True, if patient awarensees was kept (FAS); False, if awareness was impared (FIAS); None if unknwown (FUAS).

  • semiologies – One or multiple items from Semiology, in the correct order of events.

  • description – A text description of the seizure.

property awake: bool#
property awareness: bool#
property clinical_onset: datetime.datetime#
property description: str#
property onset_location: ltbio.clinical.BodyLocation#
property onset_type: SeizureOnset#
property semiologies: tuple[ltbio.clinical.Semiology]#
class ltbio.clinical.conditions.Epilepsy.SeizureOnset#

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

F = 'Focal'#
FtoB = 'Focal to Bilateral'#
G = 'Generalized'#
UNK = 'Unknown'#
class ltbio.clinical.conditions.Epilepsy.SeizureType(onset_type: SeizureOnset = None, onset_location: ltbio.clinical.BodyLocation = None, awake: bool = None, awareness: bool | None = None, semiologies: Sequence[ltbio.clinical.Semiology] = (), description: str = '')#
Parameters:
  • awake – True, if patient was awake; False if patient was asleep; None if unknown.

  • onset_type – One item from SeizureOnset (usually focal (F), generalized (G), or unknown (UNK)). None means not declared.

  • onset_location – One item from BodyLocation, particularly brain regions.

  • awareness – True, if patient awarensees was kept (FAS); False, if awareness was impared (FIAS); None if unknwown (FUAS).

  • semiologies – One or multiple items from Semiology, in the correct order of events.

  • description – A text description of the seizure.

property awake: bool#
property awareness: bool#
property description: str#
property onset_location: ltbio.clinical.BodyLocation#
property onset_type: SeizureOnset#
property semiologies: tuple[ltbio.clinical.Semiology]#