際際滷

際際滷Share a Scribd company logo
HealthKit
JUSTIN BERGEN
FIVE3 APPS
HEALTHKIT
WHAT IS HEALTHKIT?
 Apples answer to the many disparate health and 鍖tness
platforms.
 Stores an encrypted, centralized database of health information.
 Local device only.
 Does backup on encrypted backups only.
 Available on iOS and WatchOS, but not available on iPad.
 Health app allows the user to manage data and privacy.
HEALTH APP
DEMO
HEALTHKIT
HEALTHKIT DATA
 Characteristic data - date of birth, blood type, etc.
 Apps cannot change.
 Sample data - Most health data.
 Point in time sample.
 Source data - Information about the data source.
 Stored as part of a sample.
 Deleted object - Temp object to pass UUID for deleted item
HEALTHKIT
HKObject / HKSample
 Source revision - information about who wrote the sample.
 Device - (optional) information about the hardware the
sample came from.
 Type - the type of health data in the sample (steps,
calories, etc).
 Cannot create custom types
 Start/End date - timeframe for the sample.
TEXT
HKSample Subclasses
 Category - data is a 鍖nite set of categories (ie sleep
analysis - awake, inBed, asleep)
 Quantity - data that is stored as numeric value.
 Value uses speci鍖c unit type. For example,
HKUnit.kilocalorie()
 Correlation - food or blood pressure.
 Workouts - physical activity that can have multiple sample
types.
HEALTHKIT
APP TARGET CONFIGURATION
 Con鍖gure HealthKit entitlement.
 (optional) Remove required device capability.
 Set info.plist with Privacy - Health Share Usage Description
(read), and Privacy - Health Update Usage Description
(write)
 Make sure HealthKit.framework is linked
ACTIVITY CHECK
DEMO
HEALTHKIT
WATCH DIFFERENCES
 Less data available.
 earliestPermittedSampleDate()
 No background handlers.
 Use background app refresh instead and query data.
HEALTHKIT
PRO TIPS
 You are not told if the user denied access to your app.
 Completion handlers can be called from non-main threads.
 If your app needs to run on iPad (not just Universal), then
remove HealthKit from required device capabilities
QUESTIONS
HEALTHKIT
RESOURCES
 HealthKit Framework Reference
https://developer.apple.com/reference/healthkit
 Activity Check Demo App Source
https://github.com/Five3Apps/HealthKitDemo
 Contact Me
http://鍖ve3apps.com/
justin@鍖ve3apps.com
Ad

Recommended

2 3 open_ehr archetypes observation
2 3 open_ehr archetypes observation
freshEHR Clinical Informatics Ltd.
HealthKit
HealthKit
Bura Deniz, CSM
Facts on U.S. physicians-Total number of active doctors of medicine in the U....
Facts on U.S. physicians-Total number of active doctors of medicine in the U....
Statreferral
Creating Faculty Publication Lists from Scopus RSS Feeds
Creating Faculty Publication Lists from Scopus RSS Feeds
Tom Keays
Health and fitness frameworks
Health and fitness frameworks
Diversido
Digitalk main 121014
Digitalk main 121014
CDMiConnect
Pathways for patient facing apps using ResearchKit, HealthKit and CareKit
Pathways for patient facing apps using ResearchKit, HealthKit and CareKit
Mobisoft Infotech LLC
Apple Health Kit from the Application Developer Point of View
Apple Health Kit from the Application Developer Point of View
Gene Leybzon
iOS 8 HealthKit: Driving Smart Health Solutions
iOS 8 HealthKit: Driving Smart Health Solutions
Harbinger Systems - HRTech Builder of Choice
Introducing Cardio
Introducing Cardio
Yusuke Kita
HealthKit Deep Dive
HealthKit Deep Dive
Natasha Murashev
Apple for health
Apple for health
Htun Teza
Apple Health Design Challenge
Apple Health Design Challenge
Nic Edwards
An Android Application to Monitor Health Condition
An Android Application to Monitor Health Condition
IJEID :: International Journal of Excellence Innovation and Development
How to make workout app for watch os 2
How to make workout app for watch os 2
Yusuke Kita
Bachelor thesis - Keep Healthy Application
Bachelor thesis - Keep Healthy Application
Ligia Alexandra Gaspar
7 Things About iPhone 6 Health App
7 Things About iPhone 6 Health App
TechAhead
Wearables Presentation from Queensland C# Mobile Developers August 2016
Wearables Presentation from Queensland C# Mobile Developers August 2016
Glenn Stephens
HealMe_minor_project.pptx
HealMe_minor_project.pptx
Bangtangurl
Can Health Devices Know Too Much?
Can Health Devices Know Too Much?
Cheryl Tulkoff
IRJET- Virtual Dietitian: An Android based Application to Provide Diet
IRJET- Virtual Dietitian: An Android based Application to Provide Diet
IRJET Journal
Health scoreppt
Health scoreppt
App Brahma
eHealth & IOE(The Internet Of Engagement)
eHealth & IOE(The Internet Of Engagement)
Cheryl Tulkoff
Chronic Diseases: An App A Day
Chronic Diseases: An App A Day
Iris Thiele Isip-Tan
Android Wear and the Future of Smartwatch
Android Wear and the Future of Smartwatch
Koan-Sin Tan
hAPPy & healthy
hAPPy & healthy
University of Southern Queensland
artificial intelligence in health care system
artificial intelligence in health care system
AparnaShukla56
Healthcare app development company
Healthcare app development company
deorwine infotech
Tooth paste - BDS.docx
Tooth paste - BDS.docx
kopalsharma85
Irradiation to prevent TA-GvHD by Dr. Abrar Kabir Shishir.pptx
Irradiation to prevent TA-GvHD by Dr. Abrar Kabir Shishir.pptx
AbrarKabir3

