👋 Is it feasible to do this in a bundle transacti...
# dev
y
👋 Is it feasible to do this in a bundle transaction ->
Copy code
{
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [
    {
      "request": {
        "method": "PATCH",
        "url": "PractitionerRole?identifier=http://hl7.org/fhir/sid/us-npi|123"
      },
      "resource": {
        "resourceType": "Binary",
        "contentType": "application/json-patch+json",
        "data": "W3sib3AiOiJhZGQiLCJwYXRoIjoiL2lkZW50aWZpZXIiLCJ2YWx1ZSI6eyJzeXN0ZW0iOiJwYXBhU3lzdGVtIiwidmFsdWUiOiI3NzcifX1d"
      }
    }
  ]
}
The goal would be to patch conditionally if a ressource if found via an identifier. If not we could want to create it while validating via ifNoneExist like this ->
Copy code
request: {
        method: "POST",
        url: "PractitionerRole",
      ifNoneExist:identifier=http://hl7.org/fhir/sid/us-npi|123,
      },
thanks in advance
154 Views