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);
    }
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);
    }
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 ) ; }
Check should a patient be imported

@param string $patientNr
@param int $orgId
@return boolean
Check should a patient be imported