More Related Content

Similar to Apple Health Kit (20)

iOS 8 HealthKit: Driving Smart Health Solutions
iOS 8 HealthKit: Driving Smart Health Solutions
Harbinger Systems - HRTech Builder of Choice
Introducing Cardio
Introducing Cardio
Yusuke Kita
HealthKit Deep Dive
HealthKit Deep Dive
Natasha Murashev
Apple for health
Apple for health
Htun Teza
Apple Health Design Challenge
Apple Health Design Challenge
Nic Edwards
An Android Application to Monitor Health Condition
An Android Application to Monitor Health Condition
IJEID :: International Journal of Excellence Innovation and Development
How to make workout app for watch os 2
How to make workout app for watch os 2
Yusuke Kita
Bachelor thesis - Keep Healthy Application
Bachelor thesis - Keep Healthy Application
Ligia Alexandra Gaspar
7 Things About iPhone 6 Health App
7 Things About iPhone 6 Health App
TechAhead
Wearables Presentation from Queensland C# Mobile Developers August 2016
Wearables Presentation from Queensland C# Mobile Developers August 2016
Glenn Stephens
HealMe_minor_project.pptx
HealMe_minor_project.pptx
Bangtangurl
Can Health Devices Know Too Much?
Can Health Devices Know Too Much?
Cheryl Tulkoff
IRJET- Virtual Dietitian: An Android based Application to Provide Diet
IRJET- Virtual Dietitian: An Android based Application to Provide Diet
IRJET Journal
Health scoreppt
Health scoreppt
App Brahma
eHealth & IOE(The Internet Of Engagement)
eHealth & IOE(The Internet Of Engagement)
Cheryl Tulkoff
Chronic Diseases: An App A Day
Chronic Diseases: An App A Day
Iris Thiele Isip-Tan
Android Wear and the Future of Smartwatch
Android Wear and the Future of Smartwatch
Koan-Sin Tan
hAPPy & healthy
hAPPy & healthy
University of Southern Queensland
artificial intelligence in health care system
artificial intelligence in health care system
AparnaShukla56
Healthcare app development company
Healthcare app development company
deorwine infotech
Introducing Cardio
Introducing Cardio
Yusuke Kita
Apple for health
Apple for health
Htun Teza
Apple Health Design Challenge
Apple Health Design Challenge
Nic Edwards
How to make workout app for watch os 2
How to make workout app for watch os 2
Yusuke Kita
Bachelor thesis - Keep Healthy Application
Bachelor thesis - Keep Healthy Application
Ligia Alexandra Gaspar
7 Things About iPhone 6 Health App
7 Things About iPhone 6 Health App
TechAhead
Wearables Presentation from Queensland C# Mobile Developers August 2016
Wearables Presentation from Queensland C# Mobile Developers August 2016
Glenn Stephens
HealMe_minor_project.pptx
HealMe_minor_project.pptx
Bangtangurl
Can Health Devices Know Too Much?
Can Health Devices Know Too Much?
Cheryl Tulkoff
IRJET- Virtual Dietitian: An Android based Application to Provide Diet
IRJET- Virtual Dietitian: An Android based Application to Provide Diet
IRJET Journal
Health scoreppt
Health scoreppt
App Brahma
eHealth & IOE(The Internet Of Engagement)
eHealth & IOE(The Internet Of Engagement)
Cheryl Tulkoff
Android Wear and the Future of Smartwatch
Android Wear and the Future of Smartwatch
Koan-Sin Tan
artificial intelligence in health care system
artificial intelligence in health care system
AparnaShukla56
Healthcare app development company
Healthcare app development company
deorwine infotech

