ISPatient.getAgeAt

Description

This function returns the age of the patient for the selected date.

Syntax

object.getAgeAt(aDate)

Part Attribute Type Description
object Required
The object always implements the ISPatient interface
aDate In, Required
DateTime
The date the age is calculated for

Return Value

string

Returns the patient's age in the format MMy NNm.

Example

Display the age of the patient for the selected date.

Dim aPatient  
Dim aAgeAt

Set aPatient = Profile.SelectPatient 
aAgeAt = aPatient.getAgeAt(#11/29/2018#)
Profile.MsgBox(aAgeAt)  
Note:

In Profile Client v8 on User Interface Age can be found in Patient > Alter Patient > General.

Version information

Added in v7.8.0