Skip to main content

reecapi

This package provides a list of functions to facilitate access to the data offered by Registro Español de Estudios Clínicos in its REST API.

REEC does not offer any support for this library, which has been developed individually by the author from the documentation shown by REEC on its web site.

Installation

You can install the latest version of reecapi from Pypi with the following command.

# Install the PyPI version of the library
pip install reecapi

Usage

The library has 4 functions to access the records of REEC:

  1. get_trials_list(from_date, to_date = None, format = "json") :Extract all the trials published in REec or those that meet the criteria defined in the search parameters with the function:

    • from_date(str): Date from which you want to start downloading data. Correct format: "dd-MM-yyyy"
    • to_date (str, Optional): Date to which you want to download data. Correct format: "dd-MM-yyyy"
    • format (str, Optional): Type of response: "xml" or "json". Only "json" is implemented. Defaults to "json".
    # Get Clinical Trial Records from "01-01-2020" to "30-01-2020"
    get_trials_list(from_date = "01-01-2020", to_date = "30-01-2020")
    # Get Clinical Trial Records from "01-01-2020" until today.
    get_trials_list(from_date = "01-01-2020")
    
  2. get_trial_details(trial_id, format = "json") :Extract all the trials published in REec or those that meet the criteria defined in the search parameters with the function:

    • trial_id (str): Code that identifies the clinical trial from REec.
    • format (str, Optional): Type of response: "xml" or "json". Only "json" is implemented. Defaults to "json".
    # Get the Clinical Trial Record with id "2013-000491-14"
    get_trial_details(trial_id ="2013-000491-14")
    
  3. get_hospital_list(hospital_id = None, format = "json") :Extract all the trials published in REec or those that meet the criteria defined in the search parameters with the function:

    • hospital_id (numeric, Optional): Hospital code. Defaults to None.
    • format (str, Optional): Type of response: "xml" or "json". Only "json" is implemented. Defaults to "json".
    # Get the whole list of hospitals registered in the Ministry dictionary.
    get_hospital_list()
    # Get the list of hospitals registered in the Ministry dictionary with the hospital_id="25812"
    get_hospital_list(hospital_id=25812)
    
  4. get_primary_care_list(center_id = None, format = "json") :Extract all the trials published in REec or those that meet the criteria defined in the search parameters with the function:

    • center_id (numeric, optional): Primary primary care center code. Defaults to None.
    • format (str, Optional): Type of response: "xml" or "json". Only "json" is implemented. Defaults to "json".
     # Get the whole list of primary care centers registered in the Ministry dictionary.
    get_primary_care_list()
    # Get the list of primary care centers registered in the Ministry dictionary with the center_id="25812"
    get_primary_care_list(center_id=25812)
    

License

MIT License

You may also like…

  • Noytext - A web-based platform for annotating short-text documents to be used in applied text-mining based research.
  • ropenskyr - R library to get data from OpenSky Network API.

luisgasco.es · GitHub: @luisgasco · Twitter: @luisgasco · Facebook: Luis Gascó Sánchez page

Release files for reecapi 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reecapi 0.0.2
File Size Uploaded
reecapi-0.0.2.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reecapi 0.0.2
File Interpreter ABI Platform
reecapi-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / reecapi-0.0.2.tar.gz

Download URL reecapi-0.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a904e0adb4f419f98a207fc6c216778d943f6bfc7003b7630f1fc309ad44af9b
BLAKE2b-256 checksum
How to use checksums
446a122ccb8f5b0ff88b8094d213a851c4fe099f2330564f7c0a087c9799ef82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / reecapi-0.0.2-py3-none-any.whl

Download URL reecapi-0.0.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6a21e9bb764e60fb22242c90b22948916e83a9584efa17da92e086b999c4a12
BLAKE2b-256 checksum
How to use checksums
1055dc40b05eae48aaaa15b78b7a091af58eacb7e5e4fa223cdfa7903103ad38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page