Class Logic.ActiveCarePlan

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

public static class Logic.ActiveCarePlan extends Logic
The Active CarePlan condition type tests whether a given care plan is currently prescribed and active for the patient.
See Also:
  • Field Details

    • codes

      protected List<HealthRecord.Code> codes
      A collection of codes associated with the logic.
    • referencedByAttribute

      protected String referencedByAttribute
      An attribute referenced by the logic.
  • Constructor Details

    • ActiveCarePlan

      public ActiveCarePlan()
  • Method Details

    • test

      public boolean test(Person person, long time)
      Description copied from class: Logic
      Test whether the logic is true for the given person at the given time.
      Specified by:
      test in class Logic
      Parameters:
      person - Person to execute logic against
      time - Timestamp to execute logic against
      Returns:
      boolean - whether or not the given condition is true or not