Class Logic.Age

java.lang.Object
org.mitre.synthea.engine.Logic
org.mitre.synthea.engine.Logic.Age
All Implemented Interfaces:
Serializable
Enclosing class:
Logic

public static class Logic.Age extends Logic
The Age condition type tests the patient's age, in a given unit. (Ex, years for adults or months for young children)
See Also:
  • Constructor Details

    • Age

      public Age()
  • Method Details

    • test

      public boolean test(Person person, long time)
      Test whether the person's age satisfies the specified condition.
      Specified by:
      test in class Logic
      Parameters:
      person - Person to test.
      time - Timestamp for the test.
      Returns:
      True if the age condition is satisfied, false otherwise.