Skip to main content

fhir_datastores

Creates, updates, deletes, gets or lists a fhir_datastores resource.

Overview

Namefhir_datastores
TypeResource
Idaws.healthlake.fhir_datastores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analytics_configurationobjectThe analytics configuration for the data store.
created_atstring (date-time)The time the data store was created.
datastore_arnstringThe Amazon Resource Name (ARN) used in the creation of the data store. (pattern: <code>arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:healthlake:[a-zA-Z0-9-]+:[0-9]{12}:datastore/.+?</code>)
datastore_endpointstringA general-purpose string value. (pattern: <code>[\P{M}\p{M}]{0,10000}</code>)
datastore_idstringThe data store identifier. (pattern: <code>([\p{L}\p{Z}\p{N}_.:/=+-%@]*)</code>)
datastore_namestringThe data store name. (pattern: <code>([\p{L}\p{Z}\p{N}_.:/=+-%@]*)</code>)
datastore_statusstringThe data store status. (CREATING, ACTIVE, DELETING, DELETED, CREATE_FAILED, UPDATING, UPDATE_FAILED)
datastore_type_versionstringThe FHIR release version supported by the data store. Current support is for version R4. (R4)
error_causeobjectThe error cause for the current data store operation.
identity_provider_configurationobjectThe identity provider selected during data store creation.
nlp_configurationobjectThe natural language processing (NLP) configuration for the data store.
preload_data_configobjectThe preloaded Synthea data configuration for the data store.
profile_configurationobjectThe profile configuration for the data store.
sse_configurationobjectThe server-side encryption key configuration for a customer provided encryption key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_fhir_datastoreselectregionGet properties for a FHIR-enabled data store.
list_fhir_datastoresselectregionList all FHIR-enabled data stores in a user’s account, regardless of data store status.
create_fhir_datastoreinsertregion, DatastoreTypeVersionCreate a FHIR-enabled data store.
update_fhir_datastoreupdateregion, DatastoreIdUpdate the properties of a FHIR-enabled data store.
delete_fhir_datastoredeleteregionDelete a FHIR-enabled data store.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Get properties for a FHIR-enabled data store.

SELECT
analytics_configuration,
created_at,
datastore_arn,
datastore_endpoint,
datastore_id,
datastore_name,
datastore_status,
datastore_type_version,
error_cause,
identity_provider_configuration,
nlp_configuration,
preload_data_config,
profile_configuration,
sse_configuration
FROM aws.healthlake.fhir_datastores
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a FHIR-enabled data store.

INSERT INTO aws.healthlake.fhir_datastores (
DatastoreName,
DatastoreTypeVersion,
SseConfiguration,
PreloadDataConfig,
ClientToken,
Tags,
IdentityProviderConfiguration,
AnalyticsConfiguration,
NlpConfiguration,
ProfileConfiguration,
region
)
SELECT
'{{ DatastoreName }}',
'{{ DatastoreTypeVersion }}' /* required */,
'{{ SseConfiguration }}',
'{{ PreloadDataConfig }}',
'{{ ClientToken }}',
'{{ Tags }}',
'{{ IdentityProviderConfiguration }}',
'{{ AnalyticsConfiguration }}',
'{{ NlpConfiguration }}',
'{{ ProfileConfiguration }}',
'{{ region }}'
RETURNING
datastore_arn,
datastore_endpoint,
datastore_id,
datastore_status
;

UPDATE examples

Update the properties of a FHIR-enabled data store.

UPDATE aws.healthlake.fhir_datastores
SET
DatastoreId = '{{ DatastoreId }}',
DatastoreName = '{{ DatastoreName }}',
AnalyticsConfiguration = '{{ AnalyticsConfiguration }}',
NlpConfiguration = '{{ NlpConfiguration }}',
ProfileConfiguration = '{{ ProfileConfiguration }}',
IdentityProviderConfiguration = '{{ IdentityProviderConfiguration }}'
WHERE
region = '{{ region }}' --required
AND DatastoreId = '{{ DatastoreId }}' --required
RETURNING
datastore_properties;

DELETE examples

Delete a FHIR-enabled data store.

DELETE FROM aws.healthlake.fhir_datastores
WHERE region = '{{ region }}' --required
;