It has been demonstrated by studies that a large number of patients who go to their physician do not receive a proper headache diagnosis.The most important factor is the patient's physician does not have the time to take an adequate headache history. In addition, some physicians are not familiar enough with the International Classification of Headache Disorders II to make a proper diagnosis in some of the more difficult cases.While it is not possible to diagnose over the internet. It is possible to obtain some headache history and perform an analysis which will aid the physician in making a proper diagnosis. use php language and 'if/than' rules that based on ichd2, xml/xsl to show the result,i want to share the program. GPL Licence.