Pedigree does not check delete rights when offering to delete a patient record

Description

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

Environment

None

Activity

Show:
Andrew Misyura
July 20, 2018, 3:35 AM

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

Andrew Misyura
July 20, 2018, 3:54 AM

note: there is one "work in progress" commit which has notes about other changes that needs to be done

Assignee

Andrew Misyura

Reporter

Andrew Misyura

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

Medium