跳到正文

药品不良事件信号检测

从真实不良事件报告中计算与解释信号指标,区分报告模式、统计关联和已确认的因果证据。

开源精选医疗业务9 个文件1,738 Stars浏览次数 0mims-harvard/ToolUniverse Apache-2.0版本 8c6ed47
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
药物、事件与查询条件 真实报告资料和分析环境 阅读本节完整说明
交付内容
不良事件信号分析 计算过程与证据说明 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

TOOL_REFERENCE.md

Verified parameter names, response formats, and fallback chains for all tools used in this skill.


FAERS Tools (OpenFDA-based)

Tool Key Parameters Notes
FAERS_count_reactions_by_drug_event medicinalproduct (REQUIRED), patientsex, patientagegroup, occurcountry Returns [{term, count}]
FAERS_count_seriousness_by_drug_event medicinalproduct (REQUIRED), patientsex, patientagegroup, occurcountry Returns [{term: "Serious"/"Non-serious", count}]
FAERS_count_outcomes_by_drug_event medicinalproduct (REQUIRED), patientsex, patientagegroup, occurcountry Returns [{term: "Fatal"/"Recovered"/..., count}]
FAERS_count_patient_age_distribution medicinalproduct (REQUIRED) Returns [{term: "Elderly"/"Adult"/..., count}]
FAERS_count_death_related_by_drug medicinalproduct (REQUIRED) Returns [{term: "alive"/"death", count}]
FAERS_count_reportercountry_by_drug_event medicinalproduct (REQUIRED), patientsex, patientagegroup, serious Returns [{term: "US"/"GB"/..., count}]
FAERS_search_adverse_event_reports medicinalproduct, limit (max 100), skip Returns individual case reports with patient/drug/reaction data
FAERS_search_reports_by_drug_and_reaction medicinalproduct (REQUIRED), reactionmeddrapt (REQUIRED), limit, skip, patientsex, serious Returns individual reports filtered by specific reaction
FAERS_search_serious_reports_by_drug medicinalproduct (REQUIRED), serious, seriousnessdeath, seriousnesshospitalization, seriousnesslifethreatening, seriousnessdisabling, limit Case reports. Despite the name it returns serious AND non-serious reports unless you pass serious='Yes' or one of the seriousness* criteria

FAERS Analytics Tools (operation-based)

Tool Key Parameters Notes
FAERS_calculate_disproportionality operation="calculate_disproportionality", drug_name (REQUIRED), adverse_event (REQUIRED) Returns PRR, ROR, IC with 95% CI and signal detection
FAERS_analyze_temporal_trends operation="analyze_temporal_trends", drug_name (REQUIRED), adverse_event (optional) Returns yearly counts and trend direction
FAERS_compare_drugs operation="compare_drugs", drug1 (REQUIRED), drug2 (REQUIRED), adverse_event (REQUIRED) Returns PRR/ROR/IC for both drugs side-by-side
FAERS_filter_serious_events operation="filter_serious_events", drug_name (REQUIRED), seriousness_type (death/hospitalization/disability/life_threatening/all) Returns top serious reactions with counts
FAERS_stratify_by_demographics operation="stratify_by_demographics", drug_name (REQUIRED), adverse_event (REQUIRED), stratify_by (sex/age/country) Returns stratified counts and percentages. Sex codes: 0=Unknown, 1=Male, 2=Female
FAERS_rollup_meddra_hierarchy operation="rollup_meddra_hierarchy", drug_name (REQUIRED) Returns top 50 preferred terms with counts

FAERS Aggregate Tools (multi-drug)

Tool Key Parameters Notes
FAERS_count_additive_adverse_reactions medicinalproducts (REQUIRED, array), patientsex, patientagegroup, occurcountry, serious, seriousnessdeath Aggregates AE counts across multiple drugs
FAERS_count_additive_seriousness_classification medicinalproducts (REQUIRED, array), patientsex, patientagegroup, occurcountry Aggregates seriousness across multiple drugs
FAERS_count_additive_reaction_outcomes medicinalproducts (REQUIRED, array) Aggregates outcomes across multiple drugs

FDA Label Tools

