fix a problem with printing ID cards and updating registration encounter datetime