NHS doctors in court challenge for patient rights