Reusables Refactoring
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 151
- Forks
- 183
- Avg merge
- 14m
- Merged PRs (30d)
- 2
Description
Problem:
The concept for Reusables was originally created to offer users the capability for designing complex logic to be easily shared and recalled across several studies. Reusables are not fully reusable throughout Atlas, as there is specific reusable type logic (e.g. “Initial/Censoring Event” and “Criteria Group”) to align with the various sections of Atlas cohort definitions. However, this flexibility presents a usability challenge in that we have 2 types of Reusables that are specific to sections of Atlas.
Proposal:
Eliminate the option for allowing various Reusable types. Only allow for 1 criteria object in a Reusable, but with all nesting support. Also, remove the “having” parameter, meaning, we can’t use multiple criteria. This ensures that a reusable is not limited in how it can be used and can be imported anywhere in Atlas without distinction. The expected result from this amendment will make Reusables more intuitive for users to find utility while using this feature within the Atlas platform as the creators initially intended.
Atlas Git Issue
Proposal:
Alter GUI to match the WebAPI issue:
- Remove the “having” parameter
- Limit the criteria to just the ones that can be used everywhere
a. Meaning, no demographic or group items - Recommend community users incorporating nested logic for layered logic
a. A mix of Reusables or nested criteria may be compounded to develop a single asset. - The use of the “having” parameter may be used outside of Reusable after being embedded into the design.

FYI- @alondhe
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests; begin by locating the WebAPI handling for Reusables and reviewing how reusable types, criteria, and the “having” parameter are represented. Clarify the GUI and WebAPI scope before changing behavior, then verify that one reusable criteria object supports nesting and can be used across Atlas sections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100