I noticed that the REST API documentation for Patient Allergy suggests a purge operation, but the PatientAllergyResource2_0 explicitly throws a ResourceDoesNotSupportOperationException. Should we update the documentation or is there a plan to support purging in the future?
The behavior in PatientAllergyResource2_0 is intentional — purging allergies is not supported, since patient allergies are part of the clinical record and should be voided rather than physically deleted.
So I believe the REST documentation is misleading here and should be updated to remove or clarify the purge operation. I’m not aware of any plan to support purging allergies via REST.