/**
 * Given a list of physician notes, this function removes any duplicate notes.
 *
 * @param physicianNotes List of tuples containing physician notes.
 * @return List of tuples with duplicates removed.
 */
fun removeDuplicates(physicianNotes: MutableList<Pair<String, String>>): MutableList<Pair<String, String>> {

    val uniqueNotes = mutableListOf<Pair<String, String>>()
    while (physicianNotes.isNotEmpty()) {
        val currentNote = physicianNotes.removeAt(0)
        if (currentNote !in uniqueNotes) {
            uniqueNotes.add(currentNote)
        }
    }
    return uniqueNotes
}
/**
 * Given a list of physician notes, this function removes any duplicate notes.
 *
 * @param physicianNotes List of tuples containing physician notes.
 * @return List of tuples with duplicates removed.
 */
fun removeDuplicates(physicianNotes: MutableList<Pair<String, String>>): MutableList<Pair<String, String>> {
/**
 * Given a list of physician notes, this function removes any duplicate notes.
 *
 * @param physicianNotes List of tuples containing physician notes.
 * @return List of tuples with duplicates removed.
 */
fun removeDuplicates(physicianNotes: MutableList<Pair<String, String>>): MutableList<Pair<String, String>> {

    val uniqueNotes = mutableListOf<Pair<String, String>>()
    while (physicianNotes.isNotEmpty()) {
        val currentNote = physicianNotes.removeAt(0)
        if (currentNote !in uniqueNotes) {
            uniqueNotes.add(currentNote)
        }
    }
    return uniqueNotes
}