0.2.0
- Adds generic serialization support for most HealthKit samples.
Detailed information
This release adds generic serializers that support all major HealthKit sample types - HKQuantitySample
, HKCategorySample
, HKCorrelation
, and HKWorkout
. When a measure-specific serializer is not available, these generic serializers map samples to measures based on the generic HealthKit-based JSON schemas developed by Open mHealth.
It is recommended to use the specific serializer targeted to your sample type of interest, when available. For example, there is a serializer for body mass index (BMI) that takes a HKQuantitySample
of the HKQuantityTypeIdentifierBodyMassIndex
type and serializes it to JSON that matches the Open mHealth curated schema, body-mass-index:1.x. This increases the portability and reusability of the serialized data.