Class CalculateAge

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    Direct Known Subclasses:
    CalculateAgeEvaluator

    public class CalculateAge
    extends UnaryExpression
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    Calculates the age in the specified precision of a person born on the given date. The CalculateAge operator is defined for Date and DateTime. For the Date overload, the calculation is performed using Today(), the precision must be one of year, month, week, or day, and the result is the number of whole calendar periods that have elapsed between the given date and today. For the DateTime overload, the calculation is performed using Now(), and the result is the number of whole calendar periods that have elapsed between the given datetime and now.

    Java class for CalculateAge complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="CalculateAge">
       <complexContent>
         <extension base="{urn:hl7-org:elm:r1}UnaryExpression">
           <attribute name="precision" type="{urn:hl7-org:elm:r1}DateTimePrecision" />
         </extension>
       </complexContent>
     </complexType>