Project

General

Profile

Bug #647

Updated by Roshni Harish. 15 days ago

Module: OPD → Patient Registration 
 Environment: Test, NSSH (https://nssh.test.clinq.health/opd/register) 
 Type: Bug 
 Severity: High (newborns and infants can’t be registered correctly; affects Pediatrics, Gynecology & Obstetrics and NICU) 
 Priority: P1 

 Description 
 The Age field on registration age accepts years only. Infants under 1 year can’t be entered accurately. A only years. Cannot enter a 44-day-old baby has to be entered as 0 years, or the form won’t accept it at all. Age in baby. Allow days or months matters clinically for paediatric dosing, vaccination schedules and growth charts. 

 Steps to reproduce 

 Go to OPD → Patient Registration. 
 Select Title Baby and enter a name. 
 Try to enter the age as 44 days, or as 1 month 14 days. 

 Expected result 

 Age can be entered in Years / Months / Days, through a unit dropdown or three small boxes. 
 Alternatively: when the Date of Birth is entered, Age is calculated automatically. 
 When Age is entered in days or months, an approximate DOB is calculated and marked as “approx.” 
 Age is displayed in the right format everywhere (registration, token, consultation header, prescription print): 
 Under 1 month: “44 d”, or “1 m 14 d” 
 Under 1 year: “5 m” 
 Under 5 years: “2 y 3 m” 
 Otherwise: “34 y” 

 Actual result 
 Only whole years can be entered, so a 44-day-old baby can’t be registered with the correct age. 

 Acceptance criteria 

  Age accepts days, months and years. 
  Entering a DOB calculates the age automatically, and the Age field updates. 
  Entering an age in days or months gives an approximate DOB. 
  A DOB in the future is rejected. Age 0 days is allowed, for newborns. 
  The age shows correctly on the token, the consultation header, the prescription and the bill. 
  Age updates over time based on the DOB, so a baby registered at 44 days shows the correct age at the next visit. 

 Notes 

 Store the DOB as the source calculate from date of truth, with an “estimated” flag when it came from an age. Don’t store age as a fixed number. 
 Babies’ medicine doses, especially ml doses for drops and syrups, depend on an accurate age and weight. This links to the ml dose enhancement. birth.

Back