Package org.mitre.synthea.engine
Class State.CarePlanStart
java.lang.Object
org.mitre.synthea.engine.State
org.mitre.synthea.engine.State.CarePlanStart
- All Implemented Interfaces:
Serializable,Cloneable
- Enclosing class:
- State
The CarePlanStart state type indicates a point in the module where a care plan should be
prescribed. CarePlanStart states may only be processed during an Encounter, and so must occur
after the target Encounter state and before the EncounterEnd. See the Encounter section above
for more details. One or more codes describes the care plan and a list of activities describes
what the care plan entails.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mitre.synthea.engine.State
State.AllergyEnd, State.AllergyOnset, State.CallSubmodule, State.CarePlanEnd, State.CarePlanStart, State.ConditionEnd, State.ConditionOnset, State.Counter, State.Death, State.Delay, State.Delayable, State.Device, State.DeviceEnd, State.DiagnosticReport, State.Encounter, State.EncounterEnd, State.Guard, State.ImagingStudy, State.Initial, State.LegacyStateWithUnitlessRV, State.MedicationEnd, State.MedicationOrder, State.MultiObservation, State.Observation, State.Physiology, State.Procedure, State.SetAttribute, State.Simple, State.SupplyList, State.Symptom, State.TelemedicinePossibility, State.Terminal, State.Vaccine, State.VitalSign -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()clone() should copy all the necessary variables of this State so that it can be correctly executed and modified without altering the original copy.booleanProcess this State with the given Person at the specified time within the simulation.protected booleanDetermines if the attribute should be assigned Checks if assignToAttibute is defined and not empty.Methods inherited from class org.mitre.synthea.engine.State
build, getTransition, initialize, run, toString, transition
-
Field Details
-
assignToAttribute
The value to assign to an attribute
-
-
Constructor Details
-
CarePlanStart
public CarePlanStart()
-
-
Method Details
-
clone
Description copied from class:Stateclone() should copy all the necessary variables of this State so that it can be correctly executed and modified without altering the original copy. So for example, 'entered' and 'exited' times should not be copied so the clone can be cleanly executed. Implementation note: the base Object.clone() copies over all fields automatically (as a shallow copy), so we don't need to do that ourselves. Instead, we should 1. explicitly null out any fields that should not be copied, such as entered/exited 2. deep copy mutable reference types, if necessary. -
process
Description copied from class:StateProcess this State with the given Person at the specified time within the simulation. If this State generates a HealthRecord.Entry during processing, then the resulting data will reside in the State.entry field. -
shouldAssignAttribute
protected boolean shouldAssignAttribute()Determines if the attribute should be assigned Checks if assignToAttibute is defined and not empty.- Returns:
- true if the attribute should be assigned, false otherwise
-