Leave a comment at the end of this page or email contact@krishagni.com
Automatic Survey Sending Rules Example
OpenSpecimen survey module supports sending the automatic survey invites to the participants based on the validation configured. Refer to the wiki page to set up the survey rules.
The user can set validation rules based on Participant Custom Fields, Participant Custom Form, Visit Custom Fields, and Visit Custom Form fields. The below table has some examples illustrating the same.
Form Level | Description | Code |
---|---|---|
Registration Custom Field | Send English Survey based on Language Field selection | #cpr.participant.extensionDetail?.getAttrsMap()?.get('RB38') == 'English' ‘RB38' is nothing but the variable name of the custom field, that is visible in forms.
|
Registration Custom Field | Send a survey to the 18-year-old patient. (used Age as a custom field) | #cpr.participant.extensionDetail?.getAttrsMap()?.get('age_of_participant') != null && T(Integer).parseInt(#cpr.participant.extensionDetail?.getAttrsMap()?.get('age_of_participant')) > 18 |
Participant Field | Send English(Custom Field) Survey based on Language Field selection and Age(DOB/Reg. Date) calculation. Can use below Date functions
| #yearsBetween(#cpr.participant.birthDate, #cpr.registrationDate) < 18 && #cpr.participant.extensionDetail?.getAttrsMap()?.get('RB38') == 'English' |
Registration Forms | Send invite prior two days of Surgery. Form Name ['diagnosis_date_testing'] Field Name
|
|
Consent Statement | Send Survey Invitation, when the consent statements is null for the participant. | Refer this page, to know how you can add Coded Statement |
Consent Statement | Send Survey Invitation, when the either consent statements is null for the participant. | |
Visit Field | InProgress |
|
Visit Custom Field | InProgress |
|
Visit Form | InProgress |
|
|
|
|
Leave a comment at the end of this page or email contact@krishagni.com