class Cohort extends BaseChangeableOpenmrsData {

	@Deprecated
	public void setMemberIds(Set<Integer> memberIds) {
		if (getMemberships().isEmpty()) {
			for (Integer id : memberIds) {
				addMembership(new CohortMembership(id));
			}
		}
		else {
			throw new IllegalArgumentException("since 2.1.0 cohorts are more complex than just a set of patient ids");
		}
	}

	public  Cohort();
	public  Cohort(Integer cohortId);
	public  Cohort(String name, String description, Integer[] ids);
	public  Cohort(String name, String description, Patient[] patients);
	public  Cohort(Collection<?> patientsOrIds);
	public  Cohort(String name, String description, Collection<?> patientsOrIds);
	public  Cohort(String commaSeparatedIds);

}