def METHOD_NAME(data):
    cleaned_data = {}
    cleaned_data["medicine"] = data["medicine"]
    cleaned_data["route"] = data.get("route", "").upper() or None
    cleaned_data["days"] = clean_integer(data.get("days", 0))
    cleaned_data["indicator"] = data.get("indicator")
    cleaned_data["max_dosage"] = data.get("max_dosage")
    cleaned_data["min_hours_between_doses"] = clean_integer(data.get("min_time", 0))
    cleaned_data["notes"] = data.get("notes", "")
    if data.get("dosage", "").upper() in FREQUENCY_OPTIONS:
        cleaned_data["frequency"] = data.get("dosage")
        cleaned_data["dosage"] = data.get("dosage_new")
    elif data.get("dosage_new", "").upper() in FREQUENCY_OPTIONS:
        cleaned_data["frequency"] = data.get("dosage_new")
        cleaned_data["dosage"] = data.get("dosage")
    else:
        cleaned_data["frequency"] = None
        cleaned_data["dosage"] = data.get("dosage_new") or data.get("dosage")
    return cleaned_data