Guide · Amazon HealthLake · Overview & FHIR Resource CRUD
Amazon HealthLake for MCP Servers — FHIR Data Stores, Resource CRUD, and SigV4 Authentication
Amazon HealthLake exposes two completely separate API surfaces that you must use together: the management SDK for creating and describing data stores, and SigV4-signed HTTP calls to the FHIR REST endpoint for reading and writing clinical resources. Healthcare AI agents built on MCP servers need structured access to FHIR R4 resources — Patient demographics, Observation lab results, Condition diagnoses, MedicationRequest prescriptions, and Encounter records. This guide covers the full setup path: installing the right SDK packages, creating a FHIR R4 data store, polling for ACTIVE status, retrieving the data store endpoint from DescribeFHIRDatastoreCommand, constructing SigV4-signed requests, and implementing typed MCP tool handlers for FHIR resource CRUD. It also documents the production gotchas that cause 415 and 400 errors in FHIR API calls.
TL;DR
Two API surfaces: @aws-sdk/client-healthlake for data store management (Create, Describe, List) and SigV4-signed HTTP calls to the data store's FHIR endpoint for FHIR resource operations. Content-Type: application/fhir+json is required for resource CRUD — HealthLake returns a 415 Unsupported Media Type if you send application/json. The data store endpoint is returned by DescribeFHIRDatastoreCommand in the datastoreEndpoint field — it is not a URL pattern you can construct from a region and data store ID, so always call Describe before making FHIR requests. After CreateFHIRDatastoreCommand, poll DescribeFHIRDatastoreCommand until datastoreStatus is 'ACTIVE' before issuing any FHIR API calls; creation typically takes one to five minutes.
Why HealthLake in an MCP server
Healthcare AI agents have fundamentally different data access requirements from general-purpose agents. A patient summary agent needs structured clinical facts — a patient's current medications, recent lab values, active diagnoses, and upcoming encounters — not raw text blobs. Amazon HealthLake provides a FHIR R4-compliant data store that makes clinical data queryable with typed resource schemas, standardized coding systems (LOINC for labs, SNOMED CT and ICD-10 for diagnoses, RxNorm for medications), and a REST API that returns structured JSON resources your MCP tool handler can pass directly to an LLM context.
Contrast this with the two common alternatives for health data in AWS. Amazon S3 stores health data as raw files — CCD documents, HL7 v2 messages, unstructured clinical notes. Retrieving a patient's active medications from S3 requires parsing documents and doing your own text extraction; there is no typed query. Amazon RDS can store health data in relational tables, but you must design and maintain the schema yourself, implement FHIR-to-SQL mappings, and handle versioning of resources manually. HealthLake is purpose-built for FHIR: it stores every resource with a system-generated logical ID, maintains a full version history, and handles FHIR search parameters natively.
For MCP server tool arguments, the FHIR resource model maps cleanly to Zod schemas. A read_patient tool takes a patient_id string and returns a typed Patient resource. A get_observations tool takes patient_id, loinc_code, and date range parameters and returns an array of Observation resources. The structured nature of FHIR makes it straightforward to surface as MCP tool arguments and return values without custom serialization logic.
SDK setup and package installation
HealthLake requires two separate AWS SDK packages: @aws-sdk/client-healthlake for data store management operations, and the SigV4 signing stack for FHIR REST API calls. The FHIR API is a plain HTTPS REST endpoint — there is no SDK command for individual FHIR resource operations. You sign requests manually using @smithy/signature-v4 and issue them with the native fetch API or node-fetch.
npm install @aws-sdk/client-healthlake \
@smithy/signature-v4 \
@aws-crypto/sha256-js \
@aws-sdk/credential-providers
The management client is instantiated once per process with your target region. HealthLake is available in us-east-1, us-west-2, and us-east-2 as of late 2026 — verify current region availability in the AWS documentation before deploying, as availability is more limited than most AWS services.
import {
HealthLakeClient,
CreateFHIRDatastoreCommand,
DescribeFHIRDatastoreCommand,
ListFHIRDatastoresCommand,
type CreateFHIRDatastoreCommandInput,
type DatastoreProperties,
} from '@aws-sdk/client-healthlake';
const client = new HealthLakeClient({ region: 'us-east-1' });
The HealthLakeClient picks up credentials from the standard AWS credential provider chain: environment variables, shared credentials file, EC2/ECS instance metadata, or a custom credentials provider passed in the constructor. For MCP servers running in Lambda or ECS, IAM role credentials are available automatically via the instance metadata service.
Creating a FHIR R4 data store
CreateFHIRDatastoreCommand provisions a new FHIR R4 data store. The request requires a name, the FHIR version ('R4' is the only currently supported value), and an SSE configuration for encryption at rest. Creation is asynchronous — the command returns immediately with a datastoreId and a datastoreStatus of 'CREATING'. The data store is not usable for FHIR API calls until the status transitions to 'ACTIVE', which typically takes one to five minutes.
async function createDatastore(name: string): Promise<string> {
const input: CreateFHIRDatastoreCommandInput = {
datastoreName: name,
datastoreTypeVersion: 'R4',
// Optional: pre-populate with synthetic SYNTHEA patient data for development
// Remove preloadDataConfig for production datastores
preloadDataConfig: {
preloadDataType: 'SYNTHEA',
},
sseConfiguration: {
kmsEncryptionConfig: {
// AWS_OWNED_KMS_KEY uses an AWS-managed key — no additional KMS cost
// Use CUSTOMER_MANAGED_KMS_KEY and provide a kmsKeyId for BYOK
cmkType: 'AWS_OWNED_KMS_KEY',
},
},
};
const response = await client.send(new CreateFHIRDatastoreCommand(input));
const datastoreId = response.datastoreId;
if (!datastoreId) {
throw new Error('CreateFHIRDatastore did not return a datastoreId');
}
console.log(`Datastore created: ${datastoreId}, status: ${response.datastoreStatus}`);
return datastoreId;
}
The preloadDataType: 'SYNTHEA' option populates the data store with synthetic patient records generated by the Synthea patient generator — useful for development and testing without needing real PHI. Remove preloadDataConfig entirely for production data stores that will receive real clinical data.
For encryption, AWS_OWNED_KMS_KEY uses an AWS-managed KMS key with no additional KMS charges. If your compliance requirements mandate customer-managed keys (HIPAA Business Associate Agreements often require this for audit trail purposes), set cmkType: 'CUSTOMER_MANAGED_KMS_KEY' and provide the kmsKeyId field with your KMS key ARN. Refer to the KMS encryption guide for key creation and rotation policies.
Polling for ACTIVE status with DescribeFHIRDatastoreCommand
DescribeFHIRDatastoreCommand returns a DatastoreProperties object with the current status and, once the data store is active, the FHIR endpoint URL. You must poll this until datastoreStatus is 'ACTIVE' before issuing any FHIR REST API calls. Calling the FHIR endpoint while the data store is still in 'CREATING' status results in HTTP errors — the endpoint does not yet exist.
async function waitForDatastoreActive(
datastoreId: string,
timeoutMs = 600_000, // 10 minutes
pollIntervalMs = 15_000, // 15 seconds
): Promise<DatastoreProperties> {
const deadline = Date.now() + timeoutMs;
while (Date.now() < deadline) {
const response = await client.send(
new DescribeFHIRDatastoreCommand({ datastoreId })
);
const props = response.datastoreProperties;
if (!props) throw new Error('No datastoreProperties in response');
console.log(`Datastore ${datastoreId} status: ${props.datastoreStatus}`);
if (props.datastoreStatus === 'ACTIVE') {
return props;
}
if (props.datastoreStatus === 'DELETED' || props.datastoreStatus === 'DELETING') {
throw new Error(`Datastore entered terminal failed status: ${props.datastoreStatus}`);
}
await new Promise(r => setTimeout(r, pollIntervalMs));
}
throw new Error(`Datastore did not become ACTIVE within ${timeoutMs / 1000}s`);
}
// Usage
const datastoreId = await createDatastore('my-clinical-datastore');
const props = await waitForDatastoreActive(datastoreId);
const datastoreEndpoint = props.datastoreEndpoint!;
console.log(`FHIR endpoint: ${datastoreEndpoint}`);
// e.g. https://healthlake.us-east-1.amazonaws.com/datastore/abc123/r4
The datastoreEndpoint field on the returned DatastoreProperties is the FHIR base URL for all resource operations. While the URL typically follows the pattern https://healthlake.{region}.amazonaws.com/datastore/{datastoreId}/r4, you must always read it from DescribeFHIRDatastoreCommand rather than constructing it. AWS reserves the right to change endpoint URL patterns, and constructing the URL will break silently if the format changes.
The four possible datastoreStatus values are: 'CREATING' — provisioning in progress; 'ACTIVE' — ready for FHIR API calls; 'DELETING' — deletion in progress; 'DELETED' — data store has been removed and the endpoint is gone. There is no 'FAILED' status — if creation fails, AWS support must be contacted. For MCP servers at startup, persist the datastoreId and datastoreEndpoint in environment variables or AWS Systems Manager Parameter Store rather than re-creating the data store on every deploy.
The two API layers: management vs FHIR REST
Understanding the boundary between the two API surfaces is essential before writing any HealthLake code. They use different packages, different authentication flows, and different content types. Mixing them up is the most common source of confusing errors when first integrating HealthLake.
| Layer | Package | Operations | Content-Type | Auth |
|---|---|---|---|---|
| Management (SDK) | @aws-sdk/client-healthlake |
CreateFHIRDatastore, DescribeFHIRDatastore, ListFHIRDatastores, StartFHIRImportJob, StartFHIRExportJob, DescribeFHIRImportJob, DescribeFHIRExportJob | Handled by SDK | SDK credential chain |
| FHIR REST (HTTP) | @smithy/signature-v4 + fetch |
Create/Read/Update/Delete/Search for all FHIR resource types | application/fhir+json |
SigV4 manual signing |
The management API uses the standard AWS API endpoints (healthlake.us-east-1.amazonaws.com with AWS-style paths) and is called through the HealthLakeClient. The FHIR REST API uses the data store endpoint returned by Describe (healthlake.us-east-1.amazonaws.com/datastore/{id}/r4) and requires you to sign each HTTP request manually using SigV4 before issuing it.
SigV4 signing for FHIR API calls
The FHIR REST endpoint authenticates requests using AWS Signature Version 4, the same signing mechanism used by all AWS APIs. Unlike SDK-based services where signing is automatic, FHIR HTTP calls require manual signing because there is no SDK command wrapping them. The service name for signing is 'healthlake'.
The critical requirements for correct SigV4 signing against HealthLake: the host header must be set before signing (not after); the body must be a string, not a Buffer — the content hash in the signature is computed from the string bytes; and the Content-Type header sent in the signed request must match the one included in the signature computation exactly.
import { SignatureV4 } from '@smithy/signature-v4';
import { Sha256 } from '@aws-crypto/sha256-js';
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
const signer = new SignatureV4({
service: 'healthlake',
region: process.env.AWS_REGION!,
credentials: fromNodeProviderChain(),
sha256: Sha256,
});
async function fhirRequest(
datastoreEndpoint: string,
method: string,
path: string,
body?: object
): Promise<Response> {
const url = new URL(`${datastoreEndpoint}${path}`);
const bodyStr = body ? JSON.stringify(body) : undefined;
const request = {
method,
protocol: 'https:' as const,
hostname: url.hostname,
path: url.pathname,
headers: {
'content-type': 'application/fhir+json',
host: url.hostname,
...(bodyStr ? { 'content-length': String(Buffer.byteLength(bodyStr)) } : {}),
},
body: bodyStr,
};
const signed = await signer.sign(request);
return fetch(url.toString(), {
method,
headers: signed.headers as Record<string, string>,
body: bodyStr,
});
}
The fromNodeProviderChain() credentials provider resolves credentials in the standard order: environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), shared credentials file, EC2/ECS instance metadata. For MCP servers running on EC2 or in ECS tasks with an IAM role attached, credentials are obtained from the instance metadata endpoint automatically without any additional configuration.
One implementation note: the signer instance can be reused across requests. The fromNodeProviderChain() credentials provider caches temporary credentials internally and refreshes them before they expire. Do not construct a new SignatureV4 instance per request — this creates unnecessary credential provider overhead and can cause subtle issues with credential refresh timing.
FHIR resource CRUD: Create, Read, Update, Delete
FHIR defines a uniform REST interface for all resource types. Each resource type has its own path under the data store endpoint: /Patient, /Observation, /Condition, and so on. The four CRUD operations map to HTTP methods.
Create (POST) — POST to /{ResourceType} with the resource as the request body. The resourceType field in the body must match the URL path exactly. HealthLake generates a logical ID and returns the created resource with the system-assigned id field populated.
// Create a Patient resource
const response = await fhirRequest(
datastoreEndpoint,
'POST',
'/Patient',
{
resourceType: 'Patient',
name: [
{
use: 'official',
family: 'Smith',
given: ['John', 'Michael'],
}
],
birthDate: '1990-01-15',
gender: 'male',
identifier: [
{
system: 'http://hospital.example.com/mrn',
value: 'MRN-00123',
}
],
}
);
if (!response.ok) {
const error = await response.json();
throw new Error(`Create Patient failed: ${JSON.stringify(error)}`);
}
const patient = await response.json();
const patientId = patient.id; // system-generated UUID
console.log(`Created Patient/${patientId}`);
Read (GET) — GET to /{ResourceType}/{id} returns the resource if it exists. If the resource does not exist, HealthLake returns HTTP 404 with an OperationOutcome body. If the resource was previously created but then deleted, HealthLake returns HTTP 410 Gone (soft delete — see the gotchas section).
// Read a Patient resource
const readResponse = await fhirRequest(
datastoreEndpoint,
'GET',
`/Patient/${patientId}`
);
if (readResponse.status === 404) {
console.log('Patient not found');
} else if (readResponse.status === 410) {
console.log('Patient was deleted (soft delete — history still accessible)');
} else if (!readResponse.ok) {
const error = await readResponse.json();
throw new Error(`Read Patient failed: ${JSON.stringify(error)}`);
} else {
const patient = await readResponse.json();
console.log(JSON.stringify(patient, null, 2));
}
Update (PUT) — PUT to /{ResourceType}/{id} with the complete updated resource as the body. The id field in the resource body must match the URL path parameter. HealthLake does not support partial updates (FHIR PATCH) — always send the full resource. The response returns the updated resource with an incremented meta.versionId.
// Update a Patient resource — must include the id field matching the URL
const updateResponse = await fhirRequest(
datastoreEndpoint,
'PUT',
`/Patient/${patientId}`,
{
resourceType: 'Patient',
id: patientId, // REQUIRED — must match URL path parameter
name: [
{
use: 'official',
family: 'Smith',
given: ['John', 'Michael'],
}
],
birthDate: '1990-01-15',
gender: 'male',
identifier: [
{
system: 'http://hospital.example.com/mrn',
value: 'MRN-00123',
}
],
// Add a new contact
telecom: [
{ system: 'phone', value: '+1-555-0100', use: 'home' }
],
}
);
if (!updateResponse.ok) {
const error = await updateResponse.json();
throw new Error(`Update Patient failed: ${JSON.stringify(error)}`);
}
Delete (DELETE) — DELETE to /{ResourceType}/{id}. HealthLake performs a soft delete: the resource is marked as deleted and returns HTTP 204 No Content on success. A subsequent GET for that resource returns HTTP 410 Gone with an OperationOutcome. The resource history is still accessible via GET /Patient/{id}/_history.
// Delete a Patient resource (soft delete)
const deleteResponse = await fhirRequest(
datastoreEndpoint,
'DELETE',
`/Patient/${patientId}`
);
// 204 No Content = success
// 404 = resource not found (already deleted or never existed)
if (deleteResponse.status !== 204 && deleteResponse.status !== 404) {
const error = await deleteResponse.json();
throw new Error(`Delete Patient failed: ${JSON.stringify(error)}`);
}
Key FHIR resource types for healthcare AI agents
FHIR R4 defines over 140 resource types. For a healthcare AI agent, six resource types cover the vast majority of clinical data access patterns. Each resource type has standardized coding systems — using the correct coding system in your MCP tool arguments is what enables FHIR search to find resources reliably.
| Resource | What it represents | Key fields | Coding system |
|---|---|---|---|
Patient |
Demographic and administrative information about an individual receiving care | name, birthDate, gender, identifier (MRN) |
Identifier systems are institution-specific (e.g. MRN) |
Observation |
Lab results, vital signs, clinical findings, social history | code (LOINC), valueQuantity, subject, effectiveDateTime, status |
LOINC (e.g. 8867-4 for heart rate, 2160-0 for creatinine) |
Condition |
Clinical diagnoses, problems, health concerns | code (SNOMED/ICD), subject, clinicalStatus, onsetDateTime, verificationStatus |
SNOMED CT or ICD-10-CM (e.g. 73211009 for type 2 diabetes) |
MedicationRequest |
Prescriptions and medication orders | medication (RxNorm), subject, authoredOn, status, dosageInstruction |
RxNorm (e.g. 860975 for metformin 500mg tablet) |
Encounter |
Clinical visits, admissions, emergency department episodes | subject, type, period, status, class (inpatient/outpatient/ED) |
SNOMED CT for encounter type; ActEncounterCode for class |
DiagnosticReport |
Structured reports with findings and interpreted results | code, subject, result (Observation references), effectiveDateTime, conclusion |
LOINC for report type |
When creating resources programmatically in MCP tool handlers, always populate the code field with a properly coded value from the appropriate terminology system. HealthLake stores resources with any code value, but FHIR search by code — the primary way to retrieve resources of interest — only works reliably when you use standard coding systems. A search for code=8867-4 (LOINC heart rate) finds resources coded with that LOINC code; it does not perform fuzzy matching on display text.
MCP tool handler: read_fhir_resource
An MCP tool handler wrapping FHIR resource reads is straightforward once the SigV4 signing helper is in place. The tool accepts a resource type and resource ID, issues a GET request, and returns either the resource as formatted JSON or an error from the OperationOutcome response body.
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';
const server = new McpServer({
name: 'healthlake-mcp',
version: '1.0.0',
});
// datastoreEndpoint must be loaded before registering tools
// Load from env var, SSM Parameter Store, or call DescribeFHIRDatastoreCommand at startup
const datastoreEndpoint = process.env.HEALTHLAKE_ENDPOINT!;
server.tool(
'read_fhir_resource',
'Read a single FHIR resource by type and ID from the HealthLake data store.',
{
resource_type: z.string().describe(
'FHIR resource type, e.g. Patient, Observation, Condition, MedicationRequest, Encounter'
),
resource_id: z.string().describe(
'The FHIR logical ID of the resource (UUID assigned by HealthLake at creation)'
),
},
async ({ resource_type, resource_id }) => {
const response = await fhirRequest(
datastoreEndpoint,
'GET',
`/${resource_type}/${resource_id}`
);
if (!response.ok) {
const error = await response.json();
return {
content: [{ type: 'text', text: JSON.stringify(error, null, 2) }],
isError: true,
};
}
const resource = await response.json();
return {
content: [{ type: 'text', text: JSON.stringify(resource, null, 2) }],
};
}
);
server.tool(
'create_fhir_resource',
'Create a new FHIR resource in the HealthLake data store.',
{
resource_type: z.string().describe('FHIR resource type (must match resourceType field in body)'),
resource_body: z.string().describe('Complete FHIR resource as a JSON string'),
},
async ({ resource_type, resource_body }) => {
let parsed: object;
try {
parsed = JSON.parse(resource_body);
} catch {
return {
content: [{ type: 'text', text: 'Invalid JSON in resource_body' }],
isError: true,
};
}
const response = await fhirRequest(
datastoreEndpoint,
'POST',
`/${resource_type}`,
parsed
);
const result = await response.json();
return {
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
isError: !response.ok,
};
}
);
The resource_body parameter accepts a JSON string rather than a structured Zod schema because FHIR resource shapes vary enormously between resource types — a Patient has very different fields from an Observation or a Condition. Accepting a JSON string lets the LLM construct resource bodies for any FHIR resource type without requiring separate Zod schemas for each. For production tools where only specific resource types will be created, defining typed Zod schemas per resource type provides better validation and LLM guidance.
Listing existing data stores
ListFHIRDatastoresCommand returns all data stores in the current region for the caller's AWS account. It supports optional filtering by data store name and status. Use this at MCP server startup to discover the endpoint for a known-named data store rather than hard-coding a data store ID.
async function findDatastoreByName(name: string): Promise<DatastoreProperties | undefined> {
const response = await client.send(
new ListFHIRDatastoresCommand({
filter: {
datastoreName: name,
datastoreStatus: 'ACTIVE',
},
})
);
return response.datastorePropertiesList?.find(
ds => ds.datastoreName === name && ds.datastoreStatus === 'ACTIVE'
);
}
// At MCP server startup:
const existing = await findDatastoreByName('my-clinical-datastore');
let datastoreEndpoint: string;
if (existing?.datastoreEndpoint) {
datastoreEndpoint = existing.datastoreEndpoint;
console.log(`Using existing datastore: ${existing.datastoreId}`);
} else {
const id = await createDatastore('my-clinical-datastore');
const props = await waitForDatastoreActive(id);
datastoreEndpoint = props.datastoreEndpoint!;
}
Common gotchas and production errors
These are the specific errors that appear most frequently when integrating HealthLake into an MCP server for the first time.
| Error | Cause | Fix |
|---|---|---|
| HTTP 415 Unsupported Media Type on any FHIR API call | Content-Type: application/json was sent instead of application/fhir+json |
Set 'content-type': 'application/fhir+json' in every FHIR request header before signing. The fhirRequest helper above includes this. |
| HTTP 400 Bad Request: "resourceType field does not match endpoint" | The resourceType field in the body does not match the URL path, e.g. POST to /Observation with body { resourceType: 'Patient' } |
Always set resourceType in the body to match the URL path segment. Use the same variable for both. |
| FHIR API returns errors immediately after CreateFHIRDatastoreCommand | The data store is still in 'CREATING' status and the endpoint does not exist yet |
Always poll DescribeFHIRDatastoreCommand until datastoreStatus === 'ACTIVE' before issuing any FHIR calls. |
| PUT update creates inconsistency or returns 400 | The id field in the resource body was omitted or does not match the URL path parameter |
Always include id: resourceId in the resource body for PUT requests, matching the URL path parameter exactly. |
| GET after DELETE returns 410 Gone, not 404 | HealthLake performs soft deletes — the resource version history is preserved | Treat both 404 and 410 as "resource not found" in your MCP tool handler error logic. Access history via GET /{ResourceType}/{id}/_history if needed. |
| SigV4 signature mismatch (HTTP 403 with "SignatureDoesNotMatch") | The host header was set after signing, or the body was passed as a Buffer rather than a string to the signer |
Set host in the headers object before calling signer.sign(). Pass body as a string — the signer computes the content SHA-256 from the string bytes, not from a Buffer. |
One additional runtime issue: the Content-Length header. While technically optional for POST and PUT requests in many HTTP clients, HealthLake FHIR endpoints sometimes reject requests without a correct Content-Length when the body is non-trivial in size. The fhirRequest helper above includes content-length in the headers when a body is present. Use Buffer.byteLength(bodyStr) rather than bodyStr.length to get the correct byte count for multi-byte Unicode content in clinical text.
IAM permissions
HealthLake requires two categories of IAM permissions: management permissions for data store operations, and FHIR API permissions for resource operations. These use different IAM action namespaces.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "HealthLakeManagement",
"Effect": "Allow",
"Action": [
"healthlake:CreateFHIRDatastore",
"healthlake:DescribeFHIRDatastore",
"healthlake:ListFHIRDatastores",
"healthlake:StartFHIRImportJob",
"healthlake:StartFHIRExportJob",
"healthlake:DescribeFHIRImportJob",
"healthlake:DescribeFHIRExportJob"
],
"Resource": "*"
},
{
"Sid": "HealthLakeFHIRReadWrite",
"Effect": "Allow",
"Action": [
"healthlake:ReadResource",
"healthlake:SearchWithGet",
"healthlake:SearchWithPost",
"healthlake:CreateResource",
"healthlake:UpdateResource",
"healthlake:DeleteResource"
],
"Resource": "arn:aws:healthlake:us-east-1:123456789012:datastore/fhirr4/*"
}
]
}
The FHIR API IAM actions (healthlake:ReadResource, healthlake:CreateResource, etc.) authorize the SigV4-signed HTTP calls to the FHIR endpoint. Even though these calls go to an HTTPS endpoint rather than the standard AWS API gateway, IAM still controls access. The resource ARN for the FHIR API actions is the data store ARN, available in the datastoreArn field of DescribeFHIRDatastoreCommand. See the HealthLake IAM guide for complete least-privilege policies and cross-account access patterns.