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

_lastUpdated search param not recognized as a valid sort specification when Full-text indexing is enabled #6646

Open
AbayomiE-T opened this issue Jan 23, 2025 · 0 comments
Assignees

Comments

@AbayomiE-T
Copy link
Contributor

AbayomiE-T commented Jan 23, 2025

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

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Smile Web Admin Console
  2. In the Persistence module, got to the 'Full-Text indexing' section set Full-Text Indexing Enabled to yes.
  3. In the same section, set Enable Indexing of Search Parameters (experimental) and Store resource bodies in the Full-Text index (experimental) to yes.
  4. Send a POST request to http://localhost:8000/CodeSystem/$apply-codesystem-delta-add and add this to the payload:
{
    "parameter": [
        {
            "name": "system",
            "valueUri": "http://example.com/cs"
        },
        {
            "resource": {
                "concept": [
                    {
                        "code": "CHEM",
                        "display": "Chemistry",
                        "concept": [
                            {
                                "code": "HB",
                                "display": "Hemoglobin"
                            },
                            {
                                "code": "NEUT",
                                "display": "Neutrophils"
                            }
                        ]
                    },
                    {
                        "code": "MICRO",
                        "display": "Microbiology",
                        "concept": [
                            {
                                "code": "C&S",
                                "display": "Culture And Sensitivity"
                            }
                        ]
                    }
                ],
                "resourceType": "CodeSystem"
            },
            "name": "codeSystem"
        }
    ],
    "resourceType": "Parameters"
}

Expected behavior
Should return a 200 OK response with the object looking similar to:

{
    "resourceType": "Parameters",
    "parameter": [
        {
            "name": "conceptCount",
            "valueInteger": 5
        },
        {
            "name": "target",
            "valueReference": {
                "reference": "CodeSystem/1352"
            }
        }
    ]
}

Observed Results
response 500, HAPI-0389: Failed to call access method: org.springframework.dao.InvalidDataAccessApiUsageException: HAPI-2523: Invalid sort specification: _lastUpdated

@AbayomiE-T AbayomiE-T self-assigned this Jan 23, 2025
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

When branches are created from issues, their pull requests are automatically linked.

1 participant