umls-python-client


Nameumls-python-client JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://palasht75.github.io/umls-python-client-homepage/
SummaryUMLS Client for interacting with UMLS APIs including Search, Source, CUI, Semantic Network, and Crosswalk APIs.
upload_time2024-09-16 19:43:02
maintainerNone
docs_urlNone
authorPalash Thakur
requires_python>=3.9
licenseApache License 2.0
keywords umls api client python unified medical language system healthcare data umls-python umls-pyton-client umls-client umls-api py-umls
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Welcome to the UMLS Python Client

The **UMLS Python Client** is a comprehensive, modular, and user-friendly API client designed for healthcare developers and researchers. It offers seamless access to UMLS data, simplifying interactions with various healthcare terminologies and codes. Our client provides five distinct groups of APIs, encompassing every single REST API from UMLS with all query parameters and additional features.

## Why Choose UMLS Python Client

- **Modular Design**: Unlike other packages, our client is modular, providing separate APIs for each UMLS service. This modularity allows for easy integration and customization to meet your specific needs.

- **Comprehensive Coverage**: A one-stop destination that includes every UMLS REST API, ensuring you have access to all necessary endpoints and functionalities.

- **Enhanced Functionality**: Additional features like response formatting in RDF or JSON, file saving options, and extended functions built on top of existing endpoints enhance your development experience.

- **Best Practices Implementation**: Built using the latest best practices, including type hinting for improved code readability and proper error logging for easier debugging.

- **Future-Proof**: We promise support for all future changes to UMLS APIs, ensuring your projects remain up-to-date with the latest developments.

- **Comprehensive Documentation and Notebooks**: We provide detailed documentation and interactive Jupyter notebooks, which are not offered by others, to help you get started quickly and efficiently.

- **Open Source Collaboration**: Fully open for collaboration and improvement by the community. Your contributions are welcome to make this project even better.

## Available APIs

Our client divides all REST APIs into five main parts for better organization and ease of use:

### 1. Search API

Search for concepts using various parameters such as words, exact matches, and codes across UMLS terminologies.

- Perform basic, partial, and exact searches.
- Support for specific vocabularies like **SNOMEDCT_US**, **LOINC**, etc.
- Retrieve identifiers like CUIs and source-asserted identifiers.

### 2. CUI API

Retrieve information for Concept Unique Identifiers (CUIs) from the UMLS Metathesaurus.

- Get detailed information about specific CUIs.
- Fetch related atoms, ancestors, descendants, and relations for CUIs.

### 3. Source API

Fetch detailed information about source-asserted concepts or descriptors.

- Retrieve concepts and related terms from sources like **SNOMEDCT_US**, **LOINC**, and more.
- Access full hierarchies of concepts (ancestors, children, etc.).

### 4. Semantic Network API

Explore the UMLS Semantic Network and its relationships.

- Retrieve semantic type information for given TUIs (Type Unique Identifiers).
- Explore relationships between different semantic types.

### 5. Crosswalk API

Map codes between different terminologies and vocabularies in healthcare.

- Translate between various vocabularies like **SNOMED CT**, **ICD**, and **LOINC**.
- Facilitate interoperability between healthcare systems.

## Key Features

- **Automated Hierarchical Retrieval**: Fetch full hierarchies (ancestors, descendants) for any concept effortlessly.
- **Enhanced Response Formatting**: Convert UMLS data into RDF or JSON formats for semantic web applications and easy data manipulation.
- **File Output Support**: Save your API responses directly into files for easy storage and access.
- **Logging and Error Handling**: Track requests and responses with detailed logging and comprehensive error handling for invalid inputs, failed API requests, and more.
- **Type Hinting**: Code is written with type hints for better code readability and easier maintenance.
- **Customization**: Configure output formats and save data as needed to suit your workflow.

## How to Get Started

### 1. Install the Package

Install the UMLS Python Client using pip:

