REDCAP BRANCHING LOGIC CLASS. September 20, 2017

Similar documents
REDCap Longitudinal Studies Class (201) September 20, 2017

REDCAP INTRODUCTION CLASS. November 9, 2017

REDCAP DATA DICTIONARY CLASS. November 9, 2017

REDCap Advanced Database Management (303)

REDCap Importing and Exporting (302)

REDCAP INTRODUCTION CLASS. June 7, 2016

Introduction to. Sponsored by the Pediatric Research Office (PRO)

Cite: CTSA NIH Grant UL1- RR024982

REDCap Project Design Guide

Rupinder Mann, PEng, PMP. Program Manager, Research Informatics

REDCap Data Dic+onary

Basic User Guide. Seton Healthcare Family Use Only

Research Electronic Data Capture

Audio is in normal text below. Timestamps are in bold to assist in finding specific topics.

Basic User Guide Created By: 1 P a g e Last Modified: 11/7/2016

REDCap Overview. REDCap questions to Last updated 12/12/2018 for REDCap v6.13.1

The Basics. As of December 12, 2016

REDCap Advanced Surveys (RC-304)

How to use eprescribe 5/24/2014

ITMAT/CHPS mhealth Service Introduction. Mauricio Novelo Project director, mhealth mobile device program, ITMAT/CHPS

Project Setup Page Information Guide

RC201 Creating Data Forms in REDCap. Paul Litwin - Collaborative Data Services (CDS)

Survey Queues Vanderbilt University

Making the Most of. Beyond the Basics. Speaker: Julissa Acevedo, REDCap Administrator

Getting Started. WCHRI Clinical Research Informatics 10/23/2015 1

PhenX Toolkit Homepage

Physician Quality Reporting System Program Year Group Practice Reporting Option (GPRO) Web Interface XML Specification

Interfacing to the PCEHR from Best Practice

2015 Vanderbilt University

Doing Math: Scientific Notation Scientific notation is a way to show (and do math with) very small or very large numbers b 10 c

Make View: Check Code

REDCap s Linear Data Entry Workflow (LDEW) External Module: Introduction and Guide to Setting It Up in your Project

Global South-South Development Expo November 2017 Antalya, Turkey. Presented By

Build Projects. General. How to Build Instruments. What is REDCap (Research Electronic Data Capture) 1. 2.

Piping values onto other REDCap Instrument forms

TUTORIAL: PEDIATRIC EMERGENCY MEDICINE Connect/Online

ehealth Ministerial Conference 2013 Dublin May 2013 Irish Presidency Declaration

Transform data - Compute Variables

JavaScript Functions, Objects and Array

Guide to SciVal Experts

MICROSOFT EXCEL BASIC FORMATTING

QUILLEN ETSU PHYSICIANS

The National Medical Device Information Sharing & Analysis Organization (MD-ISAO) Initiative Session 2, February 19, 2017 Moderator: Suzanne

My Care Plus Your reference guide. MyCarePlusOnline.com

Getting Started Guide for HR Admins

Instructions for implementing Monitoring and Community using epals

penelope case management software DOCUMENT BUILDING v4.0 and up

SystmOne Mobile Working

Version Sept2017. Hummingbird IRB Approved 09/19/2017

REDCap Automated Survey Invitations

National Child Measurement Programme 2017/18. IT System User Guide part 5. Progress and Data Quality Monitoring.

Statistical and Computational Challenges in Combining Information from Multiple data Sources. T. E. Raghunathan University of Michigan

Javelin Workbench Tutorial. Version 3.0 September, 2009

Overview of the Multi-Payer Claims Database (MPCD)

REDCap User s Manual

REDCap Survey Participant List

Informatics Common Metric Pre-Pilot Landscape Assessment

REDCap Indiana University Release Notes

New Protocol - expedited & full board

Andre Hackman Department of Biostatistics Biostatistics Center Bloomberg School of Public Health September 28, 2016

