001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.fhirgw.model;
011
012import org.hl7.fhir.instance.model.api.IBaseResource;
013
014import java.util.List;
015
016public interface IResultsAccumulator<RESPONSE> extends ISearchResultsAccumulator {
017
018        /**
019         * Accumulates a list of resources that was originally obtained from the RESPONSE
020         * and processed by interceptors if applicable.
021         *
022         * @param theResults the list of resources to accumulate
023         * @param theResponse the original response from which a list of resources was obtained and submitted to interceptors
024         * @param theTargetId the id of the target that returned the RESPONSE
025         */
026        void accumulate(List<IBaseResource> theResults, RESPONSE theResponse, String theTargetId);
027}