+ SAS/R Reporting REDCapCon New York City August 14-17, 2017.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

Theresa A Scott Vanderbilt Institute for Clinical & Translational Research (VICTR) CRC Research Skills Workshop Fri August.
CSO’s 2014 Training & Networking Conference | Austin, TX | Copyright © 2014 CSO Research, Inc. Wonderful World of Data Cleanup Keenan & Mona.
7/15/14 Terri Shkuda Research Informatics
Welcome Data Imports Instant Imports & How to Create an Import File Ryan McIntire Digital Measures.
Millennium Scheduler. 2 Scheduler How to find “Scheduler” Overview Making a task Making a schedule Bugs ________________________________________ More.
Quality Assurance CS 615. Mission Statement The Quality Assurance team will provide assurance to stakeholders in CS-615/616 projects that their projects.
Understanding SAS Data Step Processing Alan C. Elliott stattutorials.com.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Sue Lowry Biostatistical Design and Analysis Center (BDAC) Clinical and Translational Science Institute Academic Health Center University of Minnesota.
REDCap Introduction User Group Meeting By J Kevan Essmyer Acknowledgements: Paul Harris.
REDCap at UVM Presented by Diantha Howard, CCTS Biomedical Informatics September 2011.
Integrating and managing your Engaging Networks data Top ten data features.
RTSUG 04Feb2014: Beyond Directory Listings in SAS By: Jim Worley.
Welcome!. Print Options PDF Comma-Separated Values (CSV) Formatted Excel New Features in Analysis.
National Oesophago-Gastric Cancer Audit Clinical Audit Platform How to Register, Submit and View Reports CAP: |
EPIB 698C Lecture 2 Notes Instructor: Raul Cruz 2/14/11 1.
I OWA S TATE U NIVERSITY Department of Animal Science Getting Your Data Into SAS (Chapter 2 in the Little SAS Book) Animal Science 500 Lecture No. 3 September.
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
EPI 218 Queries and On-Screen Forms Michael A. Kohn, MD, MPP 9 August 2012.
Here’s another problem (see section 2.13 on page 54). A file contains two different types of records (say A’s and B’s) and we only want to read in the.
Data, data, data In-depth session on data integration.
Mr C Johnston ICT Teacher
Davisware GlobalEdge 2008 Payroll Main Menu Time Entry and Payroll Processing.
Interactions & Automations
Lesson 2 Topic - Reading in data Programs 1 and 2 in course notes –Chapter 2 (Little SAS Book)
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Session 3 -2 Session 3 FAA Access to CPS Online – Designed for Efficiency.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 5 & 6 By Ravi Mandal.
Hints and Tips SAUSAG Q SORTING – NOUNIQUEKEY The NOUNIQUEKEY option on PROC SORT is a useful way in 9.3 to easily retain only those records with.
Survey Training Pack Session 14 – Transferring CSPro, Access and Excel Files to SPSS.
DU REDCap Introduction
REDCap General Overview
Data quality & VALIDATION
Ryan Cantor, MSPH Director of Statistical Reporting, Intermacs
Project Work Order Generator
Preventive Maintenance Agreements
Data-Basics Training & Support
REDCap New Features LTS 6.15.x
Metrics Replication Presentation for Maryland Staff September 26, 2002
Programming Standards and Practices
On-line Registration.
Texas Assessment Management System Student Directory and Send Files
Logan-Hocking Schools
Introduction to SAS®.
Instructor: Raul Cruz-Cano 7/9/2012
Chapter 2: Getting Data into SAS
FIZZ Database General presentation.
SSID ENROLLMENT Capabilities and Key Concepts
Two “identical” programs
SAS Programming Introduction to SAS.
Data File Import / Export
REDCap Plugin Examples From VICTR Data Core Team
Building Configurable Forms
Adding and editing students and student test settings
REDCap Data Migration from CSV file
The Role of HIT in Pay for Performance
JDXpert Workday Integration
Upload/Download Receipts
CIS16 Application Programming with Visual Basic
InControl R2 Overview Running Reports.
Training course Part 2: Administration tasks
California Automated Immunization Registry CASA Audit Process San Luis Obispo County Public Health Clinics Karen Turner, Regional Registry Coordinator,
Clinical Trials Website Redesign
Queries Training Module.
Automating SAS through the Power of VB Script
How to Use i2b2 URL to i2b2: Questions?
REDCap External Modules
Training Document Accessing Reports in VinCENT.
New direction in clinical trial recruitment
Presentation transcript:

