Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • EDC/CDMS
  • Frequently Asked Questions
  • Creating the study forms

Can I make a field dependent on multiple fields in EDC/CDMS?

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • EDC/CDMS
    Castor EDC Manual Castor EDC Calculations Manual Frequently Asked Questions Articles for Data Managers Castor EDC Compliance Release Documents
  • eConsent
    Castor eConsent Manual Castor eConsent Compliance Release Documents
  • SMS
    Castor SMS Manual Castor SMS Compliance Release Documents
  • Castor Connect
    Castor Connect Compliance Release Documents
  • Helpdesk
    News Other Resources
  • Status page
+ More

When creating or editing a field, it is possible to make it dependent on only one field. However, using hidden calculation fields, you can also create dependencies on multiple fields. 

 

For example, I want my Field_4 to be dependent on both Field_1 and Field_2 being answered with "Yes". In this case, my fields 1 and 2 are radiobutton fields, with options "Yes" (option value 1) and "No" (option value 0). I create a calculation field (Field_3) between Field_2 and Field_4 and I will select the option to hide it (because I don't want it to be visible in my participants); it will only be executed in the background. This is the calculation template:

 

if ({Field_1} == 1 && {Field_2} == 1) {
 1;
} else {
 0;
};

This means that if fields 1 and 2 are answered with yes (=1), this calculation will return a 1, if not it will return a 0.

 

You can add as many fields as you want in your if clause and you can also change the && (meaning AND; dependency on both values) to || (meaning OR; dependency on either value).

 

You can also check for multiple values of the same variable. For example, if you want to make Field_4 to be dependent on Field_1 being answered with "Yes" or "Maybe", then I will create the same calculation field as above, only using a slightly different template:

 

if ({Field_1} == 1 || {Field_1} == 2) {
 1;
} else {
 0;
};

Then, I will make my Field_4 dependent on this calculation field, Field_3, being equal to 1.

 

In the example below, the field 'Antihypertension medication administered?' will only be shown if systolic blood pressure is greater than 180 (>180) AND (&&) diastolic blood pressure is greater than 110 (>110).

 

Here is the calculation template which is used to check for the blood pressure values:

 

 

A dependency on the calculation is then set in the ‘Dependencies’ tab of the Antihypertension medication administered?' field:

 

The structure in the ‘Study forms’ tab will look as shown on the screenshot below:

 

 

In the data entry view, the field ‘Antihypertension medication administered?’ will only be showed if both blood pressure fields exceed values specified in the calculation template:

 

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Should I use a Grid or a Repeated measure in EDC/CDMS?
  • Can I upload a study logo in EDC/CDMS?
  • How can I add new sites in EDC/CDMS?
ISO 27001
FDA - 21 CFR part 11
ICH GCP compliant
HIPAA compliant
CDISC
ISO 9001
gdpr compliant

Products & Industries

  • Electronic Data Capture (EDC)
  • ePRO
  • eConsent
  • Decentralized Clinical Trials (DCT)
  • Clinical Data Management
  • Medical Device & Diagnostics
  • Biotech & Pharma
  • CROs
  • Academic Research

Resources

  • Thought Leadership
  • Blog
  • Castor Academy
  • Knowledge Base

 

Company

  • About Us
  • Careers
  • News
  • Contact Support
  • Contact Us

Legal & Compliance

  • Terms of Use
  • Privacy & Cookie Statement
  • Responsible Disclosure Policy
  • Good Clinical Practice (GCP)
  • ISO Compliance Certificates
  • GDPR & HIPAA Compliance
  • Security Statement

© 2022, Castor. All Rights Reserved.

Follow us on social media

Definition by Author

0
0
Expand