In this post, we are going deeper into the Dynamic Data project, looking at the iOS Healthkit dynamic data (library available here on GitHub and at NPM). Opening the library, you’ll see there are nine types of data objects: HKActivitySummary, HKAudiogramSample, HKCharacteristic, HKClinicalRecord, HKElectrocardiogram, HKWorkoutConfiguration, HKWorkoutSession, HKWorkoutRoute, and HKWorkouts.
Learn more about dynamic data generators and the benefits of artificial data in software development.
About the data source
Apple's HealthKit is a framework that allows developers to create health and fitness apps for the iPhone and iPad. It provides a set of data objects that can be used to represent various types of health and fitness data, including information about a person's physical activity, sleep patterns, nutrition, and medical history.
HealthKit gathers data from a wide range of sources, including sensors in Apple devices, such as the accelerometer and gyroscope, as well as third-party apps and devices that are compatible with HealthKit. For example, a person might use a fitness tracker to track their workouts and sync the data with HealthKit or a sleep tracking app to monitor their sleep patterns and sync the data with HealthKit.
The Apple Health app is a pre-installed app on Apple devices. It integrates with the HealthKit framework, which allows it to gather data from a wide range of sources, including sensors in Apple devices, such as the accelerometer and gyroscope, as well as third-party apps and devices that are compatible with HealthKit.
Overall, HealthKit is designed to provide a centralized repository for a person's health and fitness data, allowing them to track their progress and make informed decisions about their health and wellness.
Apple provides developer documentation of the Healthkit framework. By inspecting the vital data, several JSON objects were constructed that are then stored in an NPM package. The index file of the package imports these data objects and exports them in a collection called “Data”. These mockup files make up the ios-health-data package.
Models Generated With JSON Crack
The ios-health-mockups package imports the files above and goes through each attribute generating artificial (new) data using proprietary functions, such as those found in the utils package.
For example, with the HKActivitySummary object:
Use case ideas
Explore entirely new use cases
Ideas to combine with some other data sources
Open-source data library
We welcome contributions and forks to this data set, and look forward to seeing what developers build in our Liberty. Equality. Data. Slack channel.
Considerations for next version/improvements
Join our Slack community; Liberty. Equality. Data. to brainstorm and collaborate with other app developers, designers, and our team.