Hi,
As a feature request I would like to suggest extending the /changes REST API with an optional parameter that limits the results to a specific "ChangeType", like e.g. "/changes?type='StableStudy'.
The reasoning behind this is that with a busy server and large amounts of data being moved from multiple sources the /changes list can become flooded with hundreds of "NewInstance" changes coming in per minute. If one has a script that monitors for "slower" events such as stable studies, new patients, etc. these can be quite hard to monitor. I have actually already observed that my script that is watching for "StablePatient" via the REST API missed this event a couple of times when too many instances came in at the same time. Making it possible to filter the changes request would make this a lot more efficient and stable because even on a very busy server the NewInstances could be filtered out.
best wishes
Martin