EventHandler¶
-
public class
EventHandler¶ Event Handler for the DHIS2 module. The public methods listen for the event subjects listed in
org.motechproject.dhis2.event.EventSubjects
Methods¶
handleCreate¶
-
public void
handleCreate(MotechEvent event)¶ Parses the MotechEvent and creates a
org.motechproject.dhis2.rest.domain.TrackedEntityInstanceDtowhich is then sent to the DHIS2 server viaorg.motechproject.dhis2.rest.service.DhisWebServiceParameters: - event – MotechEvent pertaining to tracked entity instance creation.
handleCreateAndEnroll¶
-
public void
handleCreateAndEnroll(MotechEvent event)¶ Parses the event and creates a
org.motechproject.dhis2.rest.domain.TrackedEntityInstanceDtoand aorg.motechproject.dhis2.rest.domain.EnrollmentDtowhich is then sent to the DHIS2 server viaorg.motechproject.dhis2.rest.service.DhisWebServiceParameters: - event – pertaining to combined DHIS2 tracked entity instance creation and enrollment.
handleDataValue¶
-
public void
handleDataValue(MotechEvent event)¶ Parses the event and creates a
org.motechproject.dhis2.rest.domain.DataValueDtowhich is then sent to the DHIS2 server viaorg.motechproject.dhis2.rest.service.DhisWebServiceParameters: - event –
handleDataValueSet¶
-
public void
handleDataValueSet(MotechEvent event)¶ Parses the event and creates a
org.motechproject.dhis2.rest.domain.DataValueSetDtowhich is then sent to the DHIS2 server viaorg.motechproject.dhis2.rest.service.DhisWebServiceParameters: - event –
handleEnrollment¶
-
public void
handleEnrollment(MotechEvent event)¶ Parses the MotechEvent and creates a
org.motechproject.dhis2.rest.domain.EnrollmentDtowhich is then sent to the DHIS2 server viaorg.motechproject.dhis2.rest.service.DhisWebServiceParameters: - event – MotechEvent pertaining to enrolling a tracked entity instance in a program.
handleStageUpdate¶
-
public void
handleStageUpdate(MotechEvent event)¶ Parses the MotechEvent and creates a
org.motechproject.dhis2.rest.domain.DhisEventDtowhich is then sent to the DHIS2 server viaorg.motechproject.dhis2.rest.service.DhisWebServiceParameters: - event – MotechEvent pertaining to a DHIS2 program stage event.