Re: #63 Added an if to catch 'PatientAge' and cast from a string to the decimal field, removing the 'Y' for years.

#4 Merged at a00ebca
Repository
Deleted repository
Branch
jacole/added-an-if-to-catch-patientage-and-cast-1395161457493 (76051c6e64eb)
Repository
OpenREM
Branch
develop
Author
  1. Jonathan Cole
Reviewers
Description

Fix for issue #63 Added an if to catch 'PatientAge' and cast from a string to the decimal field, removing the 'Y' for years. I don't have any 'D' or 'M' ages to test.

  • Issues #63: openrem_mg.py required dob for age resolved

Comments (3)

  1. Ed McDonagh

    I confused myself with this one as I was looking at rdsr.py and you have been working on mam.py!

    I'd like to have the same behaviour in both (and in the philips CT one too), and cope with D, M and Y suffixes.

  2. Jonathan Cole author

    I've updated it to catch 'Y', 'M' or 'D' but I don't have any non-Y ages to test. If it works it should be easy enough to port to the other scripts.