ProgramActionBuilder

public class ProgramActionBuilder

Builds task action requests for enrolling tracked entity instances in a program for each entity type in the DHIS2 schema. Also builds create + enroll combination task action requests for each program and the corresponding tracked entity type.

Methods

build

public List<ActionEventRequest> build(List<Program> programs, ServerVersion version)

Builds a list of action event requests for program enrollment and create + enroll task actions.

Parameters:
  • programs
Returns:

A list of action event rests pertaining to program enrollment.