Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The below table explains different sections of the nth step: 

Section

Details

visitFields

If visit fields need to be displayed on the nth step, this section must be added. There will be only one section of this displaying one row for a visit being collected.

fields

Within visitFields section, include all fields to be displayed in a table format within the 'fields' section of JSON. 

title

Title of each section/table in the nth step.

fieldGroups

If fields need to be displayed in separate sections or tables, multiple sections can be within fieldGroups.

For example: 'Primary Specimen details', 'Aliquot details' etc. Each section can have a title, criteria, and set of fields.

criteria

This defines conditions for displaying fields in each section. For example 'Centrifuge event details' section can be displayed only for 'Whole Blood' & 'Primary' specimens.

Example 1: Display Anatomic Site, Laterality, and Spun Event for Whole Blood Specimens

...

Once you added the above code "defVisitDate": "none" in the "specimenCollection section”, you can see the visit date field empty. OpenSpecimen will ask the user to enter the date to proceed further.

...

Turn off autopopulate visit fields (v10.3)

By default, the visit fields are auto-initialized using the previous visit's field values. To turn off this behavior, use the below configuration.

Code Block
{
  "name": "specimenCollection",
  "data": {
     "autoInitVisit": false
  }
}

When autofill is enabled:

...

When autofill is disabled:

...

Display Specimen Events at the nth Step

...