Skip to content

How to query location resource hierarchy? #3941

Discussion options

You must be logged in to vote

My colleague managed to figure out what we needed - for anyone else having a similar issue

Starting at the top of the tree (Location 1 from my example)

https://{host}/Location?_revinclude=Location:partof&_revinclude:iterate=Location:partof&_id=006b7615-7f41-47af-af1d-c4299924f224

This returns the hospital and Location B and Location C.

Starting at the bottom of the tree (Location 3 from my example)

https://{host}/Location?_include=Location:partof&_include:iterate=Location:partof&_id=07238beb-e53d-4225-9320-9f8b6668864f

This returns the room and Location B and Location C.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by liamwilson-kainos
Comment options

You must be logged in to vote
1 reply
@EXPEkesheth
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants