ctsit / redcap_oncore_client

REDCap OnCore Client external module provides integration with Forte Research's OnCore
Other
4 stars 7 forks source link

Pull OnCore Subjects does not support DAGs #7

Open pbchase opened 5 years ago

pbchase commented 5 years ago

This is not a high priority item, but it needs to be documented.

The Pull OnCore Subjects features does not support DAGs. In a multi-site trial, the Pull OnCore Subjects feature will likely expose PII from OnCore to every site defined in the project. A better design would allow the OnCore Study Site to be associated with each DAG in a project. The OnCore Enrollment data includes Study Site in a StudyData object. The OnCore enrollment data should be subsetted by the current user's DAG's Study Site to display only enrollees for their site. Data read from REDCap should be similarly subsetted. Any record's added from OnCore must set the DAG for the new record.

ChemiKyle commented 5 years ago

At a glance it looks like a row for StudySite could also be added to the redcap_entity_oncore_staff_identifier to obtain this functionality.

The getProtocolStaff call also returns a field called AllProtocolOrganizationAccess for each staff member that may be useful.