scitran / core

RESTful API
https://scitran.github.io
MIT License
18 stars 18 forks source link

PHI Settings #974

Closed hkethi002 closed 6 years ago

hkethi002 commented 7 years ago

PHI permission enhancements

Custom PHI field settings

nagem commented 6 years ago

If a project has phi=false, phi will always be returned from all endpoints and ignore site level phi settings.

nagem commented 6 years ago

If tags/notes are marked as PHI,

should a non-PHI user be able to add? - Yes view? No modify? - Yes for own notes, tags cannot be modified delete? - Yes for own notes, no(?) for tags, but we'll allow for now.

nagem commented 6 years ago

Projects cannot override site-level PHI fields, the only way they can display fields blacklisted by site-level PHI settings is to list the project as phi=false.

nagem commented 6 years ago

What to do for GET /sessions when sessions will have different project PHI settings? Use site-level defaults?

nagem commented 6 years ago

Log with PHI settings change in access log.

nagem commented 6 years ago

Search whitelist of returned fields should not conflict with PHI settings (users should not be able to add any fields from search whitelist to project/site level PHI).

hkethi002 commented 6 years ago

For projects where phi is disabled: