Openfda Animalのロゴ

Openfda Animal

組織
OpenVet-Projects
openfda-animal

Query the openFDA Animal and Veterinary endpoints for adverse event reports, approved animal drug products, and veterinary device data. REST API access to FDA CVM public datasets.

概要

公開者OpenVet-Projects
リポジトリVetClaw
スキル名openfda-animal
スター
47
フォーク
10
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    OpenVet-ProjectsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Openfda Animal」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/OpenVet-Projects/VetClaw/tree/main/skills/databases/openfda-animal
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenVet-Projects/VetClaw.git /tmp/VetClaw
mkdir -p .claude/skills
cp -r /tmp/VetClaw/skills/databases/openfda-animal .claude/skills/openfda-animal
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでOpenfda Animalを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にOpenfda Animalを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Openfda Animalは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

OpenFDA Animal & Veterinary

Overview

openFDA provides free, public REST API access to FDA CVM (Center for Veterinary Medicine) databases of animal drug adverse events, approved animal products, and veterinary device data. This skill covers API endpoints, query syntax, searchable fields, rate limits, and SDK integration for veterinary AI applications.

When to Use

  • User queries adverse event frequency for a veterinary drug
  • User searches for FDA-approved animal drug products (NADA database)
  • User researches safety signals or patterns in veterinary pharmacovigilance
  • User programmatically integrates FDA data into a VetClaw application
  • Keywords: openFDA, FDA CVM, adverse event, animal drug, NADA, API, veterinary device, safety signal

API Endpoints

Animal & Veterinary Events (Adverse Event Reports):

https://api.fda.gov/animalandveterinary/event.json

Searchable fields: animal species, drug name, adverse reaction, outcome, date reported

Approved Animal Drug Products (NADA Database):

https://api.fda.gov/animalandveterinary/approved_animal_drug_applications.json

Searchable fields: trade name, generic name, applicant, approval date, species

Veterinary Device Events:

https://api.fda.gov/animalandveterinary/device_event.json

Searchable fields: device type, malfunction, injury, manufacturer

Query Syntax

Basic GET Request:

https://api.fda.gov/animalandveterinary/event.json?search=FIELD:VALUE&limit=10&skip=0

Common Parameters:

  • search: Query expression (field-value pairs connected with AND/OR)
  • limit: Results per page (1-1000, default 20)
  • skip: Offset for pagination (for results >1000)
  • count: Aggregate count by field instead of returning individual records
  • sort: Order results (field name)

Boolean Operators:

  • AND: Both conditions must match
  • OR: Either condition matches
  • NOT: Exclude results matching condition
  • Parentheses for complex expressions: (field1:value1 OR field1:value2) AND field2:value3

Field Query Examples:

drug.name:"amoxicillin" AND animal.species:"DOG"
reaction.veddra_term_name:"hepatotoxicity"
original_receive_date:[20200101 TO 20241231]
outcome:"Fatal"

Searchable Fields - Adverse Events

Drug Fields:

  • drug.name - Generic or brand name
  • drug.dose_value - Numerical dose
  • drug.dose_unit - Unit (mg, mL, etc.)
  • drug.route - Route of administration (PO, IV, IM, topical, etc.)
  • drug.frequency - Dosing frequency

Animal Fields:

  • animal.species - Species affected (DOG, CAT, HORSE, CATTLE, BIRD, etc. — English names, matching the openFDA data and the SDK)
  • animal.breed - Breed (searchable for breed predisposition studies)
  • animal.age_value - Numerical age
  • animal.age_unit - Unit (year, month, week, day)
  • animal.sex - Male, female, unknown
  • animal.weight_value - Weight (for dose-response analysis)

Reaction Fields:

  • reaction.veddra_term_name - VEDDRA (Veterinary Dictionary for Drug Event Reports and Analysis) standardized term
  • reaction.outcome - Death, Euthanasia, Serious, Non-serious, Recovered, Recovering, Unknown
  • reaction.severity - Severity classification

Report Fields:

  • original_receive_date - Date FDA received report (query format: YYYYMMDD)
  • unique_aer_id_number - Unique FDA adverse event report ID (primary identifier)
  • report_id - FDA report identifier
  • serious - Boolean (whether report indicates serious adverse outcome)

Common Veterinary VEDDRA Terms

TermCategoryExamples
HepatotoxicityOrgan toxicityElevated ALT, liver damage
NephrotoxicityOrgan toxicityElevated creatinine, kidney failure
CardiotoxicityOrgan toxicityArrhythmias, myocarditis
GastrointestinalSystemVomiting, diarrhea, hemorrhage
DermatitisSkinRash, hives, edema
AnaphylaxisImmuneShock, acute hypersensitivity
ThrombocytopeniaHematologicLow platelet count, bleeding
SeizureNeurologicConvulsions, ataxia
DeathFatalLethal outcome

Rate Limits

  • Without API key: 240 requests per minute, 1,000 requests per day
  • With API key (free): 240 requests per minute, 120,000 requests per day
  • Rate Limit Headers: Response includes X-Rate-Limit-Limit, X-Rate-Limit-Remaining
  • Exceeding Limits: Server returns HTTP 429 (Too Many Requests); implement exponential backoff retry

Register for API Key: https://open.fda.gov/apis/authentication/

VetClaw SDK Integration

VetClaw includes reference clients for this API. See sdk/ in the repo root.

