DeepEvidence API Skill (Evidence-Based Medicine) | Skills Pool
Archivo del skill
DeepEvidence API Skill (Evidence-Based Medicine)
Evidence-based clinical assistant powered by DeepEvidence's OpenAI-compatible API (traceable citations). Use for complex clinical questions, drug safety evidence (dose/contraindications/interactions), guideline interpretation, and trial evidence synthesis. Outputs should be clinically verified before use. Triggers: DeepEvidence, evidence-based medicine, guideline interpretation, drug safety evidence, clinical trial evidence.
dvcrn3 estrellas15 mar 2026
Ocupación
Categorías
Depuración
Contenido de la habilidad
This skill calls DeepEvidence's OpenAI-compatible API to produce traceable, source-grounded evidence summaries for clinical use cases (drug safety, guideline interpretation, trial evidence synthesis). All outputs should be clinically verified before use.
Bundled repository files required: the default workflow references local scripts/ and references/ files. If your hosting/distribution does not ship them, use the direct HTTP API method below.
Normative language
To avoid ambiguity, treat requirement levels as:
MUST: mandatory
SHOULD: default requirement unless there's a clear reason not to
RECOMMENDED: preferred best practice
OPTIONAL: use as needed
When to use / triggers
Skills relacionados
Use cases: complex clinical questions; drug safety evidence (dose/contraindications/interactions); guideline interpretation; comparative options; trial evidence synthesis
Poisoning/overdose, severe allergic reaction, uncontrolled bleeding
Infant/child seizures, severe dehydration, high fever with mental status changes
You MUST prioritize advising the user to contact local emergency services / seek immediate medical care, and state that you cannot provide instructions that replace emergency care.
Quickstart (CLI)
Ask a question with the bundled script:
python scripts/chat.py "In T2D with CKD, how should metformin dose be adjusted by eGFR?"
Continue a previous conversation (use the returned conversation_id):
python scripts/chat.py "What if the patient also has mild heart failure?" --conversation-id "prev_id"
OPTIONAL: for multi-tenant user mapping, pass --user using a stable, non-PII external identifier (e.g. --user "opaque-user-123" or --user "hashed-user-id"). The CLI will automatically prefix it with skill_.
Response format (MUST)
When you present DeepEvidence output to the user, you MUST produce a structured Markdown report and follow:
When DeepEvidence cannot be called or returns insufficient information, you MUST be transparent and MUST NOT pretend you have evidence-backed conclusions:
Missing DEEPEVIDENCE_API_KEY: tell the user to configure it; do not continue with evidence-backed claims
Empty / timeout / network error: explicitly say: "Temporarily unable to retrieve evidence-based results. Please try again later or consult a licensed clinician." and state that evidence/references could not be retrieved
Insufficient direct evidence: explicitly state "No high-quality direct evidence found / conclusion uncertain" and do not overstate certainty
Incomplete citation metadata: MUST NOT invent DOI/journal/year/authors/links; present only what was returned and label as "metadata incomplete"
Operations & reliability (RECOMMENDED)
For integration and operations, RECOMMENDED minimum handling:
Missing key: check DEEPEVIDENCE_API_KEY before calling; return actionable guidance if missing
Timeouts: use bounded retries with reasonable timeouts (avoid infinite retry loops)
Empty responses: treat as failure (do not interpret as "no risk/no evidence")
Low/indirect evidence: label uncertainty explicitly; do not overclaim
Missing references: state "references not returned" instead of filling in
Security (MUST)
Secrets: read keys from env vars only; do not leak via outputs/logs/screenshots/stack traces
Sensitive data: treat clinical content as sensitive by default; avoid logging full conversations or full responses; prefer redacted summaries for debugging
Minimal retention: if you store conversations/logs, provide retention controls and deletion mechanisms
Destructive operations: deletion/clearing MUST be user-initiated and double-confirmed
Clinical limitations (MUST)
This skill does not replace clinical judgment, local/regional guidelines, or prescribing information; outputs are for reference only and must be clinically verified
Decisions must consider patient-specific factors (age, renal function, comorbidities, pregnancy/lactation, allergies), local guidelines, and drug labels
For urgent symptoms, advise immediate medical care (see "Emergency boundary")
Evidence quality depends on retrieval scope and knowledge-base updates; may be time-sensitive
MUST NOT invent missing bibliographic metadata (DOI/journal/year/authors/links)
Advanced features (multi-tenant & conversations)
API spec: see references/api_reference.md (user mapping via user and X-User-ID, plus conversation extension APIs)
Conversation manager: run python scripts/manage_conversations.py --help to list/view/delete sessions
Deletion guard (MUST): never delete history unless the user explicitly requests deletion for a specific conversation/session (e.g. by conversation_id)
Double confirmation (MUST): repeat and confirm the target (id/title/time window) before deleting
Versioning & updates
Skill version: see frontmatter metadata.version
API behavior/fields: treat references/api_reference.md as source of truth; update failure paths and citation rules first when behavior changes
Test cases (RECOMMENDED)
Minimal Q&A set to validate: structured report output, citation markers, references block (when present), and stable failure messages.
Dose adjustment by strata: "In T2D with CKD, how should metformin dose be adjusted by eGFR?"
Drug interaction / contraindication: "Warfarin + common antibiotics: bleeding risk and monitoring recommendations?"
Guideline interpretation: "HFrEF first-line medication pillars—what do guidelines recommend and what is the supporting evidence?"
Insufficient evidence path: "For a rare disease, what high-quality RCT evidence exists for a new therapy X?" (should explicitly state uncertainty if not found)
429 rate_limit_error: throttled or quota exceeded; reduce frequency or contact admin
400 invalid_request_error: request body mismatch; check references/api_reference.md
Portability (avoid dangling dependencies)
This skill references repository-local scripts/docs (e.g. scripts/chat.py, references/api_reference.md). If your hosting/distribution does not bundle them, relative paths will break.
Choose one strategy:
Strategy A (RECOMMENDED): bundle scripts/ and references/, ensure Python dependencies are available
Strategy B: call the HTTP API directly (OpenAI-compatible)