// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String AGE = "AGE";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_AGE = "sedation_age";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_SAME_MD = "sedation_same_md";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_STATUS = "sedation_status";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_TIME = "sedation_time";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String EPCODING = "EPCODING";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static int MODIFIER_REQUEST_CODE = 1;
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String SAME_MD = "SAME_MD";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static int SEDATION_REQUEST_CODE = 2;
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String SEDATION_STATUS = "SEDATION_STATUS";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String TIME = "TIME";


import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import static org.epstudios.epcoding.Constants.AGE;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_AGE;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_SAME_MD;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_STATUS;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_TIME;
import static org.epstudios.epcoding.Constants.EPCODING;
import static org.epstudios.epcoding.Constants.MODIFIER_REQUEST_CODE;
import static org.epstudios.epcoding.Constants.SAME_MD;
import static org.epstudios.epcoding.Constants.SEDATION_REQUEST_CODE;
import static org.epstudios.epcoding.Constants.SEDATION_STATUS;
import static org.epstudios.epcoding.Constants.TIME;
            addingCodeState[i++] = entry.getValue().isChecked();
        i = 0;
        boolean[] finalCodeState = new boolean[finalCheckBoxMap.size()];
        for (Map.Entry<String, CodeCheckBox> entry : finalCheckBoxMap
                .entrySet())
            finalCodeState[i++] = entry.getValue().isChecked();
        switch (mPageNumber) {
            case 3:
                savedInstanceState.putBooleanArray("revision_codes", revisionCodeState);
            case 4:
                savedInstanceState.putBooleanArray("removal_codes", removalCodeState);
                break;
            case 5:
                savedInstanceState.putBooleanArray("adding_codes", addingCodeState);
                break;
            case 6:
                savedInstanceState.putBooleanArray("final_codes", finalCodeState);
                break;
            default:
                break;
        }
        savedInstanceState.putBoolean(BUNDLE_SEDATION_SAME_MD, sameMDPerformsSedation);
        savedInstanceState.putBoolean(BUNDLE_SEDATION_AGE, patientOver5YrsOld);
        savedInstanceState.putInt(BUNDLE_SEDATION_TIME, sedationTime);
        savedInstanceState.putString(BUNDLE_SEDATION_STATUS, sedationStatus.toString());
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        Log.d(EPCODING, "onActivityResult called");
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String AGE = "AGE";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_AGE = "sedation_age";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_SAME_MD = "sedation_same_md";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_STATUS = "sedation_status";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String BUNDLE_SEDATION_TIME = "sedation_time";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String EPCODING = "EPCODING";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static int MODIFIER_REQUEST_CODE = 1;
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String SAME_MD = "SAME_MD";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static int SEDATION_REQUEST_CODE = 2;
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String SEDATION_STATUS = "SEDATION_STATUS";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static String TIME = "TIME";


// Path: app/src/main/java/org/epstudios/epcoding/ScreenSlidePageFragment.java
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import static org.epstudios.epcoding.Constants.AGE;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_AGE;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_SAME_MD;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_STATUS;
import static org.epstudios.epcoding.Constants.BUNDLE_SEDATION_TIME;
import static org.epstudios.epcoding.Constants.EPCODING;
import static org.epstudios.epcoding.Constants.MODIFIER_REQUEST_CODE;
import static org.epstudios.epcoding.Constants.SAME_MD;
import static org.epstudios.epcoding.Constants.SEDATION_REQUEST_CODE;
import static org.epstudios.epcoding.Constants.SEDATION_STATUS;
import static org.epstudios.epcoding.Constants.TIME;

            addingCodeState[i++] = entry.getValue().isChecked();
        i = 0;
        boolean[] finalCodeState = new boolean[finalCheckBoxMap.size()];
        for (Map.Entry<String, CodeCheckBox> entry : finalCheckBoxMap
                .entrySet())
            finalCodeState[i++] = entry.getValue().isChecked();
        switch (mPageNumber) {
            case 3:
                savedInstanceState.putBooleanArray("revision_codes", revisionCodeState);
            case 4:
                savedInstanceState.putBooleanArray("removal_codes", removalCodeState);
                break;
            case 5:
                savedInstanceState.putBooleanArray("adding_codes", addingCodeState);
                break;
            case 6:
                savedInstanceState.putBooleanArray("final_codes", finalCodeState);
                break;
            default:
                break;
        }
        savedInstanceState.putBoolean(BUNDLE_SEDATION_SAME_MD, sameMDPerformsSedation);
        savedInstanceState.putBoolean(BUNDLE_SEDATION_AGE, patientOver5YrsOld);
        savedInstanceState.putInt(BUNDLE_SEDATION_TIME, sedationTime);
        savedInstanceState.putString(BUNDLE_SEDATION_STATUS, sedationStatus.toString());
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        Log.d(EPCODING, "onActivityResult called");
        if (requestCode == MODIFIER_REQUEST_CODE) {