Multiple failings at a Scottish A&E department saw a child left waiting despite having an abnormal pulse following a seizure.