Merge branch 'add-pid-to-created-resource' into expunge-resource-hook

This commit is contained in:
Ken Stevens 2019-07-17 14:26:00 -04:00
commit 7bc8517fc6
1 changed files with 3 additions and 1 deletions

View File

@ -1238,7 +1238,9 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao,
}
protected void addPidToResource(ResourceTable theEntity, IBaseResource theResource) {
if (theResource instanceof IResource) {
if (theResource instanceof IAnyResource) {
IDao.RESOURCE_PID.put((IAnyResource) theResource, theEntity.getId());
} else if (theResource instanceof IResource) {
IDao.RESOURCE_PID.put((IResource) theResource, theEntity.getId());
}
}