/**
 * This function takes a nurse's name and a list of records as input. It removes any duplicate records from
 * the list, considering only the nurse's name.
 *
 * @param nurse The name of the nurse
 * @param records A list of records (each record is a map with a 'name' key)
 * @return The updated list of records without duplicate entries
 */
fun deleteDuplicateRecords(nurse: String, records: List<Map<String, String>>): List<Map<String, String>> {

    val uniqueRecords = mutableListOf<Map<String, String>>()
    for (record in records) {
        if (record["name"] != nurse) {
            uniqueRecords.add(record)
        }
    }
    return uniqueRecords
}
/**
 * This function takes a nurse's name and a list of records as input. It removes any duplicate records from
 * the list, considering only the nurse's name.
 *
 * @param nurse The name of the nurse
 * @param records A list of records (each record is a map with a 'name' key)
 * @return The updated list of records without duplicate entries
 */
fun deleteDuplicateRecords(nurse: String, records: List<Map<String, String>>): List<Map<String, String>> {
/**
 * This function takes a nurse's name and a list of records as input. It removes any duplicate records from
 * the list, considering only the nurse's name.
 *
 * @param nurse The name of the nurse
 * @param records A list of records (each record is a map with a 'name' key)
 * @return The updated list of records without duplicate entries
 */
fun deleteDuplicateRecords(nurse: String, records: List<Map<String, String>>): List<Map<String, String>> {

    val uniqueRecords = mutableListOf<Map<String, String>>()
    for (record in records) {
        if (record["name"] != nurse) {
            uniqueRecords.add(record)
        }
    }
    return uniqueRecords
}