Deleting a FHIR resource
The FHIR delete
interaction removes an existing FHIR resource from a HealthLake
data store. For additional information, see delete
To delete a FHIR resource
-
Collect HealthLake
region
anddatastoreId
values. For more information, see Getting data store properties. -
Determine the type of FHIR
Resource
to delete and collect the associatedid
value. For more information, see Resource types. -
Construct a URL for the request using the collected values for HealthLake
region
anddatastoreId
. Also include the FHIRResource
type and its associatedid
. To view the entire URL path in the following example, scroll over the Copy button.DELETE https://healthlake.
region
.amazonaws.com/datastore/datastoreId
/r4/Resource
/id
-
Send the request. The FHIR
delete
interaction uses aDELETE
request with either AWS Signature Version 4 or SMART on FHIR authorization. The followingcurl
example removes an existing FHIRPatient
resource from a HealthLake data store. To view the entire example, scroll over the Copy button.