health_forge_core 0.2.0
health_forge_core: ^0.2.0 copied to clipboard
Pure Dart core library for health_forge — unified models, enums, provider interfaces, and a configurable conflict resolution engine for multi-source health records.
0.2.0 #
- Breaking:
HeartRateVariability.sdnnMillisecondsis now nullable (double?). Not every provider reports SDNN — Google Health Connect reports RMSSD instead. At least one ofsdnnMillisecondsorrmssdMillisecondsmust be present. This is enforced by a debug/profile-only assertion (Dart stripsasserts from release builds); the built-in provider mappers always populate exactly one of the two.
0.1.1 #
- Added
example/example.dartdemonstrating the merge engine with two overlapping heart-rate samples - Added
example/README.mddescribing how to run the example - Shortened pubspec description for cleaner pub.dev display
0.1.0 #
- Initial release
- 21 health record types across 6 families (activity, cardiovascular, sleep, recovery, respiratory, body)
- 7 enum types for type-safe health data classification
- HealthRecordMixin envelope with provider, timestamps, provenance, and extension slots
- Provider interfaces: HealthProvider, ProviderCapabilities, AuthResult
- MergeEngine with 5 conflict resolution strategies
- DuplicateDetector: time-overlap clustering within each metric type (
timeOverlapThresholdSeconds) - Provider extensions: OuraSleepExtension, StravaWorkoutExtension, GarminSleepExtension
- See getting started guide for usage