You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Seizure event log for epilepsy — duration, type, rescue medication, cluster flag #1368
Tracking drug-resistant epilepsy today means an illness episode plus a custom symptom. That works as a notebook but loses what a neurologist actually asks about: duration (onset/offset), seizure type (ILAE 2017), rescue medication and whether it worked, postictal period, injury, witness, seizure-free streak, and cluster detection (>=2 events in 24h is the number that changes the emergency plan). The illness module is also built around a 30-day baseline and a recovery curve — a seizure is an event, not an episode of feeling unwell.
Proposed solution
An additive "seizure event" record reusing the shape of symptom/illness events:
Correlation only (sleep, mood, missed doses, dose changes) — never a forecast. Same non-diagnostic stance the illness module already takes.
A "Seizure diary" section in the doctor-report PDF: events per type, streak, rescue-med usage, cluster count.
FHIR: map to Condition/Encounter the way illness episodes already do.
Works in a managed child profile — guardians log, guardians get reminders and the cluster alert.
Notifications (cluster alert, missed rescue-med window), off by default.
Alternatives considered
Illness episode + custom symptom (current). Insufficient: no duration, no type, no rescue meds, no streak or cluster detection, no line-up against medication changes and sleep.
Affected surface
Web (PWA), API, Notifications
Additional context
Prior discussion with the full spec: #1324
Filed as an issue because the discussion has had no comments or votes since Nov 1 and the scope is well defined. Happy to split it: the seizure event record + diary view is the core, the PDF section and FHIR mapping could follow separately.
Pre-flight checks
I confirmed this is not a duplicate of an existing feature request.
I'm proposing a feature, not asking a usage question (those go to Discussions or the docs).
Converted into a feature request so it can be tracked and estimated: #1324
Keeping this thread for upvotes and brainstorming — the issue carries the concrete spec.
Thanks, @ch3funio. The spec is thorough, and you're right that an illness episode is the wrong shape for a seizure.
I want to do this properly, so it goes into 1.48.0 rather than the next patch. Before I build it I'll look at what clinicians actually expect from a seizure diary (the ILAE 2017 types, how rescue medication and clusters get recorded), so the record and the report section match what a neurologist reads. Your proposed split is how I'd do it: the event record and the diary view first, then the report section and the FHIR mapping.
Blood ketones and GKI (#1367) are coming sooner, in 1.47.2, so that part of the keto picture doesn't have to wait.
It is a new module, off until you switch it on in Settings, Modules. The main screen is built for logging during or right after a seizure on a phone: pick the type, start the timer (it survives a reload or a locked screen), stop it. When the timer passes the person's threshold, their own rescue plan appears with a button to call emergency services. Types follow ILAE 2025 with the 2017 names beside them, and rescue doses are recorded on the as-needed medication.
Clusters follow your own rule (two in 24 hours until you change it), and an opt-in notification tells the family once when a seizure someone else logged forms one. The doctor report gets a seizure section with monthly counts by type, durations, rescue doses and, where the data is there, missed doses, cycle days, sleep and illness around each seizure. It all works inside a managed child profile.
Could you use it for a while in the real setting and tell me what feels slow or wrong in the moment it matters? That is the part I can't test well from here.
The cluster alert now goes out when a carer logs the next seizure seconds after the first. Before, two quick entries could each take the other for the cluster and neither sent the alert. The Day view shows each seizure's distance from the nearest dose, the Coach knows the diary, and the diary and the report count from the day the diary began. Still curious how it holds up in the moment, whenever you have used it for a while.
Yes, I still need a bit more time before I can respond properly in this thread. Our case probably doesn't differ much from other people's, but a real, up-to-date use case is hard to come by — the episodes are severe when they come, but fortunately they're rare. So at the moment I'm spending more of my time going through the medical documentation, and once I've worked through that I'll try to expand on this thread, or close it off.
Thanks, @ch3funio, no rush at all. I'm glad the episodes are rare, and that matters far more than this thread. Take whatever time you need with the documentation. Whenever you come back, even a short note helps, and if something feels off in the moment it matters, I'd like to hear about it.
Activity
ch3funio commentedon Nov 10, 2026
Converted into a feature request so it can be tracked and estimated: #1324
Keeping this thread for upvotes and brainstorming — the issue carries the concrete spec.
MBombeck commentedon Nov 10, 2026
Thanks, @ch3funio. The spec is thorough, and you're right that an illness episode is the wrong shape for a seizure.
I want to do this properly, so it goes into 1.48.0 rather than the next patch. Before I build it I'll look at what clinicians actually expect from a seizure diary (the ILAE 2017 types, how rescue medication and clusters get recorded), so the record and the report section match what a neurologist reads. Your proposed split is how I'd do it: the event record and the diary view first, then the report section and the FHIR mapping.
Blood ketones and GKI (#1367) are coming sooner, in 1.47.2, so that part of the keto picture doesn't have to wait.
I'll keep this issue updated as it takes shape.
MBombeck commentedon Nov 18, 2026
@ch3funio The seizure diary is in 1.48.0, out today (https://github.com/MBombeck/HealthLog/releases/tag/v1.48.0). Thanks again for the spec and for talking it through.
It is a new module, off until you switch it on in Settings, Modules. The main screen is built for logging during or right after a seizure on a phone: pick the type, start the timer (it survives a reload or a locked screen), stop it. When the timer passes the person's threshold, their own rescue plan appears with a button to call emergency services. Types follow ILAE 2025 with the 2017 names beside them, and rescue doses are recorded on the as-needed medication.
Clusters follow your own rule (two in 24 hours until you change it), and an opt-in notification tells the family once when a seizure someone else logged forms one. The doctor report gets a seizure section with monthly counts by type, durations, rescue doses and, where the data is there, missed doses, cycle days, sleep and illness around each seizure. It all works inside a managed child profile.
Could you use it for a while in the real setting and tell me what feels slow or wrong in the moment it matters? That is the part I can't test well from here.
MBombeck commentedon Nov 23, 2026
@ch3funio A few things for the seizure diary are in 1.49.0: https://github.com/MBombeck/HealthLog/releases/tag/v1.49.0
The cluster alert now goes out when a carer logs the next seizure seconds after the first. Before, two quick entries could each take the other for the cluster and neither sent the alert. The Day view shows each seizure's distance from the nearest dose, the Coach knows the diary, and the diary and the report count from the day the diary began. Still curious how it holds up in the moment, whenever you have used it for a while.
ch3funio commentedon Nov 25, 2026
Yes, I still need a bit more time before I can respond properly in this thread. Our case probably doesn't differ much from other people's, but a real, up-to-date use case is hard to come by — the episodes are severe when they come, but fortunately they're rare. So at the moment I'm spending more of my time going through the medical documentation, and once I've worked through that I'll try to expand on this thread, or close it off.
MBombeck commentedon Nov 25, 2026
Thanks, @ch3funio, no rush at all. I'm glad the episodes are rare, and that matters far more than this thread. Take whatever time you need with the documentation. Whenever you come back, even a short note helps, and if something feels off in the moment it matters, I'd like to hear about it.