if ((lc $patient eq lc $new_patient && lc $doc eq lc $new_doc) {