fhir-questionnaire-authoring

fhir-questionnaire-authoring is a skill for Claude Code, Codex from StanfordSpezi/SpeziVibe. It costs 46 tokens per session (2,790 once invoked), scanned A, original, MIT.

A tool for writing FHIR R4 Questionnaire files, a healthcare data format for defining surveys, so a Spezi app can display them. It checks the files against the app's renderer and sends them to Phoenix, a visual survey editor, for human review.

In plain words
What is it for?
Use it to create study surveys, check supported question behavior on the target app, and prepare the questionnaire for a person to review and edit.
Why use it?
A questionnaire can be valid FHIR but still use rules the target app ignores or rejects, which can cause a study to collect incorrect data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create study surveys, check supported question behavior on the target app, and prepare the questionnaire for a person to review and edit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add StanfordSpezi/SpeziVibe --skill fhir-questionnaire-authoring
Clone the repo
git clone --depth 1 https://github.com/StanfordSpezi/SpeziVibe

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fhir-questionnaire-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring/github.svg)](https://agentmods.dev/skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring)
Your own site
<a href="https://agentmods.dev/skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring"><img src="https://agentmods.dev/badge/skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fhir-questionnaire-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring"><img src="https://agentmods.dev/badge/skills/stanfordspezi/spezivibe/fhir-questionnaire-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,790 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02790
Opus 5.5 $0.00018 $0.01116
Sonnet 5.5 $0.00009 $0.00558
Haiku 4.5 $0.00005 $0.00279

Measured 13d ago against content hash 4241edb0ef52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fhir-questionnaire-authoring scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL -o "$QC" https://github.com/StanfordBDHG/phoenix/releases/download/questionnaire-check/questionnaire-check.mjs
skills/fhir-questionnaire-authoring/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FHIR Questionnaire Authoring

Turn the surveys a project needs into FHIR R4 Questionnaire JSON files that the app shows exactly as intended. Check each file against the app's questionnaire renderer, then hand it to a person to review and edit in Phoenix, a visual survey builder.

Background

FHIR allows far more in a Questionnaire than any app renderer implements, and most gaps are silent: the app shows the survey but ignores a rule. Nobody notices until a study has collected the wrong data. For example:

  • On iOS (ResearchKitOnFHIR), a condition on a question inside a group is ignored, so the question is always shown.
  • On iOS, a slider with more than 13 steps (e.g. 0–100 in steps of 1) is rejected by ResearchKit.
  • In React Native apps created before questionnaire package 1.1.0, the minimum and maximum of an optional question aren't enforced, and a required question hidden by a condition blocks Submit with no message.

So the job is not just "write valid FHIR". It is "write FHIR this app supports", then check it with a tool instead of from memory, and get a person to confirm the survey says what the study needs.

Relationship to other skills: digital-health-study-planning decides which assessments the study collects and when (docs/planning/study-brief.md). fhir-data-model-design decides how answers and scores are stored (docs/planning/fhir-data-model.md). This skill writes the Questionnaire files themselves. app-build-planner usually schedules it in a "Questionnaires and assessments" milestone.

Your Role

You are a careful survey implementer. You write Questionnaire JSON, check it, fix what the checker reports, and explain any remaining trade-offs in plain language. You never change the wording, order or response options of a validated instrument (PHQ-9, GAD-7, PROMIS, …) to make it fit the app. If the app can't render something as published, say so and let the team decide.

Read the full file on GitHub · 148 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 148 lines · 46 tokens per session scan A 4241edb0ef52

Subscribe to this mod's changes

fhir-questionnaire-authoring is a skill published in the GitHub repository StanfordSpezi/SpeziVibe (27 stars, last pushed 13d ago), licensed MIT. It adds 46 tokens to every session and 2,790 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-23.

Related

fhir-questionnaire-authoring compared with skills from other repositories

fhir-questionnaire-authoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fhir-questionnaire-authoringStanfordSpezi/SpeziVibeSkill2713d agoMITA46Claude Code, Codex
argent-react-native-app-workflowsoftware-mansion/argentSkill3.3ktodayApache-2.0A41Claude Code, Codex
argent-test-ui-flowsoftware-mansion/argentSkill3.3ktodayApache-2.0A44Claude Code, Codex
argent-react-native-optimizationsoftware-mansion/argentSkill3.3ktodayApache-2.0A46Claude Code, Codex
react-native-testingcallstack/react-native-testing-librarySkill3.4k2d agoMITA134Claude Code, Codex
truesheet-usagelodev09/react-native-true-sheetSkill2.1kyesterdayMITA171Claude Code, Codex
standardize-health-datathetahealth/mirobodySkill1.9kyesterdayApache-2.0A133Claude Code