Temperatures are set to soar past 40 degrees for the next three days, straining emergency departments.