For these exercises we can utilize the following servers:

Performing CRUD via a FHIR Server

Create a FHIR Resource

There are several ways in creating a resource in a FHIR server

Via the Server directly

Consider the following sample Patient Resource

To upload the patient information to the server directly:

  1. Go to the server

  2. At the left side select the resource you want to create (Patient)

  3. Select CRUD Operations on the tab

  4. Go to the Create section

  5. Paste the contents of the resource that you want to submit.

  6. Press the Create button

Wait for the server's response

Via cURL in the terminal

Run the following command in any UNIX terminal

curl -v -X POST --header "Content-Type: application/fhir+json" --data '{"resourceType": "Patient","name": [{"family": "One","given": [ "Two", "James" ]}],"gender": "male","birthDate": "1974-12-25"}' <http://hapi.fhir.org/baseR4/Patient>