```bash
pip install umls-python-client
```

### 2. Initialize the Client

Initialize the `UMLSClient` with your API key:

```python
from umls_python_client import UMLSClient

api_key = "YOUR_API_KEY"
umls_client = UMLSClient(api_key=api_key)
```

### 3. Explore the APIs

You can explore the available APIs below:

| API Name               | Description                                      | Documentation Link                                             | Colab Notebook Link                                                                                                 |
|------------------------|--------------------------------------------------|----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
| **SearchAPI**          | Search the UMLS database for terms and concepts. | <a href="https://palasht75.github.io/umls-python-client-homepage/searchAPI" target="_blank">/searchAPI</a>           | <a href="https://colab.research.google.com/drive/1E70yM0It0qjfV_qit2qX83e9NB39lOzq?usp=sharing" target="_blank">Open in Colab</a>                          |
| **CUIAPI**             | Retrieve Concept Unique Identifier information.  | <a href="https://palasht75.github.io/umls-python-client-homepage/CUIAPI" target="_blank">/CUIAPI</a>                 | <a href="https://colab.research.google.com/drive/1dYm8-K_ZqjjDFcTppQaVXqUyD7GINpx_?usp=sharing" target="_blank">Open in Colab</a>                          |
| **SourceAPI**          | Access source-specific content in UMLS.          | <a href="https://palasht75.github.io/umls-python-client-homepage/sourceAPI" target="_blank">/sourceAPI</a>           | <a href="https://colab.research.google.com/drive/1ICQFoZqfsW6YvcaoRo-DtZR2QAWmqFI0?usp=sharing" target="_blank">Open in Colab</a>                          |
| **SemanticNetworkAPI** | Explore semantic relationships.                  | <a href="https://palasht75.github.io/umls-python-client-homepage/semanticNetworkAPI" target="_blank">/semanticNetworkAPI</a> | <a href="https://colab.research.google.com/drive/1fax_gKwGuNl6SamHiCEZ2nHeuahm3_tX?usp=sharing" target="_blank">Open in Colab</a>                          |
| **CrosswalkAPI**       | Map concepts across vocabularies.                | <a href="https://palasht75.github.io/umls-python-client-homepage/crosswalkAPI" target="_blank">/crosswalkAPI</a>     | <a href="https://colab.research.google.com/drive/1XWu1c3HTUcxJTyHDootYGLw7GTUkEURM?usp=sharing" target="_blank">Open in Colab</a>                          |

*Click on the documentation links to learn more about each API and use the Colab notebooks to try them out interactively.*
## Example Usage

Here's a quick example of how to use the **SearchAPI** to find information about "diabetes":

```python
from umls_python_client import UMLSClient

api_key = "YOUR_API_KEY"

# Initialize the SearchAPI class with your API key
search_api = UMLSClient(api_key=api_key).searchAPI

#############################
# Perform a Basic Search
#############################
logger.info("Performing a basic search query for the term 'diabetes':")
search_results = search_api.search(
    search_string="diabetes"
)
print(f"Search Results for 'diabetes': {search_results}")
```

## Documentation and Resources

- **Full Documentation**: <a href="https://palasht75.github.io/umls-python-client-homepage/" target="_blank">Homepage</a>
- **UMLS REST APIs Home**: <a href="https://documentation.uts.nlm.nih.gov/rest/home.html" target="_blank">UMLS API Documentation</a>

## Contribute

We welcome contributions from the community! If you have any improvements or new ideas, feel free to open a pull request or an issue on our GitHub repository.

- <a href="https://palasht75.github.io/umls-python-client-homepage/contributors" target="_blank">Contributors</a>

## Support and Future Updates

