// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_AGE = "WIZARD_AGE";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_SAME_MD = "WIZARD_SAME_MD";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_SEDATION_STATUS = "WIZARD_SEDATION_STATUS";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_TIME = "WIZARD_TIME";


import android.app.AlertDialog;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import androidx.core.app.NavUtils;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.view.Menu;
import android.view.MenuItem;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import static org.epstudios.epcoding.Constants.WIZARD_AGE;
import static org.epstudios.epcoding.Constants.WIZARD_SAME_MD;
import static org.epstudios.epcoding.Constants.WIZARD_SEDATION_STATUS;
import static org.epstudios.epcoding.Constants.WIZARD_TIME;
				// When changing pages, reset the action bar actions since they
				// are dependent
				// on which page is currently active. An alternative approach is
				// to have each
				// fragment expose actions itself (rather than the activity
				// exposing actions),
				// but for simplicity, the activity provides the actions in this
				// sample.
				invalidateOptionsMenu();

			}
		});

        loadSettings();

		Code[] revisionCodes = Codes.getCodes(revisionCodeNumbers);
		Code[] removalCodes = Codes.getCodes(removalCodeNumbers);
		Code[] addingCodes = Codes.getCodes(addingCodeNumbers);
		Code[] finalCodes = Codes.getCodes(Codes.icdReplacementSecondaryCodeNumbers);

		List<Code> allCodes = new ArrayList<>();
		allCodes.addAll(Arrays.asList(revisionCodes));
		allCodes.addAll(Arrays.asList(removalCodes));
		allCodes.addAll(Arrays.asList(addingCodes));
		allCodes.addAll(Arrays.asList(finalCodes));


		if (savedInstanceState != null) {
			sedationTime = savedInstanceState.getInt(WIZARD_TIME, sedationTime);
			sedationStatus = SedationStatus.stringToSedationStatus(
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_AGE = "WIZARD_AGE";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_SAME_MD = "WIZARD_SAME_MD";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_SEDATION_STATUS = "WIZARD_SEDATION_STATUS";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String WIZARD_TIME = "WIZARD_TIME";


// Path: app/src/main/java/org/epstudios/epcoding/ScreenSlideActivity.java
import android.app.AlertDialog;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import androidx.core.app.NavUtils;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.view.Menu;
import android.view.MenuItem;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import static org.epstudios.epcoding.Constants.WIZARD_AGE;
import static org.epstudios.epcoding.Constants.WIZARD_SAME_MD;
import static org.epstudios.epcoding.Constants.WIZARD_SEDATION_STATUS;
import static org.epstudios.epcoding.Constants.WIZARD_TIME;

				// When changing pages, reset the action bar actions since they
				// are dependent
				// on which page is currently active. An alternative approach is
				// to have each
				// fragment expose actions itself (rather than the activity
				// exposing actions),
				// but for simplicity, the activity provides the actions in this
				// sample.
				invalidateOptionsMenu();

			}
		});

        loadSettings();

		Code[] revisionCodes = Codes.getCodes(revisionCodeNumbers);
		Code[] removalCodes = Codes.getCodes(removalCodeNumbers);
		Code[] addingCodes = Codes.getCodes(addingCodeNumbers);
		Code[] finalCodes = Codes.getCodes(Codes.icdReplacementSecondaryCodeNumbers);

		List<Code> allCodes = new ArrayList<>();
		allCodes.addAll(Arrays.asList(revisionCodes));
		allCodes.addAll(Arrays.asList(removalCodes));
		allCodes.addAll(Arrays.asList(addingCodes));
		allCodes.addAll(Arrays.asList(finalCodes));


		if (savedInstanceState != null) {
			sedationTime = savedInstanceState.getInt(WIZARD_TIME, sedationTime);
			sedationStatus = SedationStatus.stringToSedationStatus(
					savedInstanceState.getString(WIZARD_SEDATION_STATUS));