Residence for the purpose of medical treatment
If residence for medical treatment is desired than three conditions must be met.

First of all the Netherlands have to be the most likely country for the medical treatment. This can be the case because, for example, the Netherlands has internationally speaking specialized in the necessary treatment. Or because expulsion of a person who is staying in the Netherlands will cause an already started treatment to stop and will lead to a medical emergency.

Secondly it must be for a necessary medical treatment. What is regarded as necessary is primarily up to the medical advisor of the Immigration Service to decide.

In closing the funding of the treatment has to already be arranged for.