FHIR Chat · Querying the HAPI FHIR Server · hapi

Stream: hapi

Topic: Querying the HAPI FHIR Server


view this post on Zulip Håkan MacLean (Dec 21 2021 at 16:15):

Hey! I hope this is the right forum to ask about this. I'm just trying to do some queries towards the HAPI FHIR Server but I'm getting weird error messages. Is the error on my side or is something up with the server?

First I do this: GET http://hapi.fhir.org/baseR4/Patient/1566180 which works fine.

Then I've posted an Encounter that references this Patient and I try to get it via: GET http://hapi.fhir.org/baseR4/Encounter?subject=Patient/1566180

but the outcome is:

{
    "resourceType": "OperationOutcome",
    "text": {
        "status": "generated",
        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre/></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
    },
    "issue": [
        {
            "severity": "error",
            "code": "processing"
        }
    ]
}

Am I doing something fundamentally wrong?

view this post on Zulip Jens Villadsen (Dec 21 2021 at 16:45):

Looks like a bug. @James Agnew ?

view this post on Zulip Jens Villadsen (Dec 21 2021 at 18:24):

@Håkan MacLean whats the id of the encounter?

view this post on Zulip Håkan MacLean (Dec 21 2021 at 18:53):

I have tried lots of different ones. I just took a random Encounter here: http://hapi.fhir.org/baseR4/Encounter/1840418/_history/1
Then try to recreate this query using:
http://hapi.fhir.org/baseR4/Encounter?subject=Patient/1840413
But get the same error.
Just for reference I can fetch the Patient ok like this:
http://hapi.fhir.org/baseR4/Patient/1840413

view this post on Zulip Jens Villadsen (Dec 21 2021 at 18:56):

Yeah - thats something for the HAPI team to have a look at (eg. @Kevin Dougan )


Last updated: Apr 12 2022 at 19:14 UTC