0

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?

Ewan Brown
  • 143
  • 1
  • 9

1 Answers1

2

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).

Vadim Peretokin
  • 2,221
  • 3
  • 29
  • 40
  • will this post operation create resource with its own unique FHIR id, if bundle posted as transaction? – Yusubov Feb 18 '20 at 18:25
  • Yes, plus all the references from other resources to this one (referring to the urn:uuid:...) will be replaced with that unique id, if the server has implemented transactions correctly. – Mirjam Baltus Feb 18 '20 at 20:03