edehr / edehr

EdEHR
GNU Affero General Public License v3.0
13 stars 9 forks source link

Patient date of birth #259

Open mandily-p opened 5 years ago

mandily-p commented 5 years ago

User story

As a student user, I want to be able to see that my patient is the same age, no matter when I access the case Because it simulates a real-life interaction better over time.

Description

The patient dob should be adjusted so that she will always remain the same age.

Expected behaviour

Option A Introduce new composite field type: birthdate Form edit mode: show display mode with a button to Edit Edit mode: show

  1. select month Jan - Dec
  2. select day 1-31
  3. select age 1-100 Display mode: show month, day, year (calculated) and age in years.

Option B Use existing 'select' type for birth day (1-31) Use existing 'select' type for birth month ('Jan' to 'Dec') with values 1 to 12 respectively Use existing 'select' type for age (1 to 100) Set all three to pass value to calculated field Introduce new field type 'birthyear' as a calculated value. It is given age and computes current year. Or Introduce new field type 'birthdate' as a calculated value. it is given age, birth day (1-31) and month and computes current date.

bryan-gilbert commented 4 years ago

As we develop the EHR signing we'll figure out relative dates. Apply the fix to the patient birthdate