FHIR Chat · revInclude · implementers

Stream: implementers

Topic: revInclude


view this post on Zulip jose duran (Jun 20 2017 at 07:02):

Hi all,
I am working in a Fhir based project, and we are using HAPI FHIR to develop the server FHIR.
I have doubts about one feature of HAPI, revinclude operation. I have not found any example about this, and the documentation of HAPI is not very explicity.

In HAPI documentation about revinclude (http://hapifhir.io/doc_rest_operations.html#Reverse_Resource_Includes__revinclude) it is said that to add support for reverse includes, use the same format as with the _include parameter but add reverse=true to the @IncludeParam annotation, but it doesn't explain how you have to populate the response bundle with the resources indicated in the revinclude.

Somebody could help me with some example or any indication?

Thanks.

view this post on Zulip Grahame Grieve (Jun 20 2017 at 11:30):

I thought it had been changed to follow what the spec says about revinclude now

view this post on Zulip jose duran (Jun 21 2017 at 14:37):

Hi @Grahame Grieve ,
Thanks for your answer, but I don't understand you, could you explain what you mean?

view this post on Zulip Andrew Patterson (Sep 20 2017 at 06:52):

Before I go searching through the HAPI src - can anyone confirm that this search should theoretically work? Am looking for all tasks that are based on a particular ProcedureRequest
http://localhost:8080/fhir/ProcedureRequest?identifier=urn:example:aaa|bbb&_revInclude=Task.based-on

view this post on Zulip Lloyd McKenzie (Sep 20 2017 at 14:42):

That won't give you components of those tasks, but I think it should work otherwise

view this post on Zulip Christiaan Knaap (Sep 21 2017 at 18:39):

I think the separator is : so Task:based-on, but please check that in the search page of the spec

view this post on Zulip Andrew Patterson (Sep 22 2017 at 00:49):

I think the separator is : so Task:based-on, but please check that in the search page of the spec

Thanks! I think you are right.. and I was subtly uppercasing the I in revinclude as well! Is working now. Thanks all.

view this post on Zulip Christiaan Knaap (Sep 22 2017 at 06:54):

BTW: You can always test your search on one of the public test servers. Although you probably don't get a result, the operation outcome may hint you on any errors. E.g. Vonk will respond to _revInclude.. with 'Parameter _revInclude is not implemented', and to _revinclude=Task.based-on with 'Value 'Task.based-on' is not a valid _(rev)include value.'


Last updated: Apr 12 2022 at 19:14 UTC