Basic blood type rule matching code