0

I have a patient portal that connects to an FHIR server to get patient's lab tests. I want to get all the panel/grouped tests and individual tests in one query. Is there a way to do that?

1 Answer 1

0

If you query for Observations, the default is that you'll get all Observations - both panels and leaf-level Observations. It's actually really hard (and not widely supported) to query in a way that doesn't give you both.

Simply search filtering where ?category=laboratory&patient=[your patient]

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks @Lloyd Can you tell me how can I show only the observations which are panels or the observations that are leaf-levelled but not connected to any panel?
You can try ?has-member:missing=false to find panels. You could try ?_has:Observation:has-member:patient=123 where patient 1234 is the same patient as the patient you're looking for. (With _has, you need to search on some property of the referencing resource.) Whether your server will actually support these may vary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.