get_biobank_request

read-onlyidempotent

Check on a biobank question: its status, and the answer once there is one.

A person answers each question by hand, so most checks find it still queued or in_progress, with a message saying it is not answered yet. Once answered, answer holds a summary with caveats, an aggregate table and the data release it came from. A declined request carries decline_reason instead.

Parameters

request_id
string
required

The request_id from submit_biobank_request or list_biobank_requests.

Response

answered_at
string | null
required

When it was answered or declined. Null while open.

biobank
string
required

all_of_us, the All of Us program.

conditions
string[] | null
required
genes
string[] | null
required
message
string
required

Where the request stands. Before an answer exists it says so; never present an open request as an empty result.

question
string
required
request_id
string
required

Pass this to get_biobank_request.

status
string
required

queued, then in_progress while a person runs the query, then answered or declined.

One of: "queued", "in_progress", "answered", "declined"

submitted_at
string
required
variants
string[] | null
required
answer
object
optional

Present only when status is answered.

answer.acknowledgment
string
required

Credit the biobank requires wherever these results are shown or shared. Include it with them.

answer.data_release
string | null
required

The biobank data release the query ran on.

answer.summary
string
required

What the results show, with caveats. Relay the caveats.

answer.table
object | null
required
answer.table.columns
string[]
required
answer.table.rows
((string | integer | number | null)[])[]
required

One list per row, in column order. A count can be a string such as "≤20": the biobank does not allow publishing counts from 1 to 20.

decline_reason
string
optional

Present only when status is declined.