
001package ca.uhn.fhir.jpa.api.dao; 002 003import ca.uhn.fhir.jpa.searchparam.SearchParameterMap; 004import ca.uhn.fhir.rest.api.server.IBundleProvider; 005import ca.uhn.fhir.rest.api.server.RequestDetails; 006import org.hl7.fhir.instance.model.api.IBaseResource; 007 008import javax.servlet.http.HttpServletResponse; 009 010/* 011 * #%L 012 * HAPI FHIR Storage api 013 * %% 014 * Copyright (C) 2014 - 2022 Smile CDR, Inc. 015 * %% 016 * Licensed under the Apache License, Version 2.0 (the "License"); 017 * you may not use this file except in compliance with the License. 018 * You may obtain a copy of the License at 019 * 020 * http://www.apache.org/licenses/LICENSE-2.0 021 * 022 * Unless required by applicable law or agreed to in writing, software 023 * distributed under the License is distributed on an "AS IS" BASIS, 024 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 025 * See the License for the specific language governing permissions and 026 * limitations under the License. 027 * #L% 028 */ 029 030public interface IFhirResourceDaoObservation<T extends IBaseResource> extends IFhirResourceDao<T> { 031 032 /** 033 * Returns a BundleProvider which can be used to implement the $lastn operation. 034 * 035 * @param paramMap Parameters supported include Observation.subject, Observation.patient, Observation.code, 036 * Observation.category, and max (the maximum number of Observations to return per specified subjects/patients, 037 * codes, and/or categories. 038 * @param theRequestDetails 039 * @param theServletResponse 040 * @return 041 */ 042 IBundleProvider observationsLastN(SearchParameterMap paramMap, RequestDetails theRequestDetails, HttpServletResponse theServletResponse); 043 044}