Open parisni opened 7 years ago
This is not currently implemented. We can use this ticket to track this request for sure.
Hey @jamesagnew
I would be glad to develop this feature. Before I look at the source code, can you please tell me how difficult this should be? (easy, medium, hardcore) An also some guidance for me, or any developer who d'like to do this.
Thanks
Hi @parisni ,
This would definitely be one of the more difficult things to accomplish unfortunately.
Most of the changes would be in the class called SearchBuilder in the JPA project. If you are comfortable with the way JPA's CriteriaBuilder works, this wouldn't be so bad, but JPA's searching is one of the more complicated parts of the library for sure (mostly because FHIR's search isn't exactly trivial :) )
There would be changes required to the core server framework too in order to allow such a search to propagate to the JPA layer but that's much easier.
I might suggest taking a look at how existing searches work. This unit test would be a good place to start: https://github.com/jamesagnew/hapi-fhir/blob/master/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoDstu3SearchNoFtTest.java
If that makes sense, modifying the SearchBuilder to allow for multi-type searches would be the next step. I could probably help you to get a unit test going for this at least..
@jamesagnew did you get any unit tests "goin" for this? I'd love to take a look
If that makes sense, modifying the SearchBuilder to allow for multi-type searches would be the next step. I could probably help you to get a unit test going for this at least..
Hello @jamesagnew, do you have any new about the issue? when it will be implemented?
Hello @jamesagnew, Is there any plan in the near future to implement this feature?
Hi,
Accordingly to API FHIR specifications it is also possible to search across multiple resource types:
While it is possible in HAPI FHIR to search for multiple linked resources:
curl -H "Accept: application/json" http://fhirtest.uhn.ca/baseDstu3/Encounter?_include=Encounter:part-of
I am not able to get for example both two kinds same time:
I am missing something ?
Thanks