Create

Description of how to create a resource using our FHIR API.

POST {base}/fhir/{type}

Below is an example of how to use a POST request to create a resource. A complete list of resources can be found by visiting the resource specifications here.

Request POST {base}/fhir/Patient

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

{
  "id": "20304050",
  "name": [{"family": "John"}]
}

Response

{
  "name": [
    {
      "family": "John"
    }
  ],
  "id": "20304050",
  "resourceType": "Patient",
  "meta": {
    "lastUpdated": "2024-07-16T10:08:33.753699Z",
    "versionId": "540505",
    "extension": [
      {
        "url": "ex:createdAt",
        "valueInstant": "2024-07-16T10:08:33.753699Z"
      }
    ]
  }
}

Last updated