[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-417800-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-417800-en":131,"doc-similar-417800":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","athena-client-a-community-python-sdk-for-programmatic-access-to-the-ohdsi-athena-vocabulary-repository","Athena-Client - A Community Python SDK for Programmatic Access to the OHDSI Athena Vocabulary Repository","","athena-client provides a resilient, developer-friendly Python SDK that enables fully programmatic access to the OHDSI Athena vocabulary repository. It wraps the JSON web-service endpoints behind the Athena UI, addressing the lack of an official public API. The library handles authentication, pagination, rate-limit back-offs, nested JSON, endpoint discovery, and schema validation, while offering layered interfaces for search, concept details, relationships, and validation. It supports automated concept exploration and complex cohort-building workflows with reliable retries and clear errors, improving reproducibility in analytic pipelines.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/athena-client-a-community-python-sdk-for-programmatic-access-to-the-ohdsi-athena-vocabulary-repository/417800/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/athena-client-a-community-python-sdk-for-programmatic-access-to-the-ohdsi-athena-vocabulary-repository/417800.png","ImageObject",300,407,{"name":42,"@type":43},"River Wang","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-09-28",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",21,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why does athena-client exist in the OHDSI ecosystem?","Question",{"text":63,"@type":64},"Athena provides an interactive interface but no official public API, forcing analysts to use manual downloads or ad-hoc scraping. athena-client fills this gap by wrapping Athena’s underlying JSON endpoints into a robust SDK.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What does the SDK handle automatically when accessing Athena?",{"text":68,"@type":64},"It manages authentication, pagination, and rate-limit back-offs, including adaptive retries when HTTP 429 occurs and re-authentication when session tokens expire.",{"name":70,"@type":61,"acceptedAnswer":71},"How do ConceptExplorer and ConceptSetGenerator help users?",{"text":72,"@type":64},"These modules support rapid exploration, scriptable workflows, validation against local OMOP databases, and construction of complex concept sets, including hierarchical relationships.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},417800,1790870512,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":97,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","Athena-Client: A Community Python SDK for Programmatic Access to the OHDSI Athena Vocabulary Repository  \nAlvaro A. Alvarez1,2 , Farnoosh Sheikhi1,2 , Priya Desai1,2  \n¹ Stanford Health Care , 2Stanford School of Medicine  \nBackground  \nThe Observational Health Data Sciences and Informatics (OHDSI) initiative distributes standardized clinical vocabularies through its Athena website. Although the site provides an interactive search interface, no official public API exists. Analysts who need scripted concept discovery therefore rely on manual downloads or ad-hoc scraping approaches that slow down iteration and jeopardise reproducibility. athena-client closes this gap by wrapping the JSON web-service endpoints consumed by the Athena UI in a resilient, developer-friendly SDK. The library transparently handles authentication, pagination, rate-limit back-offs, and deeply nested JSON, enabling rapid, automated vocabulary exploration and validation inside analytic pipelines [ 1] .  \nBuilding on feedback from our earlier research-software demo, Bridging the Language Gap: Generative Models for Efficient Medical Concept Discovery—an OHDSI 2024 Collaborator-Showcase honouree (demo video [3]; source code [4]) we now extend our contribution to support more complex cohort-building workflows.  \nMethods  \nThe athena-client library is built with a layered architecture to support robust and flexible interactions with OHDSI’s Athena vocabulary service. Its core layers include secure transport with retry logic, a client interface for searching and retrieving concept details, and  \nPydantic-based data models for easy export to common formats. Higher-level modules like the CLI, ConceptExplorer, and ConceptSetGenerator enable rapid concept exploration, scripting, and validation against local OMOP databases.  \nathena-client layered architecture is listed below:  \n\n| Layers | Functionality |\n| --- | --- |\n| Transport | Bearer-token + HMAC auth, exponential-back-off retries, and polite throttling |\n| Core Client | search, details, relationships, graph, and summary |\n| Data Models | Pydantic 2 objects such as export to dict, JSON, or pandas. DataFrame |\n\n\n| Layers | Functionality |\n| --- | --- |\n| CLI | Mirrors core API for shell scripting |\n| Exploration Modules | Concept Explorer (breadth-first traversal) and ConceptSetGenerator (database-backed validation) |\n\nThis library also adds endpoint discovery, schema validation, and adaptive retries since the underlying endpoints are not formally documented.  \nAt startup, the client automatically grabs Athena’s current API URL, and every JSON response is checked against a model; if the structure changes, you receive an immediate, readable error. Lastly, adaptive retries back off on [HTTP 429 and](HTTP 429 and) re-authenticates when session tokens expire ( Figure1) .  \nFigure 1 : Depicts how the SDK mediates between the user and Athena endpoints  \nAt Stanford, athena-client has been successfully implemented and it is available to install ([https://github.com/aandresalvarez/athena_client](https://github.com/aandresalvarez/athena_client)) in a Python framework (pip install  \nathena-client) . Additionally, this package has been properly tested and the usage examples are listed here.  \nResults  \nThe athena-client library successfully streamlines access to OHDSI’s standardized vocabularies by providing a fully programmatic interface to the Athena website. This package improves the scripted workflow that previously required manual navigation through the Athena UI by returning the results in both structured Python objects and tabular formats (e.g. , pandas DataFrames) . The ConceptExplorer and ConceptSetGenerator modules support complex concept set construction, validation, and hierarchical relationships, reducing the cognitive burden of concept discovery.  \nPython API Illustration  \nPython  \nfrom athena_client import Athena athena = Athena()  \n\\# Find aspirin (limit 3 hits) [hits = athena.search](hits = athena.search","cbCaikSrEAbjyqIZ","https://ap.wps.com/l/cbCaikSrEAbjyqIZ","pdf",381141,"English","# Background\n# Methods\n## Layered architecture\n# Results\n## Python API illustration\n## CLI equivalent\n# Conclusion\n# Disclaimer\n# Key Takeaway\n# References","[{\"question\":\"Why does athena-client exist in the OHDSI ecosystem?\",\"answer\":\"Athena provides an interactive interface but no official public API, forcing analysts to use manual downloads or ad-hoc scraping. athena-client fills this gap by wrapping Athena’s underlying JSON endpoints into a robust SDK.\"},{\"question\":\"What does the SDK handle automatically when accessing Athena?\",\"answer\":\"It manages authentication, pagination, and rate-limit back-offs, including adaptive retries when HTTP 429 occurs and re-authentication when session tokens expire.\"},{\"question\":\"How do ConceptExplorer and ConceptSetGenerator help users?\",\"answer\":\"These modules support rapid exploration, scriptable workflows, validation against local OMOP databases, and construction of complex concept sets, including hierarchical relationships.\"}]","Athena-Client - A Community Python SDK for Programmatic Access to the OHDSI Athena Vocabulary Repository | PDF",1790610657,13,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/528dd268d85792f7811bb00659df2d78.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/6b7d9beba5f356cd1c6283b23cfa59e8.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/da1d1838dbb4e97bf6d177cc42053e65.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/16bfd8453a19f0c0c9c3122049f33391.webp",980,1268,{"list":164,"token":11},[165,171,177,184,191,198,205,212,219,226],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":106,"category_name":29,"create_tm":170},686339,"Unified Interface for Large Language Model Interactions - Version 1.0.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999818307/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=IZMyZrGAcYeqch6wGNHvP1QaSLM%3D","unified-interface-for-large-language-model-interactions-version-100",1794037349,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":106,"category_name":29,"create_tm":176},693080,"Web API Design - The Missing Link - Best Practices for Crafting Interfaces that Developers Love","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004260706/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=ALVM1ksxPInxHXt1ahfvWagRT9c%3D","web-api-design-the-missing-link-best-practices-for-crafting-interfaces-that-developers-love",1794248330,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=8fK6ufeCxfoDZhcPCtCx3OiPCPI%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":29,"create_tm":190},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=FzTJeLnmuagzp5NGgGfO7J%2FzJXY%3D","xnx-universal-transmitter-installation-manual",854,1776135954,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":29,"create_tm":197},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=iLztqulLFSNwWsG2vSGdFfbR598%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":29,"create_tm":204},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=AOVMXMK1YSMaECrwyI%2Fd%2BBc%2FJvY%3D","free-fire-proxy-server",565,1776135932,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=TEMJJjIpT6zJqFEtmqxFAuOnNL4%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=yaSv6SNUJFv2LoCv6pytozhjG%2FU%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=pbmOB%2BtnpfghwCdmtGsBiWzJBOo%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169,{"doc_id":227,"doc_title":228,"file_type":138,"home_preview_img_url":229,"slug":230,"view_count":231,"category_name":29,"create_tm":232},14249,"EW 101: A First Course in Electronic Warfare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699258216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110319&Signature=%2BDXz6OWuepIlc%2BGyOW2ZgRE6LLA%3D","ew-101-a-first-course-in-electronic-warfare",438,1776558348]