# Ask the assistant about an RWE study — question sheet

Fill in the fields below, then paste the block into Calculate's assistant
(**Ask the assistant** in the top bar, or the **Ask Calculate** panel on the
dashboard and **Briefings**) and choose **Query assistant**. The assistant stages work
for a person to review: it can find concepts, draft a private cohort definition,
choose an analysis template and draft a narrative briefing. It never approves,
signs, locks or publishes a record.

The assistant works from the words of your question only. It does not open the
cohort, the analysis dataset or the enclave snapshot you name, even when the
question names them. Fill in the fields anyway: they are your record of the
pinned inputs, and you check the assistant's drafts against them.

## Fill in

| Field | Value |
|---|---|
| Study | `<study name>` (Control) |
| Analysis dataset | `<dataset name>`, CDM version `<cdm version>` |
| Enclave snapshot | `<snapshot hash>` (the enclave's **Latest snapshot**: select the enclave after **Runs in** on your workspace) |
| Cohort definition | `<cohort name>`, version `<version>` |
| Index date | `cohort_start_date`, first qualifying episode |
| Follow-up | `<start>` to `<end>`; censoring: `<rules>` |
| Estimand | `<summary measure>`, `<population>` |

## Question

> For the study `<study name>`, draft a cohort definition that answers:
> **`<question>`**. The population is `<population>`, the index date is
> `<index date>`, the outcome is `<outcome>` and the contrast is `<contrast>`.
>
> State the concept sets you would use with their OMOP concept ids, the index
> date and follow-up window, and the covariates you would adjust for. Mark
> anything you inferred. Do not approve,
> sign or publish anything — stage the draft for review.

## Good questions and poor questions

A question is answerable when it names the population, the index date, the
outcome and the contrast. Compare:

| Poor | Why it fails | Better |
|---|---|---|
| "How many diabetic patients do we have?" | No index date, no definition of "diabetic" — any number would be the count of a different cohort. | "How many people have at least two type 2 diabetes diagnoses between 2018 and 2024, with continuous enrolment for 365 days before the first?" |
| "Is metformin better than sulfonylurea?" | Names no outcome, no follow-up window and no estimand. | "Among new users of metformin or a sulfonylurea aged 18+, what is the hazard ratio for first hospitalisation for myocardial infarction over 730 days, adjusted for age, sex and prior hospitalisation?" |
| "Clean up our data." | Names no check and no threshold. | "Which Kahn completeness checks currently fall below the org's 0.90 floor on database A, and which CDM tables drive them?" |

## Before you accept a staged draft

1. Read every concept set item — the assistant's concept search returns
   standard concepts, but only a person can decide the clinical definition.
2. The staged draft holds concepts only, with no index event or windows, and
   it has no page of its own. Rebuild it as a new cohort in the cohort builder,
   applying the index date, windows and covariates from the answer; that gives
   it a count and an attrition waterfall. Compare each step against the
   protocol's eligibility criteria; an unexplained step is a definition defect,
   not a data-quality finding.
3. Compare the draft with your pinned cohort version. The assistant did not
   read the cohort, dataset or snapshot you recorded, and a count it shows is
   measured on the enclave's current data, not on your recorded snapshot.
4. The draft requires every inclusion concept, so a question that contrasts two
   treatments can return one draft that requires both. Define each exposure
   group as its own cohort.

## Questions that belong somewhere else

| If you want | Go to |
|---|---|
| A signed protocol amendment | Control — the e-signature approval path |
| A de-identified release of a dataset | Conduct — governance → releases |
| A sealed, immutable dataset snapshot for computation | Conduct dataset → its enclave snapshot |
| A submission-grade output package | Calculate — Submit (readiness → emit → review) |
