Welcome to the DR Network.

Everything you need to get started building reports with Data Repository. All free and available for every MEDITECH version from MAGIC to Expanse. Sign up today!

Contact us

Age in Years and Months (function)

  • MT platform: All

This scalar TSQL function returns a computed age between two dates, shown in whole years and months (0Y 0M). Sometimes used for pediatric patients.

(Read our blog for more information about user-defined functions in T-SQL.)

 To download this report, please log in or create an account.  


fn age years months