SOPS
Remember, all necessary credentials can be retrieved with get_credentials("resource_name") - See Susan if issues
TO DO:
- Session form qualtrics is script & SOP for visits
- Pre-visit checklist
- Consent needs to be revised
- Install FollowMee instructions
- Android
- ✓ iOS
- ✓ Administer FollowMee
- Post-visit
- OnCore
- Create GUID
- PRISM data updates
- Payment
- Compliance
Pre-enrollment SOPs
- Scheduling consent/intake visits
- Directly screening from voicemails
Visit SOPs
- Consent/Intake Visit
- Midstudy Visit
- Final Visit & Exit Interview
- Rescheduling Instructions
Data SOPs
- PRISM
- Onboarding
- Updating
- FollowMee onboarding
- Onboarding
- Updating
- Study termination/offboarding
- Scheduling Scripts
Administration SOPs
- Oncore
- Participant payments
- CT oversight
- Adherence
- Data integrity
- NDA data upload
Participant communication SOPs & Templates
- Onboarding
- Tech troubleshootng
- Reschedulng
- Payment
- Adherence
SOP tech components
This section lists the required tech actions for each SOP
Consent SOP
- Send participant the consent form link with their screen_id included in the URL
- Completion of the consent form leads to the onboarding form
- Completion of the onboarding form leads to the birth pedigree form
- Run the new_participant.qmd script
- Ask them to confirm their phone number
- Ask their EMA times
SOPS
Scheduling Scripts in PRISM
PRISM now checks the proj_optimize repo (specifically, the automation subfolder at the root) for R scripts to be run.
- If we need to change the location of scripts to be run, or add a new location, first edit prism/prism/src/run_prism.py and prism/prism/src/task_managers/_run_r_script.py in prism/prism/src/task_managers. NOTE: this step will be deprecated after Colin moves these hardcoded paths to a config_paths.csv file
- Put the script to be run in proj_optimize/automation
- Open prism/prism/config/system_task_schedule.csv
- Duplicate one of the lines that begins with “RUN_R_SCRIPT” and change the r_script_path to the name of your R script you wish to add
- Edit the system_time to the time you wish the script to be run.
- NOTE: If you wish to run the script multiple times per day, it must have a row added with each time you wish it to run.
- You will then need to end and restart the PRISM server:
- Go into the CMD window that shows the prism log.
- Hit ctrl-C a couple of times until it exits to the prompt.
- Then hit the up arrow to bring up the last command, and hit enter to restart the server!
- Note that PRISM does not save logs for each script individually, but saves all log events by day.
- Go to prism/prism/logs/transcripts and pick a log file by day.
- Open it in a text editor (Notepad is fastest) and search for “SUCCESS - RUN_R_SCRIPT”, hit Find Next till you locate your specific task, and you will see the script output below that.
NDA Data upload
- Check PRISM logs to make sure download_qualtrics.R has been run since the participant enrolled.
- Ensure that each new participant has had a GUID created with GUID data tool and create_bulk_guid.qmd (see Susan if uncertain)
- From a machine with restricted drive access, run format_nda_data.qmd
- Log into NDA with your login.gov credentials
- Go to Tools, then “Validation and Upload Tool”, then click “Launch the HTML Validation and Upload Tool”.
- Hit “Create new submission”
- Drag the newly created files to the box and then hit Validate. If there are errors, they will need to be corrected - See Susan.
- Once there are only warnings and no errors, hit Build Package.
- Use today’s date to name the dataset and description: eg, “2026_1001 Upload” for both.
- Check the confirmation and hit Submit Data