Some useful resources. Data-mining

2014 Meaningful Use Attestation and CMS Audit Preparedness

Driving Global Resilience

Optional Modules and Customizations User Guide

VIPR 2019 User Training Web Access / URL

Registering and submitting data for multiple healthcare organizations... 4

& Staff) Contents. 2) Enter a title

HCS XMedius User Documentation

SPACE for SDGs a Global Partnership

Version Vanderbilt University

Patient Safety Initiatives Implementation (WP5): Presentation of Main Outcomes

Provider Communication. July Version: 1.0

The Labs21 Benchmarking Tool

Media (NEM) Initiative

Mobile Health (mhealth) Solutions. Build and deploy mhealth apps with a modern Low-code approach

Vertebral Compression Fracture Registry User Guide

This session will cover new features, enhancements, improvements, and bug fixes for Acquisitions & Circulation

CITYnvest Graphic and Web Development

Exercising Rights Under the GDPR

Adding Automated Dispensing Devices in Facility Maintenance...53 Adding Products to a Device in Facility Maintenance...54 Modifying an Automated Dispe

Nexus EHR Patient Portal

Using Forums in the VLE

What s New in Blackboard Faculty Tutorial

Identifying Duplicate Persons in SACWIS

Interactive Data Submission System (IDSS) Frequently Asked Questions

Follow these steps to get started: o Launch MS Access from your start menu. The MS Access startup panel is displayed:

Medical-Treatment Dictionary

To launch the Enrollment module and create an enrollment; click on your Menu > Enrollment

CPRD Aurum Frequently asked questions (FAQs)

Sustainable Consumption and Production

TASK ADMINISTRATION. Setting Up the Room

ERROR MESSAGES TROUBLESHOOTING... 2 OASIS SUBMISSION ERROR MESSAGES... 3 OASIS FILE PROCESSING ERROR MESSAGES... 3

OnCore Enterprise Research. Subject Administration Full Study

Matt Quinn.

DHCS PPSDS. End User Guide. Applies to: California DHCS. WITS Version 18.0+

Presented by National CyberWatch Center March 31, April 1 & 2, 2016 Johns Hopkins University Applied Physics Lab Laurel, Maryland

Interactive Data Submission System (IDSS) Frequently Asked Questions

Workshop on semantic interoperability

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

New Protocol - emergency use training guide

Transcription:

REDCAP BRANCHING LOGIC CLASS September 20, 2017

LEARNING OBJECTIVES Branching logic basics Simple statements Complex statements Special functions Longitudinal branching logic Interplay with action tags Creative uses of branching logic

ITHS Focus Speeding science to clinical practice for the benefit of patients and communities. Promotes translation of scientific discovery by: q q q Fostering innovative research Cultivating multi-disciplinary partnerships Training the next generation of researchers More information: www.iths.org Laboratory Clinic Community 3

BRANCHING LOGIC 4

What s Branching Logic? The art of hiding or showing fields Based on previously entered values Limited to a single project Drag and Drop Method: q The easy way q Reduced flexibility Advanced Syntax Method: Adds flexibility to your instruments q q q q The hard way Programming experience helps Allows you to get creative Can be used both in the online interface and in the data dictionary 5

Reversing your thought process Logic located in the source question Directs you to skip to a question down the line Very linear Hard to account for complex logic Mostly found on paper forms Classic skip logic Logic located in the destination question Hides or shows the question Allows for multiple logic pathways (e.g. Inclusion criteria) Can get very complex Extensive used in REDCap Branching logic 6

The language of logic in REDCap And Statement q and Or statement Logic q or Equals statement q = Not statement q <> Standard math q +, -, /, * Comparing q >, <, >=, <= Order of operation q Parentheses () Math 7

