// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public static final String ACTIVE_CODE_NUMBER = "ACTIVE_CODE_NUMBER";
// 
// 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 static final String SAVE_TEMP_ADDED_MODIFIERS = "SAVE_TEMP_ADDED_MODIFIERS";
// 
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public final static int SEDATION_REQUEST_CODE = 2;


import android.app.AlertDialog;
import androidx.fragment.app.Fragment;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import static org.epstudios.epcoding.Constants.ACTIVE_CODE_NUMBER;
import static org.epstudios.epcoding.Constants.EPCODING;
import static org.epstudios.epcoding.Constants.MODIFIER_REQUEST_CODE;
import static org.epstudios.epcoding.Constants.SAVE_TEMP_ADDED_MODIFIERS;
import static org.epstudios.epcoding.Constants.SEDATION_REQUEST_CODE;
                buttonLabel = "Add";
                message = "Sedation coding not yet assigned for this procedure";
                break;
            case None:
                message = "No sedation was used in this procedure.";
                break;
            case LessThan10Mins:
                message = "Sedation time < 10 mins\nNo sedation codes can be assigned.";
                break;
            case OtherMDCalculated:
                message = String.format("Sedation by other MD, using:\n%s",
                        SedationCode.printSedationCodes(sedationCodes, "\n"));
                break;
            case AssignedSameMD:
                message = String.format("Sedation by same MD, using:\n%s",
                        SedationCode.printSedationCodes(sedationCodes, "\n"));
                break;
            default:
                message = "Error in sedation coding.";
                break;
        }
        dialog.setMessage(message);
        dialog.setTitle(title);
        dialog.setButton(AlertDialog.BUTTON_POSITIVE, buttonLabel, (dialogInterface, i) -> {
            Log.d(EPCODING, "click Add");
            Intent intent = new Intent(context, SedationActivity.class);
            intent.putExtra(Constants.TIME, sedationTime);
            intent.putExtra(Constants.AGE, patientOver5YrsOld);
            intent.putExtra(Constants.SAME_MD, sameMDPerformsSedation);
            intent.putExtra(Constants.SEDATION_STATUS, sedationStatus);
// Path: app/src/main/java/org/epstudios/epcoding/Constants.java
// public static final String ACTIVE_CODE_NUMBER = "ACTIVE_CODE_NUMBER";
// 
// 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 static final String SAVE_TEMP_ADDED_MODIFIERS = "SAVE_TEMP_ADDED_MODIFIERS";
// 
// 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/Utilities.java
import android.app.AlertDialog;
import androidx.fragment.app.Fragment;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import static org.epstudios.epcoding.Constants.ACTIVE_CODE_NUMBER;
import static org.epstudios.epcoding.Constants.EPCODING;
import static org.epstudios.epcoding.Constants.MODIFIER_REQUEST_CODE;
import static org.epstudios.epcoding.Constants.SAVE_TEMP_ADDED_MODIFIERS;
import static org.epstudios.epcoding.Constants.SEDATION_REQUEST_CODE;

                buttonLabel = "Add";
                message = "Sedation coding not yet assigned for this procedure";
                break;
            case None:
                message = "No sedation was used in this procedure.";
                break;
            case LessThan10Mins:
                message = "Sedation time < 10 mins\nNo sedation codes can be assigned.";
                break;
            case OtherMDCalculated:
                message = String.format("Sedation by other MD, using:\n%s",
                        SedationCode.printSedationCodes(sedationCodes, "\n"));
                break;
            case AssignedSameMD:
                message = String.format("Sedation by same MD, using:\n%s",
                        SedationCode.printSedationCodes(sedationCodes, "\n"));
                break;
            default:
                message = "Error in sedation coding.";
                break;
        }
        dialog.setMessage(message);
        dialog.setTitle(title);
        dialog.setButton(AlertDialog.BUTTON_POSITIVE, buttonLabel, (dialogInterface, i) -> {
            Log.d(EPCODING, "click Add");
            Intent intent = new Intent(context, SedationActivity.class);
            intent.putExtra(Constants.TIME, sedationTime);
            intent.putExtra(Constants.AGE, patientOver5YrsOld);
            intent.putExtra(Constants.SAME_MD, sameMDPerformsSedation);
            intent.putExtra(Constants.SEDATION_STATUS, sedationStatus);
            fragment.startActivityForResult(intent, SEDATION_REQUEST_CODE);