mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
refactor(measurements): drop the unused score-type set and rhythm-classification enum
This commit is contained in:
1 parent
56e14aa9fa
commit
8dbfc6989a
1 file changed
-22
@@ -78,19 +78,6 @@ export const measurementTypeEnum = z.enum([
|
||||
"STRAIN_SCORE",
|
||||
]);
|
||||
|
||||
/**
|
||||
* v1.10.0 — computed scores (WX-C). The closed set of server-derived
|
||||
* `*_SCORE` MeasurementTypes. Each is a 0–100 wellness score persisted with
|
||||
* `source = COMPUTED` by a nightly engine — never ingested from a client.
|
||||
* Kept as a `Set` so read/write paths can branch on "is this a computed
|
||||
* score?" the same way `EVENT_MEASUREMENT_TYPES` gates the event rows.
|
||||
*/
|
||||
export const SCORE_MEASUREMENT_TYPES: ReadonlySet<string> = new Set<string>([
|
||||
"RECOVERY_SCORE",
|
||||
"STRESS_SCORE",
|
||||
"STRAIN_SCORE",
|
||||
]);
|
||||
|
||||
/**
|
||||
* v1.10.0 — categorical events (WX-B). The closed set of EVENT-class
|
||||
* MeasurementTypes. An EVENT row carries `value = 1`, an optional
|
||||
@@ -106,15 +93,6 @@ export const EVENT_MEASUREMENT_TYPES: ReadonlySet<string> = new Set<string>([
|
||||
"BREATHING_DISTURBANCE_EVENT",
|
||||
]);
|
||||
|
||||
export const rhythmClassificationEnum = z.enum([
|
||||
"IRREGULAR",
|
||||
"NOT_DETECTED",
|
||||
"INCONCLUSIVE",
|
||||
"LOW",
|
||||
"VERY_LOW",
|
||||
"FIRED",
|
||||
]);
|
||||
|
||||
export const glucoseContextEnum = z.enum([
|
||||
"FASTING",
|
||||
"POSTPRANDIAL",
|
||||
|
||||
Reference in new issue
Block a user