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:
Serializable
- Direct Known Subclasses:
HealthRecord.CarePlan,HealthRecord.Medication,HealthRecord.Procedure
- Enclosing class:
- HealthRecord
An Entry with a list of reason codes
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionA list of reason codes associated with the entry. -
Constructor Summary
ConstructorsConstructorDescriptionEntryWithReasons(long time, String type) Constructor for HealthRecord EntryWithReasons. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsReason(String code, String system) Determines if the given entry contains the provided reason code in its list of reason codes.voidmergeReasonList(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 Details
-
reasons
A list of reason codes associated with the entry.
-
-
Constructor Details
-
EntryWithReasons
Constructor for HealthRecord EntryWithReasons.- Parameters:
time- the time of the entrytype- the type of the entry
-
-
Method Details
-
mergeReasonList
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
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
-