Class HealthRecord.EntryWithReasons

java.lang.Object
org.mitre.synthea.world.concepts.HealthRecord.Entry
org.mitre.synthea.world.concepts.HealthRecord.EntryWithReasons
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HealthRecord.CarePlan, HealthRecord.Medication, HealthRecord.Procedure
Enclosing class:
HealthRecord

public abstract class HealthRecord.EntryWithReasons extends HealthRecord.Entry
An Entry with a list of reason codes
See Also:
  • Field Details

  • Constructor Details

    • EntryWithReasons

      public EntryWithReasons(long time, String type)
      Constructor for HealthRecord EntryWithReasons.
      Parameters:
      time - the time of the entry
      type - the type of the entry
  • Method Details

    • mergeReasonList

      public void mergeReasonList(List<HealthRecord.Code> otherCodes)
      Merges the passed in code list into the existing list of codes for this entry. If a code in otherCodes already exists in this.codes, it is skipped, since it already exists in the Entry.
      Parameters:
      otherCodes - codes to add to this entry
    • containsReason

      public boolean containsReason(String code, String system)
      Determines if the given entry contains the provided reason code in its list of reason codes.
      Parameters:
      code - clinical term
      system - system for the code
      Returns:
      true if the code is there