FHIR Chat · order of transaction execution · hapi

Stream: hapi

Topic: order of transaction execution


view this post on Zulip Patrick Werner (Mar 24 2021 at 13:15):

When sending a transaction to the current hapi jpastarter (5.3.0) hapi changes the order of the request.

view this post on Zulip Patrick Werner (Mar 24 2021 at 13:16):

{
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [
    {
      "request": {
        "method": "DELETE",
        "url": "Observation?_has:DiagnosticReport:result:_id=24471"
      }
    },
    {
      "request": {
        "method": "DELETE",
        "url": "/List?code=C115916&subject=5016"
      }
    },
    { "request": { "method": "DELETE", "url": "DiagnosticReport/24471" } }
  ]
}

view this post on Zulip Patrick Werner (Mar 24 2021 at 13:17):

I expected, that the order of the entries would be the order of execution. But hapi first deletes the DR, and then fails to delete the Observations

view this post on Zulip Patrick Werner (Mar 24 2021 at 13:22):

switching the entries around doesn't resolve the issue :smile:
:hapi:

view this post on Zulip Patrick Werner (Mar 25 2021 at 10:49):

https://github.com/hapifhir/hapi-fhir/issues/2501


Last updated: Apr 12 2022 at 19:14 UTC