+ SAS/R Reporting REDCapCon New York City August 14-17, 2017

REDCap and SAS/R Reporting Exporting options Importing options SAS/R operations Automation What do you do?

REDCap and SAS/R Reporting Exporting options: Manual from REDCap raw data vs labels full data vs form-specific file naming: REDCap default vs “save as” API plus cURL (or other) create form-specific files control archiving and file naming scheduled (chron job) or ad hoc

REDCap and SAS/R Reporting Importing options: REDCap SAS/R syntax Custom-written syntax Other code generator

REDCap and SAS Reporting %macro removeOldFile(bye); %if %sysfunc(exist(&bye.)) %then %do; proc delete data=&bye.; run; %end; %mend removeOldFile; %removeOldFile(work.redcap);   data REDCAP; %let _EFIERR_ = 0; infile 'CTSIWorkshopProject_DATA_NOHDRS_2017-01-10_0816.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=1 ; informat redcap_num best32. ; informat redcap_event_name $500. ; informat clinic $500. ; informat id $500. ; informat age best32. ; informat asthma best32. ; informat language best32. ; informat imm best32. ; informat medhx best32. ; informat othstudy best32. ; informat elig best32. ; informat consent best32. ; informat el_eligibility_complete best32. ; informat sex best32. ; informat dob yymmdd10. ; informat marital best32. ; informat ethnic best32. ; informat race___1 best32. ; informat race___2 best32. ; informat race___3 best32. ; informat race___4 best32. ; informat race___5 best32. ; informat race___6 best32. ; informat oracesp $500. ; informat dem_demographics_complete best32. ; informat hamd_hamilton_depres_v_0 best32. ; informat cssrs_suicide_rating_v_1 best32. ; informat scidip_psychotic_scr_v_2 best32. ; informat mphx_medicalpsychiat_v_3 best32. ; informat life_longitudinal_in_v_4 best32. ; format redcap_num best12. ; format redcap_event_name $500. ; format clinic $500. ; format id $500. ; format age best12. ; format asthma best12. ; format language best12. ; format imm best12. ; format medhx best12. ; format othstudy best12. ; format elig best12. ; format consent best12. ; format el_eligibility_complete best12. ; format sex best12. ; format dob yymmdd10. ; format marital best12. ; format ethnic best12. ; format race___1 best12. ; format race___2 best12. ; format race___3 best12. ; format race___4 best12. ; format race___5 best12. ; format race___6 best12. ; format oracesp $500. ; format dem_demographics_complete best12. ; format hamd_hamilton_depres_v_0 best12. ; format cssrs_suicide_rating_v_1 best12. ; format scidip_psychotic_scr_v_2 best12. ; format mphx_medicalpsychiat_v_3 best12. ; format life_longitudinal_in_v_4 best12. ; input redcap_num redcap_event_name $ clinic $ id $ age asthma language imm medhx othstudy elig consent el_eligibility_complete sex dob marital ethnic race___1 race___2 race___3 data redcap; set redcap; label redcap_num='REDCap Number'; label redcap_event_name='Event Name'; label clinic='Clinical Site'; label id='Participant ID'; label age='Age< 18'; label asthma='Diagnosed with asthma'; label language='English or Spanish speaking'; label imm='Immunocompromised'; label medhx='History of diabetes or kidney disease'; label othstudy='Enrolled in another research study'; label elig='Eligibility, calculated from inclusion and exclusion criteria'; label consent='Did patient sign informed consent?'; label el_eligibility_complete='Complete?'; label sex='1. Gender'; label dob='2. Date of Birth'; label marital='3. Marital status'; label ethnic='4. Ethnicity'; label race___1='5. Race (choice=White)'; label race___2='5. Race (choice=Black)'; label race___3='5. Race (choice=Asian)'; label race___4='5. Race (choice=Native American)'; label race___5='5. Race (choice=Hawaiian or Pacific Islander)'; label race___6='5. Race (choice=Other race)'; label oracesp='5.1 Other race, specify'; label dem_demographics_complete='Complete?'; label hamd_hamilton_depres_v_0='Complete?'; label cssrs_suicide_rating_v_1='Complete?'; label scidip_psychotic_scr_v_2='Complete?'; label mphx_medicalpsychiat_v_3='Complete?'; label life_longitudinal_in_v_4='Complete?'; run;   proc format; value $redcap_event_name_ eval_1_arm_1='Eval 1' eval_2_arm_1='Eval 2' eval_3_arm_1='Eval 3' week_4_arm_1='Week 4' week_8_arm_1='Week 8' week_16_arm_1='Week 16'; value $clinic_ A='(A) Farmer''s Urgicare' B='(B) Holloway Family Practice' C='(C) Patients Best Choice' D='(D) Smallville Pediatrics'; value age_ 1='Yes' 0='No'; value asthma_ 1='Yes' 0='No'; value language_ 1='Yes' 0='No'; value imm_ 1='Yes' 0='No'; value medhx_ 1='Yes' 0='No'; value othstudy_ 1='Yes' 0='No'; value consent_ 1='Yes' 0='No' REDCap SAS syntax informat redcap_num best32. ; informat redcap_event_name $500. ; informat clinic $500. ; informat id $500. ; informat age best32. ; informat race___1 best32. ; informat race___2 best32. ; informat race___3 best32. ; informat race___4 best32. ; informat race___5 best32. ; informat race___6 best32. ;

