/**
 * This function takes a list of case objects and returns true if all cases are still open,
 * or false if at least one case has been closed.
 *
 * @param caseList A list of case objects
 * @return true if all cases are open, false otherwise
 */
fun validateCase(caseList: List<Map<String, String>>): Boolean {

    // Iterate through the case list
    for (case in caseList) {
        if (case["status"] != "open") {
            return false  // If any case is closed, return false
        }
    }
    return true  // If all cases are open, return true
}
/**
 * This function takes a list of case objects and returns true if all cases are still open,
 * or false if at least one case has been closed.
 *
 * @param caseList A list of case objects
 * @return true if all cases are open, false otherwise
 */
fun validateCase(caseList: List<Map<String, String>>): Boolean {
/**
 * This function takes a list of case objects and returns true if all cases are still open,
 * or false if at least one case has been closed.
 *
 * @param caseList A list of case objects
 * @return true if all cases are open, false otherwise
 */
fun validateCase(caseList: List<Map<String, String>>): Boolean {

    // Iterate through the case list
    for (case in caseList) {
        if (case["status"] != "open") {
            return false  // If any case is closed, return false
        }
    }
    return true  // If all cases are open, return true
}