ctsit / search_and_populate_data_from_another_project

REDCap Module to search another project for data to populate data into the current form
Other
5 stars 2 forks source link

support all radio layouts, map using coded values instead of choice labels #10

Closed ChemiKyle closed 4 years ago

ChemiKyle commented 4 years ago

Previously, radio fields would only map if the coded value of the source field matched the label value for the target field, this corrects that so that the coded value of the source matches the coded value of the target. I've removed the mapping from source coded value to target label entirely.

Additionally, radio fields with custom alignment are now supported.

TO TEST:

  1. Navigate to the module config for any target project
    • If you do not have one, a source and target using the "Basic Demography" template will work
    • Be sure your target project has data for at least one record
  2. Map any source radio field to any corresponding target radio field
    • "Basic Demography" example:
      {
      "first_name": "first_name",
      "ethnicity": "ethnicity",
      "gender": "gender"
      }
  3. Use the module on the appropriate instrument
  4. Observe that radio fields now populate