Home assignment #2
Assignment #2
Before beginning this assignment, make sure you have at least one patient entered from the previous assignment.
In this assignment, you will update your existing study with additional forms and conditions. Follow the steps below to complete the assignment.
Start by duplicating your design as a Revised version.
Go to Forms.
- Add new form: Pregnancy Test (ID = PT)
- Add a radio button for the result (positive / negative)
- Add a date field (PTDAT) with the following edit check:
var a = E00_START.DM.DMICDAT;
if ( !a || !PTDAT)
return true;
else return (PTDAT >= date(a));
- Add new form: Electrocardiogram (ID = ECG)
- Add numeric fields with edit checks for the following variables:
- PR interval (ms)
- Should be between 120 and 200 ms
- QRS interval (ms)
- Should be between 80 and 120 ms
- QT interval (ms)
- Should be below 450 ms for male patients, and below 480 ms for female patients
- PR interval (ms)
- Add numeric fields with edit checks for the following variables:
- Add new form: Unscheduled assessments (ID = UN)
- Add a check box item (ID = UNTESTS) asking which procedures were performed. Include the following choices:
- Vital Signs (code = 1)
- ECG (code = 2)
- Add a check box item (ID = UNTESTS) asking which procedures were performed. Include the following choices:
- Go to Study Workflow
- Add the ECG and Pregnancy test forms to the screening visit. Program a visibility condition such that the Pregnancy test only appears for female participants. The Electrocardiogram should appear for all patients.
- Create an unscheduled visit
- Create three activities:
- Activity with UN form
- Activity with Vital signs form
- Program the following visibility condition:
$THIS.UN.UNTESTS.contains(1)
- Program the following visibility condition:
- Activity with ECG form
- Program the following visibility condition:
$THIS.UN.UNTESTS.contains(2)
- Program the following visibility condition:
- Create three activities:
- Publish the study, assign the revised version in Admin and create a new female subject in Clinic
- Complete the ECG form and enter a value of 460 ms
- Change the sex of the patient from female to male and verify that a cross-form edit check fires on the ECG form.
Extra credit (optional)
- Add a hidden form
- Create a new form with a free text field labeled “study status”
- Have this item return the following function:
- Create a new form with a free text field labeled “study status”
if(E00_START.DM.DMICDAT!=null)
return “Enrolled”;
else return “Screened”;
-
- Under the forms Advanced settings (find this by clicking the form label) select “Auto update functions” as well as “Hidden form”
- Add this form to the starting event, within the same activity as the Demographics form.
- Under Study Settings / Selection View Settings, use this item to display the subject’s current status in the card view
- Add translations to ViedocMe forms (requires new version)
- Under Design Settings / Details, add an additional language and save changes.
- A Language Import/Export tab will appear under Design Settings
- Select the language you wish to translate and then pick the forms you wish to translate – export the forms. An Excel document will download.
- Open the Excel and file and perform the translation in column D.
- Once finished, upload the document and save changes.
- Publish and assign the design.
- Verify the updates by adding a new subject and initiate the ViedocMe account in Clinic. The additional language should now be available in the drop down list in the ViedocMe account window.