001package ca.uhn.fhir.jpa.api.dao; 002 003import ca.uhn.fhir.rest.api.SortSpec; 004import ca.uhn.fhir.rest.api.server.IBundleProvider; 005import ca.uhn.fhir.rest.api.server.RequestDetails; 006import ca.uhn.fhir.rest.param.DateRangeParam; 007import org.hl7.fhir.instance.model.api.IBaseResource; 008import org.hl7.fhir.instance.model.api.IIdType; 009import org.hl7.fhir.instance.model.api.IPrimitiveType; 010 011import javax.servlet.http.HttpServletRequest; 012 013/* 014 * #%L 015 * HAPI FHIR Storage api 016 * %% 017 * Copyright (C) 2014 - 2022 Smile CDR, Inc. 018 * %% 019 * Licensed under the Apache License, Version 2.0 (the "License"); 020 * you may not use this file except in compliance with the License. 021 * You may obtain a copy of the License at 022 * 023 * http://www.apache.org/licenses/LICENSE-2.0 024 * 025 * Unless required by applicable law or agreed to in writing, software 026 * distributed under the License is distributed on an "AS IS" BASIS, 027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 028 * See the License for the specific language governing permissions and 029 * limitations under the License. 030 * #L% 031 */ 032 033public interface IFhirResourceDaoComposition<T extends IBaseResource> extends IFhirResourceDao<T> { 034 035 IBundleProvider getDocumentForComposition(HttpServletRequest theServletRequest, IIdType theId, IPrimitiveType<Integer> theCount, IPrimitiveType<Integer> theOffset, DateRangeParam theLastUpdate, SortSpec theSort, RequestDetails theRequestDetails); 036 037}