Python (sdk/python/openfda_vet.py):

python
from openfda_vet import OpenFDAVet

client = OpenFDAVet(api_key="YOUR_KEY")

# Search adverse events by species and drug
events = client.search(species="Dog", drug="Amoxicillin", limit=100)

# Count adverse events by reaction for a specific drug
reactions = client.top_reactions("Cat", drug="Methimazole")

# Count adverse events by outcome
outcomes = client.count("reaction.outcome", species="Dog", drug="Ivermectin")

TypeScript (sdk/typescript/openfda-vet.ts):

typescript
import { OpenFDAVet } from "./openfda-vet";

const client = new OpenFDAVet("YOUR_KEY");

// Search adverse events
const events = await client.search({ species: "Dog", drug: "Amoxicillin", limit: 100 });

// Count top reactions
const reactions = await client.topReactions("Cat", "Methimazole");

// Paginate through results
for await (const page of client.paginate({ species: "Dog", drug: "Ivermectin" })) {
  for (const event of page) console.log(event.unique_aer_id_number);
}

Practical Query Examples

Query 1: MDR1 Sensitivity to Ivermectin

Search for ivermectin adverse events in herding breeds (known MDR1 mutation risk):
drug.name:"ivermectin"
  AND animal.breed:("Collie" OR "Australian Shepherd" OR "Sheltie")
  AND reaction.outcome:("Death" OR "Serious" OR "Euthanasia")
Limit: 100

Query 2: Acetaminophen in Cats (Lethal Combination)

drug.name:"acetaminophen" AND animal.species:"CAT"
Expected outcome: High rate of hepatotoxicity, death (acetaminophen is lethal to cats)

Query 3: Drug Withdrawal Time Safety

Drug: penicillin, Animal: CATTLE, Outcome: Recovery with residue concerns
Verify no unusual severe outcomes reported; extract timeline to recovery

Query 4: Breed Predisposition to Drug Reaction

reaction.veddra_term_name:"seizure"
  AND (drug.name:"phenobarbital" OR drug.name:"levetiracetam")
  AND animal.species:"DOG"
Group by breed to identify predispositions

Query 5: Time-Based Safety Trend

drug.name:"enalapril"
  AND animal.species:"CAT"
  AND original_receive_date:[20150101 TO 20241231]
Count by year to track safety signal emergence over time

Response Structure

Adverse Event Record Example:

json
{
  "unique_aer_id_number": "USA-USFDACVM-2024-US-123456",
  "report_id": "123456789",
  "original_receive_date": "2024-03-15",
  "animal": {
    "species": "DOG",
    "breed": "Labrador Retriever",
    "age_value": 5,
    "age_unit": "year",
    "sex": "female",
    "weight_value": 30,
    "weight_unit": "kg"
  },
  "drug": {
    "name": "amoxicillin",
    "dose_value": 250,
    "dose_unit": "mg",
    "route": "oral",
    "frequency": "twice daily"
  },
  "reaction": {
    "veddra_term_name": "vomiting",
    "outcome": "Recovered",
    "severity": "moderate"
  },
  "serious": false
}

Use Cases in Veterinary AI

  1. Safety Signal Detection: Aggregate adverse events by drug-species-breed to identify unexpected patterns (e.g., increased hepatotoxicity in specific breed using drug X)

  2. Pharmacovigilance Monitoring: Track trends in serious adverse events over time; alert veterinarians to emerging safety signals

  3. Breed-Specific Dosing Refinement: Identify adverse event clusters by breed; inform precision medicine protocols

  4. Drug Interaction Warnings: Cross-reference adverse events to identify potential drug-drug interactions not captured in single-drug studies

  5. Clinical Decision Support: When recommending a drug, query recent adverse events to provide evidence-based safety profile to veterinarian

Limitations

  • Reporting Bias: Adverse events are voluntarily reported; underreporting of minor side effects, overreporting of serious outcomes
  • Incomplete Data: Many adverse event reports lack complete signalment (breed, age), dosing information, or outcome details
  • Temporal Lag: FDA data is typically 6-12 months behind current clinical use; emerging signals may not be captured
  • Causality Uncertainty: Reported adverse event may not be causally related to drug (confounding variables, concurrent medications)
  • Approved Drug Products Database: Limited to FDA-approved products; extralabel use (common in veterinary medicine) not captured
  • This skill is reference only: Data interpretation requires clinical expertise; not a substitute for veterinary consultation

Sources

Rate Limit Best Practices

  • Implement exponential backoff (wait 2^attempt seconds if rate limited)
  • Cache results locally to minimize API calls
  • Use count endpoint instead of fetching all records if only aggregate data needed
  • Batch queries by date range to reduce total requests
  • Monitor X-Rate-Limit-Remaining header; pause if approaching limit

よくある質問

AIスキル「Openfda Animal」では何ができますか?

Query the openFDA Animal and Veterinary endpoints for adverse event reports, approved animal drug products, and veterinary device data. REST API access to FDA CVM public datasets.

TypingMindでOpenfda Animalを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Openfda Animalはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにOpenfda Animalをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/OpenVet-Projects/VetClaw/tree/main/skills/databases/openfda-animalを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Openfda Animalを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Openfda Animalで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもOpenfda Animalを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Openfda Animal」は無料ですか?

はい。OpenVet-ProjectsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