Recently uploaded (20)

Tooth paste - BDS.docx
Tooth paste - BDS.docx
kopalsharma85
Irradiation to prevent TA-GvHD by Dr. Abrar Kabir Shishir.pptx
Irradiation to prevent TA-GvHD by Dr. Abrar Kabir Shishir.pptx
AbrarKabir3
MAY 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
MAY 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
Kanhu Charan
Severe Acute Respiratory Syndrome (SARS)
Severe Acute Respiratory Syndrome (SARS)
Dr. Anu Marhatta
15 malnutrition in children pediatrics 1.ppt
15 malnutrition in children pediatrics 1.ppt
BECKYCHEPNGENO
JUNE 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
JUNE 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
Kanhu Charan
Coarse Dispersion, Physical Pharmaceutics
Coarse Dispersion, Physical Pharmaceutics
nishiprakashj
NUTRITION for basic Introduction and guide
NUTRITION for basic Introduction and guide
jrtrosales16
From Wheals to Wellness: Transforming Chronic Spontaneous Urticaria Care With...
From Wheals to Wellness: Transforming Chronic Spontaneous Urticaria Care With...
PVI, PeerView Institute for Medical Education
the list of FABELS in neonatology (1).pptx
the list of FABELS in neonatology (1).pptx
DrSandeepDankhade
Winning GAMBITS Against AML: Guidance on Advances & Medical Breakthroughs wit...
Winning GAMBITS Against AML: Guidance on Advances & Medical Breakthroughs wit...
PVI, PeerView Institute for Medical Education
Use of Artificial Intelligence in the Management of Osteoporosis
Use of Artificial Intelligence in the Management of Osteoporosis
DrOmLakhani1
MASLD 2025 : A Case Based discisson by Dr. Om J Lakhani
MASLD 2025 : A Case Based discisson by Dr. Om J Lakhani
DrOmLakhani1
Navigating the Open Enrollment Period for Medicare Supplement Insurance in Sa...
Navigating the Open Enrollment Period for Medicare Supplement Insurance in Sa...
dfwdirectinsurance
ADA Releases 2025 Standards of Care for Diabetes
ADA Releases 2025 Standards of Care for Diabetes
John Kriak
The concept of Druti in Rasashastra- Dr. Aiswarya Babu
The concept of Druti in Rasashastra- Dr. Aiswarya Babu
Dr. Aiswarya Babu
ANATOMY OF LARYNX -Prof.Dr.N.Mugunthan, KMMC.pdf
ANATOMY OF LARYNX -Prof.Dr.N.Mugunthan, KMMC.pdf
Kanyakumari Medical Mission Research Center, Muttom
Air Pollution, air quality index, Nepal air pollution
Air Pollution, air quality index, Nepal air pollution
Dr. Anu Marhatta
microbial spoilage. Pharmaceutical microbial Spoilage
microbial spoilage. Pharmaceutical microbial Spoilage
Rajakumari Rajendran
Tuberculosis burden , case finding tools and management .pptx
Tuberculosis burden , case finding tools and management .pptx
Dr. Anu Marhatta
Tooth paste - BDS.docx
Tooth paste - BDS.docx
kopalsharma85
Irradiation to prevent TA-GvHD by Dr. Abrar Kabir Shishir.pptx
Irradiation to prevent TA-GvHD by Dr. Abrar Kabir Shishir.pptx
AbrarKabir3
MAY 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
MAY 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
Kanhu Charan
Severe Acute Respiratory Syndrome (SARS)
Severe Acute Respiratory Syndrome (SARS)
Dr. Anu Marhatta
15 malnutrition in children pediatrics 1.ppt
15 malnutrition in children pediatrics 1.ppt
BECKYCHEPNGENO
JUNE 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
JUNE 2025 ONCOLOGY CARTOONS BY DR KANHU CHARAN PATRO
Kanhu Charan
Coarse Dispersion, Physical Pharmaceutics
Coarse Dispersion, Physical Pharmaceutics
nishiprakashj
NUTRITION for basic Introduction and guide
NUTRITION for basic Introduction and guide
jrtrosales16
the list of FABELS in neonatology (1).pptx
the list of FABELS in neonatology (1).pptx
DrSandeepDankhade
Use of Artificial Intelligence in the Management of Osteoporosis
Use of Artificial Intelligence in the Management of Osteoporosis
DrOmLakhani1
MASLD 2025 : A Case Based discisson by Dr. Om J Lakhani
MASLD 2025 : A Case Based discisson by Dr. Om J Lakhani
DrOmLakhani1
Navigating the Open Enrollment Period for Medicare Supplement Insurance in Sa...
Navigating the Open Enrollment Period for Medicare Supplement Insurance in Sa...
dfwdirectinsurance
ADA Releases 2025 Standards of Care for Diabetes
ADA Releases 2025 Standards of Care for Diabetes
John Kriak
The concept of Druti in Rasashastra- Dr. Aiswarya Babu
The concept of Druti in Rasashastra- Dr. Aiswarya Babu
Dr. Aiswarya Babu
Air Pollution, air quality index, Nepal air pollution
Air Pollution, air quality index, Nepal air pollution
Dr. Anu Marhatta
microbial spoilage. Pharmaceutical microbial Spoilage
microbial spoilage. Pharmaceutical microbial Spoilage
Rajakumari Rajendran
Tuberculosis burden , case finding tools and management .pptx
Tuberculosis burden , case finding tools and management .pptx
Dr. Anu Marhatta
Ad

