I just skimmed the thread. Do I understand correctly that you just need a search handler, which is capable of finding an order of the radiology type for the given patient?
If yes, then how about you create OrderRadiologySearchHandler with the following config:
new SearchConfig("default", RestConstants.VERSION_1 + "/order",
Arrays.asList("1.11.*", "1.12.*", "2.0.*"),
Arrays.asList(new SearchQuery.Builder("Allows you to find radiology orders by patient").withRequiredParameters("radiology", "patient").build())
The “radiology” parameter could have any value, but “true” would make most sense.
Or did you try that approach already?
If you have a bit more spare dev time it would be great to introduce a new
withRequiredParameters(new SearchParameter("type", "radiology"), new SearchParameter("patient"))
to SearchQuery and add support for that in RestService.getSearchHandler. Basically match a handler not only by parameter, but also by its value.
If you decide to go with the latter and contribute to webservices.rest please do create an issue and point me to it. We’ll fast-track it and release ASAP in return