submit_biobank_request
Queue a question for the All of Us biobank, answered later by a person.
Use it for questions only a large research cohort can answer, such as how common a variant is among participants with a condition. All of Us cannot be queried live: a person runs each question by hand and attaches the aggregate results, which takes days. Returns a request_id; check on it with get_biobank_request, or find it later with list_biobank_requests.
If the question involves the user's own variant, look it up first with query_variants and name the variant, not the user's genotype. One question per request. Submitting the same question while it is still open returns the existing request. A user can have at most 3 open requests.
Parameters
| Parameter | Description |
|---|---|
questionstring required | One question about the All of Us cohort, in plain words, for example 'Among participants carrying rs429358 C, how many have a diagnosis of Alzheimer disease?'. Ask about the cohort, never about the user. No names, contact details or genotypes. Up to 1,000 characters; longer text is cut. |
conditionsstring[] | null optional | Optional: condition names it is about. Up to 20. |
genesstring[] | null optional | Optional: gene symbols it is about. Up to 20. |
variantsstring[] | null optional | Optional: the variants it is about, as rsIDs or HGVS. Up to 20. |
Response
| Field | Description |
|---|---|
messagestring required | What happens next. Tell the user in your own words. |
request_idstring required | Pass this to |
statusstring required | queued, then in_progress while a person runs the query, then answered or declined. One of: |