/**
 * Given the patient's temperature and symptoms, return the possible diagnoses.
 * If the temperature is normal and the patient has no symptoms, return 'No diagnosis'.
 * If the patient has a fever or any symptoms, return the possible diagnoses.
 *
 * @param temperature The patient's temperature in degrees Celsius.
 * @param symptoms A list of symptoms experienced by the patient.
 * @return The possible diagnoses based on the temperature and symptoms.
 */
fun diagnosePatient(temperature: Double, symptoms: List<String>): List<String> {

    if (temperature > 38.0) {
        return listOf("Flu", "COVID-19")
    }

    if ("cough" in symptoms) {
        if ("shortness of breath" in symptoms) {
            return listOf("Pneumonia", "COVID-19")
        }
        return listOf("Common cold", "COVID-19")
    }

    if ("sore throat" in symptoms) {
        if ("runny nose" in symptoms) {
            return listOf("Common cold", "COVID-19")
        }
        return listOf("Strep throat")
    }

    return listOf("No diagnosis")
}
/**
 * Given the patient's temperature and symptoms, return the possible diagnoses.
 * If the temperature is normal and the patient has no symptoms, return 'No diagnosis'.
 * If the patient has a fever or any symptoms, return the possible diagnoses.
 *
 * @param temperature The patient's temperature in degrees Celsius.
 * @param symptoms A list of symptoms experienced by the patient.
 * @return The possible diagnoses based on the temperature and symptoms.
 */
fun diagnosePatient(temperature: Double, symptoms: List<String>): List<String> {
/**
 * Given the patient's temperature and symptoms, return the possible diagnoses.
 * If the temperature is normal and the patient has no symptoms, return 'No diagnosis'.
 * If the patient has a fever or any symptoms, return the possible diagnoses.
 *
 * @param temperature The patient's temperature in degrees Celsius.
 * @param symptoms A list of symptoms experienced by the patient.
 * @return The possible diagnoses based on the temperature and symptoms.
 */
fun diagnosePatient(temperature: Double, symptoms: List<String>): List<String> {

    if (temperature > 38.0) {
        return listOf("Flu", "COVID-19")
    }

    if ("cough" in symptoms) {
        if ("shortness of breath" in symptoms) {
            return listOf("Pneumonia", "COVID-19")
        }
        return listOf("Common cold", "COVID-19")
    }

    if ("sore throat" in symptoms) {
        if ("runny nose" in symptoms) {
            return listOf("Common cold", "COVID-19")
        }
        return listOf("Strep throat")
    }

    return listOf("No diagnosis")
}