MyClawMyClaw
HomeUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
HomeUse CasesPricingSkills
ResourcesCompareBlogCommunity
CompanyAboutSupport
Sign In
MyClawMyClaw

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingSlackUse CasesPricingAlibaba Cloud

Tools

Passport Photo GeneratorTattoo DesignVirtual Background GeneratorLinkedIn Headshot GeneratorParty Invitation GeneratorAlbum Cover GeneratorDating Photo Generator

Compre

vs dotsvs Claudevs ChatGPTvs OpenClawvs Hermes Agentvs Grok Botvs Hostinger

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

© 2023 Cubo World Inc. All rights reserved.

TermsPrivacyCookieGDPRContact
← Back to Skills
Coding Agents & IDEs
📡

FHIR Developer Skill

A comprehensive FHIR R4 development guide for building compliant healthcare REST APIs — covering resources, validation, SMART auth, Bundles, and error handling.

by anthropicsv1.0.0
Connecting to VM...
Connecting to VM...
npx clawhub@latest install fhir-developer-skill
1.3kStars
353Downloads
1Current Installs
📦
v1.0.0Version
View Source

FHIR Developer Skill Skill Overview

The FHIR Developer Skill gives your AI assistant comprehensive, spec-accurate knowledge of FHIR R4 API development. Install it to get reliable guidance on resource structures, validation rules, HTTP status codes, error handling, SMART on FHIR authorization, and Bundle operations — all grounded in the FHIR R4 specification. It is designed for developers building or reviewing healthcare REST APIs who need their assistant to produce compliant, production-ready code.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install fhir-developer-skill
or

Click the Install button at the top of this page for one-click setup

When to Use FHIR Developer Skill

Best Fit

  • You are building FHIR REST endpoints (Patient, Observation, Encounter, Condition, MedicationRequest) and need spec-correct field requirements and value sets.
  • You need to implement proper HTTP status codes and OperationOutcome error responses for a FHIR server.
  • You are integrating SMART on FHIR OAuth authorization and need correct scope syntax and enforcement patterns.
  • You are working with FHIR Bundles (transaction, batch, searchset) or implementing search pagination.

When Not to Use

  • You are working with FHIR DSTU2 or STU3 — this skill targets R4 specifically.
  • You need a live FHIR server or data storage solution; this skill provides development guidance only, not infrastructure.
  • Your project has no healthcare data or FHIR API requirements.

Key Features

FHIR R4 Resource Structures & Required Fields

Provides authoritative required-field cardinality tables for Patient, Observation, Encounter, Condition, MedicationRequest, Medication, and Bundle — preventing common mistakes like treating optional fields as required.

Value Set & Enum Validation

Covers all key value sets (Observation.status, Encounter.status/class, Condition.clinicalStatus, MedicationRequest.status/intent, Bundle.type, Patient.gender) with the correct 422 response for invalid enum values.

Correct HTTP Status Code Mapping

Precise guidance on when to use 200, 201, 204, 400, 401, 403, 404, 412, and 422 — including the critical distinction between 412 Precondition Failed for ETag mismatches and 422 for validation errors.

OperationOutcome Error Patterns

Ready-to-use OperationOutcome JSON structures and code snippets for Python/FastAPI and TypeScript/Express, ensuring all error responses are FHIR-compliant.

Coding System URLs & Common LOINC Codes

Canonical system URLs for LOINC, SNOMED CT, RxNorm, ICD-10, and HL7 terminology systems, plus common vital-sign LOINC codes for quick reference.

SMART on FHIR, Bundles & Pagination

References for OAuth scope enforcement, conditional create/update operations, transaction vs. batch Bundle semantics, and search result pagination patterns.

Use Cases

Building a FHIR Observation Endpoint

Ask the assistant to scaffold a POST /Observation endpoint with correct status validation, 422 error responses, and OperationOutcome formatting in FastAPI or Express.

Reviewing a FHIR Server for Spec Compliance

Paste your existing FHIR endpoint code and ask the assistant to identify violations — such as wrong status codes, missing Location headers, or incorrect Encounter.class data types.

Implementing SMART on FHIR Authorization

Get guidance on OAuth scope syntax (v1/v2), backend service flows, and scope enforcement logic for securing FHIR endpoints.

Scaffolding a New FHIR API Project

Use the built-in quick-start script reference to generate a FastAPI project with correct Pydantic v2 models, OperationOutcome helpers, and Patient CRUD endpoints.

Requirements

  • No API keys or external services required
  • Code examples target Python (FastAPI, Pydantic v2) and TypeScript (Express)
  • Targets FHIR R4 — not applicable to DSTU2 or STU3
  • For full resource JSON examples, SMART auth details, pagination, and Bundle operations, the referenced companion files (resource-examples.md, smart-auth.md, pagination.md, bundles.md) should be included alongside this skill
Connecting to VM...
npx clawhub@latest install fhir-developer-skill
1.3kStars
353Downloads
1Current Installs
📦
v1.0.0Version
View Source

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!