Skip to content

Cohort definition editor loads full list of concept sets multiple times #2887

Description

@anthonysena

Expected behavior

When the cohort definition editor opens, the only requests made to WebAPI are the ones necessary to set up the editor

Actual behavior

When loading a cohort definition, there is a call to the WebAPI/conceptset/ endpoint which loads the full list of concept sets in the WebAPI database for each concept set present in the cohort definition.

Steps to reproduce behavior

Load a cohort definition with > 0 concept sets. Observe the network trace via Google Chrome developer tools:

image

The screenshot above shows 5 calls to WebAPI/conceptset/ which is the number of concept sets in my cohort definition entry event section. If you open an inclusion rule with > 0 concept sets, WebAPI/conceptset/ is once again called for each concept set present in the inclusion rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions