/**
 * A physician needs to determine the prescription for a patient based on their information.
 * The patientInfoTuple contains the following information: (age: Int, weight: Int, temperature: Float)
 *
 * Determine the appropriate prescription by following these rules:
 * - If the patient is younger than 18 years old, the prescription should be 'Pediatric dosage'.
 * - If the patient's weight is below 50kg, the prescription should be 'Low dosage'.
 * - If the patient's temperature is above 39.5°C, the prescription should be 'High dosage'.
 * - If none of the above conditions are met, the prescription should be 'Standard dosage'.
 *
 * Returns a tuple in the format (prescription: String, dosageAmount: Int).
 *
 * Example:
 * input: (25, 60, 37.8)
 * output: ('Standard dosage', 1)
 */
fun calculatePrescription(patientInfoTuple: Triple<Int, Int, Float>): Pair<String, Int> {

    val (age, weight, temperature) = patientInfoTuple

    return when {
        age < 18 -> Pair("Pediatric dosage", 0)
        weight < 50 -> Pair("Low dosage", 0)
        temperature > 39.5 -> Pair("High dosage", 0)
        else -> Pair("Standard dosage", 1)
    }
}
/**
 * A physician needs to determine the prescription for a patient based on their information.
 * The patientInfoTuple contains the following information: (age: Int, weight: Int, temperature: Float)
 *
 * Determine the appropriate prescription by following these rules:
 * - If the patient is younger than 18 years old, the prescription should be 'Pediatric dosage'.
 * - If the patient's weight is below 50kg, the prescription should be 'Low dosage'.
 * - If the patient's temperature is above 39.5°C, the prescription should be 'High dosage'.
 * - If none of the above conditions are met, the prescription should be 'Standard dosage'.
 *
 * Returns a tuple in the format (prescription: String, dosageAmount: Int).
 *
 * Example:
 * input: (25, 60, 37.8)
 * output: ('Standard dosage', 1)
 */
fun calculatePrescription(patientInfoTuple: Triple<Int, Int, Float>): Pair<String, Int> {
/**
 * A physician needs to determine the prescription for a patient based on their information.
 * The patientInfoTuple contains the following information: (age: Int, weight: Int, temperature: Float)
 *
 * Determine the appropriate prescription by following these rules:
 * - If the patient is younger than 18 years old, the prescription should be 'Pediatric dosage'.
 * - If the patient's weight is below 50kg, the prescription should be 'Low dosage'.
 * - If the patient's temperature is above 39.5°C, the prescription should be 'High dosage'.
 * - If none of the above conditions are met, the prescription should be 'Standard dosage'.
 *
 * Returns a tuple in the format (prescription: String, dosageAmount: Int).
 *
 * Example:
 * input: (25, 60, 37.8)
 * output: ('Standard dosage', 1)
 */
fun calculatePrescription(patientInfoTuple: Triple<Int, Int, Float>): Pair<String, Int> {

    val (age, weight, temperature) = patientInfoTuple

    return when {
        age < 18 -> Pair("Pediatric dosage", 0)
        weight < 50 -> Pair("Low dosage", 0)
        temperature > 39.5 -> Pair("High dosage", 0)
        else -> Pair("Standard dosage", 1)
    }
}