FIX: patient id getting and setting