/**
 * This function calculates the age of a patient given their year of birth and the current year.
 *
 * @param yearOfBirth The four-digit year in which the patient was born.
 * @param currentYear The four-digit current year.
 * @return The age of the patient.
 */
fun calculatePatientAge(yearOfBirth: Int, currentYear: Int): Int {

    val age = currentYear - yearOfBirth
    return age
}
/**
 * This function calculates the age of a patient given their year of birth and the current year.
 *
 * @param yearOfBirth The four-digit year in which the patient was born.
 * @param currentYear The four-digit current year.
 * @return The age of the patient.
 */
fun calculatePatientAge(yearOfBirth: Int, currentYear: Int): Int {
/**
 * This function calculates the age of a patient given their year of birth and the current year.
 *
 * @param yearOfBirth The four-digit year in which the patient was born.
 * @param currentYear The four-digit current year.
 * @return The age of the patient.
 */
fun calculatePatientAge(yearOfBirth: Int, currentYear: Int): Int {

    val age = currentYear - yearOfBirth
    return age
}