Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT search parameter results in "invalid" 400 error #3595

Closed
dfjones1981 opened this issue Nov 15, 2023 · 7 comments
Closed

PUT search parameter results in "invalid" 400 error #3595

dfjones1981 opened this issue Nov 15, 2023 · 7 comments
Labels
Bug Bug bug bug.

Comments

@dfjones1981
Copy link

Describe the bug
When attempting to change the value of a SearchParameter via a PUT request we receive a 400 error
Snippet of response here, with personal data replaced:
"issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "A search parameter with the same code value 'yourid' already exists for base type 'base-type-here'.",
"location": [
"Code // OperationOutcome.Location is deprecated, please use OperationOutcome.Expression"
],
"expression": [
"Code"
]
}
]

This behaviour worked correctly a few weeks ago when it was last attempted. We're using the Azure Health Data FHIR Service.

FHIR Version?
R4

Data provider?
SQL Server

To Reproduce
Steps to reproduce the behavior:

  1. Save a new Search Parameter with a known id via a POST request
  2. Update the Search Parameter via a PUT request, using the same id in the url and body
  3. Inspect the response back as a 400

Expected behavior
200 response and the Search Parameter updated

Actual behavior
400 response and the Search Parameter not updated

@dfjones1981 dfjones1981 added the Bug Bug bug bug. label Nov 15, 2023
@abiisnn
Copy link
Contributor

abiisnn commented Nov 15, 2023

Would you mind adding the body of your request?

Thanks!

@dfjones1981
Copy link
Author

{
"resourceType" : "SearchParameter",
"id" : "all-text",
"url" : "https://xyz.com/fhir/SearchParameter/AllText",
"name" : "all-text",
"status" : "active",
"date" : "2023-09-26",
"publisher" : "xyz",
"contact" : [
{
"name" : "xyz"
}
],
"description" : "Compound text search",
"code" : "all-text",
"base" : [
"HealthcareService"
],
"type" : "string",
"expression": "category.coding.display | name | comment"
}

@dfjones1981
Copy link
Author

Worth noting that this is happening for all our Search Parameters, not just this one. And last week the same PUT requests were working with no errors

@abiisnn
Copy link
Contributor

abiisnn commented Nov 21, 2023

What Field are you trying to update in that example? and could you share what's the original search parameter?

@abiisnn
Copy link
Contributor

abiisnn commented Dec 4, 2023

Hi @dfjones1981,

  1. Can you re-try? we had some issues with PUT some weeks ago, but we have already fixed it and if you pull the last version of the FHIR server, it should be fine now.
  2. If you have a Provisioned FHIR service in the azure portal, you can provide us the FHIR service URL and we could look at what's happening, also, it would be best if you open a support ticket.

@EXPEkesheth
Copy link
Collaborator

@dfjones1981 - If no further comments, the issue will be closed in a week

@EXPEkesheth
Copy link
Collaborator

Closing the issue per above comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug bug bug.
Projects
None yet
Development

No branches or pull requests

3 participants