REDCap and SAS Reporting %macro removeOldFile(bye); %if %sysfunc(exist(&bye.)) %then %do; proc delete data=&bye.; run; %end; %mend removeOldFile; %removeOldFile(work.redcap);   data REDCAP; %let _EFIERR_ = 0; infile 'CTSIWorkshopProject_DATA_NOHDRS_2017-01-10_0816.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=1 ; informat redcap_num best32. ; informat redcap_event_name $500. ; informat clinic $500. ; informat id $500. ; informat age best32. ; informat asthma best32. ; informat language best32. ; informat imm best32. ; informat medhx best32. ; informat othstudy best32. ; informat elig best32. ; informat consent best32. ; informat el_eligibility_complete best32. ; informat sex best32. ; informat dob yymmdd10. ; informat marital best32. ; informat ethnic best32. ; informat race___1 best32. ; informat race___2 best32. ; informat race___3 best32. ; informat race___4 best32. ; informat race___5 best32. ; informat race___6 best32. ; informat oracesp $500. ; informat dem_demographics_complete best32. ; informat hamd_hamilton_depres_v_0 best32. ; informat cssrs_suicide_rating_v_1 best32. ; informat scidip_psychotic_scr_v_2 best32. ; informat mphx_medicalpsychiat_v_3 best32. ; informat life_longitudinal_in_v_4 best32. ; format redcap_num best12. ; format redcap_event_name $500. ; format clinic $500. ; format id $500. ; format age best12. ; format asthma best12. ; format language best12. ; format imm best12. ; format medhx best12. ; format othstudy best12. ; format elig best12. ; format consent best12. ; format el_eligibility_complete best12. ; format sex best12. ; format dob yymmdd10. ; format marital best12. ; format ethnic best12. ; format race___1 best12. ; format race___2 best12. ; format race___3 best12. ; format race___4 best12. ; format race___5 best12. ; format race___6 best12. ; format oracesp $500. ; format dem_demographics_complete best12. ; format hamd_hamilton_depres_v_0 best12. ; format cssrs_suicide_rating_v_1 best12. ; format scidip_psychotic_scr_v_2 best12. ; format mphx_medicalpsychiat_v_3 best12. ; format life_longitudinal_in_v_4 best12. ; input redcap_num redcap_event_name $ clinic $ id $ age asthma language imm medhx othstudy elig consent el_eligibility_complete sex dob marital ethnic race___1 race___2 race___3 data redcap; set redcap; label redcap_num='REDCap Number'; label redcap_event_name='Event Name'; label clinic='Clinical Site'; label id='Participant ID'; label age='Age< 18'; label asthma='Diagnosed with asthma'; label language='English or Spanish speaking'; label imm='Immunocompromised'; label medhx='History of diabetes or kidney disease'; label othstudy='Enrolled in another research study'; label elig='Eligibility, calculated from inclusion and exclusion criteria'; label consent='Did patient sign informed consent?'; label el_eligibility_complete='Complete?'; label sex='1. Gender'; label dob='2. Date of Birth'; label marital='3. Marital status'; label ethnic='4. Ethnicity'; label race___1='5. Race (choice=White)'; label race___2='5. Race (choice=Black)'; label race___3='5. Race (choice=Asian)'; label race___4='5. Race (choice=Native American)'; label race___5='5. Race (choice=Hawaiian or Pacific Islander)'; label race___6='5. Race (choice=Other race)'; label oracesp='5.1 Other race, specify'; label dem_demographics_complete='Complete?'; label hamd_hamilton_depres_v_0='Complete?'; label cssrs_suicide_rating_v_1='Complete?'; label scidip_psychotic_scr_v_2='Complete?'; label mphx_medicalpsychiat_v_3='Complete?'; label life_longitudinal_in_v_4='Complete?'; run;   proc format; value $redcap_event_name_ eval_1_arm_1='Eval 1' eval_2_arm_1='Eval 2' eval_3_arm_1='Eval 3' week_4_arm_1='Week 4' week_8_arm_1='Week 8' week_16_arm_1='Week 16'; value $clinic_ A='(A) Farmer''s Urgicare' B='(B) Holloway Family Practice' C='(C) Patients Best Choice' D='(D) Smallville Pediatrics'; value age_ 1='Yes' 0='No'; value asthma_ 1='Yes' 0='No'; value language_ 1='Yes' 0='No'; value imm_ 1='Yes' 0='No'; value medhx_ 1='Yes' 0='No'; value othstudy_ 1='Yes' 0='No'; value consent_ 1='Yes' 0='No' REDCap SAS syntax informat redcap_num 8. redcap_event_name $15. clinic $12. id $10. age 8. ; informat race___1 best32. ; informat race___2 best32. ; informat race___3 best32. ; informat race___4 best32. ; informat race___5 best32. ; informat race___6 best32. ;

