inheritAttributes

open fun inheritAttributes(fromTeiUid: String, toTeiUid: String, programUid: String): Single<Unit>

Inherit the tracked entity attribute values from one TEI to another. It only inherits attributes that are marked as "inherited=true" and that belong to program passed as parameter. This method is useful when creating new relationships. Inherited values are persisted in database.

Return

Unit

Parameters

fromTeiUid

TrackedEntityInstance to inherit values from.

toTeiUid

TrackedEntityInstance that receive the inherited values.

programUid

Only attributes associated to this program will be inherited.