/**
 * As a Physical Therapist, you need to classify patients based on their age, gender, and injury type.
 * The function takes in three inputs:
 * - age (Int): the age of the patient
 * - gender (String): the gender of the patient ('male' or 'female')
 * - injuryType (String): the type of injury the patient has ('muscle', 'joint', or 'bone')
 *
 * Your task is to classify the patients into four categories:
 * - Young male patients with muscle injuries
 * - Young female patients with joint injuries
 * - Middle-aged male patients with bone injuries
 * - Middle-aged female patients with muscle or joint injuries
 *
 * You need to return the appropriate category for the given patient. Good luck!
 */
fun patientClassification(age: Int, gender: String, injuryType: String): String {

    return when {
        age < 30 && gender == "male" && injuryType == "muscle" -> "Young male patients with muscle injuries"
        age < 30 && gender == "female" && injuryType == "joint" -> "Young female patients with joint injuries"
        age >= 30 && gender == "male" && injuryType == "bone" -> "Middle-aged male patients with bone injuries"
        age >= 30 && gender == "female" && (injuryType == "muscle" || injuryType == "joint") -> "Middle-aged female patients with muscle or joint injuries"
        else -> "Unknown category"
    }
}
/**
 * As a Physical Therapist, you need to classify patients based on their age, gender, and injury type.
 * The function takes in three inputs:
 * - age (Int): the age of the patient
 * - gender (String): the gender of the patient ('male' or 'female')
 * - injuryType (String): the type of injury the patient has ('muscle', 'joint', or 'bone')
 *
 * Your task is to classify the patients into four categories:
 * - Young male patients with muscle injuries
 * - Young female patients with joint injuries
 * - Middle-aged male patients with bone injuries
 * - Middle-aged female patients with muscle or joint injuries
 *
 * You need to return the appropriate category for the given patient. Good luck!
 */
fun patientClassification(age: Int, gender: String, injuryType: String): String {
/**
 * As a Physical Therapist, you need to classify patients based on their age, gender, and injury type.
 * The function takes in three inputs:
 * - age (Int): the age of the patient
 * - gender (String): the gender of the patient ('male' or 'female')
 * - injuryType (String): the type of injury the patient has ('muscle', 'joint', or 'bone')
 *
 * Your task is to classify the patients into four categories:
 * - Young male patients with muscle injuries
 * - Young female patients with joint injuries
 * - Middle-aged male patients with bone injuries
 * - Middle-aged female patients with muscle or joint injuries
 *
 * You need to return the appropriate category for the given patient. Good luck!
 */
fun patientClassification(age: Int, gender: String, injuryType: String): String {

    return when {
        age < 30 && gender == "male" && injuryType == "muscle" -> "Young male patients with muscle injuries"
        age < 30 && gender == "female" && injuryType == "joint" -> "Young female patients with joint injuries"
        age >= 30 && gender == "male" && injuryType == "bone" -> "Middle-aged male patients with bone injuries"
        age >= 30 && gender == "female" && (injuryType == "muscle" || injuryType == "joint") -> "Middle-aged female patients with muscle or joint injuries"
        else -> "Unknown category"
    }
}