ysael
04/24/2024, 12:42 PM{
"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 ->
request: {
method: "POST",
url: "PractitionerRole",
ifNoneExist:identifier=http://hl7.org/fhir/sid/us-npi|123,
},
thanks in advance