write_fhir_resource
Validates and writes FHIR healthcare data resources to a compliant server, handling endpoint routing and returning validation or server errors for correction.
Instructions
Write a FHIR resource to the FHIR server.
This tool:
Validates the FHIR resource using fhir-validator
Determines the appropriate endpoint based on resource type
POSTs or PUTs the resource to the FHIR server
Returns validation errors or server errors for correction
Args: resource: A FHIR resource as a JSON object (dict) custom_headers: Optional dictionary of custom HTTP headers to include in the request. For Zus servers, use {"Zus-Account": "builder-id"} for multi-tenant access.
Returns: A status message indicating success or detailed error information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | ||
| custom_headers | No |