/**
 * Given a tuple containing patient information (patient id, name, and a nested tuple of vital signs),
 * this function returns a formatted string that displays the patient details.
 *
 * The patient details should be displayed as follows:
 * Patient ID: [patient id]
 * Name: [patient name]
 * Vital Signs:
 *     - [vital sign 1]
 *     - [vital sign 2]
 *     - ...
 *
 * @param patients A tuple containing patient information.
 * @return The formatted string displaying patient details.
 */
fun getPatientInfo(patients: Triple<Int, String, List<Pair<Int, String>>>): String {

    val (patientId, name, vitalSigns) = patients

    var patientDetails = "Patient ID: $patientId\nName: $name\nVital Signs:\n"
    for (vitalSign in vitalSigns) {
        patientDetails += "\t- ${vitalSign.second}\n"
    }

    return patientDetails
}
/**
 * Given a tuple containing patient information (patient id, name, and a nested tuple of vital signs),
 * this function returns a formatted string that displays the patient details.
 *
 * The patient details should be displayed as follows:
 * Patient ID: [patient id]
 * Name: [patient name]
 * Vital Signs:
 *     - [vital sign 1]
 *     - [vital sign 2]
 *     - ...
 *
 * @param patients A tuple containing patient information.
 * @return The formatted string displaying patient details.
 */
fun getPatientInfo(patients: Triple<Int, String, List<Pair<Int, String>>>): String {
/**
 * Given a tuple containing patient information (patient id, name, and a nested tuple of vital signs),
 * this function returns a formatted string that displays the patient details.
 *
 * The patient details should be displayed as follows:
 * Patient ID: [patient id]
 * Name: [patient name]
 * Vital Signs:
 *     - [vital sign 1]
 *     - [vital sign 2]
 *     - ...
 *
 * @param patients A tuple containing patient information.
 * @return The formatted string displaying patient details.
 */
fun getPatientInfo(patients: Triple<Int, String, List<Pair<Int, String>>>): String {

    val (patientId, name, vitalSigns) = patients

    var patientDetails = "Patient ID: $patientId\nName: $name\nVital Signs:\n"
    for (vitalSign in vitalSigns) {
        patientDetails += "\t- ${vitalSign.second}\n"
    }

    return patientDetails
}