Open MiskoG opened 3 years ago
(removing opposed patients from already existing cohorts is an other subject, maybe an edge case that we can just forget by now)
can you confirm that this happens only when using "full-text search" criterias ? If that's the case, it's not an easy fix because the regex search is really dumb for now (and very custom, not well integrated into hapi) so it's hard taking permissions into account.
Don't know if it's really a bug or if we did that on purpose.
How to reproduce :
1) From the DPO Portal, add a Consent opposition for a patient (right now on demo : Henriette HEBERT)
2) Then in Cohort, start a new cohort on the Psychiatrie perimeter, with a full text search criteria "tracheobronchomalacia"
3) There are 9 patients including our Henriette HEBERT. When we go in the patient list, she doesn't appear (there are 8 patients) which is cool, but she shouldn't have been included in the first place 🙈