Judge Fabricius, quoted in local media, said the ruling applied only to Mr Stransham-Ford and that future cases would be debated on their merits.
“It is not correct to say from now on it will be a free-for-all,” he is quoted as saying.
The justice and health ministers, as well as the Health Professions Council of South Africa, have opposed the legal case.
Dignity SA said it would welcome an appeal as a chance to test the right to die against the constitution, the Associated Press news agency reports.