public class HibernateObsDAO extends Object implements ObsDAO
ObsService
methods.ObsDAO
,
ObsService
Modifier and Type | Field and Description |
---|---|
protected org.hibernate.SessionFactory |
sessionFactory |
Constructor and Description |
---|
HibernateObsDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteObs(Obs obs) |
Obs |
getObs(Integer obsId) |
Obs |
getObsByUuid(String uuid) |
Long |
getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
Integer obsGroupId,
Date fromDate,
Date toDate,
List<ConceptName> valueCodedNameAnswers,
boolean includeVoidedObs,
String accessionNumber) |
Long |
getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
Integer obsGroupId,
Date fromDate,
Date toDate,
List<ConceptName> valueCodedNameAnswers,
List<Visit> visits,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sortList,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sortList,
List<Visit> visits,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
Obs |
getRevisionObs(Obs initialObs) |
Obs.Status |
getSavedStatus(Obs obs)
Gets the value of status currently saved in the database for the given obs, bypassing any caches.
|
Obs |
saveObs(Obs obs) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory that allows us to connect to the database that Hibernate knows about.
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public void deleteObs(Obs obs) throws DAOException
deleteObs
in interface ObsDAO
DAOException
org.openmrs.api.ObsService#deleteObs(org.openmrs.Obs)
public Obs getObs(Integer obsId) throws DAOException
getObs
in interface ObsDAO
DAOException
ObsService.getObs(java.lang.Integer)
public Obs saveObs(Obs obs) throws DAOException
saveObs
in interface ObsDAO
DAOException
ObsDAO.saveObs(org.openmrs.Obs)
public List<Obs> getObservations(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<OpenmrsConstants.PERSON_TYPE> personTypes, List<Location> locations, List<String> sortList, Integer mostRecentN, Integer obsGroupId, Date fromDate, Date toDate, boolean includeVoidedObs, String accessionNumber) throws DAOException
getObservations
in interface ObsDAO
DAOException
ObsDAO.getObservations(List, List, List, List, List, List, List,
Integer, Integer, Date, Date, boolean, String)
public List<Obs> getObservations(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<OpenmrsConstants.PERSON_TYPE> personTypes, List<Location> locations, List<String> sortList, List<Visit> visits, Integer mostRecentN, Integer obsGroupId, Date fromDate, Date toDate, boolean includeVoidedObs, String accessionNumber) throws DAOException
getObservations
in interface ObsDAO
DAOException
ObsDAO.getObservations(List, List, List, List, List, List, List, List,
Integer, Integer, Date, Date, boolean, String)
public Long getObservationCount(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<OpenmrsConstants.PERSON_TYPE> personTypes, List<Location> locations, Integer obsGroupId, Date fromDate, Date toDate, List<ConceptName> valueCodedNameAnswers, boolean includeVoidedObs, String accessionNumber) throws DAOException
getObservationCount
in interface ObsDAO
DAOException
ObsDAO.getObservationCount(List, List, List, List, List, List, Integer, Date, Date, List, boolean, String)
public Long getObservationCount(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<OpenmrsConstants.PERSON_TYPE> personTypes, List<Location> locations, Integer obsGroupId, Date fromDate, Date toDate, List<ConceptName> valueCodedNameAnswers, List<Visit> visits, boolean includeVoidedObs, String accessionNumber) throws DAOException
getObservationCount
in interface ObsDAO
DAOException
ObsDAO.getObservationCount(List, List, List, List, List, List, Integer, Date, Date, List, List, boolean, String)
public Obs getObsByUuid(String uuid)
getObsByUuid
in interface ObsDAO
ObsDAO.getObsByUuid(java.lang.String)
public Obs getRevisionObs(Obs initialObs)
getRevisionObs
in interface ObsDAO
ObsDAO.getRevisionObs(org.openmrs.Obs)
public Obs.Status getSavedStatus(Obs obs)
ObsDAO
getSavedStatus
in interface ObsDAO
ObsDAO.getSavedStatus(org.openmrs.Obs)
Copyright © 2024 OpenMRS Inc.. All rights reserved.