Home / What 12 trial registrations can tell us / Study protocol and materials
ClinicalTrials.gov
Study protocol and materials
What 12 trial registrations can tell us
The study protocol, variable definitions and verification code for the published dataset.
Study protocol #
Clinical studies of depression
Working plan for methodological review.
Research question
Which study designs, registration statuses and registry-posted results appear in the saved selection of depression studies?
Unit of observation
One row represents a registered study with an NCT ID. Enrollment is the participant count reported in the record. The dataset contains study-level information only.
Data
ClinicalTrials.gov · Snapshot of 20 October 2026. The archived selection consists of 12 studies.
1. Define the scope of the search
The original condition filter was depression. For a new review, specify synonyms, interventions, age limits, dates and inclusion criteria. Save the search string and retrieval date.
2. Create a comparable table
Use the NCT ID as the key. Distinguish INTERVENTIONAL from OBSERVATIONAL designs, and ACTUAL from ESTIMATED enrollment. The field has_posted_results describes results posted in the registry. It does not capture all scientific publications.
3. Extend the search and check its coverage
Follow subsequent API pages using nextPageToken, remove duplicate NCT IDs and save the responses. A systematic review would require additional sources and a separate selection protocol.
Limitations
The same 12 selected records were retrieved again on 23 October 2026. The CSV fields were unchanged. This teaching selection covers one part of the depression registry search and does not constitute a systematic review.
The saved query was query.cond=depression&pageSize=12. The response indicated another page was available. Registry entries and statuses can change. For a new study, repeat the query and record the version. NCT links lead to the official registry. No individual participant observations were obtained for this package.
Documentation
Variable dictionary #
nct_id
NCT ID. Identifier of the registered study.
string · ID
title
Title. Study title in the saved registry response.
string
status
Status. Study status reported in the registry.
string
study_type
Study type. Design type according to the registry.
string
enrollment
Enrollment. Interpret this count using enrollment_type. It describes enrollment reported in the registry and does not count downloaded participant observations.
integer · participants reported in the record
enrollment_type
Enrollment type. ACTUAL or ESTIMATED. A null means that no value was provided.
string
has_posted_results
Results posted in the registry. Whether the registry contains posted study results. This flag does not establish whether scientific articles have been published.
boolean
Data provenance #
{
"data_period": "Снимок 2026-10-20",
"coverage": {
"page_size": 12,
"complete_search": false,
"has_next_page": true,
"participant_rows_downloaded": 0
},
"retained_source_responses": [
{
"file": "downloads/revision-2026-10-23/responses/clinicaltrials-same-12-studies.json",
"sha256": "09acc41ffc3f633b47a41e4013760116ff225985387512e733b1f569f08da5ff",
"retrieved_at": "2026-10-23T00:30:53.703427+00:00",
"url": "https://clinicaltrials.gov/api/v2/studies?filter.ids=NCT03645096%2CNCT00961454%2CNCT06961851%2CNCT02502929%2CNCT03063931%2CNCT07604753%2CNCT01940237%2CNCT06772701%2CNCT03509077%2CNCT05774665%2CNCT06291467%2CNCT03721900&pageSize=12&format=json&countTotal=true",
"truncated": false
},
{
"url": "https://clinicaltrials.gov/api/v2/studies?query.cond=depression&pageSize=12&format=json",
"file": "raw/v4/clinicaltrials/studies.json",
"sha256": "1391399837f58230041236c777379886acaf01286238b9d4ed075db610bd8c40",
"retrieved_at": "2026-10-20T18:26:18.283507+00:00"
}
],
"derived_csv_sha256": "e854971a4af6a4ebe845636a88f20e7ae962a48be8fb6c30fe065d8fa665c157",
"notes": [
"Это одна страница найденных метаданных. Поиск не является систематическим обзором всех исследований темы.",
"Число enrollment не означает доступность индивидуальных данных. Поле has_posted_results не доказывает наличие или отсутствие публикаций.",
"Повторная проверка 23.10.2026: получены те же 12 NCT ID; семь полей CSV не изменились. Это выбранный учебный набор, не полный реестр и не новая случайная выдача."
],
"references": [
{
"label": "Документация API",
"url": "https://clinicaltrials.gov/data-api/api"
}
]
}
Data verification script #
"""Check the supplied data and package integrity. Python 3; no extra libraries."""
from pathlib import Path
import csv, json, hashlib, collections
root=Path(__file__).resolve().parent
manifest=json.loads((root/'manifest.json').read_text())
for item in manifest['files']:
actual=hashlib.sha256((root/item['path']).read_bytes()).hexdigest()
assert actual==item['sha256'], 'Changed file: '+item['path']
with (root/'data.csv').open(encoding='utf-8-sig',newline='') as f:
reader=csv.DictReader(f); rows=list(reader)
dictionary=json.loads((root/'dictionary.json').read_text())
assert reader.fieldnames==[c['name'] for c in dictionary], 'Column mismatch'
assert len(rows)==manifest['rows'], 'Row count mismatch'
keys=manifest['key_columns']
assert all(all(r[k] for k in keys) for r in rows), 'Missing key'
assert len({tuple(r[k] for k in keys) for r in rows})==len(rows), 'Duplicate key'
missing={c:sum(r[c]=='' for r in rows) for c in reader.fieldnames}
report={'rows':len(rows),'unique_keys':True,'missing_by_column':missing,'file_integrity':'verified'}
if manifest['case_id']=='sleep':
assert all(18<=float(r['RIDAGEYR'])<=80 for r in rows)
assert all(0<=float(r['PHQ9_SCORE'])<=27 for r in rows if r['PHQ9_SCORE'])
assert all(0<=float(r['PHQ9_WITHOUT_SLEEP'])<=24 for r in rows if r['PHQ9_WITHOUT_SLEEP'])
complete=sum(bool(r['SLD012']) and bool(r['PHQ9_SCORE']) for r in rows)
assert complete==manifest['complete_pairs'], 'Complete-pair count mismatch'
report['complete_sleep_phq9_pairs']=complete
report['zero_MEC_weights']=sum(float(r['WTMEC2YR'])==0 for r in rows)
report['interpretation']='Unweighted file audit, not a population estimate or association analysis.'
elif manifest['case_id']=='trials':
report['status_counts']=dict(collections.Counter(r['status'] for r in rows))
report['interpretation']='One retained API page; enrollment is not a count of downloaded patients.'
else:
assert [int(r['year']) for r in rows]==manifest['expected_years']
assert all(r['country_iso3']=='RUS' for r in rows)
assert all(0<=float(r['unemployment_pct_labor_force'])<=100 for r in rows)
report['interpretation']='Population time series; no individual risk or causal effect is estimated.'
(root/'data-check.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n')
print(json.dumps(report,ensure_ascii=False,indent=2))