original_string: protected function checkPatient($patientNr, $orgId)
      {
          if (! ($patientNr && $orgId)) {
              return false;
          }
  
          $select = $this->db->select();
          $select->from('gems__respondent2org', array('gr2o_id_user'))
              ->where('gr2o_patient_nr = ?', $patientNr)
              ->where('gr2o_id_organization = ?', $orgId);
  
          return $this->db->fetchOne($select);
      }
code: protected function checkPatient($patientNr, $orgId)
      {
          if (! ($patientNr && $orgId)) {
              return false;
          }
  
          $select = $this->db->select();
          $select->from('gems__respondent2org', array('gr2o_id_user'))
              ->where('gr2o_patient_nr = ?', $patientNr)
              ->where('gr2o_id_organization = ?', $orgId);
  
          return $this->db->fetchOne($select);
      }
code_tokens: protected function checkPatient ( $ patientNr , $ orgId ) { if ( ! ( $ patientNr && $ orgId ) ) { return false ; } $ select = $ this -> db -> select ( ) ; $ select -> from ( 'gems__respondent2org' , array ( 'gr2o_id_user' ) ) -> where ( 'gr2o_patient_nr = ?' , $ patientNr ) -> where ( 'gr2o_id_organization = ?' , $ orgId ) ; return $ this -> db -> fetchOne ( $ select ) ; }
docstring: Check should a patient be imported
  
  @param string $patientNr
  @param int $orgId
  @return boolean
docstring_tokens: Check should a patient be imported