You need to do the check too in retirePatientIdentifierType and unretirePatientIdentifierType