public class DocumentSearchServiceImpl extends Object implements DocumentSearchService, org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
DocumentSearchServiceImpl.DocumentSearchResultMapper |
Constructor and Description |
---|
DocumentSearchServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<DocumentSearchResult> |
extendedSearch(String code,
String documentTypeName,
Date dateFrom,
Date dateTo,
Integer patientId,
Boolean negationStatus)
Extended search
|
List<Map<String,Object>> |
fullTextSearch(String searchTerm)
perform full text search
|
DataSource |
getDataSource() |
String |
getFullTextSearchDocument(int documentId)
retrieve note for specified document id, retrieved via full text search
|
Properties |
getSearchProperties() |
org.hibernate.SessionFactory |
getSessionFactory() |
Properties |
getYtexProperties() |
List<DocumentSearchResult> |
searchByCui(String code) |
void |
setDataSource(DataSource dataSource) |
void |
setSearchProperties(Properties searchProperties) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
setYtexProperties(Properties ytexProperties) |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public List<DocumentSearchResult> extendedSearch(String code, String documentTypeName, Date dateFrom, Date dateTo, Integer patientId, Boolean negationStatus)
extendedSearch
in interface DocumentSearchService
code
- concept CUI or code. this is the only required argumentdocumentTypeName
- document type name. (in VACS @see DocumentType)dateFrom
- document date greater than or equal to thisdateTo
- document date less than or equal to thispatientId
- patient id (study id in VACS)negationStatus
- true - only affirmed terms. false - only negated terms.public List<Map<String,Object>> fullTextSearch(String searchTerm)
fullTextSearch
in interface DocumentSearchService
searchTerm
- public DataSource getDataSource()
public String getFullTextSearchDocument(int documentId)
getFullTextSearchDocument
in interface DocumentSearchService
documentId
- public Properties getSearchProperties()
public org.hibernate.SessionFactory getSessionFactory()
public Properties getYtexProperties()
public List<DocumentSearchResult> searchByCui(String code)
searchByCui
in interface DocumentSearchService
public void setDataSource(DataSource dataSource)
public void setSearchProperties(Properties searchProperties)
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void setYtexProperties(Properties ytexProperties)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.