예제 #1
0
def get_initial_nct_detail(recrs, cond, locn):
    recrs = of.format_search_terms(recrs)
    cond = of.format_search_terms(cond)
    locn = of.format_search_terms(locn)
    url = 'http://clinicaltrials.gov/search?cond=%s&recrs=%s&locn=%s&displayxml=true' % (cond, recrs, locn)
    print(url)
    return get_initial_nct_from_url(url)
예제 #2
0
def get_initial_nct_patient(cond, locn):
    cond = of.format_search_terms(cond)
    locn = of.format_search_terms(locn)
    url = 'http://clinicaltrials.gov/search?cond=%s&recrs=recrs&type=intr&locn=%s&displayxml=true' % (
        cond, locn)
    print(url)
    return get_initial_nct_from_url(url)
예제 #3
0
def search(txt, npag):
    print('txt:', txt)
    print('npag:', npag)

    txt = of.format_search_terms(txt)
    url = 'http://clinicaltrials.gov/search?term=%s&displayxml=true' % txt
    return retrieve_trials(url, npag)
예제 #4
0
def search(txt, npag):
    txt = of.format_search_terms(txt)
    url = 'http://clinicaltrials.gov/search?cond=%s&displayxml=true' % txt
    return retrieve_trials(url, npag)
예제 #5
0
def get_initial_nct(txt):
    txt = of.format_search_terms(txt)
    url = 'http://clinicaltrials.gov/search?cond=%s&displayxml=true' % txt
    return get_initial_nct_from_url(url)
예제 #6
0
def get_initial_nct(txt):
    txt = of.format_search_terms(txt)
    #url = 'http://clinicaltrials.gov/search?term=%s&displayxml=true' % txt
    url = 'https://clinicaltrials.gov/api/query/field_values?expr=%s&field=NCTId' % txt
    return get_initial_nct_from_url(url)
예제 #7
0
def search (txt, npag):
    txt = of.format_search_terms (txt)
    url = 'http://clinicaltrials.gov/search?term=%s&displayxml=true' % txt
    return retrieve_trials (url, npag)
예제 #8
0
def get_initial_nct (txt):
    txt = of.format_search_terms (txt)
    url = 'http://clinicaltrials.gov/search?term=%s&displayxml=true' % txt
    return get_initial_nct_from_url (url)