---
title: How to Set Up Conditional Displays Based on Inclusion and Exclusion Criteria in EasyMedStat
description: To ensure that your eCRF only displays for patients who meet specific study criteria, follow these steps. This process involves creating categories for…
---

[Skip to content](https://help.easymedstat.com/support/solutions/articles/77000574925-how-to-set-up-conditional-displays-based-on-inclusion-and-exclusion-criteria-in-easymedstat#main-content)

English

Show submenu for translations

![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

[Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [EasyMedStat Knowledge Base](https://help.easymedstat.com/?hsLang=en)
2. [Collect data](https://help.easymedstat.com/collect-data?hsLang=en)
3. [Create a series / eCRF](https://help.easymedstat.com/collect-data?hsLang=en#create-a-series-ecrf)

# How to Set Up Conditional Displays Based on Inclusion and Exclusion Criteria in EasyMedStat

To ensure that your eCRF only displays for patients who meet specific study criteria, follow these steps. 

This process involves creating categories for inclusion and exclusion criteria, assigning numeric values to responses, and setting up a dynamic variable that controls the visibility of the eCRF.

### Step 1: Create Inclusion and Exclusion Categories

1. Navigate to Categories: On the left menu, click on Variables \> Categories \> New Category.
2. Create Categories:
   
     - Name one category "Inclusion Criteria" (with no parent category).
     - Name the other category "Exclusion Criteria" (also with no parent category).
3. Add Questions: All questions within these categories should be of the Yes/No type.

### Step 2: Set Numeric Values for Responses

1. In Exclusion Criteria Category:
   
     - Click on each variable within this category.
     - Go to the Values tab.
     - Change the numeric value of "No" from 0 to 1, and "Yes" from 1 to 0. This ensures that a "Yes" response (indicating exclusion) contributes to the overall exclusion score.
2. In Inclusion Criteria Category:
   
     - No changes are necessary, as "Yes" should equal 1 and "No" should equal 0.

### Step 3: Create an "Inclusion Score" Variable

1. Navigate to Variables: On the left menu, click on Variables \> New Variable.
2. Create the Variable:
   
     - Name it "Inclusion Score".
     - Place it in a different category, ideally the one following the Exclusion Criteria in the CRF.

This "Inclusion Score" variable will typically calculate how many inclusion and exclusion criteria are respected for the study. For example, if there are 5 inclusion criteria and 3 exclusion criteria, it is expected that the inclusion score would be exactly 8 for a patient that is eligible.

### Step 4: Calculate the Inclusion Score

1. Count Questions: Add up the total number of questions in both the Inclusion and Exclusion Criteria categories.
2. Set Up the Formula:
   
     - Go to Variables \> All Variables \> Inclusion Score.
     - In the Dynamic Variable tab, click Edit Formula.
     - Choose Formula, then click Change Formula.
     - Enter the total number of questions from both categories under "Number of Variables or Constants".
     - For each question, add it to the formula with a "+" in between.
     - Click Create Formula.
3. Activate Dynamics:
   
     - On the right side of the screen, click Activate Your Dynamics.
     - In the options, select Retrospective Mode, then click Activate My Dynamics.
     - A confirmation message will appear: "Your variable was successfully dynamized!"

### Step 6: Apply the Filter to Relevant Categories

1. Navigate to Categories: select each category that should only be accessible when criteria are met.
2. Set Display Conditions:
   
     - In the Display Only If tab, choose Only Display If.
     - Click +Add Condition and create a condition based on "Inclusion Score"
     - The condition will ensure that the category is only displayed if the "Inclusion Score" matches the exact number of questions, indicating all criteria are met. For example "Inclusion Score = 8"

- [Account](https://help.easymedstat.com/account?hsLang=en#main-content)

    - [Account](https://help.easymedstat.com/account?hsLang=en#account)
- [Collect data](https://help.easymedstat.com/collect-data?hsLang=en#main-content)

    - [Questionnaires (ePRO)](https://help.easymedstat.com/collect-data?hsLang=en#questionnaires-epro)
    - [Add and edit patients](https://help.easymedstat.com/collect-data?hsLang=en#add-and-edit-patients)
    - [Randomization](https://help.easymedstat.com/collect-data?hsLang=en#randomization)
    - [Export](https://help.easymedstat.com/collect-data?hsLang=en#export)
    - [Create a series / eCRF](https://help.easymedstat.com/collect-data?hsLang=en#create-a-series-ecrf)
    - [Multilingual studies](https://help.easymedstat.com/collect-data?hsLang=en#multilingual-studies)
- [Variables](https://help.easymedstat.com/variables?hsLang=en#main-content)

    - [Organize in categories](https://help.easymedstat.com/variables?hsLang=en#organize-in-categories)
    - [Dynamic Variables](https://help.easymedstat.com/variables?hsLang=en#dynamic-variables)
    - [Manage variables](https://help.easymedstat.com/variables?hsLang=en#manage-variables)
- [Statistical analyses](https://help.easymedstat.com/statistical-analyses?hsLang=en#main-content)

    - [Statistical tests](https://help.easymedstat.com/statistical-analyses?hsLang=en#statistical-tests)
    - [Compare groups](https://help.easymedstat.com/statistical-analyses?hsLang=en#compare-groups)
    - [Multivariate analysis](https://help.easymedstat.com/statistical-analyses?hsLang=en#multivariate-analysis)
    - [Filter patients](https://help.easymedstat.com/statistical-analyses?hsLang=en#filter-patients)
    - [Descriptive Statistics](https://help.easymedstat.com/statistical-analyses?hsLang=en#descriptive-statistics)
- [Collaborate](https://help.easymedstat.com/collaborate?hsLang=en#main-content)

    - [Share your series](https://help.easymedstat.com/collaborate?hsLang=en#share-your-series)
    - [Manage your organization](https://help.easymedstat.com/collaborate?hsLang=en#manage-your-organization)
- [Monitoring](https://help.easymedstat.com/monitoring?hsLang=en#main-content)

    - [Automations](https://help.easymedstat.com/monitoring?hsLang=en#automations)
    - [Electronic Signatures](https://help.easymedstat.com/monitoring?hsLang=en#electronic-signatures)
    - [Queries](https://help.easymedstat.com/monitoring?hsLang=en#queries)
    - [Clean data](https://help.easymedstat.com/monitoring?hsLang=en#clean-data)

[![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)](http://www.easymedstat.com)

<https://www.linkedin.com/company/easymedstat/> <https://www.youtube.com/@easymedstat9719> [mailto:support@easymedstat.com](mailto:support@easymedstat.com)

Copyright © 2026, EasyMedStat