Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add date range filter for birthdate (from-to) to Persons, Cases, and Contacts #13190

Closed
markusmann-vg opened this issue Nov 27, 2024 · 1 comment · Fixed by #13215
Closed
Assignees
Labels
feature A new feature to be developed (ticket type) qa-verified Issue has been tested and verified by QA

Comments

@markusmann-vg
Copy link

Feature Description

In SORMAS, the user should be able to apply an additional filter for the birthdate across various sections where filters are already used (e.g., Persons, Cases, Contacts). The filter should allow the user to specify a date range (from-to), ensuring that all individuals born within the specified date range are included in the results.

Added Value/Benefit

The filter ensures that users can quickly access relevant records for cohort studies, epidemiological analysis, or specific age group evaluations, helping to streamline workflows in health data management.

Users can now easily retrieve individuals born within a given period, enhancing their ability to analyze or report on specific cohorts, such as those born in a particular era (e.g., between 1975 and 1999)

Acceptance Criteria

Filter UI:

New input fields should be added in the filter section for selecting a birthdate range.
The user can select a start date ("From") and an end date ("To").
The filter should include individuals born on the selected start and end dates (inclusive).

Filtering Logic:

The system should filter persons, cases, and contacts based on the selected date range for birthdate.
The filter should be applied consistently across all sections where applicable: Persons, Cases, Contacts.

Edge Cases:

If no start or end date is selected, the filter should act as a non-restrictive search.
If a start date is provided but no end date, the filter should include individuals born on or after the specified start date.
If an end date is provided but no start date, the filter should include individuals born on or before the specified end date.

Error Handling:
If the "From" (start date) is later than the "To" (end date), the system should display an error message:
"The start date cannot be later than the end date. Please adjust the date range."

Implementation Details

Example:
If the user selects a range from "01.01.1975" to "31.12.1999", the result should include all persons, cases, and contacts born on or between these dates, including those born on the boundary dates themselves.

Mockups

No response

Additional Information

No response

@markusmann-vg markusmann-vg added the feature A new feature to be developed (ticket type) label Nov 27, 2024
@sergiupacurariu sergiupacurariu self-assigned this Dec 5, 2024
sergiupacurariu pushed a commit that referenced this issue Dec 17, 2024
sergiupacurariu pushed a commit that referenced this issue Dec 17, 2024
…ses, and Contacts - changes after review
leventegal-she added a commit that referenced this issue Dec 17, 2024
…nge_filter_for_birthdate

#13190 - Add date range filter for birthdate (from-to) to Persons, Ca…
@richardbartha
Copy link
Contributor

@richardbartha richardbartha added the qa-verified Issue has been tested and verified by QA label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to be developed (ticket type) qa-verified Issue has been tested and verified by QA
Projects
None yet
3 participants