Skip to main content

Library to access to the data offered by the 'Registro Español de Estudios Clínicos'

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reecapi-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reecapi-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file reecapi-0.0.2.tar.gz.

File metadata

  • Download URL: reecapi-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for reecapi-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a904e0adb4f419f98a207fc6c216778d943f6bfc7003b7630f1fc309ad44af9b
MD5 9a8419c0ed6f83041706a4c8b69e5198
BLAKE2b-256 446a122ccb8f5b0ff88b8094d213a851c4fe099f2330564f7c0a087c9799ef82

See more details on using hashes here.

File details

Details for the file reecapi-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: reecapi-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for reecapi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a21e9bb764e60fb22242c90b22948916e83a9584efa17da92e086b999c4a12
MD5 e173d76ad4de79c211ad2161da130f6e
BLAKE2b-256 1055dc40b05eae48aaaa15b78b7a091af58eacb7e5e4fa223cdfa7903103ad38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page