Thousands of elective surgeries will be impacted as NSW doctors prepare to walk off the job.