Has any of family member had covid before you

How is patient diagnosed