public abstract class BaseHapiTerminologySvc extends Object implements IHapiTerminologySvc
| Modifier and Type | Field and Description |
|---|---|
protected ITermCodeSystemDao |
myCodeSystemDao |
protected ITermConceptDao |
myConceptDao |
protected FhirContext |
myContext |
protected EntityManager |
myEntityManager |
| Constructor and Description |
|---|
BaseHapiTerminologySvc() |
| Modifier and Type | Method and Description |
|---|---|
TermConcept |
findCode(String theCodeSystem,
String theCode) |
List<TermConcept> |
findCodes(String theSystem) |
Set<TermConcept> |
findCodesAbove(Long theCodeSystemResourcePid,
Long theCodeSystemVersionPid,
String theCode) |
List<VersionIndependentConcept> |
findCodesAbove(String theSystem,
String theCode) |
protected List<VersionIndependentConcept> |
findCodesAboveUsingBuiltInSystems(String theSystem,
String theCode)
Subclasses may override
|
Set<TermConcept> |
findCodesBelow(Long theCodeSystemResourcePid,
Long theCodeSystemVersionPid,
String theCode) |
List<VersionIndependentConcept> |
findCodesBelow(String theSystem,
String theCode) |
protected List<VersionIndependentConcept> |
findCodesBelowUsingBuiltInSystems(String theSystem,
String theCode)
Subclasses may override
|
void |
saveDeferred() |
static void |
setForceSaveDeferredAlwaysForUnitTest(boolean theForceSaveDeferredAlwaysForUnitTest)
This method is present only for unit tests, do not call from client code
|
void |
setProcessDeferred(boolean theProcessDeferred)
This is mostly for unit tests - we can disable processing of deferred concepts
by changing this flag
|
void |
storeNewCodeSystemVersion(Long theCodeSystemResourcePid,
String theSystemUri,
TermCodeSystemVersion theCodeSystemVersion) |
boolean |
supportsSystem(String theSystem) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpandValueSet, storeNewCodeSystemVersion@Autowired protected ITermCodeSystemDao myCodeSystemDao
@Autowired protected ITermConceptDao myConceptDao
@Autowired protected FhirContext myContext
protected EntityManager myEntityManager
public TermConcept findCode(String theCodeSystem, String theCode)
public List<TermConcept> findCodes(String theSystem)
findCodes in interface IHapiTerminologySvc@Transactional(propagation=REQUIRED) public Set<TermConcept> findCodesAbove(Long theCodeSystemResourcePid, Long theCodeSystemVersionPid, String theCode)
findCodesAbove in interface IHapiTerminologySvcpublic List<VersionIndependentConcept> findCodesAbove(String theSystem, String theCode)
findCodesAbove in interface IHapiTerminologySvcprotected List<VersionIndependentConcept> findCodesAboveUsingBuiltInSystems(String theSystem, String theCode)
theSystem - The code systemtheCode - The code@Transactional(propagation=REQUIRED) public Set<TermConcept> findCodesBelow(Long theCodeSystemResourcePid, Long theCodeSystemVersionPid, String theCode)
findCodesBelow in interface IHapiTerminologySvcpublic List<VersionIndependentConcept> findCodesBelow(String theSystem, String theCode)
findCodesBelow in interface IHapiTerminologySvcprotected List<VersionIndependentConcept> findCodesBelowUsingBuiltInSystems(String theSystem, String theCode)
theSystem - The code systemtheCode - The code@Scheduled(fixedRate=5000L) @Transactional(propagation=REQUIRED) public void saveDeferred()
saveDeferred in interface IHapiTerminologySvcpublic void setProcessDeferred(boolean theProcessDeferred)
IHapiTerminologySvcsetProcessDeferred in interface IHapiTerminologySvc@Transactional(propagation=REQUIRED) public void storeNewCodeSystemVersion(Long theCodeSystemResourcePid, String theSystemUri, TermCodeSystemVersion theCodeSystemVersion)
storeNewCodeSystemVersion in interface IHapiTerminologySvcpublic boolean supportsSystem(String theSystem)
supportsSystem in interface IHapiTerminologySvcpublic static void setForceSaveDeferredAlwaysForUnitTest(boolean theForceSaveDeferredAlwaysForUnitTest)
Copyright © 2014–2017 University Health Network. All rights reserved.