[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [BDPM HAS medicine assessments](https://spiral.ai/integrations/opencode/bdpm-has-medicine-assessments)

# How to Use BDPM HAS medicine assessments in opencode

Returns HAS opinions with assessment dates, SMR and ASMR ratings, French wording, and links. Use it to research benefit assessments across medicines or follow a product's evaluation history.

|  |  |
| --- | --- |
| Model | BDPM HAS medicine assessments |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with BDPM HAS medicine assessments in opencode

- Use BDPM HAS medicine assessments for pembrolizumab during 2025 and create a dated review table in this project.
- Use BDPM HAS medicine assessments for Ozempic and add the French assessment wording and opinion links to this project's research notes.
- Use BDPM HAS medicine assessments to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from BDPM HAS medicine assessments and tell me what changed since last week.
- Check BDPM HAS medicine assessments and summarize what you find in three bullet points.

## How to set up BDPM HAS medicine assessments in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run BDPM HAS medicine assessments**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "base-donnees-publique-medicaments-gouv-fr/medicines/assessments",
    "input": {
      "limit": 10
    }
  }'
```

Then paste one of the prompts above: opencode finds BDPM HAS medicine assessments on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## BDPM HAS medicine assessments tools and prices

- [France public medicines database (BDPM) · Assessments](https://spiral.ai/tools/alexandria/base-donnees-publique-medicaments-gouv-fr/medicines/assessments) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 25 | 10 | Entries per page; each carries the full HAS wording. |
| query |  | — | A medicine name or active substance of at least 3 letters (`ozempic`, `sémaglutide`, `pembrolizumab`; accents and case ignored), or an 8-digit CIS code. Text matches the start of a word, then anywhere, in names and active substances. Only medicines still in the BDPM match text; opinions on others are found by CIS or date. |
| offset | 0 to … | 0 | `next_offset` from the previous page; repeat the same filters with it. |
| to_date |  | — | Latest opinion date, inclusive: `YYYY`, `YYYY-MM` (the whole month) or `YYYY-MM-DD`. Pattern: ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$. |
| from_date |  | — | Earliest opinion date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. Pattern: ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$. |
| smr_levels |  | — | Keep opinions with at least one SMR at one of these levels; conditional levels count as their level. |

## What can you do with BDPM HAS medicine assessments in opencode?

Build a French medicine reference table in your project from BDPM product records and HAS opinions. Keep product composition and indication-specific assessment wording together so reviewers can inspect the evidence.

### French medicine research brief

Identify products for an active ingredient, inspect their records, and summarize the associated HAS assessments for a research brief.

### Product comparison

Build a comparison of French products using their composition, packs, prescribing conditions, and indication-specific assessment wording.

### Assessment review list

Collect HAS opinions for a research period, identify the medicines concerned, and attach product records for reviewers.

### Medicine reference library

Create reference entries that connect medicine names and active ingredients to product details and HAS opinion links.

### HAS opinion digest

Prepare a dated digest of HAS assessment wording and ratings, keeping each conclusion attached to its indication.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## BDPM HAS medicine assessments in other agents

- [Amp](https://spiral.ai/integrations/amp/bdpm-has-medicine-assessments)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/bdpm-has-medicine-assessments)
- [Claude](https://spiral.ai/integrations/claude-desktop/bdpm-has-medicine-assessments)
- [Claude Code](https://spiral.ai/integrations/claude-code/bdpm-has-medicine-assessments)
- [Cline](https://spiral.ai/integrations/cline/bdpm-has-medicine-assessments)
- [Codex](https://spiral.ai/integrations/codex/bdpm-has-medicine-assessments)
- [Cursor](https://spiral.ai/integrations/cursor/bdpm-has-medicine-assessments)
- [Devin](https://spiral.ai/integrations/devin/bdpm-has-medicine-assessments)
- [dots](https://spiral.ai/integrations/dots/bdpm-has-medicine-assessments)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/bdpm-has-medicine-assessments)
- [Gemini](https://spiral.ai/integrations/gemini/bdpm-has-medicine-assessments)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/bdpm-has-medicine-assessments)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/bdpm-has-medicine-assessments)
- [goose](https://spiral.ai/integrations/goose/bdpm-has-medicine-assessments)
- [Grok](https://spiral.ai/integrations/grok/bdpm-has-medicine-assessments)
- [Grok Build](https://spiral.ai/integrations/grok-build/bdpm-has-medicine-assessments)
- [Hermes](https://spiral.ai/integrations/hermes/bdpm-has-medicine-assessments)
- [Instinct](https://spiral.ai/integrations/instinct/bdpm-has-medicine-assessments)
- [Manus](https://spiral.ai/integrations/manus/bdpm-has-medicine-assessments)
- [Muse](https://spiral.ai/integrations/muse/bdpm-has-medicine-assessments)
- [Muse Code](https://spiral.ai/integrations/muse-code/bdpm-has-medicine-assessments)
- [n8n](https://spiral.ai/integrations/n8n/bdpm-has-medicine-assessments)
- [Notion](https://spiral.ai/integrations/notion/bdpm-has-medicine-assessments)
- [OpenClaw](https://spiral.ai/integrations/openclaw/bdpm-has-medicine-assessments)
- [Perplexity](https://spiral.ai/integrations/perplexity/bdpm-has-medicine-assessments)
- [Raycast](https://spiral.ai/integrations/raycast/bdpm-has-medicine-assessments)
- [VS Code](https://spiral.ai/integrations/vscode/bdpm-has-medicine-assessments)
- [Windsurf](https://spiral.ai/integrations/windsurf/bdpm-has-medicine-assessments)
- [Zapier](https://spiral.ai/integrations/zapier/bdpm-has-medicine-assessments)

## More opencode guides

- [AlphaFold protein structure prediction](https://spiral.ai/integrations/opencode/alphafold-protein-structure-prediction)
- [BDPM medicine details](https://spiral.ai/integrations/opencode/bdpm-medicine-details)
- [AlphaFold predicted protein complexes](https://spiral.ai/integrations/opencode/alphafold-predicted-protein-complexes)
- [BDPM medicine search](https://spiral.ai/integrations/opencode/bdpm-medicine-search)
- [AlphaFold missense predictions](https://spiral.ai/integrations/opencode/alphafold-missense-predictions)
- [CDC PLACES local health estimates](https://spiral.ai/integrations/opencode/cdc-places-local-health-estimates)

## Questions about BDPM HAS medicine assessments in opencode

**Can opencode use BDPM HAS medicine assessments?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run BDPM HAS medicine assessments like any built-in tool.

**How much does BDPM HAS medicine assessments cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use BDPM HAS medicine assessments in opencode?**

No. Spiral runs BDPM HAS medicine assessments on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up BDPM HAS medicine assessments in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while BDPM HAS medicine assessments runs?**

BDPM HAS medicine assessments runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does BDPM cover medicines outside France?**

BDPM covers medicines marketed in France. Its homepage describes a three-year historical window, while its help page says five years, so the published retention guidance is inconsistent.

**How often does BDPM change?**

BDPM states that the database is updated monthly. Important-information downloads are generated when requested because those notices can change more frequently.

**Are the medicine records and assessments in English?**

Alexandria preserves BDPM's French text. Statuses and SMR/ASMR levels include English explanations, but the assessment wording remains French.

**Does one HAS assessment apply to every use of a medicine?**

HAS evaluates medicines indication by indication. A medicine can have an indication supported for reimbursement and another that is not.

**Does every medicine have SMR and ASMR ratings?**

No. BDPM specifically says that generic medicines do not systematically receive SMR and ASMR assessments.

