FHIR Chat · ISearchBuilder Question · hapi

Stream: hapi

Topic: ISearchBuilder Question


view this post on Zulip Neil Lott (Dec 24 2020 at 02:08):

Hi All, I'm migrating from 4.1.0 to 5.2.0 and I'm noticing this code doesn't compile anymore and I'm not finding any examples to guide me. Would someone assist how I can retrieve the ISearchBuilder or point me to the relevant docs. Specifically the myDaoRegistry.getResourceDao(Observation.class).newSearchBuilder() -- the .newSearchBuilder() method no longer exists.

@Autowired
private DaoRegistry myDaoRegistry;
....
ISearchBuilder searchBuilder = myDaoRegistry.getResourceDao(Observation.class).newSearchBuilder();

List<IBaseResource> observationsLoaded = new ArrayList<>();
List<Long> observationResourceIds = links.stream().map(ResourceTable::getId).distinct().collect(Collectors.toList());
searchBuilder.loadResourcesByPid(observationResourceIds, new ArrayLi

Last updated: Apr 12 2022 at 19:14 UTC