Book Image

Getting Started with ResearchKit

By : Dhanush Balachandran, Edward Cessna
Book Image

Getting Started with ResearchKit

By: Dhanush Balachandran, Edward Cessna

Overview of this book

ResearchKit is an open source software development framework from Apple that lets you easily create mobile applications for clinical research studies. ResearchKit provides you the ability to orchestrate the administration of tasks and recording of the results. ResearchKit provides tasks in order to perform informed consent, active tasks, and surveys. Starting with the basics of the ResearchKit framework, this books walks you through the steps of creating iOS applications that could serve as the basis of a clinical research mobile app. This book will introduce readers to ResearchKit and how to turn your iPhone into into a clinical research tool. The book will start off by installing and building the research framework in line with the researcher's needs; during this, the reader will learn to embed ResearchKit in the application and create a small task. After this, the book will go a little deeper into creating modules for surveys, consents, and so on. The book will also cover the various aspects of privacy and security with regard to participant data, and how to build dashboards for visualizing medical data and results in line with the researcher's requirements: data backends, JSON serialization and deserialization, and so on. Readers will be able to fully utilize ResearchKit for medical research, will be able to get more and more patients to participate in their surveys, and will gain insights from the surveys using the dashboards created.
Table of Contents (15 chapters)

Hello World App


Let's get started on building the Hello World app.

Create project

Following are the steps to create simple Xcode application:

  1. Firstly, note that we will be using Xcode 7 and Swift 2.0 throughout this book and then open Xcode:

  2. Create a new HelloWorldRK project as shown in the following image:

Checkout ResearchKit from GitHub

Open the terminal app and cd in the HelloWorldRK folder, where the HelloWorldRK.xcodeproj file is located. Type the following command to check ResearchKit from the GitHub repository:

git clone https://github.com/ResearchKit/ResearchKit.git ResearchKit

Tip

In case you are using Git for version control of your project, it is recommended to check ResearchKit as a Git submodule. You can use the following command. You can learn more about Git submodules at https://git-scm.com/book/en/v2/Git-Tools-Submodules:

git submodule add https://github.com/ResearchKit/ResearchKit.git ResearchKit

Import ResearchKit

Open the ResearchKit folder in Finder, drag and drop ResearchKit...