EnrollmentDto

public class EnrollmentDto

A class to model enrollments posted to the DHIS2 API.

Methods

convertTo218

public org.motechproject.dhis2.rest.domain.v2_18.EnrollmentDto convertTo218()

convertTo219

public org.motechproject.dhis2.rest.domain.v2_19.EnrollmentDto convertTo219()

convertTo221

public org.motechproject.dhis2.rest.domain.v2_21.EnrollmentDto convertTo221()

equals

public boolean equals(Object obj)

getAttributes

public List<AttributeDto> getAttributes()

getDateOfEnrollment

public String getDateOfEnrollment()

getDateOfIncident

public String getDateOfIncident()

getOrgUnit

public String getOrgUnit()

getProgram

public String getProgram()

getTrackedEntityInstance

public String getTrackedEntityInstance()

hashCode

public int hashCode()

isFollowup

public boolean isFollowup()

setAttributes

public void setAttributes(List<AttributeDto> attributes)

setDateOfEnrollment

public void setDateOfEnrollment(String dateOfEnrollment)

setDateOfIncident

public void setDateOfIncident(String dateOfIncident)

setFollowup

public void setFollowup(boolean followup)

setOrgUnit

public void setOrgUnit(String orgUnit)

setProgram

public void setProgram(String program)

setTrackedEntityInstance

public void setTrackedEntityInstance(String trackedEntityInstance)