nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Extreme cycle lengths for periods allowed #469

Open nus-pe-bot opened 6 months ago

nus-pe-bot commented 6 months ago

After keying in random dates, the next cycle prediction is generated, and has an extreme value of 213 days. I'm not a doctor nor female, so I don't know if that is even possible.

Perhaps consider having a cap on the min and max values, or signal to the user something is severely wrong with them.

image.png


[original: nus-cs2113-AY2324S2/pe-interim#419] [original labels: type.FeatureFlaw severity.Medium]

j013n3 commented 6 months ago

Team's Response

The menstrual cycle varies greatly from person to person and there are numerous factors affecting the cycle length for instance, stress, medication, and underlying health conditions. During pregnancy, menstruation typically ceases entirely, and leading up to menopause, cycles may become irregular before eventually stopping altogether. Due to this variability and the individual nature of each person's body, establishing strict minimum and maximum cycle lengths can be challenging.

Users are meant to key in period lengths chronologically, and not in random sequences.

Duplicate status (if any):

--