Building a basic logic statement End result always needs to be a true or a false Define the variable q Brackets (e.g. [variable1] ) q q Use the variable name instead of the field label Brackets are also used for event definition (e.g. [baseline_arm_1][variable1] ) Put in an operator q e.g. =, <>, >=, <=, >, < Declare you comparison value q q q Can be a hard value like a number or a date Can be another variable Use of single quotes is optional Double quotes allowed, not recommended [age_of_child] >= 18 8

Branching logic example 1 Simple statement (single/radio) Basic statements Simple (Single/Checkbox) And Or Not Empty Complex statements Logic context You want to ask the question: Is the participant on Medicare? But this is only relevant for people over 65. Needed elements Variable: [age] Operator: >= Comparison value: 65 Branching logic statement [age] >= 65 9

Branching logic example 2 Simple statement (checkbox) Basic statements Simple (Single/Checkbox) And Or Not Empty Complex statements Logic context You want to ask the question: Did the participant get vaccinated for malaria? But this is only relevant for people who recently went to a country where malaria is prevalent. Needed elements Variable: [country(3)] Operator: = Comparison value: 1 Branching logic statement [country(3)] = 1 10

Branching logic example 3 And statement Basic statements Simple (Single/Checkbox) And Or Not Empty Complex statements Logic context You want to ask the question: How did the medication affect your allergy symptoms? But this is only relevant for people who have allergy symptoms and take the medication. Needed elements Variables: [allergy] and [symptoms] Operator: = Comparison value: 1 Branching logic statement [allergy] = 1 and [symptoms] = 1 11

Branching logic example 4 Or statement Basic statements Simple (Single/Checkbox) And Or Not Empty Complex statements Logic context You display a warning to warn for ineligibility when a participant is either a smoker or a drug user. Needed elements Variables: [smoker] and [drugs] Operator: = Comparison value: 1 Branching logic statement [smoker] = 1 or [drugs] = 1 12

Branching logic example 5 Not statement Basic statements Simple (Single/Checkbox) And Or Not Empty Complex statements Logic context You want to ask the question: Have you ever had heart attack-like symptoms? But you only want to ask this when people have NOT had a heart attack before. Needed elements Variable: [heart_attack] Operator: <> Comparison value: 1 Branching logic statement [heart_attack] <> 1 13

Branching logic example 6 Empty statement Basic statements Simple (Single/Checkbox) And Or Not Empty Complex statements Logic context You want to display a warning when the date of birth field has not been filled out. But the warning needs to disappear if the date of birth field has a value in it. Needed elements Variable: [dob] Operator: = Comparison value: (two single quotes) Branching logic statement [dob] = 14

Branching logic example 7 Complex statement Basic statements Complex statements Date differential Sum Contains If Nested If Logic context You want to display a question about mid life crisis, but only when the participant is outside of the standard mid life crisis age range and the date of birth field has been filled out. Needed elements Variable: [age], [dob] Operator: >=, <=, <> Comparison value: 0, 39, 63, 120, Branching logic statement (two single quotes) ([age] >= 0 and [age] <= 39 and [dob] <> ) or ([age] >= 63 and [age] <= 120 and [dob] <> ) (([age] >= 0 and [age] <= 39 ) or ([age] >= 63 and [age] <= 120 )) and [dob] <> 15

Branching logic example 8 Date differential Basic statements Complex statements Date differential Sum Contains If Nested If Logic context You want to display a question about how somebody s heart attack affected their work life, but only if they had the heart attack when they were younger than 65. Needed elements Variable: [dob], [date_of_attack] Function: datediff([date1],[date2],"units","format") Operator: <= Comparison value: 65 Branching logic statement (datediff([dob],[date_of_attack], y, mdy )) < 65 16

Branching logic example 9 Sum statement Basic statements Complex statements Date differential Sum Contains If Nested If Logic context You want to ask a question about depression when the total score of a depression scoring tool reaches above a certain value. Needed elements Variable: [depr1], [depr2], [depr3] Function: sum() Operator: >= Comparison value: 4 Branching logic statement (sum([depr1],[depr2],[depr3]))>= 4 17

