title: FHIR Patch in a transaction bundle
body: <p>In order to submit a <code>PATCH</code> operation in a FHIR transaction bundle, I see that we can use a resourceType as <code>Binary</code> and submit like this (quoted from <a href="https://smilecdr.com/docs/fhir_repository/updating_data.html" rel="nofollow noreferrer">https://smilecdr.com/docs/fhir_repository/updating_data.html</a>),</p>
  
  <pre><code>  "resourceType": "Bundle",
    "type": "transaction",
    "entry": [
      {
        "fullUrl": "Patient/1",
        "resource": {
          "resourceType": "Binary",
          "contentType": "application/json-patch+json",
          "data": "WyB7ICJvcCI6InJlcGxhY2UiLCAicGF0aCI6Ii9hY3RpdmUiLCAidmFsdWUiOmZhbHNlIH0gXQ=="
        },
        "request": {
          "method": "PATCH",
          "url": "Patient/1"
        }
      }
    ]
  }
  </code></pre>
  
  <p>But is it possible to submit the patch body as it is, like this <code>[ { "op":"replace", "path":"/active", "value":false } ]</code> instead of Base-64 encoded within the transaction bundle? If so what should be the resource type and how should I pass it? I couldn't find much information on this anywhere? (Note:- I have implemented it as a standalone PATCH API for each of the resource, but I have trouble figuring out how to pass the request as a transaction bundle.</p>