fix editStudyPatients when removing a design from a patient
add patient.hasDataForDesignId array avoid removing a design for which a patient has already entered data