Tool Key Parameters Notes
FDA_get_boxed_warning_info_by_drug_name drug_name Returns {error: {code: "NOT_FOUND"}} if no boxed warning
FDA_get_contraindications_by_drug_name drug_name Returns {meta: {total: N}, results: [{contraindications: [...]}]}
FDA_get_adverse_reactions_by_drug_name drug_name Returns {meta: {total: N}, results: [{adverse_reactions: [...]}]}
FDA_get_warnings_by_drug_name drug_name Returns {meta: {total: N}, results: [{warnings: [...]}]}
FDA_get_drug_interactions_by_drug_name drug_name Returns {meta: {total: N}, results: [{drug_interactions: [...]}]}
FDA_get_pharmacogenomics_info_by_drug_name drug_name Returns PGx info from label
FDA_get_pregnancy_or_breastfeeding_info_by_drug_name drug_name Returns pregnancy info
FDA_get_geriatric_use_info_by_drug_name drug_name Returns geriatric use info
FDA_get_pediatric_use_info_by_drug_name drug_name Returns pediatric info

OpenTargets Tools

Tool Key Parameters Notes
OpenTargets_get_drug_chembId_by_generic_name drugName Returns {data: {search: {hits: [{id, name, description}]}}}
OpenTargets_get_drug_adverse_events_by_chemblId chemblId Returns {data: {drug: {adverseEvents: {count, rows: [{name, meddraCode, count, logLR}]}}}}
OpenTargets_get_drug_blackbox_status_by_chembl_ID chemblId Returns {data: {drug: {hasBeenWithdrawn, blackBoxWarning}}}
OpenTargets_get_drug_warnings_by_chemblId chemblId Returns drug warnings (may be empty)
OpenTargets_get_drug_mechanisms_of_action_by_chemblId chemblId Returns {data: {drug: {mechanismsOfAction: {rows: [...]}}}}
OpenTargets_get_drug_indications_by_chemblId chemblId Returns approved and investigational indications
OpenTargets_get_target_safety_profile_by_ensemblID ensemblId Returns {data: {target: {safetyLiabilities: [...]}}}

DrugBank Tools

Tool Key Parameters Notes
drugbank_get_safety_by_drug_name_or_drugbank_id query, case_sensitive (bool), exact_match (bool), limit Returns toxicity, food interactions
drugbank_get_targets_by_drug_name_or_drugbank_id query, case_sensitive, exact_match, limit Returns drug targets
drugbank_get_drug_interactions_by_drug_name_or_id query, case_sensitive, exact_match, limit Returns DDIs
drugbank_get_pharmacology_by_drug_name_or_drugbank_id query, case_sensitive, exact_match, limit Returns pharmacology

PharmGKB Tools

Tool Key Parameters Notes
PharmGKB_search_drugs query Returns {data: [{id, name, smiles}]}
PharmGKB_get_drug_details drug_id (e.g., "PA448500") Returns detailed drug info
PharmGKB_get_dosing_guidelines guideline_id, gene (both optional) Returns dosing guidelines
PharmGKB_get_clinical_annotations annotation_id, gene_id (both optional) Returns clinical annotations
fda_pharmacogenomic_biomarkers drug_name, biomarker, limit Returns {count, results: [...]}

ADMETAI Tools

Tool Key Parameters Notes
ADMETAI_predict_toxicity smiles (REQUIRED, array of strings) Predicts hepatotoxicity, cardiotoxicity, etc.
ADMETAI_predict_CYP_interactions smiles (REQUIRED, array) Predicts CYP inhibition/substrate

Literature Tools

Tool Key Parameters Notes
PubMed_search_articles query, limit Returns list of article dicts
openalex_search_works query, limit Returns works with citation counts
EuropePMC_search_articles query, source ("PPR" for preprints), pageSize Returns articles including preprints
search_clinical_trials query_term (REQUIRED), condition, intervention, pageSize Returns clinical trials

Fallback Chains

Primary Tool Fallback 1 Fallback 2
FAERS_calculate_disproportionality Manual calculation from FAERS_count_* data Literature PRR values
FAERS_count_reactions_by_drug_event FAERS_rollup_meddra_hierarchy OpenTargets adverse events
FDA_get_boxed_warning_info_by_drug_name OpenTargets_get_drug_blackbox_status_by_chembl_ID DrugBank safety
FDA_get_contraindications_by_drug_name FDA_get_warnings_by_drug_name DrugBank safety
OpenTargets_get_drug_chembId_by_generic_name ChEMBL_search_drugs Manual search
PharmGKB_search_drugs fda_pharmacogenomic_biomarkers FDA label PGx section
PubMed_search_articles openalex_search_works EuropePMC_search_articles

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan