When un-linking a patient record from a pedigree node the dialog that pops up now has a "delete patient record" button (note: in a non-prominent position)
When selected and approved, the delete request is made, and there is no check that the user has the right to delete the patient. This right can be different from the edit right (on some custom instances with custom authorisation module implementations), so the delete right should be explicitly checked per-patient
There is a blocker: need to decide what to do with patient medical reports in family JSON. A good solution for this issue involves refactoring family JSON a bit, and that would require dragging medical reports code around. If we dont need medical reports in family JSONs we need to remove the code. If we need it we need to refactor in some other way. Until we decide what we ned from medical reports this issue is postponed
note: there is one "work in progress" commit which has notes about other changes that needs to be done