REDCap and SAS Reporting %macro removeOldFile(bye); %if %sysfunc(exist(&bye.)) %then %do; proc delete data=&bye.; run; %end; %mend removeOldFile; %removeOldFile(work.redcap);   data REDCAP; %let _EFIERR_ = 0; infile 'CTSIWorkshopProject_DATA_NOHDRS_2017-01-10_0816.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=1 ; informat redcap_num best32. ; informat redcap_event_name $500. ; informat clinic $500. ; informat id $500. ; informat age best32. ; informat asthma best32. ; informat language best32. ; informat imm best32. ; informat medhx best32. ; informat othstudy best32. ; informat elig best32. ; informat consent best32. ; informat el_eligibility_complete best32. ; informat sex best32. ; informat dob yymmdd10. ; informat marital best32. ; informat ethnic best32. ; informat race___1 best32. ; informat race___2 best32. ; informat race___3 best32. ; informat race___4 best32. ; informat race___5 best32. ; informat race___6 best32. ; informat oracesp $500. ; informat dem_demographics_complete best32. ; informat hamd_hamilton_depres_v_0 best32. ; informat cssrs_suicide_rating_v_1 best32. ; informat scidip_psychotic_scr_v_2 best32. ; informat mphx_medicalpsychiat_v_3 best32. ; informat life_longitudinal_in_v_4 best32. ; format redcap_num best12. ; format redcap_event_name $500. ; format clinic $500. ; format id $500. ; format age best12. ; format asthma best12. ; format language best12. ; format imm best12. ; format medhx best12. ; format othstudy best12. ; format elig best12. ; format consent best12. ; format el_eligibility_complete best12. ; format sex best12. ; format dob yymmdd10. ; format marital best12. ; format ethnic best12. ; format race___1 best12. ; format race___2 best12. ; format race___3 best12. ; format race___4 best12. ; format race___5 best12. ; format race___6 best12. ; format oracesp $500. ; format dem_demographics_complete best12. ; format hamd_hamilton_depres_v_0 best12. ; format cssrs_suicide_rating_v_1 best12. ; format scidip_psychotic_scr_v_2 best12. ; format mphx_medicalpsychiat_v_3 best12. ; format life_longitudinal_in_v_4 best12. ; input redcap_num redcap_event_name $ clinic $ id $ age asthma language imm medhx othstudy elig consent el_eligibility_complete sex dob marital ethnic race___1 race___2 race___3 data redcap; set redcap; label redcap_num='REDCap Number'; label redcap_event_name='Event Name'; label clinic='Clinical Site'; label id='Participant ID'; label age='Age< 18'; label asthma='Diagnosed with asthma'; label language='English or Spanish speaking'; label imm='Immunocompromised'; label medhx='History of diabetes or kidney disease'; label othstudy='Enrolled in another research study'; label elig='Eligibility, calculated from inclusion and exclusion criteria'; label consent='Did patient sign informed consent?'; label el_eligibility_complete='Complete?'; label sex='1. Gender'; label dob='2. Date of Birth'; label marital='3. Marital status'; label ethnic='4. Ethnicity'; label race___1='5. Race (choice=White)'; label race___2='5. Race (choice=Black)'; label race___3='5. Race (choice=Asian)'; label race___4='5. Race (choice=Native American)'; label race___5='5. Race (choice=Hawaiian or Pacific Islander)'; label race___6='5. Race (choice=Other race)'; label oracesp='5.1 Other race, specify'; label dem_demographics_complete='Complete?'; label hamd_hamilton_depres_v_0='Complete?'; label cssrs_suicide_rating_v_1='Complete?'; label scidip_psychotic_scr_v_2='Complete?'; label mphx_medicalpsychiat_v_3='Complete?'; label life_longitudinal_in_v_4='Complete?'; run;   proc format; value $redcap_event_name_ eval_1_arm_1='Eval 1' eval_2_arm_1='Eval 2' eval_3_arm_1='Eval 3' week_4_arm_1='Week 4' week_8_arm_1='Week 8' week_16_arm_1='Week 16'; value $clinic_ A='(A) Farmer''s Urgicare' B='(B) Holloway Family Practice' C='(C) Patients Best Choice' D='(D) Smallville Pediatrics'; value age_ 1='Yes' 0='No'; value asthma_ 1='Yes' 0='No'; value language_ 1='Yes' 0='No'; value imm_ 1='Yes' 0='No'; value medhx_ 1='Yes' 0='No'; value othstudy_ 1='Yes' 0='No'; value consent_ 1='Yes' 0='No' REDCap SAS syntax informat redcap_num 8. redcap_event_name $15. clinic $12. id $10. age 8. ; informat white black asian amerind hawaipac other 8.;

