package svc.models;

public enum Gender {
	FEMALE,
	MALE,
	TRANSGENDER_FEMALE,
	TRANSGENDER_MALE,
	NO_IDENTITY,
	DOES_NOT_KNOW,
	REFUSED,
	NO_DATA;
	
	static Gender fromInteger(int value)
	{
		switch(value)
		{
		case 0: return FEMALE;
		case 1: return MALE;
		case 2: return TRANSGENDER_FEMALE;
		case 3: return TRANSGENDER_MALE;
		case 4: return NO_IDENTITY;
		case 8: return DOES_NOT_KNOW;
		case 9: return REFUSED;
		case 99:
		default:
			return NO_DATA;
		}
	}
}

@@ -139,16 +139,24 @@
 %09NO_DATA
+,%0A%09OTHER
 ;%0A%09%0A%09sta
@@ -174,30 +174,98 @@
 from
-Integer(int value
+Columns(int gender, boolean otherGender)%0A%09%7B%0A%09%09if(otherGender
 )%0A
+%09
 %09%7B%0A
+%09%09%09return OTHER;%0A%09%09%7D%0A%09%09%0A
 %09%09sw
@@ -273,13 +273,14 @@
 tch(
-value
+gender
 )%0A%09%09

Update Gender