Diary
A specialized card component system for displaying health measurement data and diary entries in healthcare applications. The Diary module provides interactive cards with measurement display capabilities, designed for medical tracking and patient monitoring workflows.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
A specialized card component system for displaying health measurement data and diary entries in healthcare applications. The Diary module provides interactive cards with measurement display capabilities, designed for medical tracking and patient monitoring workflows.
Key Features
- Measurement Display: Specialized cards for health metrics and diary entries
- Data State Management: Visual distinction between measured and unmeasured states
- Compound Components: Flexible architecture using the compound component pattern
- Healthcare Icons: Integration with measurement type icons for visual identification
- Interactive Cards: Touch-enabled cards for navigation and data entry
- Host-configured accessibility: Add labels, roles, and announcements in the app around the diary content; the module does not provide complete screen-reader semantics for every compound child
Components
DiaryCard
The main card component that serves as a container for diary entries and measurement data with automatic styling based on data availability.
Sub-components:
DiaryCard.StartSection- Header section with icon and optional right contentDiaryCard.TaskIcon- Measurement type icons (inherited from Tile module)DiaryCard.Title- Card title text (inherited from Tile module)DiaryCard.MeasuredValue- Value display with unit and timestamp (inherited from Tile module)DiaryCard.NoData- Empty state indicator for unmeasured data
Architecture
The Diary module extends the Tile module's compound component pattern, specializing it for healthcare diary and measurement use cases:
Compound Component Design
- Main Container:
DiaryCardprovides theming, touch handling, and state-aware styling - Inherited Components: Reuses
TaskIcon,Title, andMeasuredValuefrom the Tile module - Custom Components:
StartSectionandNoDatadesigned specifically for diary workflows - Data State Awareness: Automatic visual styling based on
hasDataprop
Last updated on
SyncProgressList
Render per-type health import state and progress
DiaryCard
The DiaryCard component is a specialized interactive card designed for displaying health measurement data and diary entries. It extends TouchableOpacity with healthcare-specific styling and automatic visual state management based on data availability.