Apple Health Kit

  • 2. HEALTHKIT WHAT IS HEALTHKIT? Apples answer to the many disparate health and 鍖tness platforms. Stores an encrypted, centralized database of health information. Local device only. Does backup on encrypted backups only. Available on iOS and WatchOS, but not available on iPad. Health app allows the user to manage data and privacy.
  • 4. HEALTHKIT HEALTHKIT DATA Characteristic data - date of birth, blood type, etc. Apps cannot change. Sample data - Most health data. Point in time sample. Source data - Information about the data source. Stored as part of a sample. Deleted object - Temp object to pass UUID for deleted item
  • 5. HEALTHKIT HKObject / HKSample Source revision - information about who wrote the sample. Device - (optional) information about the hardware the sample came from. Type - the type of health data in the sample (steps, calories, etc). Cannot create custom types Start/End date - timeframe for the sample.
  • 6. TEXT HKSample Subclasses Category - data is a 鍖nite set of categories (ie sleep analysis - awake, inBed, asleep) Quantity - data that is stored as numeric value. Value uses speci鍖c unit type. For example, HKUnit.kilocalorie() Correlation - food or blood pressure. Workouts - physical activity that can have multiple sample types.
  • 7. HEALTHKIT APP TARGET CONFIGURATION Con鍖gure HealthKit entitlement. (optional) Remove required device capability. Set info.plist with Privacy - Health Share Usage Description (read), and Privacy - Health Update Usage Description (write) Make sure HealthKit.framework is linked
  • 9. HEALTHKIT WATCH DIFFERENCES Less data available. earliestPermittedSampleDate() No background handlers. Use background app refresh instead and query data.
  • 10. HEALTHKIT PRO TIPS You are not told if the user denied access to your app. Completion handlers can be called from non-main threads. If your app needs to run on iPad (not just Universal), then remove HealthKit from required device capabilities
  • 12. HEALTHKIT RESOURCES HealthKit Framework Reference https://developer.apple.com/reference/healthkit Activity Check Demo App Source https://github.com/Five3Apps/HealthKitDemo Contact Me http://鍖ve3apps.com/ justin@鍖ve3apps.com