wrong date of birth crashes the client

Discussion in 'Bugs & Issues' started by qilin, May 31, 2007.

  1. qilin

    qilin Member

    Yesterday, my temp receptionist put in a patient's birth year as 1568. Then everytime when the client tries to access this patient's record, it crashes - overflow error during age calculation. I had to manually correct the year of birth using a database tool to fix the problem.
  2. Jason

    Jason Developer / Handyman Staff Member

    whoa !

    never seen that one before.

    nice fix :)
  3. Graham

    Graham Developer Staff Member

    I now trap ages > 150 so that should not happen. See beta-12.

    Why 150? Well, if you start practise in your 20s, and have a few patients in their 90s, then by the time you're in 70s, their ages will show up close to 150 - deceased of course.

    Can fine tune this .. or change my age calculation method !

  4. Jason

    Jason Developer / Handyman Staff Member

    Might need to. My ages are still off I think. I'll double check later.

Share This Page