/**
 * Given a tuple of nurse names and a boolean indicating whether to use the full name or only the initials,
 * return a list of initials or full names depending on the given boolean value.
 *
 * Tuple format: (first_name, middle_name, last_name)
 *
 * @param nameTuple A tuple containing nurse names.
 * @param useFullName Indicates whether to return full names or initials.
 * @return A list of initials or full names based on the given boolean value.
 */
fun getNurseInitials(nameTuple: Triple<String, String, String>, useFullName: Boolean): List<String> {

    return if (useFullName) {
        listOf(nameTuple.toList().joinToString(" "))
    } else {
        listOf("${nameTuple.first[0]}. ${nameTuple.third[0]}.")
    }
}
/**
 * Given a tuple of nurse names and a boolean indicating whether to use the full name or only the initials,
 * return a list of initials or full names depending on the given boolean value.
 *
 * Tuple format: (first_name, middle_name, last_name)
 *
 * @param nameTuple A tuple containing nurse names.
 * @param useFullName Indicates whether to return full names or initials.
 * @return A list of initials or full names based on the given boolean value.
 */
fun getNurseInitials(nameTuple: Triple<String, String, String>, useFullName: Boolean): List<String> {
/**
 * Given a tuple of nurse names and a boolean indicating whether to use the full name or only the initials,
 * return a list of initials or full names depending on the given boolean value.
 *
 * Tuple format: (first_name, middle_name, last_name)
 *
 * @param nameTuple A tuple containing nurse names.
 * @param useFullName Indicates whether to return full names or initials.
 * @return A list of initials or full names based on the given boolean value.
 */
fun getNurseInitials(nameTuple: Triple<String, String, String>, useFullName: Boolean): List<String> {

    return if (useFullName) {
        listOf(nameTuple.toList().joinToString(" "))
    } else {
        listOf("${nameTuple.first[0]}. ${nameTuple.third[0]}.")
    }
}