A comprehensive FHIR R4 development guide for building compliant healthcare REST APIs — covering resources, validation, SMART auth, Bundles, and error handling.
npx clawhub@latest install fhir-developer-skillThe 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.
npx clawhub@latest install fhir-developer-skillClick the Install button at the top of this page for one-click setup
Provides authoritative required-field cardinality tables for Patient, Observation, Encounter, Condition, MedicationRequest, Medication, and Bundle — preventing common mistakes like treating optional fields as required.
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.
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.
Ready-to-use OperationOutcome JSON structures and code snippets for Python/FastAPI and TypeScript/Express, ensuring all error responses are FHIR-compliant.
Canonical system URLs for LOINC, SNOMED CT, RxNorm, ICD-10, and HL7 terminology systems, plus common vital-sign LOINC codes for quick reference.
References for OAuth scope enforcement, conditional create/update operations, transaction vs. batch Bundle semantics, and search result pagination patterns.
Ask the assistant to scaffold a POST /Observation endpoint with correct status validation, 422 error responses, and OperationOutcome formatting in FastAPI or Express.
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.
Get guidance on OAuth scope syntax (v1/v2), backend service flows, and scope enforcement logic for securing FHIR endpoints.
Use the built-in quick-start script reference to generate a FastAPI project with correct Pydantic v2 models, OperationOutcome helpers, and Patient CRUD endpoints.
resource-examples.md, smart-auth.md, pagination.md, bundles.md) should be included alongside this skillnpx clawhub@latest install fhir-developer-skillLog in to write a review
No reviews yet. Be the first to share your experience!