Skip to content

Tranaction Bundle PATCH results in "HAPI-0339: Can not handle transaction with nested resource of type Parameters" #5642

Closed
@lukedegruchy

Description

@lukedegruchy

Describe the bug
A user with the below correct permissions will encounter the below error when POSTing a Transaction Bundle including a PATCH.

This is the error: HAPI-0339: Can not handle transaction with nested resource of type Parameters

To Reproduce
Steps to reproduce the behavior:

  1. Ensure you have an existing Patient
  2. Create a user with the permissions below
  3. POST the Bundle below (replace the patient ID with the one you created)
  4. See error: "HAPI-0339: Can not handle transaction with nested resource of type Parameters"
  • FHIR_CLIENT
  • FHIR_PATCH
  • FHIR_TRANSACTION
  • FHIR_WRITE_ALL_OF_TYPE (Patient)
  • FHIR_WRITE_TYPE_IN_COMPARTMENT (Patient/???, not strictly not necessarily for the simple scenario for this bug)
{
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [
    {
      "fullUrl": "Patient/1326",
      "request": {
        "method": "PATCH",
        "url": "Patient/[[YOUR PATIENT ID]]"
      },
      "resource": {
        "resourceType": "Parameters",
        "parameter": [
          {
            "name": "operation",
            "part": [
              {
                "name": "type",
                "valueCode": "replace"
              },
              {
                "name": "path",
                "valueString": "Patient.birthDate"
              },
              {
                "name": "value",
                "valueDate": "1948-08-08"
              }
            ]
          }
        ]
      }
    }
  ]
}

Expected behavior
The bundle should correctly update the patient with the new birthDate

Environment (please complete the following information):

  • HAPI FHIR Version: rel_7_0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions