Stream: implementers
Topic: Conditional PATCH in a Bundle
Dee (Sep 17 2020 at 12:42):
Hello,
I've seen from post https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Transaction.20with.20PATCH.20request that using HAPI, you can use a JSONPatch with the Binary resource to enable PATCH requests within a Bundle. This works for me, however when I make the patch conditional, it fails with the error "Resource MeasureReport is not known".
Example:
{
request: {
method: 'PATCH',
url: 'MeasureReport?subject=Patient/d86da58e-fada-4324-af45-909f56be55cb&measure=Measure/Day-Insight&date=eq2020-09-16T00:00:00'
},
resource: {
resourceType: 'Binary',
contentType: 'application/json-patch+json',
data: 'W3sib3AiOiAicmVwbGFjZSIsInBhdGgiOiAiL3N0YXR1cyIsInZhbHVlIjogImVycm9yIn1d'
}
}
I've also tried this with resource type Observation.
Is this happening because the resource type is Binary, but the url is pointing to type MeasureReport? If so, how do I enable conditional patching within a bundle?
Lloyd McKenzie (Sep 17 2020 at 14:50):
You might ask on the #hapi stream
Dee (Sep 22 2020 at 15:27):
Will do. Thank you!
Last updated: Apr 12 2022 at 19:14 UTC