locking feature

73 views
Skip to first unread message

(Peter MacIsaac)

unread,
May 30, 2019, 6:26:37 AM5/30/19
to redcap open
Working on a project that aims to prevent research assistants changing data after completing the form.

Is there a means to support a data enterer to lock the form after completion,  and not being able to unlock it  f

As far as I can see the only user permission options allow for a user who has locking permissions to also unlock.There does not seem to be an option to just lock it.

So what is wanted by the user is for the data entry person to lock a form at the end and be unable to unlock it, without going to a user with unlock powers.

This project makes it more complex by wanting to lock records on the mobile app  offline.

I would guess that the only option to ensure data integrity is use the logging / audit feature to identify changes made after the instrument has been closed.

Thanks

Peter MacIsaac




Luke Stevens

unread,
May 30, 2019, 5:38:12 PM5/30/19
to (Peter MacIsaac), redcap open

Hello Peter,

 

You're right, you can't have the lock permission without unlock. And you can't lock a form from the mobile app.

 

I have a couple of ideas for how to implement a scheme like this, but both require some coding:

 

1.       Give your data entry people lock/unlock rights so they can lock the form when they're ready to. Use the JavaScript injector or Shazam module to include a JavaScript function in the forms that:

a.       Reads the current user's username (i.e. from the #username-reference span)

b.      If the user is not in a white-list of allowed unlockers coded into the function then hide the lock record table row (#__LOCKRECORD__-tr)

 

2.       Don't give your data entry people lock/unlock rights, but write a DET or record save hook that (for example) locks the form when it gets saved with status "Complete". The locking could either be manually coded into the DET/hook or be done via an API call to the Locking API external module.

 

Regards,

Luke

--
You received this message because you are subscribed to the Google Groups "redcap open" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redcap_open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redcap_open/eab1a5ab-054a-41fe-8783-00570f62f14c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Children’s Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.

Reply all
Reply to author
Forward
0 new messages