diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java index 5ef815576be..5388b4e4b26 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java @@ -1238,8 +1238,8 @@ public abstract class BaseHapiFhirDao implements IDao, } protected void addPidToResource(ResourceTable theEntity, IBaseResource theResource) { - if (theResource instanceof IAnyResource) { - IDao.RESOURCE_PID.put((IAnyResource) theResource, theEntity.getId()); + if (theResource instanceof IResource) { + IDao.RESOURCE_PID.put((IResource) theResource, theEntity.getId()); } }