class Cohort extends BaseChangeableOpenmrsData {

	public boolean contains(Integer patientId) {
		return getMemberships() != null
		        && getMemberships().stream().anyMatch(m -> m.getPatientId().equals(patientId) && m.isActive());
	}

	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);

}