FHIR Chat · GraphQL reverse reference · hapi

Stream: hapi

Topic: GraphQL reverse reference


view this post on Zulip Michael Albert (Jun 22 2021 at 10:44):

If I do a GraphQL query with a reverse reference like this POST http://hapi.fhir.org/baseR4/$graphql with GraphQL

{
Patient(id: 5){
id,
name { family },
ObservationList(_reference: subject) {
id, status
}
}
}

the ObservationList is empty even if a GET http://hapi.fhir.org/baseR4/Observation?subject=Patient/5 gives 15 results. Why is that?

view this post on Zulip Grahame Grieve (Jun 22 2021 at 10:58):

guess you'll have to debug, because it sure looks like it should work. Does it work on test.fhir.org?

view this post on Zulip Michael Albert (Jun 22 2021 at 11:26):

Have just confirmed that it works on http://test.fhir.org/r4/$graphql with Patient id 1

view this post on Zulip Michael Albert (Jun 22 2021 at 11:27):

Do you have some hints on where to start debugging?

view this post on Zulip Michael Albert (Jun 24 2021 at 09:10):

What is the difference between hapi.fhir.org and test.fhir.org?

view this post on Zulip Grahame Grieve (Jun 24 2021 at 09:27):

test.fhir.org is a different server

view this post on Zulip Michael Albert (Jun 24 2021 at 13:33):

Which software is running on test.fhir.org? I know where to look up the code for hapi but I'd like to compare it with the working version

view this post on Zulip Grahame Grieve (Jun 24 2021 at 13:39):

not sure how much that'll help, but http://github.com/GrahameGrieve/FhirServer

view this post on Zulip Chetan Jain (Jul 15 2021 at 08:25):

test.fhir.org/r4 is down and hapi.fhir.org is not returning result as expected for below request with reverse reference. @Grahame Grieve - could you help-

http://hapi.fhir.org/baseR4/$graphql?query={Practitioner(id:example){id,active,PractitionerRoleList(_reference:practitioner){id,active,period{start},telecom{value}}}}

view this post on Zulip Morris Miltz (Jul 15 2021 at 09:15):

Server is Online, i tested it just a moment ago.

Your problem, sorry can't help, i'm a beginner ..

view this post on Zulip Chetan Jain (Jul 15 2021 at 10:13):

Strange, see the status on this page which is showing down for Graham's r4 server down -
https://stats.uptimerobot.com/9DArDu1Jo
image.png

view this post on Zulip Morris Miltz (Jul 15 2021 at 11:40):

Oh yeah sorry you're rigth, my bad..

view this post on Zulip Mark Iantorno (Jul 16 2021 at 12:53):

test.fhir.org is indeed down. I tried restarting it yesterday, but I cannot. I've reached out to Grahame to assist


Last updated: Apr 12 2022 at 19:14 UTC