/**
 * This function takes in the name, temperature, and symptoms of a patient and returns a report based on the symptoms.
 */
fun patientReport(name: String, temperature: Double, symptoms: List<String>): String {

    return when {
        temperature > 39 -> {
            when {
                "cough" in symptoms -> "$name's temperature is extremely high. They have a cough, so it might be a severe respiratory infection."
                "headache" in symptoms -> "$name's temperature is extremely high. They have a headache. It could be a sign of a serious condition."
                // Add more conditions here
                else -> ""
            }
        }
        temperature > 37.5 -> {
            when {
                "sore throat" in symptoms -> "$name's temperature is high. They have a sore throat. It might indicate a throat infection."
                "fatigue" in symptoms -> "$name's temperature is high. They are experiencing fatigue. It could be a sign of an underlying health issue."
                // Add more conditions here
                else -> ""
            }
        }
        else -> {
            when {
                "runny nose" in symptoms -> "$name's temperature is normal. They have a runny nose. It may be due to allergies."
                "stomach" in symptoms -> "" // Incomplete condition, please complete it
                else -> ""
            }
        }
    }
}
/**
 * This function takes in the name, temperature, and symptoms of a patient and returns a report based on the symptoms.
 */
fun patientReport(name: String, temperature: Double, symptoms: List<String>): String {
/**
 * This function takes in the name, temperature, and symptoms of a patient and returns a report based on the symptoms.
 */
fun patientReport(name: String, temperature: Double, symptoms: List<String>): String {

    return when {
        temperature > 39 -> {
            when {
                "cough" in symptoms -> "$name's temperature is extremely high. They have a cough, so it might be a severe respiratory infection."
                "headache" in symptoms -> "$name's temperature is extremely high. They have a headache. It could be a sign of a serious condition."
                // Add more conditions here
                else -> ""
            }
        }
        temperature > 37.5 -> {
            when {
                "sore throat" in symptoms -> "$name's temperature is high. They have a sore throat. It might indicate a throat infection."
                "fatigue" in symptoms -> "$name's temperature is high. They are experiencing fatigue. It could be a sign of an underlying health issue."
                // Add more conditions here
                else -> ""
            }
        }
        else -> {
            when {
                "runny nose" in symptoms -> "$name's temperature is normal. They have a runny nose. It may be due to allergies."
                "stomach" in symptoms -> "" // Incomplete condition, please complete it
                else -> ""
            }
        }
    }
}