public interface IFhirResourceDao<T extends IBaseResource> extends IDao
RESOURCE_PID| Modifier and Type | Method and Description |
|---|---|
void |
addTag(IIdType theId,
TagTypeEnum theTagType,
String theScheme,
String theTerm,
String theLabel) |
DaoMethodOutcome |
create(T theResource)
Create a resource - Note that this variant of the method does not take in a
RequestDetails and
therefore can not fire any interceptors. |
DaoMethodOutcome |
create(T theResource,
RequestDetails theRequestDetails) |
DaoMethodOutcome |
create(T theResource,
String theIfNoneExist)
Create a resource - Note that this variant of the method does not take in a
RequestDetails and
therefore can not fire any interceptors. |
DaoMethodOutcome |
create(T theResource,
String theIfNoneExist,
boolean thePerformIndexing,
RequestDetails theRequestDetails) |
DaoMethodOutcome |
create(T theResource,
String theIfNoneExist,
RequestDetails theRequestDetails) |
DaoMethodOutcome |
delete(IIdType theResource)
Delete a resource - Note that this variant of the method does not take in a
RequestDetails and
therefore can not fire any interceptors. |
DaoMethodOutcome |
delete(IIdType theResource,
List<DeleteConflict> theDeleteConflictsListToPopulate,
RequestDetails theRequestDetails)
This method does not throw an exception if there are delete conflicts, but populates them
in the provided list
|
DaoMethodOutcome |
delete(IIdType theResource,
RequestDetails theRequestDetails)
This method throws an exception if there are delete conflicts
|
DeleteMethodOutcome |
deleteByUrl(String theUrl,
List<DeleteConflict> theDeleteConflictsListToPopulate,
RequestDetails theRequestDetails)
This method does not throw an exception if there are delete conflicts, but populates them
in the provided list
|
DeleteMethodOutcome |
deleteByUrl(String theString,
RequestDetails theRequestDetails)
This method throws an exception if there are delete conflicts
|
TagList |
getAllResourceTags(RequestDetails theRequestDetails) |
Class<T> |
getResourceType() |
TagList |
getTags(IIdType theResourceId,
RequestDetails theRequestDetails) |
IBundleProvider |
history(Date theSince,
Date theUntil,
RequestDetails theRequestDetails) |
IBundleProvider |
history(IIdType theId,
Date theSince,
Date theUntil,
RequestDetails theRequestDetails) |
<MT extends IBaseMetaType> |
metaAddOperation(IIdType theId1,
MT theMetaAdd,
RequestDetails theRequestDetails)
Not supported in DSTU1!
|
<MT extends IBaseMetaType> |
metaDeleteOperation(IIdType theId1,
MT theMetaDel,
RequestDetails theRequestDetails)
Not supported in DSTU1!
|
<MT extends IBaseMetaType> |
metaGetOperation(Class<MT> theType,
IIdType theId,
RequestDetails theRequestDetails)
Not supported in DSTU1!
|
<MT extends IBaseMetaType> |
metaGetOperation(Class<MT> theType,
RequestDetails theRequestDetails)
Not supported in DSTU1!
|
DaoMethodOutcome |
patch(IIdType theId,
PatchTypeEnum thePatchType,
String thePatchBody,
RequestDetails theRequestDetails) |
Set<Long> |
processMatchUrl(String theMatchUrl) |
T |
read(IIdType theId)
Read a resource - Note that this variant of the method does not take in a
RequestDetails and
therefore can not fire any interceptors. |
T |
read(IIdType theId,
RequestDetails theRequestDetails) |
BaseHasResource |
readEntity(IIdType theId) |
BaseHasResource |
readEntity(IIdType theId,
boolean theCheckForForcedId) |
void |
reindex(T theResource,
ResourceTable theEntity)
Updates index tables associated with the given resource.
|
void |
removeTag(IIdType theId,
TagTypeEnum theTagType,
String theSystem,
String theCode) |
void |
removeTag(IIdType theId,
TagTypeEnum theTagType,
String theSystem,
String theCode,
RequestDetails theRequestDetails) |
IBundleProvider |
search(Map<String,IQueryParameterType> theParams) |
IBundleProvider |
search(SearchParameterMap theMap) |
IBundleProvider |
search(String theParameterName,
IQueryParameterType theValue) |
Set<Long> |
searchForIds(Map<String,IQueryParameterType> theParams) |
Set<Long> |
searchForIds(String theParameterName,
IQueryParameterType theValue) |
Set<Long> |
searchForIdsWithAndOr(SearchParameterMap theParams) |
void |
translateRawParameters(Map<String,List<String>> theSource,
SearchParameterMap theTarget)
Takes a map of incoming raw search parameters and translates/parses them into
appropriate
IQueryParameterType instances of the appropriate type
for the given param |
DaoMethodOutcome |
update(T theResource)
Update a resource - Note that this variant of the method does not take in a
RequestDetails and
therefore can not fire any interceptors. |
DaoMethodOutcome |
update(T theResource,
RequestDetails theRequestDetails) |
DaoMethodOutcome |
update(T theResource,
String theMatchUrl)
Update a resource - Note that this variant of the method does not take in a
RequestDetails and
therefore can not fire any interceptors. |
DaoMethodOutcome |
update(T theResource,
String theMatchUrl,
boolean thePerformIndexing,
RequestDetails theRequestDetails) |
DaoMethodOutcome |
update(T theResource,
String theMatchUrl,
RequestDetails theRequestDetails) |
MethodOutcome |
validate(T theResource,
IIdType theId,
String theRawResource,
EncodingEnum theEncoding,
ValidationModeEnum theMode,
String theProfile,
RequestDetails theRequestDetails)
Not supported in DSTU1!
|
getContext, getSearchParamByName, getSearchParamsByResourceType, injectDependenciesIntoBundleProvider, populateFullTextFields, processMatchUrl, toResource, toResourcevoid addTag(IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm, String theLabel)
DaoMethodOutcome create(T theResource)
RequestDetails and
therefore can not fire any interceptors. Use only for internal system callsDaoMethodOutcome create(T theResource, RequestDetails theRequestDetails)
DaoMethodOutcome create(T theResource, String theIfNoneExist)
RequestDetails and
therefore can not fire any interceptors. Use only for internal system callsDaoMethodOutcome create(T theResource, String theIfNoneExist, boolean thePerformIndexing, RequestDetails theRequestDetails)
thePerformIndexing - Use with caution! If you set this to false, you need to manually perform indexing or your resources
won't be indexed and searches won't work.theRequestDetails - TODODaoMethodOutcome create(T theResource, String theIfNoneExist, RequestDetails theRequestDetails)
DaoMethodOutcome delete(IIdType theResource)
RequestDetails and
therefore can not fire any interceptors. Use only for internal system callsDaoMethodOutcome delete(IIdType theResource, List<DeleteConflict> theDeleteConflictsListToPopulate, RequestDetails theRequestDetails)
theRequestDetails - TODODaoMethodOutcome delete(IIdType theResource, RequestDetails theRequestDetails)
DeleteMethodOutcome deleteByUrl(String theUrl, List<DeleteConflict> theDeleteConflictsListToPopulate, RequestDetails theRequestDetails)
DeleteMethodOutcome deleteByUrl(String theString, RequestDetails theRequestDetails)
TagList getAllResourceTags(RequestDetails theRequestDetails)
TagList getTags(IIdType theResourceId, RequestDetails theRequestDetails)
IBundleProvider history(Date theSince, Date theUntil, RequestDetails theRequestDetails)
IBundleProvider history(IIdType theId, Date theSince, Date theUntil, RequestDetails theRequestDetails)
<MT extends IBaseMetaType> MT metaAddOperation(IIdType theId1, MT theMetaAdd, RequestDetails theRequestDetails)
theRequestDetails - TODO<MT extends IBaseMetaType> MT metaDeleteOperation(IIdType theId1, MT theMetaDel, RequestDetails theRequestDetails)
theRequestDetails - TODO<MT extends IBaseMetaType> MT metaGetOperation(Class<MT> theType, IIdType theId, RequestDetails theRequestDetails)
theRequestDetails - TODO<MT extends IBaseMetaType> MT metaGetOperation(Class<MT> theType, RequestDetails theRequestDetails)
theRequestDetails - TODODaoMethodOutcome patch(IIdType theId, PatchTypeEnum thePatchType, String thePatchBody, RequestDetails theRequestDetails)
T read(IIdType theId)
RequestDetails and
therefore can not fire any interceptors. Use only for internal system callsT read(IIdType theId, RequestDetails theRequestDetails)
theId - theRequestDetails - TODOResourceNotFoundException - If the ID is not known to the serverBaseHasResource readEntity(IIdType theId)
BaseHasResource readEntity(IIdType theId, boolean theCheckForForcedId)
theCheckForForcedId - If true, this method should fail if the requested ID contains a numeric PID which exists, but is
obscured by a "forced ID" so should not exist as far as the outside world is concerned.void reindex(T theResource, ResourceTable theEntity)
void removeTag(IIdType theId, TagTypeEnum theTagType, String theSystem, String theCode, RequestDetails theRequestDetails)
void removeTag(IIdType theId, TagTypeEnum theTagType, String theSystem, String theCode)
IBundleProvider search(Map<String,IQueryParameterType> theParams)
IBundleProvider search(SearchParameterMap theMap)
IBundleProvider search(String theParameterName, IQueryParameterType theValue)
Set<Long> searchForIds(Map<String,IQueryParameterType> theParams)
Set<Long> searchForIds(String theParameterName, IQueryParameterType theValue)
Set<Long> searchForIdsWithAndOr(SearchParameterMap theParams)
void translateRawParameters(Map<String,List<String>> theSource, SearchParameterMap theTarget)
IQueryParameterType instances of the appropriate type
for the given paramInvalidRequestException - If any of the parameters are not knownDaoMethodOutcome update(T theResource)
RequestDetails and
therefore can not fire any interceptors. Use only for internal system callsDaoMethodOutcome update(T theResource, RequestDetails theRequestDetails)
DaoMethodOutcome update(T theResource, String theMatchUrl)
RequestDetails and
therefore can not fire any interceptors. Use only for internal system callsDaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePerformIndexing, RequestDetails theRequestDetails)
thePerformIndexing - Use with caution! If you set this to false, you need to manually perform indexing or your resources
won't be indexed and searches won't work.theRequestDetails - TODODaoMethodOutcome update(T theResource, String theMatchUrl, RequestDetails theRequestDetails)
MethodOutcome validate(T theResource, IIdType theId, String theRawResource, EncodingEnum theEncoding, ValidationModeEnum theMode, String theProfile, RequestDetails theRequestDetails)
theRequestDetails - TODOCopyright © 2014–2017 University Health Network. All rights reserved.