We're updating the issue view to help you get more done. 

[iOS to RN] Additional Fields from Apple Health

Description

Problem

  • In early/mid January, a lot of Loopers will be initializing the Tidepool Mobile connection to Apple Health. There are several Health related data elements Tidepool does not currently capture that may be valuable for future algorithm development.

Requested by

  • Pete, Rajiv Kumar

App (limit to one)

  • Backend, Tidepool Mobile (we'll need to split this card into two)

Scope

  • [ XS / S / M / L ]

  • Reference:

  • XS: <= 1 day

  • S: 2-3 days

  • M: <= 1 week

  • L: > 1 week

Brainstorm

```
From Rajiv at Apple:

Relevant HealthKit (https://developer.apple.com/healthkit/) fields: You’ve indicated that your study app will read HealthKit fields including glucose, insulin, and carbs.
A) I recommend including activity data elements, especially for those Users wearing an Apple Watch. You may consider Active Energy: a reflection of exertion at a given time-point and may likely provide better insight into acute hypoglycemia; while reported in kcal this reported value can be converted to METs if you know the Participant’s weight. You may also consider Resting Energy (kcal), exercise minutes, launched workouts, flights climbed, stand hours, steps, walking and running distance, and estimated VO2 max (to reflect conditioning changes over time).
B) Some Users enter BP (or have a paired BP cuff) which would be of interest including interesting HR metrics like resting heart rate and average day vs. night HR (for those Users who wear their Watch overnight; also interesting to see HR deltas around times of hypoglycemia).
C) You may also consider reading estimated sleep duration derived from phone behavior including alarm clock setting.
D) Reading Clinical Health Records variables (https://www.apple.com/healthcare/health-records/) may assist in following relevant trends including clinical vital signs, problem list (eg, DKA, proteinuria, retinopathy), lab results (eg, prospective and retrospective trending of HbA1c, LDL, etc.), and medications (eg, addition of Victoza, Metformin, other). This is FHIR based and is EHR agnostic. Current institutions that have implemented the beta version are listed here: https://support.apple.com/en-us/HT208647, and many more are expected following the beta which will overlap with your study duration.

```

Prototyping, Research & Architecture Review

User Stories

  • As a Looper, I want to send Tidepool as much relevant data as I can to help its developers improve the glucose control algorithm so I can get better glucose control in the future.

  • As a Loop algorithm developer, I want to see what health data might be affecting a Loopers glucose that the algorithm doesn't currently know about so I can better account for and perhaps solve for impact of externalities.

Done Criteria

Collect the following data from Apple Health and store it in a blob.

  • activeEnergyBurned

  • basalEnergyBurned

  • stepCount

  • appleExerciseTime

  • heartRate

  • vo2Max

  • heartRateVariability

  • height

  • weight

  • body fat percentage

  • body mass index

  • lean body mass

  • menstruation

  • Design Review Required? N

  • Data Model updates required by Analytics/Export? N (These will be stored in a blob)

  • [Documentation (in repo docs folder or GitBook)]

Marketing Website & Knowledge Base Updates

  • Update required? [ Y / N ]

  • Update completed? [ Y / N ]

Dependencies and dependent Cards

  • Please use Trello attachments to add dependency cards

Test Strategies

  • TBD

Verification Test

  • [Include link to test document]

Approved for production by

  • [Howard / Brandon]

Tags & Release Notes

  • TBD

--------------------

Design

  • n/a

Design Review Recap

  • n/a

KissMetrics Events

  • n/a

 

 

Problem

  • HealthKit has a ton of data that may be useful for Loop algorithm development.

  • We're not sure how to query and store this data in the quickest and most efficient way.

Requested by

  • Pete

App (limit to one)

  • Backend, Tidepool Mobile iOS

Brainstorm

  • Active Energy: a reflection of exertion at a given time-point and may likely provide better insight into acute hypoglycemia; while reported in kcal this reported value can be converted to METs if you know the Participant’s weight. You may also consider Resting Energy (kcal), exercise minutes, launched workouts, flights climbed, stand hours, steps, walking and running distance, and estimated VO2 max (to reflect conditioning changes over time).

Done Criteria

Marketing Website & Knowledge Base Updates

  • Update required? N

Business/Product Success Criteria

None

Done Criteria

None

Design Specifications:

None

Accessibility Specifications

None

Test Strategy

None

Environment

None

New Fields for Analytics/Export Configuration (if needed)

None

Activity

Show:
Becky Cooney
August 20, 2020, 8:39 PM

Added Menstruation to the list of data from iOS

Priority

Assignee

Unassigned

QA Assignee

None

Reporter

Janet Diehl

Requested By (External)

None

Fix versions

None

T-Shirt Size

None

Risk Level

None

User Experience Assessment Level

None

UEA: Issue Volume

None

UEA: Category

None

Components

Design Review Required?

None

Design Approved By:

None

QA done during validation of another ticket?

None

Accessibility Review Required?

None

Accessibility Review Approved By

None

Approved for Production By:

None

Marketing Comms

None

Support Follow Up

None

KB Update

None

Resolved Build #

None

Change completion date

None

Pull Request Needed

None
Configure