[Loris-dev] Behavioral Database Workflow

Christine Rogers christine.rogers at mcgill.ca
Thu Apr 27 12:36:15 EDT 2017


Hi Muhammad,

Thanks for posting this solution for checking permissions on instruments.
We'll look into it and should issue a pull request soon.

Best,
Christine

On Wed, Apr 26, 2017 at 7:03 PM, Muhammad Khan <mukhan at ualberta.ca> wrote:

>
> Hey Christine,
>
> Thanks for clarifying the BVL QC columns.
> To fix the issue of users being able to access instruments through the
> statistics module, even though they do not have the access_all_profiles
> permission, I copied the following hasAccess function into all the
> instruments that I had coded:
>
> function _hasAccess()
>>     {
>>         // create user object
>>         $user =& User::singleton();
>>         $timePoint =& TimePoint::singleton($_REQUEST['sessionID']);
>>         $candID = $timePoint->getCandID();
>>         $candidate =& Candidate::singleton($candID);
>>         // check user permissions
>>         return ($user->hasPermission('access_all_profiles') ||
>> $user->getData('CenterID') == $candidate->getData('CenterID') ||
>> $user->getData('CenterID') == $timePoint->getData('CenterID'));
>>     }
>
>
> If the user does not have the access_all_profiles permission and they do
> not belong to the participant's center, then they will see the "You do not
> have access to this page" error.
>
> On Wed, Apr 26, 2017 at 4:33 PM, Christine Rogers <
> christine.rogers at mcgill.ca> wrote:
>
>> HI Muhammed,
>> Thanks for your questions;  we'll log these as issues/requests for
>> discussion with the team.
>>
>> i.) What is the purpose of the *BVL QC *& *BVL Exclusion*, and how do I
>>> go about utilizing this feature?
>>
>>
>> BVL QC and BVL Exclusion are columns that appear in the Timepoint List
>> page, drawn by the Timepoint class from columns in the session table
>> <https://github.com/aces/Loris/blob/17.0-dev/SQL/0000-00-00-schema.sql#L1060>.
>>
>>
>> *BVL QC* can be set for a given timepoint by clicking on the timepoint
>> in the table, and in the control panel (left sidebar) selecting Visual or
>> Hardcopy under "BVL QC Type",  and then selecting "Complete" under "BVL QC
>> Status".
>> Projects can use this to mark if/when all completed instruments for a
>> visit have been inspected against paper originals (hardcopy), or against
>> digital or scoring sources ('visual').
>> Once both these flags are set within the timepoint, you should see the
>> value (visual or hardcopy) in the Timepoint List table, BVL QC column.
>> *BVL Exclusion* can be used by custom code or scripts to flag excluded
>> datasets (e.g. due to candidate disqualification or data quality
>> insufficiency etc), but is not currently set via Loris' front end.
>>
>> ii.) On the dashboard, I noticed that the number of *Incomplete Forms *that
>>> is displayed in the *My Tasks panel* only considers an incomplete form
>>> if it is 'In Progress'. If a visit stage is started, the instruments that
>>> are populated are not considered to be 'In Progress' until they are opened.
>>> So the number displayed on the dashboard excludes unopened instruments.
>>> However, in the Data Team Helper module, and the Statistics page, an
>>> unopened instrument is considered to be incomplete. Would it not be more
>>> appropriate to have the number of *Incomplete Forms* reflect both
>>> unopened, and 'In Progress' forms to keep it consistent with the other
>>> modules?
>>
>>
>> Thanks for reporting this -- this count should be consistent across
>> modules and should include unopened as well as In Progress.
>>
>> iii.) After a visit has been sent to DCC for approval, is there a way for
>>> the study coordinator (admin) to be notified that that visit needs to be
>>> verified and approved?
>>
>>
>> This notification would be a good feature to add, and could also appear
>> as a notification on the dashboard upon login, e.g. configurable for the
>> site coordinator and visible only for their site visits.
>>
>> Best,
>> Christine
>>
>>
>> On Tue, Apr 11, 2017 at 4:03 PM, Muhammad Khan <mukhan at ualberta.ca>
>> wrote:
>>
>>> Hi LORIS dev community,
>>>
>>> I had a couple of questions regarding the behavioral database:
>>>
>>> i.) What is the purpose of the *BVL QC *& *BVL Exclusion*, and how do I
>>> go about utilizing this feature?
>>>
>>> ii.) On the dashboard, I noticed that the number of *Incomplete Forms *that
>>> is displayed in the *My Tasks panel* only considers an incomplete form
>>> if it is 'In Progress'. If a visit stage is started, the instruments that
>>> are populated are not considered to be 'In Progress' until they are opened.
>>> So the number displayed on the dashboard excludes unopened instruments.
>>> However, in the Data Team Helper module, and the Statistics page, an
>>> unopened instrument is considered to be incomplete. Would it not be more
>>> appropriate to have the number of *Incomplete Forms* reflect both
>>> unopened, and 'In Progress' forms to keep it consistent with the other
>>> modules?
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Loris-dev mailing list
>>> Loris-dev at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>>>
>>>
>>
>>
>> --
>>
>> christine.rogers at mcgill.ca
>> LORIS data systems | loris.ca
>> McGill Centre for Integrative Neuroscience | MCIN.ca
>> McConnell Brain Imaging Centre
>> Montreal Neurological Institute
>> McGill University | Montreal | Canada
>>
>
>
> _______________________________________________
> Loris-dev mailing list
> Loris-dev at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>
>


-- 

christine.rogers at mcgill.ca
LORIS data systems | loris.ca
McGill Centre for Integrative Neuroscience | MCIN.ca
McConnell Brain Imaging Centre
Montreal Neurological Institute
McGill University | Montreal | Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20170427/49178840/attachment.html>


More information about the Loris-dev mailing list