IWorkerContext worker = new org.hl7.fhir.r4.hapi.ctx.HapiWorkerContext(getContext(), myValidationSupport); FHIRPathEngine fp = new FHIRPathEngine(worker); fp.setHostServices(new SearchParamExtractorR4HostServices()); allValues = fp.evaluate((Base) theResource, nextPath); } catch (FHIRException e) { String msg = getContext().getLocalizer().getMessage(BaseSearchParamExtractor.class, "failedToExtractPaths", nextPath, e.toString()); throw new InternalErrorException(msg, e);
HashSet<ResourceIndexedSearchParamString> retVal = new HashSet<>(); String resourceName = getContext().getResourceDefinition(theResource).getName();