REDCap and SAS Reporting REDCap SAS syntax value sq_trblfall_ 1='No, not in the last 4 weeks' 2='Yes, less than once a week' 3='Yes, 1 or 2 times a week' 4='Yes, 3 or 4 times a week' 5='Yes, 5 or more times a week' ; value sq_wakesvrl_ value sq_wakeearl_ 3='Yes, 1 or 2 times a week‘ proc format; value sq_trblfall_ 1='No, not in the last 4 weeks' 2='Yes, less than once a week' 3='Yes, 1 or 2 times a week' 4='Yes, 3 or 4 times a week' 5='Yes, 5 or more times a week' ; value sq_wakesvrl_ value sq_wakeearl_ value sq_trblbck_

REDCap and SAS Reporting REDCap SAS syntax proc format; value sq_trblfall_ 1='No, not in the last 4 weeks' 2='Yes, less than once a week' 3='Yes, 1 or 2 times a week' 4='Yes, 3 or 4 times a week' 5='Yes, 5 or more times a week' ; value sq_wakesvrl_ value sq_wakeearl_ value sq_trblbck_ value sleepfrq 1='No, not in the last 4 weeks' 2='Yes, less than once a week' 3='Yes, 1 or 2 times a week' 4='Yes, 3 or 4 times a week' 5='Yes, 5 or more times a week' ;

REDCap and SAS Reporting Custom code generator: SASGEN.sas reads from data dictionary writes single informat, input, label, and format statements renames checklist vars to choice-names consolidates formats to unique set creates uniform set of SAS programs for database loading

REDCap and SAS/R Reporting SAS/R operations: Combine exported data with other data laboratory results health record extractions related data from other REDCap projects

REDCap and SAS/R Reporting SAS/R operations: Quality control checks confirm REDCap validations (range, etc.) complex longitudinal checks logical checks with data from other sources create reports for study personnel to make corrections in REDCap

REDCap and SAS/R Reporting SAS/R operations: Administrative reporting accrual and retention reports visit and forms completeness database status - outstanding QC checks Dissemination of reports post to study website / shared server directed email, e.g QC to coordinator archive reports

REDCap and SAS/R Reporting Automation: Nightly batch file API + cURL export SAS import (overwrite, not append) SAS reporting - quality control - administrative reports (weekly) - dissemination driver (post or email) LogScan: email to DM daily - program execution errors/warnings - all is well

REDCap and SAS/R Reporting What do you do?