How do we diagnose migraine and childhood periodic syndromes?

How do we diagnose migraine and childhood periodic syndromes?