Critical Bug Fix: Patient Deletion Flow PR 13752

Hi team,

We identified a critical bug in the patient deletion flow where associated clinical notes can be improperly deleted or targeted across patient scopes.

I have opened a PR with the fix, detailed root-cause explanation, and code comments here: fix(deleter): enhance form deletion logic for clinical notes by sushanth-RR47 · Pull Request #13752 · openemr/openemr · GitHub

Tagging @bradymiller for awareness given the data integrity impact. Could someone from the core team please review this when free?

Thanks!