Branching logic example 10 Contains statement Basic statements Complex statements Date differential Sum Contains If Nested If Logic context You want to ask for a survey respondents private email if they provide an university email address in their initial response. Needed elements Variable: [email] Function: contains() Comparison value:.edu Branching logic statement contains([email],.edu ) 18

Branching logic example 11 If statement Logic context Basic statements Complex statements Date differential Sum Contains If Nested If You want to ask a question about depression when the total score of a depression scoring tool reaches above a certain value. However, you ve built in a prefer not to answer response for the first question that you coded as 99. You need to filter out this response from your logic. Needed elements Variable: [depr1], [depr2], [depr3] Function: if(), sum() Operator: >=,= Comparison value: 4, 99, 0 Branching logic statement (sum( (if([depr1]= 99, 0,[depr1])),[depr2],[depr3]))>= 4 19

Branching logic example 12 Nested if statement Logic context Basic statements Complex statements Date differential Sum Contains If Nested If You want to ask a question about depression when the total score of a depression scoring tool reaches above a certain value. However, you ve built in a prefer not to answer response for the first question that you coded as 99. You ve also added an option for unknown (98). You need to filter out these responses from your logic. Needed elements Variable: [depr1], [depr2], [depr3] Function: if(), sum() Operator: >=,= Comparison value: 4, 99, 98, 0 Branching logic statement (sum( (if([depr1]= 99, 0, (if([depr1]= 98, 0,[depr1])))),[depr2],[depr3]))>= 4 20

Branching logic More functions Basic statements Complex statements Date differential Sum Contains If Other functions Location For other complex functions look in the FAQ Examples: FAQ section on functions (Links to the ITHS REDCap installation) Rounding Square root Mean Median Exponents Minimum/Maximum Standard deviation Logarithm Is a number? 21

Diagram your logic 22

Longitudinal Branching Logic Classic Branching logic Define the variable Put in an operator Declare you comparison value [age_of_child] >= 18 Longitudinal Branching Logic Define the event [baseline_arm_1][age_of_child] >= 18 Define the variable Put in an operator Declare you comparison value 23

Interplay with action tags Action tags and branching logic can be used concurrently if desired. Most action tags do not affect branching logic Exceptions: Action tags usually "win out" over branching logic @HIDDEN Hides the field regardless of the logic result @DEFAULT Will only prefill a field if the field is shown initially. If it's hidden with logic the @DEFAULT tag will not work. 24

Creative Use: Cascading logic Cascading logic can greatly simplify all your logic statements. Each statement would only need to look at it's presceding variable Use cascading logic to simplify your logic e.g. Cascading medication lists: Variable Cas. logic Non cascading logic rx1 rx2 [rx1]<>"" [rx1]<>"" rx3 [rx2]<>"" [rx1]<>"" and [rx2]<>"" rx4 [rx3]<>"" [rx1]<>"" and [rx2]<>"" and [rx3]<>"" 25

Creative Use: Score evalution Adding logic to descriptive fields is a great way of communicating certain results e.g Scoring tool evaluation: Combing logic with descriptive fields to show situational messages Calculated field that generates a score Three descriptive fields: Below average Average Above average Example: https://is.gd/logicdemo 26

Thank You 27

Questions? 28

CONNECT WITH ITHS www.iths.org @ITHS_UW /ithsuw /InstituteofTranslationalHealthSciences 29

Visit ITHS.org to Become an ITHS Member Join a unique catalyst that accelerates discoveries to practice. Access Members gain access the different research services, resources, and tools offered by ITHS, including the ITHS Research Navigator. Education and Training Members can access a variety of workforce development and mentoring programs and apply for formal training programs. Funding Members can apply for local and national pilot grants and other funding opportunities. ITHS also offers letters of support for grant submissions. Collaboration Members can connect with collaborators across the CTSA consortium. 30