/** * The contents of this file are subject to the OpenMRS Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://license.openmrs.org * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * * Copyright (C) OpenMRS, LLC. All Rights Reserved. */ package org.openmrs.api.db; import java.util.Date; import java.util.List; import org.openmrs.Concept; import org.openmrs.Encounter; import org.openmrs.Location; import org.openmrs.MimeType; import org.openmrs.Obs; import org.openmrs.Person; import org.openmrs.util.OpenmrsConstants.PERSON_TYPE; /** * Observation-related database functions * * @see org.openmrs.api.ObsService */ public interface ObsDAO { /** * @see org.openmrs.api.ObsService#saveObs(org.openmrs.Obs, String) */ public Obs saveObs(Obs obs) throws DAOException; /** * @see org.openmrs.api.ObsService#getObs(java.lang.Integer) */ public Obs getObs(Integer obsId) throws DAOException; /** * @see org.openmrs.api.ObsService#purgeObs(Obs) */ public void deleteObs(Obs obs) throws DAOException; /** * @see org.openmrs.api.ObsService#getAllMimeTypes(boolean) * @deprecated */ public List<MimeType> getAllMimeTypes(boolean includeRetired) throws DAOException; /** * @see org.openmrs.api.ObsService#getMimeType(java.lang.Integer) * @deprecated */ public MimeType getMimeType(Integer mimeTypeId) throws DAOException; /** * @see org.openmrs.api.ObsService#saveMimeType(MimeType) * @deprecated */ public MimeType saveMimeType(MimeType mimeType) throws DAOException; /** * @see org.openmrs.api.ObsService#purgeMimeType(MimeType) * @deprecated */ public void deleteMimeType(MimeType mimeType) throws DAOException; /** * @see org.openmrs.api.ObsService#getObservations(java.util.List, java.util.List, * java.util.List, java.util.List, java.util.List, java.util.List, java.util.List, * java.lang.Integer, java.lang.Integer, java.util.Date, java.util.Date, boolean) */ public List<Obs> getObservations(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<PERSON_TYPE> personTypes, List<Location> locations, List<String> sort, Integer mostRecentN, Integer obsGroupId, Date fromDate, Date toDate, boolean includeVoidedObs) throws DAOException; /** * @see org.openmrs.api.ObsService#getObservationCount(java.util.List, java.util.List, java.util.List, java.util.List, * java.util.List, java.util.List, java.lang.Integer, java.util.Date, java.util.Date, boolean) */ public Integer getObservationCount(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<PERSON_TYPE> personTypes, List<Location> locations, Integer obsGroupId, Date fromDate, Date toDate,boolean includeVoidedObs) throws DAOException; /** * Auto generated method comment * * @param uuid * @return */ public Obs getObsByUuid(String uuid); }