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