Package org.mitre.synthea.world.concepts
Class HealthRecord.EntryWithReasons
- java.lang.Object
-
- org.mitre.synthea.world.concepts.HealthRecord.Entry
-
- org.mitre.synthea.world.concepts.HealthRecord.EntryWithReasons
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
HealthRecord.CarePlan
,HealthRecord.Medication
,HealthRecord.Procedure
- Enclosing class:
- HealthRecord
public abstract class HealthRecord.EntryWithReasons extends HealthRecord.Entry
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntryWithReasons(long time, java.lang.String type)
Constructor for HealthRecord EntryWithReasons.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
mergeReasonList(java.util.List<HealthRecord.Code> otherCodes)
Merges the passed in code list into the existing list of codes for this entry.-
Methods inherited from class org.mitre.synthea.world.concepts.HealthRecord.Entry
containsCode, getCost, mergeCodeList, toString
-
-
-
-
Field Detail
-
reasons
public java.util.List<HealthRecord.Code> reasons
-
-
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 termsystem
- system for the code- Returns:
- true if the code is there
-
-