Creating a FHIR resource
The FHIR create
interaction creates a new FHIR resource in a HealthLake data
store. For additional information, see create
To create a FHIR resource
-
Collect HealthLake
region
anddatastoreId
values. For more information, see Getting data store properties. -
Determine the type of FHIR
Resource
to create. 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 to create. To view the entire URL path in the following example, scroll over the Copy button.POST https://healthlake.
region
.amazonaws.com/datastore/datastoreId
/r4/Resource
-
Construct a JSON body for the request, specifying the FHIR data for the new resource. For the purpose of this procedure, we are using a FHIR
Patient
resource, so save the file ascreate-patient.json
.{ "resourceType": "Patient", "identifier": [ { "system": "urn:oid:1.2.36.146.595.217.0.1", "value": "12345" } ], "name": [ { "family": "Silva", "given": [ "Ana", "Carolina" ] } ], "gender": "female", "birthDate": "1992-02-10" }
-
Send the request. The FHIR
create
interaction uses aPOST
request with either AWS Signature Version 4 or SMART on FHIR authorization. The following examples create a FHIRPatient
resource in HealthLake using either curl or the HealthLake Console. To view an entire example, scroll over the Copy button.