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

Patient/$everything without a patientId results in a Null response. #2400

Closed
prb112 opened this issue May 20, 2021 · 1 comment
Closed

Patient/$everything without a patientId results in a Null response. #2400

prb112 opened this issue May 20, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@prb112
Copy link
Contributor

prb112 commented May 20, 2021

Describe the bug
Patient/$everything without a patientId results in a Null response.

Environment
Which version of IBM FHIR Server? 4.8.1 (any with $everything installed)

To Reproduce
Steps to reproduce the behavior:

  1. Call
--header 'X-FHIR-TENANT-ID: default' \
--header 'Content-Type: application/fhir+json' \
--header 'Authorization: Basic  ' 
  1. See error
{
    "resourceType": "OperationOutcome",
    "id": "c0-a8-56-16-f1ba9434-444e-4fdd-af13-8a1b74c4c70d",
    "issue": [
        {
            "severity": "fatal",
            "code": "not-found",
            "details": {
                "text": "Patient with ID 'null' does not exist."
            },
            "expression": [
                "<empty>"
            ]
        }
    ]

Expected behavior
it should respond that there is a missing input

Additional context
n/a

@prb112 prb112 added the bug Something isn't working label May 20, 2021
@prb112 prb112 added this to the Sprint 2021-07 milestone May 20, 2021
@prb112 prb112 self-assigned this May 20, 2021
prb112 added a commit that referenced this issue May 20, 2021
#2400

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
prb112 added a commit that referenced this issue May 21, 2021
Patient/$everything without a patientId results in a Null response. #2400
@lmsurpre
Copy link
Member

I ran the GET [base]/Patient/$everything and I found the error detail to be a bit awkward, but acceptable:

{
    "resourceType": "OperationOutcome",
    "id": "7f-0-0-1-d3d8a475-aeee-4909-8dc0-21ec63715530",
    "issue": [
        {
            "severity": "fatal",
            "code": "not-supported",
            "details": {
                "text": "Search for Patients the Patient is related to is not supported"
            },
            "expression": [
                "<empty>"
            ]
        }
    ]
}

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

No branches or pull requests

2 participants