HACKINTOSH.ORG | Macintosh discussion forums

Macintosh News => iPhone/iPod/iPad News => Topic started by: HCK on August 26, 2014, 09:00:32 am



Title: Health in iOS 8: Explained
Post by: HCK on August 26, 2014, 09:00:32 am
Health in iOS 8: Explained

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/08/wwdc_2014_health_icon.jpg?itok=f0sv_W_c' />[/url]</p> <p>Health (http://www.imore.com/health-iphone-ipad) is the name for a new, built-in Apple app coming with <a href="http://www.imore.com/ios-8" title="iOS 8 help, how-to, news, reviews">iOS 8[/url]. It serves as both a repository for all the health-related data accumulated by your iPhone, your apps, and your accessories, and a dashboard to help you make better, more visual sense of it — a front-end for your quantified life. To facilitate all this, Apple is providing the HealthKit framework to developers and manufacturers. But how does it all work?<!--break--></p> <h2>Health goals</h2> <p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/08/wwdc_2014_health_quote.jpg?itok=mCAWQdDP' />[/url]</p> <p>The iPhone, primarily due to its highly mobile form factor and constant connectivity, has become a platform upon which a plethora of health and fitness apps and accessories are built. There's an <a href="http://www.imore.com/apple-m7" title="Apple M7 motion coprocessor reviews and features">Apple M7 motion coprocessor[/url] in the iPhone 5s (as well as the iPad Air and Retina iPad mini) to help collect activity data in as power-efficient a way as possible, but there are also a half-dozen or more fitness bands, as well as scales, blood pressure readers, blood sugar readers, sleep trackers, and more. There's even a Bluetooth fork.</p> <p>In addition to apps that collect and track data, there are apps that let people manually enter data, like what they ate or how they felt at a specific time. There are apps that perform statistical analysis and provide graphical reports on data to help you better visualize specific metrics. There are apps from healthcare providers that let you send your information back to them to keep your records up-to-date.</p> <p>Yet all that data about activity and sleep, diet and nutrition, mood and medication, vital signs and test results, all remains locked into the silos of all those individual apps.</p> <p>Apple's Health app is designed to bring all that data together and to put it all in one, convenient, easy to refer to place. The hope is that the whole is more valuable than the sum of the silos, both for the human being using it, and for any medical professionals we expressly choose to be involved.</p> <h2>Health app</h2> <p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/08/wwdc_2014_health_dashboard.jpg?itok=t7k2nFsj' />[/url]</p> <p>Rumor has it Health was originally conceptualized as HealthBook, a card-based interface similar to PassBook. However, the sheer number of sources that ultimately got included required a shift to a more scalable, list-based interface. So, Health.</p> <p>Health is the front-end for HealthKit (see below). It includes a dashboard section, where you can place the readouts most important to you. For example, steps if you're working with a fitness tracker, or blood sugar, if you're diabetic. From here you can quickly and easily tab through day, week, month, and year views.</p> <p>There's a Health Data section that lets you see everything, including All, Body Measurements, Fitness, Me, Nutrition, Results, Sleep, and Vitals. Body measurements include fat percentage, mass index, height, lean body mass, and weight. Fitness includes active calories, distance, flights climbed, NikeFuel, resting calories, and steps. Me lets you enter birthdate, biological sex, and blood type. Nutrition stores a long list of food, mineral, and vitamin types from biotin to zinc. Results stores a wide variety of test results from blood alcohol content to peripheral perfusion index. Vitals can keep track of blood pressure, body temperature, heart rate, and respiratory rate.</p> <p>Each shows its graphical widget, the ability to show data, add data, share data, and a toggle to put them on or take them off the dashboard. If you want to change up what's in your dashboard, or want to drill down into data that you don't need often, but do need at that moment.</p> <p>The Sources section lists the apps and accessories that are currently connected to Health via HealthKit. Over time you might grant permission for more and more apps and accessories to access your data, and it's helpful if there's a place where you can review all of that and decide what, if any, cleanup is needed.</p> <p>The Medical ID section lets you create a Lock screen (http://www.imore.com/lock-screen-iphone-ipad) card that shows your birthdate, medical conditions, medical notes, allergies and reactions, medications, contacts, blood type, organ donor information, weight, and/or height. None of this is included in health data or shared with other apps, but will be presented to first responders who might need it to properly treat you in case of emergency.</p> <p>It can be accessed when your iPhone is locked by tapping Emergency, then Medical ID. And yes, there are some privacy implications to making that information accessible from the Lock screen, but just like a Medicalert bracelet, each of us will have to weigh that against the risks and benefits, depending on our own, personal health situation.</p> <h2>HealthKit for developers</h2> <p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/08/wwdc_2014_healthkit_icon.jpg?itok=99IPB7ZR' />[/url]</p> <p>The HealthKit application programming interface (API) lets developers create, save, and ask for health and fitness data. The idea, again, is to have a single place where all developers can contribute towards a composite health profile, so that we can have a better, more complete, more holistic view of their health and fitness.</p> <p>HealthKit is built into the Capabilities pane in Xcode, just like Game Center and Passbook. To help developers and users alike, Apple provides tools within HealthKit to make working with health and fitness data easier. For example, HKUnit can handle both simple and complex conversions between things like the metric system used in the vast majority of the world, and the imperial system used in the U.S. (and, of course, those who still measure their weight in stones in England...). There's also HKObjectType which can store everything from steps to blood pressure to respiratory rate to body temperature to vitamin levels to oxygen saturation to NikeFuel points, and much, much more.</p> <p>All data stored in HealthKit is a subclass of HKObject, every one has a UUID that persists, and each keeps track of its source, be it an app or accessory. All data is also immutable, since going back in time and changing health or fitness data isn't the preferred methodology.</p> <p>So, for example, a developer can create an HKObject to record something like body temperature, what the temperature was and when (either exactly for a moment in time or an average over a short period of time), and that it came from an ear thermometer.</p> <p>To save or query for data from HealthKit, developers create an HKHealthStore. Saving data is straightforward. Developers create it and save it to their store. Querying for data has more options.</p> <p>Developers can query both data they created and data already stored in HealthKit. However, to query data already stored in HealthKit, they have to get the user's permission first.</p> <p>HKHealthKit can be directly queried for characteristic data like date of birth and blood type, that don't change over time. HKQuery is more heavy duty. With it, developers can set limits and sort orders, observe for changes in the database, and handle "anchors" (last pieces of data seen).</p> <p>In addition to objects, developers can ask for statistics with HKStatistics. It includes sum, min, max, and average, and developers can get stats for all data or just for a particular source (app or accessory). Discreet types like height, weight, or blood pressure can return min, max, and average stats. Cumulative types like step count or calories burned can return sum.</p> <p>To mitigate against calculations being "expensive" (consuming processor resources), HealthKit has developers tell them what they want ahead of time by specifying the type and stat. To mitigate against conflicting or duplicate sources, HealthKit will take the source preferred by the user. Developers, however, can also separate out the sources and do their own merges.</p> <p>To keep things efficient, HKStatisticsCollection can be used to query for multiple statistics objects, split up into time "intervals". So, a developer could pull steps for every day during the last week and graph them.</p> <p>All this means Apple has made it easy for developers to store health and fitness data in HealthKit, retrieve it, combine it with other data in HealthKit, and present it in an understandable manner for users.</p> <p>To get started with HealthKit, Apple has provided information for app developers and accessory manufacturers, including WWDC session videos and sample fitness tracker code.</p> <ul><li>HealthKit on Apple Developer portal (https://developer.apple.com/healthkit/)</li> </ul><h2>Health partners</h2> <p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/08/wwdc_2014_health_providers.jpg?itok=P2ugS_EH' />[/url]</p> <p>On their own both Health and HealthKit are ambitious and impressive, but Apple has even higher goals in mind for both. Apple is hoping to revolutionize the healthcare industry.</p> <p>They're partnering with the Mayo Clinic, for example, to integrate with HealthKit so, for example, a patient's blood pressure reading is automatically compared with expectations and, if anything is amiss, their doctor is immediately alerted for follow up.</p> <p>Apple is also partnering with Epic Systems, which powers hospitals serving hundreds of millions of Americans, so that patients at many major institutions can use Health to faster and more conveniently share their information with their doctors.</p> <h2>Privacy</h2> <p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/06/wwdc_2014_privacy.jpg?itok=ozXpGlSg' />[/url]</p> <p>Health and HeathKit can make it incredibly convenient to store, retrieve, sync, and share health and fitness information. But as we all know, convenience is in perpetual conflict with security and privacy. A place where all of our data, from different apps and accessories, can get aggregated together and not only presented back to us, but to other apps and shared with healthcare professionals means the underlying system needs to be privacy-first.</p> <p>It looks like that's exactly what Apple is doing with Health and HealthKit. Before an app can access any data in HealthKit it needs to get express permission. Likewise, before any data can be shared, we need to be the ones who initiate the sharing.</p> <p>Because health data is incredibly sensitive, Apple goes above and beyond the usual permission system to allow us to authorize or deny access per object type. So, if an app only needs step data, we can only authorize step data and not give it access to anything else.</p> <p>Read and write permissions are also kept separate per object type. That means we can let a step tracker save data to HealthKit, but not read any data saved there by other apps.</p> <p>To manage all this, Apple is using authorization sheets — I know, right? (http://www.imore.com/ios-8-wants-privacy-sheets-make-permissions-manageable) — which, instead of a simple popup, provides granular yes/no toggles for each type of data sourced and shared.</p> <p>Apple also won't let developers know if a specific type of information has been blocked, because that knowledge in and of itself can compromise privacy (i.e. blocking blood sugar might betray diabetes).</p> <p>We'll have to wait until Health and HealthKit ship, and people test the system in the real world, but Apple's priorities seem well placed.</p> <h2>iPads in the waiting room</h2> <p>Health and HealthKit are currently iPhone only and aren't scheduled to ship as part of iOS 8 for the iPad. Hopefully that'll change in the near future. Some people, including the elderly and those with high level medical needs, might not have an iPhone but might have an iPad.</p> <p>Passbook, introduced in iOS 6, has thus far remained iPhone only, and maybe that makes sense for a mobile payment system. Health, however, feels like it has a lot to offer iPad customers as well.</p> <h2>Bottom line</h2> <p><a href='http://www.imore.com/health-ios-8-explained' title="Health in iOS 8: Explained"><img src='http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/08/wwdc_2014_health_and_healthkit.jpg?itok=LHn_jH46' />[/url]</p> <p>Health is best thought of like Passbook, which collects all your tickets and cards, or Photos, which holds all your pictures and videos, or, perhaps, or iCloud Drive which stores and shares all your files and documents. Health presents all the health and fitness data stored in HealthKit in one convenient, centralized location, and in a way that's easy to see and understand.</p> <p>It remains to be seen whether the general public embraces Health, or if they'd be happier with an iPhone that spewed cheeseburgers from the Lightning port. However, I'm optimistic that Apple's optimistic. Worst case, Health being there, on the Home screen, with its cheery heart icon, will encourage people to think more about health and fitness. Best case, as any one element becomes important, the system itself will make it easy to add other elements in. And there's nothing better than virtuous cause becoming a virtuous cycle.</p> <p><a href="http://www.imore.com/ios-8" title="iOS 8 help, how-to, news, reviews">iOS 8[/url] ships this fall. What do you think of Health and HealthKit, and will you be using them?</p> <h2>More of iOS 8: Explained</h2> <div id="block-block-69" class="block block-block"> <div class="content"> <ul><li>Handoff in iOS 8 and OS X Yosemite: Explained (http://www.imore.com/handoff-ios-8-os-x-yosemite-explained)</li> <li>Making and receiving phone calls on iOS 8 for iPad and OS X Yosemite: Explained (http://www.imore.com/call-answer-ios-8-and-os-x-yosemite-explained)</li> <li>Sending and receiving SMS/MMS on iOS 8 for iPad and OS X Yosemite: Explained (http://www.imore.com/sending-and-receiving-sms-mms-ios-8-ipad-and-os-x-yosemite-explained)</li> <li>AirDrop and Instant Hotspot in iOS 8 and OS X Yosemite: Explained (http://www.imore.com/airdrop-and-tethering-ios-8-and-os-x-yosemite-explained)</li> <li>QuickType keyboard in iOS 8: Explained (http://www.imore.com/quicktype-keyboards-ios-8-explained)</li> <li>Interactive notifications in iOS 8: Explained (http://www.imore.com/interactive-notifications-ios-8-explained)</li> <li>SceneKit in iOS 8: Explained (http://www.imore.com/ios-8-scenekit-explained)</li> <li>Metal in iOS 8: Explained (http://www.imore.com/metal-ios-8-explained)</li> <li>Widgets in iOS 8: Explained (http://www.imore.com/widgets-ios-8-explained)</li> <li>Share extensions in iOS 8: Explained (http://www.imore.com/sharing-ios-8-explained)</li> <li>Action extensions in iOS 8: Explained (http://www.imore.com/action-extensions-ios-8-explained)</li> <li>Inter-app photo and video editing in iOS 8: Explained (http://www.imore.com/inter-app-photo-and-video-editing-ios-8-explained)</li> <li>Custom keyboards in iOS 8: Explained (http://www.imore.com/custom-keyboards-ios-8-explained)</li> <li>Family Sharing on iOS 8: Explained (http://www.imore.com/family-sharing-ios-8-explained)</li> <li>iCloud Drive and Document Picker for iOS 8: Explained (http://www.imore.com/icloud-drive-documentpicker-ios-8-explained)</li> <li>Document provider extensions in iOS 8: Explained (http://www.imore.com/ios-8-document-provider-extensions-explained)</li> <li>TestFlight in iOS 8: Explained (http://www.imore.com/testflight-ios-8-explained)</li> <li>Apple Maps in iOS 8: Explained (http://www.imore.com/maps-ios-8-explained)</li> <li>iMessage in iOS 8: Explained (http://www.imore.com/imessage-ios-8-explained)</li> <li>Photos in iOS 8: Explained (http://www.imore.com/photos-ios-8-explained)</li> <li>Spotlight in iOS 8: Explained (http://www.imore.com/spotlight-ios-8-explained)</li> <li>Health in iOS 8: Explained (http://www.imore.com/health-ios-8-explained)</li> </ul></div> </div> </div></div></div><div id="comment-wrapper-nid-26520"></div><img width='1' height='1' src='http://tipb.com.feedsportal.com/c/33998/f/616881/s/3dd603a1/sc/4/mf.gif' border='0'/><br clear='all'/>

<a href="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/rc/1/rc.htm" rel="nofollow"><img src="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/rc/1/rc.img" border="0"/>[/url]
<a href="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/rc/2/rc.htm" rel="nofollow"><img src="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/rc/2/rc.img" border="0"/>[/url]
<a href="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/rc/3/rc.htm" rel="nofollow"><img src="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/rc/3/rc.img" border="0"/>[/url]

<img src="http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/a2.img" border="0"/> (http://da.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/a2.htm)<img width="1" height="1" src="http://pi.feedsportal.com/r/204366869954/u/49/f/616881/c/33998/s/3dd603a1/sc/4/a2t.img" border="0"/><img src="http://feeds.feedburner.com/~r/TheIphoneBlog/~4/bY9xY17YTbU" height="1" width="1"/>

Source: Health in iOS 8: Explained (http://feedproxy.google.com/~r/TheIphoneBlog/~3/bY9xY17YTbU/story01.htm)