question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reverse chaining not returning any results

See original GitHub issue

Hello,

I am new to the FHIR logic and I am trying to create some API calls that will give me the Patients that match certain criteria. Specifically, I am trying to create some API calls that use reverse chaining, but they don’t return any results and I am not sure why.

For example, I want to get all Patients that have a specific cancer type, with code “781382000”. Thus my request is as follows: [base]/fhir-server/api/v4/Patient?_has:Observation:patient:code=781382000. However I get 0 results. Is there something wrong with my request?

The following request gives me the correct observations: [base]/fhir-server/api/v4/Observation?code=781382000, but I need the patients…

In case it helps, here is my Observation resource:

Environment image: ibmcom/ibm-fhir-server:4.10.1

 <resource>
            <Observation xmlns="http://hl7.org/fhir">
                <id value="ob-1"/>
                <status value="final"/>
                <code>
                    <coding>
                        <system value="http://snomed.org"/>
                        <code value="781382000"/>
                        <display value="X cancer"/>
                    </coding>
                </code>
                <subject>
                    <reference value="Patient/ABCD123"/>
                    <type value="Patient"/>
                </subject>
                <performer>
                    <reference value="Organization/org-1"/>
                    <type value="Organization"/>
                </performer>
            </Observation>
        </resource>

In case it helps, here is my Observation resource:

<resource>
            <Patient xmlns="http://hl7.org/fhir">
                <id value="ABCD123"/>
                <extension url="http://example.com/currentstatus">
                    <valueCode value="0"/>
                </extension>
                <identifier>
                    <type>
                        <text value="Identifier"/>
                    </type>
                    <value value="ABCD123"/>
                </identifier>
                <name>
                    ...
                </name>
                <telecom>
                    ...
                </telecom>
                <telecom>
                    ...
                </telecom>
                <gender value="..."/>
                <birthDate value="..."/>
                <maritalStatus>
                    ...
                </maritalStatus>
                <managingOrganization>
                    <reference value="Organization/organization-id-01"/>
                </managingOrganization>
            </Patient>
</resource>

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Soveniquecommented, Jan 24, 2022

Imma do it, thank you guys!

0reactions
prb112commented, Jan 24, 2022

Sounds good,

If you are OK, please let us know and we can close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript backwards-aware chaining without parenthesis e.g. ...
I took a look at the source, and this implementation of expect: jasmine.Spec.prototype.expect = function(actual) { var positive = new (this.
Read more >
Backward & Forward Chaining - I Love ABA!
I always understood forward chaining as the child only needs to complete the first step and then is completely done. They do not...
Read more >
Backward Chaining - an overview | ScienceDirect Topics
Backward chaining is the same idea as forward chaining except that you start with requiring the learner to complete the last step of...
Read more >
Backward-chaining - Physiopedia
Once this position is achieved, the older adult then pushes back up into prone kneeling and back through the steps above until they...
Read more >
What is wrong with optional chaining and how to fix it - DEV ...
Optional chaining simplifies above and removes a lot of errors by saying that values considered as no value are only two - null...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found