
    Given a patient's current identification number in the hospital readmission tracking system, find the next available ID number that reads the same forwards and backwards for flagging high-risk readmission cases. The system requires that each high-risk case be assigned the smallest possible palindromic number greater than the current ID.
    

    
import sys

def next_smallest_palindrome(num):
    """
    Given a patient's current identification number in the hospital readmission tracking system, find the next available ID number that reads the same forwards and backwards for flagging high-risk readmission cases. The system requires that each high-risk case be assigned the smallest possible palindromic number greater than the current ID.
    

    """
import sys

def next_smallest_palindrome(num):
    """
    Given a patient's current identification number in the hospital readmission tracking system, find the next available ID number that reads the same forwards and backwards for flagging high-risk readmission cases. The system requires that each high-risk case be assigned the smallest possible palindromic number greater than the current ID.
    

    """
    numstr = str(num)
    for i in range(num + 1, sys.maxsize):
        if str(i) == str(i)[::-1]:
            return i