We are committed to maintaining and updating this client to support all future changes in the UMLS APIs. If you encounter any issues or have feature requests, please open an issue on our [GitHub repository](https://github.com/palasht75/umls-python-client/issues).

            

Raw data

            {
    "_id": null,
    "home_page": "https://palasht75.github.io/umls-python-client-homepage/",
    "name": "umls-python-client",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "UMLS, API client, Python, Unified Medical Language System, healthcare data, umls-python, umls-pyton-client, umls-client, umls-api, py-umls",
    "author": "Palash Thakur",
    "author_email": "palasht75@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/73/f8/fc9ffa2a606cc414900d60bd9ae5b8a4ced4af9ca503dbc05ac28e7dc513/umls-python-client-1.0.5.tar.gz",
    "platform": null,
    "description": "# Welcome to the UMLS Python Client\r\n\r\nThe **UMLS Python Client** is a comprehensive, modular, and user-friendly API client designed for healthcare developers and researchers. It offers seamless access to UMLS data, simplifying interactions with various healthcare terminologies and codes. Our client provides five distinct groups of APIs, encompassing every single REST API from UMLS with all query parameters and additional features.\r\n\r\n## Why Choose UMLS Python Client\r\n\r\n- **Modular Design**: Unlike other packages, our client is modular, providing separate APIs for each UMLS service. This modularity allows for easy integration and customization to meet your specific needs.\r\n\r\n- **Comprehensive Coverage**: A one-stop destination that includes every UMLS REST API, ensuring you have access to all necessary endpoints and functionalities.\r\n\r\n- **Enhanced Functionality**: Additional features like response formatting in RDF or JSON, file saving options, and extended functions built on top of existing endpoints enhance your development experience.\r\n\r\n- **Best Practices Implementation**: Built using the latest best practices, including type hinting for improved code readability and proper error logging for easier debugging.\r\n\r\n- **Future-Proof**: We promise support for all future changes to UMLS APIs, ensuring your projects remain up-to-date with the latest developments.\r\n\r\n- **Comprehensive Documentation and Notebooks**: We provide detailed documentation and interactive Jupyter notebooks, which are not offered by others, to help you get started quickly and efficiently.\r\n\r\n- **Open Source Collaboration**: Fully open for collaboration and improvement by the community. Your contributions are welcome to make this project even better.\r\n\r\n## Available APIs\r\n\r\nOur client divides all REST APIs into five main parts for better organization and ease of use:\r\n\r\n### 1. Search API\r\n\r\nSearch for concepts using various parameters such as words, exact matches, and codes across UMLS terminologies.\r\n\r\n- Perform basic, partial, and exact searches.\r\n- Support for specific vocabularies like **SNOMEDCT_US**, **LOINC**, etc.\r\n- Retrieve identifiers like CUIs and source-asserted identifiers.\r\n\r\n### 2. CUI API\r\n\r\nRetrieve information for Concept Unique Identifiers (CUIs) from the UMLS Metathesaurus.\r\n\r\n- Get detailed information about specific CUIs.\r\n- Fetch related atoms, ancestors, descendants, and relations for CUIs.\r\n\r\n### 3. Source API\r\n\r\nFetch detailed information about source-asserted concepts or descriptors.\r\n\r\n- Retrieve concepts and related terms from sources like **SNOMEDCT_US**, **LOINC**, and more.\r\n- Access full hierarchies of concepts (ancestors, children, etc.).\r\n\r\n### 4. Semantic Network API\r\n\r\nExplore the UMLS Semantic Network and its relationships.\r\n\r\n- Retrieve semantic type information for given TUIs (Type Unique Identifiers).\r\n- Explore relationships between different semantic types.\r\n\r\n### 5. Crosswalk API\r\n\r\nMap codes between different terminologies and vocabularies in healthcare.\r\n\r\n- Translate between various vocabularies like **SNOMED CT**, **ICD**, and **LOINC**.\r\n- Facilitate interoperability between healthcare systems.\r\n\r\n## Key Features\r\n\r\n- **Automated Hierarchical Retrieval**: Fetch full hierarchies (ancestors, descendants) for any concept effortlessly.\r\n- **Enhanced Response Formatting**: Convert UMLS data into RDF or JSON formats for semantic web applications and easy data manipulation.\r\n- **File Output Support**: Save your API responses directly into files for easy storage and access.\r\n- **Logging and Error Handling**: Track requests and responses with detailed logging and comprehensive error handling for invalid inputs, failed API requests, and more.\r\n- **Type Hinting**: Code is written with type hints for better code readability and easier maintenance.\r\n- **Customization**: Configure output formats and save data as needed to suit your workflow.\r\n\r\n## How to Get Started\r\n\r\n### 1. Install the Package\r\n\r\nInstall the UMLS Python Client using pip:\r\n\r\n```bash\r\npip install umls-python-client\r\n```\r\n\r\n### 2. Initialize the Client\r\n\r\nInitialize the `UMLSClient` with your API key:\r\n\r\n```python\r\nfrom umls_python_client import UMLSClient\r\n\r\napi_key = \"YOUR_API_KEY\"\r\numls_client = UMLSClient(api_key=api_key)\r\n```\r\n\r\n### 3. Explore the APIs\r\n\r\nYou can explore the available APIs below:\r\n\r\n| API Name               | Description                                      | Documentation Link                                             | Colab Notebook Link                                                                                                 |\r\n|------------------------|--------------------------------------------------|----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|\r\n| **SearchAPI**          | Search the UMLS database for terms and concepts. | <a href=\"https://palasht75.github.io/umls-python-client-homepage/searchAPI\" target=\"_blank\">/searchAPI</a>           | <a href=\"https://colab.research.google.com/drive/1E70yM0It0qjfV_qit2qX83e9NB39lOzq?usp=sharing\" target=\"_blank\">Open in Colab</a>                          |\r\n| **CUIAPI**             | Retrieve Concept Unique Identifier information.  | <a href=\"https://palasht75.github.io/umls-python-client-homepage/CUIAPI\" target=\"_blank\">/CUIAPI</a>                 | <a href=\"https://colab.research.google.com/drive/1dYm8-K_ZqjjDFcTppQaVXqUyD7GINpx_?usp=sharing\" target=\"_blank\">Open in Colab</a>                          |\r\n| **SourceAPI**          | Access source-specific content in UMLS.          | <a href=\"https://palasht75.github.io/umls-python-client-homepage/sourceAPI\" target=\"_blank\">/sourceAPI</a>           | <a href=\"https://colab.research.google.com/drive/1ICQFoZqfsW6YvcaoRo-DtZR2QAWmqFI0?usp=sharing\" target=\"_blank\">Open in Colab</a>                          |\r\n| **SemanticNetworkAPI** | Explore semantic relationships.                  | <a href=\"https://palasht75.github.io/umls-python-client-homepage/semanticNetworkAPI\" target=\"_blank\">/semanticNetworkAPI</a> | <a href=\"https://colab.research.google.com/drive/1fax_gKwGuNl6SamHiCEZ2nHeuahm3_tX?usp=sharing\" target=\"_blank\">Open in Colab</a>                          |\r\n| **CrosswalkAPI**       | Map concepts across vocabularies.                | <a href=\"https://palasht75.github.io/umls-python-client-homepage/crosswalkAPI\" target=\"_blank\">/crosswalkAPI</a>     | <a href=\"https://colab.research.google.com/drive/1XWu1c3HTUcxJTyHDootYGLw7GTUkEURM?usp=sharing\" target=\"_blank\">Open in Colab</a>                          |\r\n\r\n*Click on the documentation links to learn more about each API and use the Colab notebooks to try them out interactively.*\r\n## Example Usage\r\n\r\nHere's a quick example of how to use the **SearchAPI** to find information about \"diabetes\":\r\n\r\n```python\r\nfrom umls_python_client import UMLSClient\r\n\r\napi_key = \"YOUR_API_KEY\"\r\n\r\n# Initialize the SearchAPI class with your API key\r\nsearch_api = UMLSClient(api_key=api_key).searchAPI\r\n\r\n#############################\r\n# Perform a Basic Search\r\n#############################\r\nlogger.info(\"Performing a basic search query for the term 'diabetes':\")\r\nsearch_results = search_api.search(\r\n    search_string=\"diabetes\"\r\n)\r\nprint(f\"Search Results for 'diabetes': {search_results}\")\r\n```\r\n\r\n## Documentation and Resources\r\n\r\n- **Full Documentation**: <a href=\"https://palasht75.github.io/umls-python-client-homepage/\" target=\"_blank\">Homepage</a>\r\n- **UMLS REST APIs Home**: <a href=\"https://documentation.uts.nlm.nih.gov/rest/home.html\" target=\"_blank\">UMLS API Documentation</a>\r\n\r\n## Contribute\r\n\r\nWe welcome contributions from the community! If you have any improvements or new ideas, feel free to open a pull request or an issue on our GitHub repository.\r\n\r\n- <a href=\"https://palasht75.github.io/umls-python-client-homepage/contributors\" target=\"_blank\">Contributors</a>\r\n\r\n## Support and Future Updates\r\n\r\nWe are committed to maintaining and updating this client to support all future changes in the UMLS APIs. If you encounter any issues or have feature requests, please open an issue on our [GitHub repository](https://github.com/palasht75/umls-python-client/issues).\r\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "UMLS Client for interacting with UMLS APIs including Search, Source, CUI, Semantic Network, and Crosswalk APIs.",
    "version": "1.0.5",
    "project_urls": {
        "Documentation": "https://github.com/palasht75/umls-python-client",
        "Homepage": "https://palasht75.github.io/umls-python-client-homepage/",
        "Source": "https://github.com/palasht75/umls-python-client",
        "Tracker": "https://github.com/palasht75/umls-python-client/issues"
    },
    "split_keywords": [
        "umls",
        " api client",
        " python",
        " unified medical language system",
        " healthcare data",
        " umls-python",
        " umls-pyton-client",
        " umls-client",
        " umls-api",
        " py-umls"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f6abab5dd47df9cca5a5acfcb80fbbb19e15fa9b6eeab08a5304ce18ba6d3a2e",
                "md5": "093c743aabbe08b2e4a37590bfc9dda6",
                "sha256": "6f64f9206bb77bd48321530fc977281911497ba24baebbe47112e90b563a7331"
            },
            "downloads": -1,
            "filename": "umls_python_client-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "093c743aabbe08b2e4a37590bfc9dda6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 35839,
            "upload_time": "2024-09-16T19:43:01",
            "upload_time_iso_8601": "2024-09-16T19:43:01.015783Z",
            "url": "https://files.pythonhosted.org/packages/f6/ab/ab5dd47df9cca5a5acfcb80fbbb19e15fa9b6eeab08a5304ce18ba6d3a2e/umls_python_client-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73f8fc9ffa2a606cc414900d60bd9ae5b8a4ced4af9ca503dbc05ac28e7dc513",
                "md5": "0a4a381671dd52955419babb3ec8623d",
                "sha256": "66a3aa74c0999adf71c0ac64c1a2ca135c48d6a42d19ef767768b04d04af9966"
            },
            "downloads": -1,
            "filename": "umls-python-client-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0a4a381671dd52955419babb3ec8623d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 28342,
            "upload_time": "2024-09-16T19:43:02",
            "upload_time_iso_8601": "2024-09-16T19:43:02.690115Z",
            "url": "https://files.pythonhosted.org/packages/73/f8/fc9ffa2a606cc414900d60bd9ae5b8a4ced4af9ca503dbc05ac28e7dc513/umls-python-client-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-16 19:43:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "palasht75",
    "github_project": "umls-python-client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "umls-python-client"
}
        
Elapsed time: 0.34758s