diagnostic flowchart