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 ISearchResultsAccumulator {
017        void addResults(String theTargetId, List<IBaseResource> theSearchResults, int theTotal);
018
019        List<IBaseResource> getResults(String theTargetId);
020
021        List<IBaseResource> getMatchedResults(String theTargetId);
022
023        List<IBaseResource> getPageableResults(String theTargetId);
024
025        List<IBaseResource> getIncludeResults(String theTargetId);
026
027        List<IBaseResource> getOutcomeResults(String theTargetId);
028
029        List<IBaseResource> getUncategorizedResults(String theTargetId);
030
031        void removeResults(String theTargetId, List<IBaseResource> theResultsToBeRemoved);
032
033        int getTotal();
034
035        boolean getTotalOmitted();
036
037        void setTotalOmitted(boolean theTotalOmitted);
038}