Fhirpatch delete not working?

71 views
Skip to first unread message

Saketh Varma Pericherla

unread,
Mar 9, 2023, 8:19:41 PM3/9/23
to HAPI FHIR
Is Fhirpatch delete supported in Hapi fhir?

Per https://www.hl7.org/fhir/fhirpatch.html I need provide a type = 'delete' and path = valid fhir path that returns one element.

Here is the curl Im playing with on publish hapi fhir server. The expected outcome is to delete the Meta.tag where code = 'foo' but this doesn't:

curl --location --request PATCH 'http://hapi.fhir.org/baseR4/Observation/4276705' \
--header 'Content-Type: application/fhir+json' \
--data-raw '{
  "resourceType": "Parameters",
  "parameter": [ {
    "name": "operation",
    "part": [ {
      "name": "type",
      "valueCode": "delete"
    }, {
      "name": "path",
      "valueString": "Observation.meta.tag.where(code='\''foo'\'').first()"
    }]
  } ]
}'

Saketh Varma Pericherla

unread,
Mar 11, 2023, 6:49:33 PM3/11/23
to HAPI FHIR
I see an open issue related to fhirpatch delete at https://github.com/hapifhir/hapi-fhir/issues/4568 as well. Can someone confirm if fhirpatch delete is indeed supported in hapifhir?

Saketh Varma Pericherla

unread,
Mar 12, 2023, 2:56:33 PM3/12/23
to HAPI FHIR
Nvm looks like there is a separate $meta-add endpoint that needs to be used to update fields in the meta field. This issue is resolved
Reply all
Reply to author
Forward
0 new messages