Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/senaite/patient/content/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,8 @@ def setAge(self, value):
if not dtime.is_ymd(value):
return

# don't assign age unless estimated DoB
if not self.getEstimatedBirthdate():
return
# Set estimated_birthdate to True when age is set
self.setEstimatedBirthdate(True)

# update the value of the date of birth
dob = dtime.get_since_date(value)
Expand Down