Spivey.AppleHealthFileReader 1.0.2

dotnet add package Spivey.AppleHealthFileReader --version 1.0.2
NuGet\Install-Package Spivey.AppleHealthFileReader -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spivey.AppleHealthFileReader" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spivey.AppleHealthFileReader --version 1.0.2
#r "nuget: Spivey.AppleHealthFileReader, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Spivey.AppleHealthFileReader as a Cake Addin
#addin nuget:?package=Spivey.AppleHealthFileReader&version=1.0.2

// Install Spivey.AppleHealthFileReader as a Cake Tool
#tool nuget:?package=Spivey.AppleHealthFileReader&version=1.0.2

AppleHealthFileReader

A c# package for reading exported Apple Health Zip files that contain health records, workouts and clinical records into memory. Use LINQ to query the data to generate your own health analytics of your data. This project is not affiliated with Apple in any way.

Download Your Apple Health Data

To download your Apple Health data, go to your Apple Health app on your iPhone and click on the profile icon in the top right corner. Then click on "Export Health Data". This will generate a zip file that you can download to your computer. This zip file contains all of your health data in XML format. See Apple's documentation for more information.

Usage

To use this package, you will need to download your Apple Health data zip file. Then you can use the following code to read the data into memory.

var reader = new XmlHealthDataReader();
var data = reader.Load(@"C:\Users\me\Downloads\export.zip");
var myHealthRecords = data.Records;
var myClinicalRecords = data.ClinicalRecords;
var myWorkouts = data.Workouts;

Or if you want to read the data from an XDocument:

XDocument xdoc = XDocument.Load(@"C:\Users\me\Downloads\export.xml");
var reader = new XmlHealthDataReader();
var data = reader.Load(xdoc);
var myHealthRecords = data.Records;
var myClinicalRecords = data.ClinicalRecords;
var myWorkouts = data.Workouts;
  • Spivey.Health can be used to convert Apple Health data into a normalized and more efficient data structure.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 156 5/19/2023
1.0.1 200 3/19/2023
1.0.0 188 3/19/2023