Querying Individual FHIR Resources
This guide provides examples for retrieving individual FHIR resource types from the b.well FHIR Server using standard FHIR R4 REST operations. Use these examples to query specific clinical and administrative data.
Base URLs
- Sandbox:
https://fhir.client-sandbox.icanbwell.com/4_0_0/ - Production:
https://fhir.icanbwell.com/4_0_0/
Authentication
All requests to the b.well FHIR Server require authentication. See System Authentication for details on obtaining an access token.
Include your access token in the Authorization header of all requests:
Authorization: Bearer [Your Access Token]
Retreiving Resource Types
You can retrieve specific resource types by appending the resource type to the base URL. The following examples demonstrate how to retrieve common US Core V3 resource types.
Patient
To retrieve Patient resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Patient
Observation
To retrieve Observation resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Observation
Condition
To retrieve Condition resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Condition
MedicationRequest
To retrieve MedicationRequest resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/MedicationRequest
Immunization
To retrieve Immunization resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Immunization
Procedure
To retrieve Procedure resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Procedure
Encounter
To retrieve Encounter resources:
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Encounter
Parameters for Filtering and Pagination
You can refine your queries using standard FHIR search parameters for filtering, sorting, and pagination.
Example: Get Patients named "John Doe"
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Patient?name=John%20Doe
Example: Paginate results (e.g., retrieve the next 10 results)
GET https://fhir.client-sandbox.icanbwell.com/4_0_0/Patient?_count=10&_getpages=...
Additional Resources
For a comprehensive list of search parameters and advanced querying:
- FHIR US Core V3 Implementation Guide - US Core profiles and requirements
- FHIR Search Documentation - Complete FHIR search parameter reference
- FHIR Server GitHub Repository - Technical documentation and specifications
- FHIR Server Cheatsheet - Quick reference for common operations
Updated 8 days ago
