Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with ResearchKit

You're reading from   Getting Started with ResearchKit Enter the era of medical research using mobile devices with the help of this guide on ResearchKit!

Arrow left icon
Product type Paperback
Published in Feb 2016
Publisher
ISBN-13 9781785889172
Length 136 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Dhanush Balachandran Dhanush Balachandran
Author Profile Icon Dhanush Balachandran
Dhanush Balachandran
Edward Cessna Edward Cessna
Author Profile Icon Edward Cessna
Edward Cessna
Arrow right icon
View More author details
Toc

Restoring tasks

In clinical research studies, surveys may get lengthy and take a long time to complete. Also, in many cases, the users might have to find the information being asked from other places such as paper medical records, and so on. In these cases, it would be convenient if the users can save the partially completed survey and resume it later. ResearchKit provides a mechanism to save the partially completed surveys through the restorationData property and other delegate methods in ORKTaskViewController. Let's learn how to add a restorable survey in detail in this chapter.

In the following sections, we will be adding Restorable Survey to the lists of tasks in the Softwareitis project.

First, let's add the showRestorableSurvey method in RestorableSurvey.swift. This method replicates the survey created in Chapter 3, Building Surveys as showSurvey with one difference: The identifier of the survey task is set to "Restorable Survey", as shown in the following:

func...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image