/** * Perform the operation across all versions of all resources of the given type on the server * * @param resourceType The resource type to search for * @param returnType Request that the method return a Bundle resource (such as <code>ca.uhn.fhir.model.dstu2.resource.Bundle</code>). * Use this method if you are accessing a DSTU2+ server. * @param count Request that the server return only up to <code>theCount</code> number of resources, may be NULL * @param cutoff Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULL * @param iCutoff Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULL * @param <T> extends {@link IBaseBundle} * @param extraParameters see {@link ExtraParameters} for a full list of parameters that can be passed, may be NULL * @return the {@link IBaseBundle} */ public <T extends IBaseBundle> T onType(Class<IBaseResource> resourceType, Class<T> returnType, Integer count, Date cutoff, IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) { IHistoryTyped<T> tiHistoryTyped = client.history().onType(resourceType).andReturnBundle(returnType); processOptionalParams(count, cutoff, iCutoff, tiHistoryTyped); ExtraParameters.process(extraParameters, tiHistoryTyped); return tiHistoryTyped.execute(); }