Example: Using Create with POST - Amazon HealthLake

Example: Using Create with POST

The following example shows up to create a patient FHIR resource using POST.

POST /datastore/(Datastore ID)/r4/Patient/ HTTP/1.1 Host: healthlake.us-east-1.amazonaws.com Content-Type: application/json Authorization: AWS4-HMAC-SHA256 Credential=(Redacted) { "resourceType": "Patient", "active": true, "name": [ { "use": "official", "family": "Doe", "given": [ "Jane" ] }, { "use": "usual", "given": [ "Jane" ] } ], "gender": "female", "birthDate": "1966-09-01" }

To confirm creation of the patient resource, you get the following JSON response.

{ "resourceType": "Patient", "active": true, "name": [ { "use": "official", "family": "Doe", "given": [ "Jane" ] }, { "use": "usual", "given": [ "Jane" ] } ], "gender": "female", "birthDate": "1966-09-01" }