package org.motechproject.tama.api.model;

/**
 * Created by IntelliJ IDEA.
 * User: rob
 * Date: 4/25/11
 * Time: 8:48 PM
 * To change this template use File | Settings | File Templates.
 */
public class AppointmentSchedule
{
	public static enum Followup {
		REGISTERED("Registered",7),
		WEEK4("4 week follow-up",4*7),
		WEEK12("12 week follow-up",4*12),
		WEEK24("24 week follow-up",4*24),
		WEEK36("36 week follow-up",4*36),
		WEEK48("48 week follow-up",4*48);

		final String value;
		final int days;

		Followup(String value, int days) {
			this.value=value;
			this.days=days;
		}

		@Override
		public String toString(){
			return value;
		}

		public String getKey(){
			return name();
		}

		public int getDays() {
			return this.days;
		}
	}
}

@@ -312,11 +312,11 @@
 up%22,
-4*7
+7*4
 ),%0A%09
@@ -343,17 +343,17 @@
 low-up%22,
-4
+7
 *12),%0A%09%09
@@ -379,17 +379,17 @@
 low-up%22,
-4
+7
 *24),%0A%09%09
@@ -415,17 +415,17 @@
 low-up%22,
-4
+7
 *36),%0A%09%09
@@ -451,17 +451,17 @@
 low-up%22,
-4
+7
 *48);%0A%0A%09

Fix 4->7 days week in the Care Schedule