Class HealthRecord.EntryWithReasons

    • Constructor Detail

      • EntryWithReasons

        public EntryWithReasons​(long time,
                                java.lang.String type)
        Constructor for HealthRecord EntryWithReasons.
    • Method Detail

      • mergeReasonList

        public void mergeReasonList​(java.util.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​(java.lang.String code,
                                      java.lang.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