Card #213 fix for patient pagination