getRelationshipTypesForTrackedEntities

abstract fun getRelationshipTypesForTrackedEntities(trackedEntityType: String, programUid: String? = null): List<RelationshipTypeWithEntitySide>

Returns all the relationship types relevant to the given trackedEntityType and program (optional). The list includes the side of the TrackedEntity (FROM or TO). If the TrackedEntity might be in both sides, the list will include two entries for the same relationship type, one for each side.

Parameters

trackedEntityType

the trackedEntityType uid

programUid

optional program uid