/**
 * This function checks the vital signs of a patient.
 *
 * @param vitals a dictionary containing the vital signs
 * @return true if the vital signs are within the normal range, false otherwise
 */
fun checkVitalSigns(vitals: Map<String, Double>): Boolean {

    val temperature = vitals["temperature"]
    val heartRate = vitals["heart_rate"]
    val bloodPressure = vitals["blood_pressure"]

    if (temperature ?: 0.0 > 37.5 || temperature ?: 0.0 < 36.0) {
        return false
    }

    if (heartRate ?: 0.0 > 100 || heartRate ?: 0.0 < 60) {
        return false
    }

    if (bloodPressure ?: 0.0 > 130 || bloodPressure ?: 0.0 < 90) {
        return false
    }

    return true
}
/**
 * This function checks the vital signs of a patient.
 *
 * @param vitals a dictionary containing the vital signs
 * @return true if the vital signs are within the normal range, false otherwise
 */
fun checkVitalSigns(vitals: Map<String, Double>): Boolean {
/**
 * This function checks the vital signs of a patient.
 *
 * @param vitals a dictionary containing the vital signs
 * @return true if the vital signs are within the normal range, false otherwise
 */
fun checkVitalSigns(vitals: Map<String, Double>): Boolean {

    val temperature = vitals["temperature"]
    val heartRate = vitals["heart_rate"]
    val bloodPressure = vitals["blood_pressure"]

    if (temperature ?: 0.0 > 37.5 || temperature ?: 0.0 < 36.0) {
        return false
    }

    if (heartRate ?: 0.0 > 100 || heartRate ?: 0.0 < 60) {
        return false
    }

    if (bloodPressure ?: 0.0 > 130 || bloodPressure ?: 0.0 < 90) {
        return false
    }

    return true
}