Search code examples
hl7-fhirhapihapi-fhir

What is the purpose of the post request object at the end of my patient resource generated with Synthea?


I have generated a patient with the default settings using Synthea. The first entry in the bundle generated is as follows:

{
  "fullUrl": "urn:uuid:0100411a-6826-40d8-bfc7-baba56c9945b",
  "resource": {
    // Patient resource here
  },
  "request": {
    "method": "POST",
    "url": "Patient"
  }
}

Why does Synthea generate a POST request at the end of each entry?


Solution

  • So this Bundle can be used as a transaction or a batch, that is - when the bundle is sent to the server, the server will know what operation (method) to do with this resource and on what endpoint (url).