query patient info is worked