暫無描述

Andrej Studen 9a37272bc4 Update README.md 4 年之前
META-INF f54d738094 Initial import 5 年之前
config 6302091049 Adding crfReview 5 年之前
img 0e0871f68d Adding another setup example 4 年之前
scripts b122000401 removing exports setters from trigger scripts convention 5 年之前
setup a163673d7b Adding initial list set 4 年之前
views 262441d626 Adding formPortal as web part 4 年之前
web f5d3013754 Adding form portal and updates 4 年之前
README.md 9a37272bc4 Update README.md 4 年之前

README.md

Usage

Initial setup

CRFs are always part of a study. So, create study as you would normally do, keep subject identifier to ParticipantId, which is the default.

Once you do, you should enable CRF module. See LabKey documentation on how to enable a module.

In Study setup, select Edit additional properties. New fields should be:

  • EudraCTNumber,
  • StudySponsor,
  • StudyCoordinator,
  • RegulatoryNumber, all as strings. It should look like this

Alt text

The initial set of setup lists is part of the distribution. Copy archive locally and import list archive to Labkey in the study. You will get list of lists by clicking on setup wheel at the top of the screen and selecting Manage lists.

Create demographicData dataset as part of the study. It can have no fields.

Add a tab (Wheel->Page Admin Mode, click on a + tab). Add CRF Portal web part. It should appear empty. This will show all forms that we will create.

Setting up a form

Create a dataset as a list. Go to Wheel->Manage Lists and Create List. Setup fields as you would normally do. Three additional fields are required:

  • participantCode (String)
  • submissionDate (DateTime)
  • crfRef (String)

Here is an example included with the list archive.

Open the inputLists list and add the name of the new list as a new entry. The sample dataset is already there.

Open the Forms list. Add new entry. Some fields can only have the default value:

  • formUrl: visit0
  • reviewFormUrl: reviewVisit0
  • viewURL: visit0.view

Form name can be any string, including spaces. Setup query is still to be created, but it should name in Setup to distinguish it from others, say demographicsSetup. The last field, master query is to be set to the created dataset list. Master queries must contain a participantCode field, and that is the field that will be used as the assignment field. The sample Forms already has an entry for demographicsData.

Finally, create the setup list. It should contain the fields as the sample demographicsSetup, shown in the image

setup list

The setup list can have multiple entries, which are combined to constitute a logical form. The only programatical feature is that all datasets that are combined in the form should be completed before the form is submitted for review.

For a new setup list entry, set Query Name to the dataset list and Title can be any string. Other fields are set to NONE by default.

setup list example with NONE

A more complex dataset layout might contain a sub-list, say list of medication, which is enabled by a flag which is part of the dataset. The name of the flag, which is a variable in the dataset, must be given as showFlag, the value where list is to be filled is the showFlagValue, and showQuery is the sublist query which will be shown, as the following example shows:

setup list example

Filling the form

Add a tab (Wheel->Page Admin Mode, click on a + tab). Add CRF Portal web part. This will show all forms that we will create. If the setup worked, the Demographics form should appears in the CRF tab.