Set lastUpdated field in Hapi Fhir JPA


We’re using the hapi fhir jpa server as a replica server for some internal data. In order to manage change events (and not overwrite newer data with older data), I want to be able to set the lastUpdated field for resources and only update those resources when the lastUpdated field is older than the change event time. Unfortunately, I can’t seem to manually set the lastUpdated field on fhir resources; hapi fhir ignores the lastUpdated field I send it and instead overwrites it with the current time. Is there any way to disable this functionality and set it manually?

Thanks for your help

You might get an answer on Zulip at