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

DomainResource-text SearchParameter is rejected #6649

Open
JohnMoehrke opened this issue Jan 24, 2025 · 2 comments
Open

DomainResource-text SearchParameter is rejected #6649

JohnMoehrke opened this issue Jan 24, 2025 · 2 comments

Comments

@JohnMoehrke
Copy link

NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help

Describe the bug
I have been submitting FHIR Core SearchParameter resources (derived from FHIR R4) with status set to retired in order to turn off search indexing where I don't need it. This works except for the DomainResource-text SearchParameter.

The DomainResource-text SearchParameter is base on DomainResource, as that is where the _text element exists.

When submitting this I get a "500 Internal Server Error", with the diagnostics indicating that it failed because DomainResource does not exist.

To Reproduce
Steps to reproduce the behavior:

  1. Create a SearchParameter consistent with DomainResource-text

Expected behavior
Should be accepted as DomainResource exists as much as any.

Screenshots
NA

Environment (please complete the following information):

  • HAPI FHIR Version
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]

Additional context

{

            "response": {

                "status": "500 Internal Server Error",

                "outcome": {

                    "resourceType": "OperationOutcome",

                    "text": {

                        "status": "generated",

                        "div": "<div xmlns=\http://[www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)\><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td>HAPI-1684: Unknown resource name &quot;DomainResource&quot; (this name is not known in FHIR version &quot;R4&quot;)</td></tr></table></div>"

                    },

                    "issue": [

                        {

                            "severity": "error",

                            "code": "exception",

                            "diagnostics": "HAPI-1684: Unknown resource name \"DomainResource\" (this name is not known in FHIR version \"R4\")"

                        }

                    ]

                }

            }

        },

@JohnMoehrke
Copy link
Author

Note I also filed for clarification in FHIR core
FHIR-49657: SearchParameter on DomainResource seems improper:

@JohnMoehrke
Copy link
Author

Note if you change the base to Resource it will succeed.

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

No branches or pull requests

1 participant