Resources
Overview
The General Purpose FHIR STU3 endpoint supports multiple FHIR resources for healthcare data exchange. Each resource provides standardized access to clinical and administrative data through RESTful operations.
Purpose: Enable secure access to FHIR STU3 resources for healthcare applications and integrations.
Use Cases:
- Clinical data retrieval and updates
- Patient information management
- Healthcare workflow integration
- Administrative data access
Relationships: Resources are interconnected through FHIR references, enabling comprehensive healthcare data modeling.
Resource Schema
All resources follow FHIR STU3 specifications with common elements:
{
"resourceType": "[ResourceType]",
"id": "unique-identifier",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-01T10:00:00Z"
},
"text": {
"status": "generated",
"div": "<div>Human readable content</div>"
}
}
Key Fields:
resourceType: FHIR resource type identifierid: Unique resource identifiermeta: Metadata including version and last updated timestamptext: Human-readable narrative
Supported Headers:
| Header | Direction | Description |
|---|---|---|
| Authorization | Request | Required. Bearer token for request authorization |
| Content-Type | Request & Response | Format preference. Default: application/fhir+xml;charset=UTF-8 |
| X-Correlation-Id | Response | Requester's transaction ID when not accepted for logging |
| X-Request-ID | Request & Response | Unique transaction ID for logging (typically UUID) |
Content-Type Support:
| JSON | XML |
|---|---|
application/fhir+json | application/fhir+xml |
application/json | application/xml |
Operations
Supported operations vary by resource. Consult resource-specific documentation for availability.
Read
Retrieve a specific resource by ID.
Search
Query resources using FHIR search parameters.
Common Search Parameters:
| Name | Type | Description |
|---|---|---|
| page | string | Page index (one-based). Default: 1 |
| _count | special | Results per page. Default: 100. Max: 500 |
| _sort | special | Sort specification |
Create
Create new resource instances.
Update
Update existing resources by ID.
Examples
Read Operation
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/fhir/{Resource}/{id} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/fhir/{Resource}/{id} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Search Operation (POST - Recommended)
- Production
- Preview
curl -X POST https://fhir.netsmartcloud.com/fhir/{Resource}/_search \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "parameter=value&_count=10"
curl -X POST https://fhirtest.netsmartcloud.com/fhir/{Resource}/_search \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "parameter=value&_count=10"
Create Operation
- Production
- Preview
curl -X POST https://fhir.netsmartcloud.com/fhir/{Resource} \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/fhir+json" \
-d @resource.json
curl -X POST https://fhirtest.netsmartcloud.com/fhir/{Resource} \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/fhir+json" \
-d @resource.json
Update Operation
- Production
- Preview
curl -X PUT https://fhir.netsmartcloud.com/fhir/{Resource}/{id} \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/fhir+json" \
-d @resource.json
curl -X PUT https://fhirtest.netsmartcloud.com/fhir/{Resource}/{id} \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/fhir+json" \
-d @resource.json
Integration Patterns
Common Workflows:
- Resource retrieval for clinical decision support
- Bulk data operations for reporting and analytics
- Real-time updates for care coordination
- Cross-resource queries using references
Related Resources: Resources are interconnected through FHIR references enabling comprehensive data access patterns.
Error Handling
Common HTTP status codes and error responses are handled according to FHIR specifications. Consult resource-specific documentation for detailed error scenarios.
Supported Profiles
Profile support varies by resource and is defined in the CapabilityStatement. Retrieve the current CapabilityStatement to verify supported profiles:
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/fhir/metadata \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/fhir/metadata \
-H "Accept: application/fhir+json"