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
Conferences
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

Navigable ordered tasks

In Chapter 3, Building Surveys, we looked at creating simple surveys using ORKOrderedTask. This method is sufficient to convert most of the paper surveys to a ResearchKit app. However, the advantage of presenting a clinical survey on the phone is that we can adapt the survey based on the responses for the previous questions. For example, in a smoking habits survey, when the user answers that they does not smoke, the survey can choose not to ask how many cigarettes do they smoke per day. The ORKNavigableOrderedTask allows you to adapt the questions based on the answers the user chooses.

The ORKNavigableOrderedTask is a subclass of ORKOrderedTask and it adds conditional step navigation to the ordered tasks. We can add conditional steps in ORKNavigableOrderedTask by attaching the navigation rules to the specific steps. There are two types of navigation rules, as follows:

  • Navigation rules with predicates are represented by the ORKPredicateStepNavigationRule class. They...
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