Plain Text Health
An open plain-text format for storing health, workout, and sleep data could be a good alternative to Apple Health. It would avoid vendor lock-in and be easy to integrate with agents.
ledger/hledger and their transaction format could serve as a reference, adapted for health data.
It could store both aggregated data and raw metrics.
The format should be simple enough to enter data manually, through agents, or with basic exporters. At the same time, it should be flexible enough to store different types of data.
It should also support machine validation so that reports and aggregations can be generated automatically.
I wonder what ready-made options already exist in this area?