Skip to content

All of Us Research Primer

Task-based reference for querying the All of Us Researcher Workbench CDR. Each page answers one "how do I do X" question with exact code, parameters, and inline Pitfall warnings for silent-wrong-answer traps.

Audience: fluent in SQL and pandas. No language basics here.

How to use this

Looking up a specific task? Find it in the Reference index below. Building a full pipeline? See the Guides below — they chain Reference pages into end-to-end workflows with the connective reasoning between steps.

Callout key: - Pitfall — something that produces a wrong answer silently. Inline, at the point of danger. The most important callout in the doc. - Note — clarifying aside, not critical to correctness. - Version note — behavior that differs by CDR release.


Reference

Environment

Cohort Definition

Demographics & Ancestry

Conditions & Phenotypes

Labs & Measurements

Medications

Temporal Windowing

Genomics

Cost Awareness

Surveys

  • Query survey responses — Pull and decode responses from AoU survey modules (The Basics, COPE, SDOH, etc.).

Procedures

Visits

Data Quality

Statistical Modeling


Glossary

Glossary — CDR, Registered/Controlled Tier, index date, carrier, P/LP, FDR, dry run, OMOP CDM, concept_id, and more. Linked from every page that uses these terms.

Pitfall Index

Pitfall Index — every Pitfall callout from all 23 Reference pages, grouped by failure mode (missing denominator, temporal leakage, ancestry confounding, vocabulary errors, unit/encoding errors, provenance mixing, cost traps). Use as a pre-submission checklist.

Template

Reference page template — the fixed structure every Reference page follows.

Contributing

Technical contributions must be battle tested in the All of Us Researcher Workbench before submission. See the contributing guide for validation evidence, privacy requirements, content placement, and the pull request checklist.


Guides

End-to-end workflows that chain Reference pages into complete pipelines. Each Guide shows the pipeline shape and connective reasoning; full code lives on the linked Reference pages.


27 Reference pages · 4 Guides · Validated against Pan-Cancer Germline Predisposition Project cookbook (CDR v8, August 2026).