/**
 * This function generates a range of patient IDs based on the start and stop parameters 
 * provided by the physician. It also includes conditional statements to filter out specific IDs.
 */
fun generatePatientIds(start: Int, stop: Int): List<Int> {

    val patientIds = mutableListOf<Int>()

    // Generate patient IDs from start to stop
    for (id in start..stop) {
        // Condition 1: Exclude IDs ending with 0, 3, 7
        if (id % 10 !in listOf(0, 3, 7)) {
            // Condition 2: Exclude IDs not divisible by 4 or 6
            if (id % 4 == 0 || id % 6 == 0) {
                // Condition 3: Exclude IDs between 100 and 200
                if (id < 100 || id > 200) {
                    patientIds.add(id)
                }
            }
        }
    }

    return patientIds
}
/**
 * This function generates a range of patient IDs based on the start and stop parameters 
 * provided by the physician. It also includes conditional statements to filter out specific IDs.
 */
fun generatePatientIds(start: Int, stop: Int): List<Int> {
/**
 * This function generates a range of patient IDs based on the start and stop parameters 
 * provided by the physician. It also includes conditional statements to filter out specific IDs.
 */
fun generatePatientIds(start: Int, stop: Int): List<Int> {

    val patientIds = mutableListOf<Int>()

    // Generate patient IDs from start to stop
    for (id in start..stop) {
        // Condition 1: Exclude IDs ending with 0, 3, 7
        if (id % 10 !in listOf(0, 3, 7)) {
            // Condition 2: Exclude IDs not divisible by 4 or 6
            if (id % 4 == 0 || id % 6 == 0) {
                // Condition 3: Exclude IDs between 100 and 200
                if (id < 100 || id > 200) {
                    patientIds.add(id)
                }
            }
        }
    }

    return patientIds
}